]>
git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/dbbrowse.h
34a6f6035c59214d39656cb61a3f502c31fa0e42
1 //----------------------------------------------------------------------------------------
3 // Purpose: Through ODBC - Databases Browsen
4 // Author: Mark Johnson
7 // Copyright: (c) Mark Johnson
8 // Licence: wxWindows license
10 //----------------------------------------------------------------------------------------
11 // Define a new frame type
12 //----------------------------------------------------------------------------------------
13 class MainFrame
: public wxFrame
16 MainFrame(wxFrame
*frame
, wxChar
*title
, const wxPoint
& pos
, const wxSize
& size
);
17 virtual ~MainFrame(void);
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
31 //--------------------------------------------------------------------------------------
35 //----------------------------------------------------------------------------------------
36 // Define a new application type
37 //----------------------------------------------------------------------------------------
38 class MainApp
: public wxApp
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 !
46 //----------------------------------------------------------------------------------------
47 // ID for the menu quit command
48 //----------------------------------------------------------------------------------------
49 #define TREE_CTRL_PGM 102
51 #define TREE_CTRL_DB 104
52 #define GRID_CTRL_DB 105
53 //----------------------------------------------------------------------------------------