]> git.saurik.com Git - wxWidgets.git/blame - utils/helpview/src/client.h
build fixes for wxUSE_VALIDATORS==0
[wxWidgets.git] / utils / helpview / src / client.h
CommitLineData
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
13class MyApp: public wxApp
14{
15public:
16 virtual bool OnInit();
17 virtual int OnExit();
4fe30bce 18
2b5f62a0 19#if defined(USE_REMOTE)
4fe30bce 20 wxRemoteHtmlHelpController *m_help;
2b5f62a0 21#else
4fe30bce 22 wxHtmlHelpController *m_help;
2b5f62a0
VZ
23#endif
24};
25
26DECLARE_APP(MyApp)
27
28// Define a new frame
29class MyFrame: public wxFrame
30{
31public:
32 MyFrame(wxFrame *frame, const wxString& title);
4fe30bce 33
2b5f62a0
VZ
34private:
35 void OnExit(wxCommandEvent& event);
4fe30bce
WS
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
2b5f62a0 49 wxPanel *m_panel;
4fe30bce
WS
50 wxButton *m_modalbutton;
51
2b5f62a0
VZ
52 DECLARE_EVENT_TABLE()
53};
54
55class MyModalDialog : public wxDialog
56{
57public:
58 MyModalDialog(wxWindow *parent);
4fe30bce 59
2b5f62a0
VZ
60private:
61 void OnButton(wxCommandEvent& event);
4fe30bce 62
2b5f62a0
VZ
63 wxButton *m_main;
64 wxButton *m_book1;
65 wxButton *m_book2;
4fe30bce 66
2b5f62a0
VZ
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