2000-02-12 09:11:17 -05:00
|
|
|
//----------------------------------------------------------------------------------------
|
2000-01-28 10:25:32 -05:00
|
|
|
// Name: dbbrowse.h
|
|
|
|
// Purpose: Through ODBC - Databases Browsen
|
2001-02-12 14:23:44 -05:00
|
|
|
// Author: Mark Johnson
|
2000-01-28 10:25:32 -05:00
|
|
|
// Modified by:
|
|
|
|
// Created: 19991127
|
|
|
|
// Copyright: (c) Mark Johnson
|
|
|
|
// Licence: wxWindows license
|
2000-01-31 08:20:36 -05:00
|
|
|
// RCS-ID: $Id$
|
2000-02-12 09:11:17 -05:00
|
|
|
//----------------------------------------------------------------------------------------
|
2000-01-28 10:25:32 -05:00
|
|
|
// Define a new frame type
|
2000-02-12 09:11:17 -05:00
|
|
|
//----------------------------------------------------------------------------------------
|
2000-01-28 10:25:32 -05:00
|
|
|
class MainFrame: public wxFrame
|
|
|
|
{
|
2001-02-01 15:24:44 -05:00
|
|
|
public:
|
2004-01-11 17:08:25 -05:00
|
|
|
MainFrame(wxFrame *frame, wxChar *title, const wxPoint& pos, const wxSize& size);
|
2001-02-01 15:24:44 -05:00
|
|
|
~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
|
2000-01-28 10:25:32 -05:00
|
|
|
|
2001-02-01 15:24:44 -05:00
|
|
|
//--------------------------------------------------------------------------------------
|
|
|
|
DECLARE_EVENT_TABLE()
|
2000-01-28 10:25:32 -05:00
|
|
|
};
|
2001-02-01 15:24:44 -05:00
|
|
|
|
2000-02-12 09:11:17 -05:00
|
|
|
//----------------------------------------------------------------------------------------
|
2000-03-06 04:08:03 -05:00
|
|
|
// Define a new application type
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
class MainApp: public wxApp
|
|
|
|
{
|
2001-02-01 15:24:44 -05:00
|
|
|
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 !
|
2000-03-06 04:08:03 -05:00
|
|
|
};
|
2001-02-01 15:24:44 -05:00
|
|
|
|
2000-03-06 04:08:03 -05:00
|
|
|
//----------------------------------------------------------------------------------------
|
2000-01-28 10:25:32 -05:00
|
|
|
// ID for the menu quit command
|
2000-02-12 09:11:17 -05:00
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
#define QUIT 777
|
|
|
|
#define ABOUT 778
|
|
|
|
#define HELP 779
|
2000-01-28 10:25:32 -05:00
|
|
|
#define TREE_CTRL_PGM 102
|
|
|
|
#define GRID_CTRL 103
|
|
|
|
#define TREE_CTRL_DB 104
|
|
|
|
#define GRID_CTRL_DB 105
|
2000-02-12 09:11:17 -05:00
|
|
|
//----------------------------------------------------------------------------------------
|