X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fa0976a57287847af094e4b4f1f6f6a1dc7893e..a57d600f1aa4bae88f4c9b8d89a35332c412939e:/demos/dbbrowse/dbbrowse.h?ds=inline diff --git a/demos/dbbrowse/dbbrowse.h b/demos/dbbrowse/dbbrowse.h index 9c64ce51e9..0bf41ebd3a 100644 --- a/demos/dbbrowse/dbbrowse.h +++ b/demos/dbbrowse/dbbrowse.h @@ -1,50 +1,51 @@ //---------------------------------------------------------------------------------------- // Name: dbbrowse.h // Purpose: Through ODBC - Databases Browsen -// Author: Mark Johnson, mj10777@gmx.net +// Author: Mark Johnson // Modified by: // Created: 19991127 // Copyright: (c) Mark Johnson // Licence: wxWindows license // RCS-ID: $Id$ //---------------------------------------------------------------------------------------- -// Define a new application type +// Define a new frame type //---------------------------------------------------------------------------------------- -class MainApp: public wxApp +class MainFrame: public wxFrame { - public: - bool OnInit(void); // Programmstart - wxLocale m_locale; // locale we'll be using and language support +public: + MainFrame(wxFrame *frame, wxChar *title, const wxPoint& pos, const wxSize& size); + ~MainFrame(void); + +public: + // menu callbacks + void OnAbout(wxCommandEvent& event); + void OnHelp(wxCommandEvent& event); + void OnQuit(wxCommandEvent& event); + //-------------------------------------------------------------------------------------- + int DiffW, DiffH; // Needed the saving of Frame size + //-------------------------------------------------------------------------------------- + DocSplitterWindow *p_Splitter; // for Document Views + MainDoc *pDoc; // Self made Document + wxHtmlHelpController *p_Help; // Help System + + //-------------------------------------------------------------------------------------- + DECLARE_EVENT_TABLE() }; + //---------------------------------------------------------------------------------------- -// Define a new frame type +// Define a new application type //---------------------------------------------------------------------------------------- -class MainFrame: public wxFrame +class MainApp: public wxApp { - public: - MainFrame(wxFrame *frame, char *title, const wxPoint& pos, const wxSize& size); - ~MainFrame(void); - - public: - // menu callbacks - void OnQuit(wxCommandEvent& event); - void OnAbout(wxCommandEvent& event); - void OnHelp(wxCommandEvent& event); - //-------------------------------------------------------------------------------------- - wxHtmlHelpController *p_Help; - //-------------------------------------------------------------------------------------- - int DiffW, DiffH; - MainDoc *pDoc; - DocSplitterWindow *p_Splitter; - //-------------------------------------------------------------------------------------- - DECLARE_EVENT_TABLE() +public: + MainFrame *frame; // The one and only MainFrame + bool OnInit(void); // Programmstart + wxLocale m_locale; // locale we'll be using and language support - MUST be here ! }; + //---------------------------------------------------------------------------------------- // ID for the menu quit command //---------------------------------------------------------------------------------------- -#define QUIT 777 -#define ABOUT 778 -#define HELP 779 #define TREE_CTRL_PGM 102 #define GRID_CTRL 103 #define TREE_CTRL_DB 104