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