]>
git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/doc.h
c3dd92d1d26990184304271aa4f5db4497cc064a
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
11 //----------------------------------------------------------------------------------------
12 //-- Some Global Vars --------------------------------------------------------------------
13 //----------------------------------------------------------------------------------------
23 //----------------------------------------------------------------------------------------
24 // Global structure for holding ODBC connection information
25 //extern wxDbConnectInf DbConnectInf;
27 //----------------------------------------------------------------------------------------
28 extern wxConfigBase
*p_ProgramCfg
; // All Config and Path information
29 extern wxLogTextCtrl
*p_LogBook
; // All Log messages
30 extern wxString LogBuf
; // String for all Logs
32 //----------------------------------------------------------------------------------------
33 class PgmCtrl
; // Declared in PgmCtrl.h file
34 class DocSplitterWindow
; // Declared at the end of the file
36 //----------------------------------------------------------------------------------------
40 //---------------------------------------------------------------------------------------
44 //---------------------------------------------------------------------------------------
45 //-- declare document Vars here ---------------------------------------------------------
46 //---------------------------------------------------------------------------------------
47 wxString Temp0
, Temp1
, Temp2
, Temp3
, Temp4
, Temp5
;
48 BrowserDB
*db_Br
; // Pointer to wxDB
53 //---------------------------------------------------------------------------------------
54 DocSplitterWindow
*p_Splitter
;
55 wxHtmlHelpController
*p_Help
;
56 wxFrame
*p_MainFrame
; // SDI Version
61 wxTabbedWindow
*p_TabArea
;
62 wxPagedWindow
*p_PageArea
;
63 int i_TabNr
; // Amount of active Views in Tab
64 int i_PageNr
; // Amount of active Views in Page
65 //---------------------------------------------------------------------------------------
66 //-- declare document Functions here ----------------------------------------------------
67 //---------------------------------------------------------------------------------------
71 bool OnChosenDSN(int Which
);
72 bool OnChosenTbl(int Tab
,wxString Table
);
73 //---------------------------------------------------------------------------------------
74 void OnLeer(wxString Aufrufer
); // Dummy Funktion
75 //---------------------------------------------------------------------------------------
78 //----------------------------------------------------------------------------------------
79 class DocSplitterWindow
: public wxSplitterWindow
83 DocSplitterWindow(wxWindow
*parent
, wxWindowID id
);
84 virtual bool OnSashPositionChange(int newSashPosition
)
86 if ( !wxSplitterWindow::OnSashPositionChange(newSashPosition
) )
88 pDoc
->Sash
= newSashPosition
;
93 //----------------------------------------------------------------------------------------