2000-02-12 09:11:17 -05:00
|
|
|
//----------------------------------------------------------------------------------------
|
2000-01-28 10:25:32 -05:00
|
|
|
// Name: dbbrowse.h
|
|
|
|
// Purpose: Through ODBC - Databases Browsen
|
|
|
|
// Author: Mark Johnson, mj10777@gmx.net
|
|
|
|
// 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
|
|
|
|
{
|
|
|
|
public:
|
2000-02-12 09:11:17 -05:00
|
|
|
MainFrame(wxFrame *frame, char *title, const wxPoint& pos, const wxSize& size);
|
2000-01-28 10:25:32 -05:00
|
|
|
~MainFrame(void);
|
|
|
|
|
|
|
|
public:
|
|
|
|
// menu callbacks
|
|
|
|
void OnAbout(wxCommandEvent& event);
|
|
|
|
void OnHelp(wxCommandEvent& event);
|
2000-02-22 08:00:06 -05:00
|
|
|
void OnQuit(wxCommandEvent& event);
|
2000-02-12 09:11:17 -05:00
|
|
|
//--------------------------------------------------------------------------------------
|
2000-02-22 08:00:06 -05:00
|
|
|
int DiffW, DiffH; // Needed the saving of Frame size
|
2000-02-12 09:11:17 -05:00
|
|
|
//--------------------------------------------------------------------------------------
|
2000-02-22 08:00:06 -05:00
|
|
|
DocSplitterWindow *p_Splitter; // for Document Views
|
|
|
|
MainDoc *pDoc; // Self made Document
|
|
|
|
wxHtmlHelpController *p_Help; // Help System
|
2000-02-12 09:11:17 -05:00
|
|
|
//--------------------------------------------------------------------------------------
|
2000-01-28 10:25:32 -05:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
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
|
|
|
|
{
|
|
|
|
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-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
|
|
|
//----------------------------------------------------------------------------------------
|