1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Remote help sample client
4 // Author: Julian Smart
5 // Modified by: Eric Dowty
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
16 virtual bool OnInit();
19 #if defined(USE_REMOTE)
20 wxRemoteHtmlHelpController
*m_help
;
22 wxHtmlHelpController
*m_help
;
29 class MyFrame
: public wxFrame
32 MyFrame(wxFrame
*frame
, const wxString
& title
);
35 void OnExit(wxCommandEvent
& event
);
37 void OnHelp_Main(wxCommandEvent
& event
);
38 void OnHelp_Book1(wxCommandEvent
& event
);
39 void OnHelp_Book2(wxCommandEvent
& event
);
40 void OnHelp_Index(wxCommandEvent
& event
);
41 void OnHelp_Contents(wxCommandEvent
& event
);
42 void OnHelp_Search(wxCommandEvent
& event
);
43 void OnHelp_Title(wxCommandEvent
& event
);
44 void OnHelp_Addbook(wxCommandEvent
& event
);
45 void OnHelp_Tempdir(wxCommandEvent
& event
);
46 void OnHelp_Quitserver(wxCommandEvent
& event
);
48 void ModalDlg(wxCommandEvent
& event
);
51 wxButton
*m_modalbutton
;
56 class MyModalDialog
: public wxDialog
59 MyModalDialog(wxWindow
*parent
);
62 void OnButton(wxCommandEvent
& event
);
72 #define CLIENT_QUIT wxID_EXIT
73 #define CLIENT_EXECUTE 2
74 #define CLIENT_REQUEST 3
76 #define CLIENT_HELPMAIN 5
77 #define CLIENT_HELPBOOK1 6
78 #define CLIENT_HELPBOOK2 7
79 #define DIALOG_MODAL 8
80 #define BUTTON_MODAL 9
81 #define CLIENT_HELPINDEX 10
82 #define CLIENT_HELPCONTENTS 11
83 #define CLIENT_HELPSEARCH 12
84 #define CLIENT_HELPTITLE 13
85 #define CLIENT_HELPADDBOOK 14
86 #define CLIENT_HELPTEMPDIR 15
87 #define CLIENT_HELPQUIT 16