]>
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
10 //------------------------------------------------------------------------------
11 //-- Some Global Vars ------------------------------------------------------
12 //------------------------------------------------------------------------------
21 // Global structure for holding ODBC connection information
22 extern struct DbStuff DbConnectInf
;
23 //------------------------------------------------------------------------------
24 extern wxConfigBase
*p_ProgramCfg
; // All Config and Path information
25 extern wxLogTextCtrl
*p_LogBook
; // All Log messages
26 extern wxString LogBuf
; // String for all Logs
27 //---------------------------------------------------------------------------
28 class PgmCtrl
; // Declared in PgmCtrl.h file
29 class DocSplitterWindow
; // Declared at the end of the file
30 //---------------------------------------------------------------------------
34 //---------------------------------------------------------------------------
38 //---------------------------------------------------------------------------
39 //-- declare document Vars here ---------------------------------------------
40 //---------------------------------------------------------------------------
41 wxString Temp0
, Temp1
, Temp2
, Temp3
, Temp4
, Temp5
;
42 BrowserDB
*db_Br
; // Pointer to wxDB
45 //---------------------------------------------------------------------------
46 DocSplitterWindow
*p_Splitter
;
47 wxFrame
*p_MainFrame
; // SDI Version
52 wxTabbedWindow
*p_TabArea
;
53 wxPaggedWindow
*p_PageArea
;
54 int i_TabNr
; // Amount of active Views in Tab
55 int i_PageNr
; // Amount of active Views in Page
56 //---------------------------------------------------------------------------
57 //-- declare document Functions here ----------------------------------------
58 //---------------------------------------------------------------------------
62 bool OnChosenDSN(int Which
);
63 bool OnChosenTbl(int Tab
,wxString Table
);
64 //---------------------------------------------------------------------------
65 void OnLeer(wxString Aufrufer
); // Dummy Funktion
66 //---------------------------------------------------------------------------
68 class DocSplitterWindow
: public wxSplitterWindow
72 DocSplitterWindow(wxWindow
*parent
, wxWindowID id
);
73 virtual bool OnSashPositionChange(int newSashPosition
)
75 if ( !wxSplitterWindow::OnSashPositionChange(newSashPosition
) )
77 pDoc
->Sash
= newSashPosition
;
82 //---------------------------------------------------------------------------