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