]> git.saurik.com Git - wxWidgets.git/blob - utils/helpview/src/client.h
regenerated ReST docs
[wxWidgets.git] / utils / helpview / src / client.h
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 void OnHelp_Main(wxCommandEvent& event);
37 void OnHelp_Book1(wxCommandEvent& event);
38 void OnHelp_Book2(wxCommandEvent& event);
39 void OnHelp_Index(wxCommandEvent& event);
40 void OnHelp_Contents(wxCommandEvent& event);
41 void OnHelp_Search(wxCommandEvent& event);
42 void OnHelp_Title(wxCommandEvent& event);
43 void OnHelp_Addbook(wxCommandEvent& event);
44 void OnHelp_Tempdir(wxCommandEvent& event);
45 void OnHelp_Quitserver(wxCommandEvent& event);
46
47 void ModalDlg(wxCommandEvent& event);
48
49 wxPanel *m_panel;
50 wxButton *m_modalbutton;
51
52 DECLARE_EVENT_TABLE()
53 };
54
55 class MyModalDialog : public wxDialog
56 {
57 public:
58 MyModalDialog(wxWindow *parent);
59
60 private:
61 void OnButton(wxCommandEvent& event);
62
63 wxButton *m_main;
64 wxButton *m_book1;
65 wxButton *m_book2;
66
67 DECLARE_EVENT_TABLE()
68 };
69
70
71 #define CLIENT_QUIT wxID_EXIT
72 #define CLIENT_EXECUTE 2
73 #define CLIENT_REQUEST 3
74 #define CLIENT_POKE 4
75 #define CLIENT_HELPMAIN 5
76 #define CLIENT_HELPBOOK1 6
77 #define CLIENT_HELPBOOK2 7
78 #define DIALOG_MODAL 8
79 #define BUTTON_MODAL 9
80 #define CLIENT_HELPINDEX 10
81 #define CLIENT_HELPCONTENTS 11
82 #define CLIENT_HELPSEARCH 12
83 #define CLIENT_HELPTITLE 13
84 #define CLIENT_HELPADDBOOK 14
85 #define CLIENT_HELPTEMPDIR 15
86 #define CLIENT_HELPQUIT 16