]>
Commit | Line | Data |
---|---|---|
c92b0f9a | 1 | //---------------------------------------------------------------------------------------- |
b5ffecfc GT |
2 | // Name: dbbrowse.h |
3 | // Purpose: Through ODBC - Databases Browsen | |
4 | // Author: Mark Johnson, mj10777@gmx.net | |
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 application type |
c92b0f9a MJ |
12 | //---------------------------------------------------------------------------------------- |
13 | class MainApp: public wxApp | |
b5ffecfc GT |
14 | { |
15 | public: | |
c92b0f9a | 16 | bool OnInit(void); // Programmstart |
89fcf04c | 17 | wxLocale m_locale; // locale we'll be using and language support - MUST be here ! |
b5ffecfc | 18 | }; |
c92b0f9a | 19 | //---------------------------------------------------------------------------------------- |
b5ffecfc | 20 | // Define a new frame type |
c92b0f9a | 21 | //---------------------------------------------------------------------------------------- |
b5ffecfc GT |
22 | class MainFrame: public wxFrame |
23 | { | |
24 | public: | |
c92b0f9a | 25 | MainFrame(wxFrame *frame, char *title, const wxPoint& pos, const wxSize& size); |
b5ffecfc GT |
26 | ~MainFrame(void); |
27 | ||
28 | public: | |
29 | // menu callbacks | |
b5ffecfc GT |
30 | void OnAbout(wxCommandEvent& event); |
31 | void OnHelp(wxCommandEvent& event); | |
66d6c315 | 32 | void OnQuit(wxCommandEvent& event); |
c92b0f9a | 33 | //-------------------------------------------------------------------------------------- |
66d6c315 | 34 | int DiffW, DiffH; // Needed the saving of Frame size |
c92b0f9a | 35 | //-------------------------------------------------------------------------------------- |
66d6c315 MJ |
36 | DocSplitterWindow *p_Splitter; // for Document Views |
37 | MainDoc *pDoc; // Self made Document | |
38 | wxHtmlHelpController *p_Help; // Help System | |
c92b0f9a | 39 | //-------------------------------------------------------------------------------------- |
b5ffecfc GT |
40 | DECLARE_EVENT_TABLE() |
41 | }; | |
c92b0f9a | 42 | //---------------------------------------------------------------------------------------- |
b5ffecfc | 43 | // ID for the menu quit command |
c92b0f9a MJ |
44 | //---------------------------------------------------------------------------------------- |
45 | #define QUIT 777 | |
46 | #define ABOUT 778 | |
47 | #define HELP 779 | |
b5ffecfc GT |
48 | #define TREE_CTRL_PGM 102 |
49 | #define GRID_CTRL 103 | |
50 | #define TREE_CTRL_DB 104 | |
51 | #define GRID_CTRL_DB 105 | |
c92b0f9a | 52 | //---------------------------------------------------------------------------------------- |