]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/dbbrowse.h
wxEVT_USER_FIRST put back
[wxWidgets.git] / demos / dbbrowse / dbbrowse.h
CommitLineData
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 frame type
c92b0f9a 12//----------------------------------------------------------------------------------------
b5ffecfc
GT
13class MainFrame: public wxFrame
14{
15 public:
c92b0f9a 16 MainFrame(wxFrame *frame, char *title, const wxPoint& pos, const wxSize& size);
b5ffecfc
GT
17 ~MainFrame(void);
18
19 public:
20 // menu callbacks
b5ffecfc
GT
21 void OnAbout(wxCommandEvent& event);
22 void OnHelp(wxCommandEvent& event);
66d6c315 23 void OnQuit(wxCommandEvent& event);
c92b0f9a 24 //--------------------------------------------------------------------------------------
66d6c315 25 int DiffW, DiffH; // Needed the saving of Frame size
c92b0f9a 26 //--------------------------------------------------------------------------------------
66d6c315
MJ
27 DocSplitterWindow *p_Splitter; // for Document Views
28 MainDoc *pDoc; // Self made Document
29 wxHtmlHelpController *p_Help; // Help System
c92b0f9a 30 //--------------------------------------------------------------------------------------
b5ffecfc
GT
31 DECLARE_EVENT_TABLE()
32};
c92b0f9a 33//----------------------------------------------------------------------------------------
260460ae
MJ
34// Define a new application type
35//----------------------------------------------------------------------------------------
36class MainApp: public wxApp
37{
38 public:
39 MainFrame *frame; // The one and only MainFrame
40 bool OnInit(void); // Programmstart
41 wxLocale m_locale; // locale we'll be using and language support - MUST be here !
42};
43//----------------------------------------------------------------------------------------
b5ffecfc 44// ID for the menu quit command
c92b0f9a
MJ
45//----------------------------------------------------------------------------------------
46#define QUIT 777
47#define ABOUT 778
48#define HELP 779
b5ffecfc
GT
49#define TREE_CTRL_PGM 102
50#define GRID_CTRL 103
51#define TREE_CTRL_DB 104
52#define GRID_CTRL_DB 105
c92b0f9a 53//----------------------------------------------------------------------------------------