]>
git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/doc.h
1 //--------------------------------------------------------------------------------------------------
3 // Purpose: a non-MFC Document (a do-it-yourself document)
4 // Author: Mark Johnson, mj10777@gmx.net
5 // Modified by: 19990808.mj10777
7 // Copyright: (c) Mark Johnson
8 // Licence: wxWindows license
10 //----------------------------------------------------------------------------------------
11 //-- Some Global Vars --------------------------------------------------------------------
12 //----------------------------------------------------------------------------------------
21 //----------------------------------------------------------------------------------------
22 // Global structure for holding ODBC connection information
23 extern struct DbStuff DbConnectInf
;
24 //----------------------------------------------------------------------------------------
25 extern wxConfigBase
*p_ProgramCfg
; // All Config and Path information
26 extern wxLogTextCtrl
*p_LogBook
; // All Log messages
27 extern wxString LogBuf
; // String for all Logs
28 //----------------------------------------------------------------------------------------
29 class PgmCtrl
; // Declared in PgmCtrl.h file
30 class DocSplitterWindow
; // Declared at the end of the file
31 //----------------------------------------------------------------------------------------
35 //---------------------------------------------------------------------------------------
39 //---------------------------------------------------------------------------------------
40 //-- declare document Vars here ---------------------------------------------------------
41 //---------------------------------------------------------------------------------------
42 wxString Temp0
, Temp1
, Temp2
, Temp3
, Temp4
, Temp5
;
43 BrowserDB
*db_Br
; // Pointer to wxDB
48 //---------------------------------------------------------------------------------------
49 DocSplitterWindow
*p_Splitter
;
50 wxHtmlHelpController
*p_Help
;
51 wxFrame
*p_MainFrame
; // SDI Version
56 wxTabbedWindow
*p_TabArea
;
57 wxPaggedWindow
*p_PageArea
;
58 int i_TabNr
; // Amount of active Views in Tab
59 int i_PageNr
; // Amount of active Views in Page
60 //---------------------------------------------------------------------------------------
61 //-- declare document Functions here ----------------------------------------------------
62 //---------------------------------------------------------------------------------------
66 bool OnChosenDSN(int Which
);
67 bool OnChosenTbl(int Tab
,wxString Table
);
68 //---------------------------------------------------------------------------------------
69 void OnLeer(wxString Aufrufer
); // Dummy Funktion
70 //---------------------------------------------------------------------------------------
72 class DocSplitterWindow
: public wxSplitterWindow
76 DocSplitterWindow(wxWindow
*parent
, wxWindowID id
);
77 virtual bool OnSashPositionChange(int newSashPosition
)
79 if ( !wxSplitterWindow::OnSashPositionChange(newSashPosition
) )
81 pDoc
->Sash
= newSashPosition
;
86 //----------------------------------------------------------------------------------------