Re: PostgreSQL.hhp

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Cc: Darko Prenosil <Darko(dot)Prenosil(at)finteh(dot)hr>, pgadmin-hackers(at)postgresql(dot)org
Subject: Re: PostgreSQL.hhp
Date: 2003-07-22 13:57:55
Message-ID: 3F1D42E3.3090802@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Dave Page wrote:

>Thanks Darko, patch applied.
>
>Regards, Dave.
>
>
>
>>-----Original Message-----
>>From: Darko Prenosil [mailto:Darko(dot)Prenosil(at)finteh(dot)hr]
>>Sent: 20 July 2003 22:23
>>To: pgadmin-hackers(at)postgresql(dot)org
>>Subject: [pgadmin-hackers] PostgreSQL.hhp
>>
>>
>>Now when there is hhp file for PostgreSQL help why not enable
>>it in PgAdmin3.
>>
>>So:
>>
>>In misc.h add function declaration:
>>
>>void DisplayPgSqlHelp(wxWindow *wnd, const wxString
>>&helpTopic, char **icon=0);
>>
>>In misc.cpp add function definition:
>>
>>void DisplayPgSqlHelp(wxWindow *wnd, const wxString
>>&helpTopic, char **icon){
>> extern wxString docPath;
>> static wxHtmlHelpController *helpCtl=0;
>> static bool firstCall=true;
>>
>> if (firstCall)
>> {
>> firstCall=false;
>> wxString helpfile=docPath + wxT("/") +
>>settings->GetCanonicalLanguage() + wxT("/pg/PostgreSQL");
>>
>> if (!wxFile::Exists(helpfile + wxT(".hhp")) &&
>>!wxFile::Exists(helpfile + wxT(".zip")))
>> helpfile=docPath + wxT("/en_US/pg/PostgreSQL");
>>
>> if (wxFile::Exists(helpfile + wxT(".hhp")) ||
>>wxFile::Exists(helpfile + wxT(".zip")))
>> {
>> helpCtl=new wxHtmlHelpController();
>> helpCtl->Initialize(helpfile);
>> }
>> }
>>
>> if (helpCtl)
>> {
>> if (helpTopic == wxT("index"))
>> helpCtl->DisplayContents();
>> else
>> helpCtl->DisplaySection(helpTopic + wxT(".html"));
>> }
>> else
>> {
>> while (wnd->GetParent())
>> wnd=wnd->GetParent();
>>
>> frmHelp::LoadLocalDoc(wnd, helpTopic + wxT(".html"));
>> }
>>}
>>
>>
>>
This wipes away the possibility to include different doc versions using
options!!!!!

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2003-07-22 14:00:46 Re: PostgreSQL.hhp
Previous Message Dave Page 2003-07-22 13:33:13 Re: PostgreSQL.hhp