browsedb.cpp browsedb.h dbbrowse.cpp dbbrowse.h dbbrowse.rc

dbgrid.cpp dbgrid.h dbtree.cpp dbtree.h dlguser.cpp dlguser.h
 	doc.cpp doc.h pgmctrl.cpp pgmctrl.h


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mark Johnson
2000-02-12 14:11:17 +00:00
parent ef366f3523
commit c92b0f9abd
15 changed files with 1533 additions and 1666 deletions

View File

@@ -1,15 +1,15 @@
//---------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
// Name: Doc.h
// Purpose: First attempt to make a MDIProgram with a Tree and ListView
// Purpose: a non-MFC Document (a do-it-yourself document)
// Author: Mark Johnson, mj10777@gmx.net
// Modified by: 19990808.mj10777
// Created: 19990808
// Copyright: (c) Mark Johnson
// Licence: wxWindows license
// RCS-ID: $Id$
//------------------------------------------------------------------------------
//-- Some Global Vars ------------------------------------------------------
//------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
//-- Some Global Vars --------------------------------------------------------------------
//----------------------------------------------------------------------------------------
class DSN
{
public:
@@ -18,52 +18,56 @@ class DSN
wxString Pas;
wxString Usr;
};
//----------------------------------------------------------------------------------------
// Global structure for holding ODBC connection information
extern struct DbStuff DbConnectInf;
//------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
extern wxConfigBase *p_ProgramCfg; // All Config and Path information
extern wxLogTextCtrl *p_LogBook; // All Log messages
extern wxString LogBuf; // String for all Logs
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
class PgmCtrl; // Declared in PgmCtrl.h file
class DocSplitterWindow; // Declared at the end of the file
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
class mjDoc
{
public:
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
mjDoc();
virtual ~mjDoc();
int Sash;
//---------------------------------------------------------------------------
//-- declare document Vars here ---------------------------------------------
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
//-- declare document Vars here ---------------------------------------------------------
//---------------------------------------------------------------------------------------
wxString Temp0, Temp1, Temp2, Temp3, Temp4, Temp5;
BrowserDB *db_Br; // Pointer to wxDB
DSN *p_DSN;
int i_DSN; // Counter
//---------------------------------------------------------------------------
DocSplitterWindow *p_Splitter;
wxFrame *p_MainFrame; // SDI Version
PgmCtrl *p_PgmCtrl;
DBTree *p_DBTree;
DBGrid *p_DBGrid;
wxTextCtrl *p_LogWin;
wxTabbedWindow *p_TabArea;
wxPaggedWindow *p_PageArea;
int i_TabNr; // Amount of active Views in Tab
int i_PageNr; // Amount of active Views in Page
//---------------------------------------------------------------------------
//-- declare document Functions here ----------------------------------------
//---------------------------------------------------------------------------
wxString s_BColour;
wxFont *ft_Doc;
//---------------------------------------------------------------------------------------
DocSplitterWindow *p_Splitter;
wxHtmlHelpController *p_Help;
wxFrame *p_MainFrame; // SDI Version
PgmCtrl *p_PgmCtrl;
DBTree *p_DBTree;
DBGrid *p_DBGrid;
wxTextCtrl *p_LogWin;
wxTabbedWindow *p_TabArea;
wxPaggedWindow *p_PageArea;
int i_TabNr; // Amount of active Views in Tab
int i_PageNr; // Amount of active Views in Page
//---------------------------------------------------------------------------------------
//-- declare document Functions here ----------------------------------------------------
//---------------------------------------------------------------------------------------
bool OnNewDocument();
bool OnInitView();
bool OnInitODBC();
bool OnChosenDSN(int Which);
bool OnChosenTbl(int Tab,wxString Table);
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
void OnLeer(wxString Aufrufer); // Dummy Funktion
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
};
class DocSplitterWindow: public wxSplitterWindow
{
@@ -79,4 +83,4 @@ class DocSplitterWindow: public wxSplitterWindow
}
DECLARE_EVENT_TABLE()
};
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------