]>
git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/doc.h
1 //---------------------------------------------------------------------------
3 // Purpose: First attempt to make a MDIProgram with a Tree and ListView
4 // Author: Mark Johnson, mj10777@gmx.net
5 // Modified by: 19990808.mj10777
7 // Copyright: (c) Mark Johnson
8 // Licence: wxWindows license
9 //------------------------------------------------------------------------------
10 //-- Some Global Vars ------------------------------------------------------
11 //------------------------------------------------------------------------------
20 // Global structure for holding ODBC connection information
21 extern struct DbStuff DbConnectInf
;
22 //------------------------------------------------------------------------------
23 extern wxConfigBase
*p_ProgramCfg
; // All Config and Path information
24 extern wxLogTextCtrl
*p_LogBook
; // All Log messages
25 extern wxString LogBuf
; // String for all Logs
26 //---------------------------------------------------------------------------
27 class PgmCtrl
; // Declared in PgmCtrl.h file
28 class DocSplitterWindow
; // Declared at the end of the file
29 //---------------------------------------------------------------------------
33 //---------------------------------------------------------------------------
37 //---------------------------------------------------------------------------
38 //-- declare document Vars here ---------------------------------------------
39 //---------------------------------------------------------------------------
40 wxString Temp0
, Temp1
, Temp2
, Temp3
, Temp4
, Temp5
;
41 BrowserDB
*db_Br
; // Pointer to wxDB
44 //---------------------------------------------------------------------------
45 DocSplitterWindow
*p_Splitter
;
46 wxFrame
*p_MainFrame
; // SDI Version
51 wxTabbedWindow
*p_TabArea
;
52 wxPaggedWindow
*p_PageArea
;
53 int i_TabNr
; // Amount of active Views in Tab
54 int i_PageNr
; // Amount of active Views in Page
55 //---------------------------------------------------------------------------
56 //-- declare document Functions here ----------------------------------------
57 //---------------------------------------------------------------------------
61 bool OnChosenDSN(int Which
);
62 bool OnChosenTbl(int Tab
,wxString Table
);
63 //---------------------------------------------------------------------------
64 void OnLeer(wxString Aufrufer
); // Dummy Funktion
65 //---------------------------------------------------------------------------
67 class DocSplitterWindow
: public wxSplitterWindow
71 DocSplitterWindow(wxWindow
*parent
, wxWindowID id
);
72 virtual bool OnSashPositionChange(int newSashPosition
)
74 if ( !wxSplitterWindow::OnSashPositionChange(newSashPosition
) )
76 pDoc
->Sash
= newSashPosition
;
81 //---------------------------------------------------------------------------