X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5ffecfc985136771bb521074c0f46a07894e62e..ac6482e0eb085476bca3b81aaed8ed75ab896923:/demos/dbbrowse/dbbrowse.h diff --git a/demos/dbbrowse/dbbrowse.h b/demos/dbbrowse/dbbrowse.h index 1dd70460cc..12596fdf90 100644 --- a/demos/dbbrowse/dbbrowse.h +++ b/demos/dbbrowse/dbbrowse.h @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//---------------------------------------------------------------------------------------- // Name: dbbrowse.h // Purpose: Through ODBC - Databases Browsen // Author: Mark Johnson, mj10777@gmx.net @@ -6,49 +6,48 @@ // Created: 19991127 // Copyright: (c) Mark Johnson // Licence: wxWindows license -//--------------------------------------------------------------------------- -// Define a new application type -//------------------------------------------------------------------------------ -class MyApp: public wxApp -{ - public: - bool OnInit(void); - wxLocale m_locale; // locale we'll be using -}; -//------------------------------------------------------------------------------ +// RCS-ID: $Id$ +//---------------------------------------------------------------------------------------- // Define a new frame type -//------------------------------------------------------------------------------ +//---------------------------------------------------------------------------------------- class MainFrame: public wxFrame { public: - MainFrame(wxFrame *frame, char *title, int x, int y, int w, int h); + MainFrame(wxFrame *frame, char *title, const wxPoint& pos, const wxSize& size); ~MainFrame(void); public: // menu callbacks - void InitializeMenu(); - void OnQuit(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); void OnHelp(wxCommandEvent& event); - //-------------------------------------------------------- - wxHtmlHelpController help; - //-------------------------------------------------------- - int DiffW, DiffH; - mjDoc *pDoc; - DocSplitterWindow *p_Splitter; - //-------------------------------------------------------- + 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 application type +//---------------------------------------------------------------------------------------- +class MainApp: public wxApp +{ + 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 1 -#define ABOUT 2 -#define HELP 3 -#define SPLITTER_FRAME 100 -#define SPLITTER_WINDOW 101 +//---------------------------------------------------------------------------------------- +#define QUIT 777 +#define ABOUT 778 +#define HELP 779 #define TREE_CTRL_PGM 102 #define GRID_CTRL 103 #define TREE_CTRL_DB 104 #define GRID_CTRL_DB 105 -//------------------------------------------------------------------------------ +//----------------------------------------------------------------------------------------