]>
Commit | Line | Data |
---|---|---|
2b5f62a0 VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: client.h | |
3 | // Purpose: Remote help sample client | |
4 | // Author: Julian Smart | |
5 | // Modified by: Eric Dowty | |
6 | // Created: 2002-11-18 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // Define a new application | |
13 | class MyApp: public wxApp | |
14 | { | |
15 | public: | |
16 | virtual bool OnInit(); | |
17 | virtual int OnExit(); | |
18 | ||
19 | #if defined(USE_REMOTE) | |
20 | wxRemoteHtmlHelpController *m_help; | |
21 | #else | |
22 | wxHtmlHelpController *m_help; | |
23 | #endif | |
24 | }; | |
25 | ||
26 | DECLARE_APP(MyApp) | |
27 | ||
28 | // Define a new frame | |
29 | class MyFrame: public wxFrame | |
30 | { | |
31 | public: | |
32 | MyFrame(wxFrame *frame, const wxString& title); | |
33 | ||
34 | private: | |
35 | void OnExit(wxCommandEvent& event); | |
36 | ||
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); | |
47 | ||
48 | void ModalDlg(wxCommandEvent& event); | |
49 | ||
50 | wxPanel *m_panel; | |
51 | wxButton *m_modalbutton; | |
52 | ||
53 | DECLARE_EVENT_TABLE() | |
54 | }; | |
55 | ||
56 | class MyModalDialog : public wxDialog | |
57 | { | |
58 | public: | |
59 | MyModalDialog(wxWindow *parent); | |
60 | ||
61 | private: | |
62 | void OnButton(wxCommandEvent& event); | |
63 | ||
64 | wxButton *m_main; | |
65 | wxButton *m_book1; | |
66 | wxButton *m_book2; | |
67 | ||
68 | DECLARE_EVENT_TABLE() | |
69 | }; | |
70 | ||
71 | ||
72 | #define CLIENT_QUIT wxID_EXIT | |
73 | #define CLIENT_EXECUTE 2 | |
74 | #define CLIENT_REQUEST 3 | |
75 | #define CLIENT_POKE 4 | |
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 |