]>
Commit | Line | Data |
---|---|---|
c92b0f9a | 1 | //---------------------------------------------------------------------------------------- |
b5ffecfc GT |
2 | // Name: dbbrowse.h |
3 | // Purpose: Through ODBC - Databases Browsen | |
829c421b | 4 | // Author: Mark Johnson |
b5ffecfc GT |
5 | // Modified by: |
6 | // Created: 19991127 | |
7 | // Copyright: (c) Mark Johnson | |
8 | // Licence: wxWindows license | |
c09d434d | 9 | // RCS-ID: $Id$ |
c92b0f9a | 10 | //---------------------------------------------------------------------------------------- |
b5ffecfc | 11 | // Define a new frame type |
c92b0f9a | 12 | //---------------------------------------------------------------------------------------- |
b5ffecfc GT |
13 | class MainFrame: public wxFrame |
14 | { | |
645889ad | 15 | public: |
daf06bb8 | 16 | MainFrame(wxFrame *frame, wxChar *title, const wxPoint& pos, const wxSize& size); |
645889ad GT |
17 | ~MainFrame(void); |
18 | ||
19 | public: | |
20 | // menu callbacks | |
21 | void OnAbout(wxCommandEvent& event); | |
22 | void OnHelp(wxCommandEvent& event); | |
23 | void OnQuit(wxCommandEvent& event); | |
24 | //-------------------------------------------------------------------------------------- | |
25 | int DiffW, DiffH; // Needed the saving of Frame size | |
26 | //-------------------------------------------------------------------------------------- | |
27 | DocSplitterWindow *p_Splitter; // for Document Views | |
28 | MainDoc *pDoc; // Self made Document | |
29 | wxHtmlHelpController *p_Help; // Help System | |
b5ffecfc | 30 | |
645889ad GT |
31 | //-------------------------------------------------------------------------------------- |
32 | DECLARE_EVENT_TABLE() | |
b5ffecfc | 33 | }; |
645889ad | 34 | |
c92b0f9a | 35 | //---------------------------------------------------------------------------------------- |
260460ae MJ |
36 | // Define a new application type |
37 | //---------------------------------------------------------------------------------------- | |
38 | class MainApp: public wxApp | |
39 | { | |
645889ad GT |
40 | public: |
41 | MainFrame *frame; // The one and only MainFrame | |
42 | bool OnInit(void); // Programmstart | |
43 | wxLocale m_locale; // locale we'll be using and language support - MUST be here ! | |
260460ae | 44 | }; |
645889ad | 45 | |
260460ae | 46 | //---------------------------------------------------------------------------------------- |
b5ffecfc | 47 | // ID for the menu quit command |
c92b0f9a MJ |
48 | //---------------------------------------------------------------------------------------- |
49 | #define QUIT 777 | |
50 | #define ABOUT 778 | |
51 | #define HELP 779 | |
b5ffecfc GT |
52 | #define TREE_CTRL_PGM 102 |
53 | #define GRID_CTRL 103 | |
54 | #define TREE_CTRL_DB 104 | |
55 | #define GRID_CTRL_DB 105 | |
c92b0f9a | 56 | //---------------------------------------------------------------------------------------- |