]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/dbbrowse/browsedb.h
Added a Motif-only extra call to UpdateInfoText() just after frame creation
[wxWidgets.git] / demos / dbbrowse / browsedb.h
index dd273a8d6b37cbe7740ca1f2f64d033585a344c6..90fcc2bccaa9892524a8999e156f67ec65d20d54 100644 (file)
@@ -1,25 +1,26 @@
-//---------------------------------------------------------------------------
+//----------------------------------------------------------------------------------------
 // Name:        browsedb.h
-// Purpose:     a wxDB ;
+// Purpose:     a wxDB class
 // Author:      Mark Johnson, mj10777@gmx.net
 // Modified by:
 // Created:     19991127.mj10777
 // Copyright:   (c) Mark Johnson
 // Licence:     wxWindows license
-//---------------------------------------------------------------------------
+// RCS-ID:      $Id$
+//----------------------------------------------------------------------------------------
 //-- Zu tun in browsedb.h
-//---------------------------------------------------------------------------
+//----------------------------------------------------------------------------------------
 //-- 1)
-//---------------------------------------------------------------------------
+//----------------------------------------------------------------------------------------
 // Global structure for holding ODBC connection information
-//---------------------------------------------------------------------------
-extern struct DbStuff DbConnectInf;
-class mjDoc;
-//---------------------------------------------------------------------------
+//----------------------------------------------------------------------------------------
+extern wxDbConnectInf DbConnectInf;
+class MainDoc;
+//----------------------------------------------------------------------------------------
 class BrowserDB
 {
  public:
- //---------------------------------------------------------------------------
+ //---------------------------------------------------------------------------------------
  // Pointer to the main database connection used in the program.  This
  // pointer would normally be used for doing things as database lookups
  // for user login names and passwords, getting workstation settings, etc.
@@ -39,13 +40,13 @@ class BrowserDB
  //  the entire program to use for READ-ONLY database accesses, but for each
  //  table object which will do a CommitTrans() or RollbackTrans() that a
  // new wxDB object be created and used for it.
- //---------------------------------------------------------------------------
+ //---------------------------------------------------------------------------------------
   wxDB*          db_BrowserDB;
   wxDbInf*       ct_BrowserDB;
   wxColInf*      cl_BrowserDB;
   wxString       ODBCSource, UserName, Password;
-  mjDoc *pDoc;
- //---------------------------------------------------------------------------
+  MainDoc *pDoc;
+ //---------------------------------------------------------------------------------------
   wxString       Temp0, Temp1, Temp2, Temp3, Temp4, Temp5;
   wxString       ODBCText;
   wxTextCtrl*    p_LogWindow;
@@ -56,12 +57,12 @@ class BrowserDB
   int            i_Which;
   int            i_Records;
   int            i_Cols;
- //---------------------------------------------------------------------------
+ //---------------------------------------------------------------------------------------
   BrowserDB();
   ~BrowserDB();
   void Zeiger_auf_NULL(int Art);
   bool Initialize(int Quite);
- //---------------------------------------------------------------------------
+ //---------------------------------------------------------------------------------------
   bool           OnStartDB(int Quite);
   bool           OnCloseDB(int Quite);
   bool           OnSelect(wxString tb_Name,int Quite);
@@ -71,6 +72,6 @@ class BrowserDB
   wxColInf*      OnGetColumns(char *tableName, int numCols,int Quite);
   void           OnFillSqlTyp();
   void           OnFilldbTyp();
- //---------------------------------------------------------------------------
+ //---------------------------------------------------------------------------------------
 };  // BrowserDB class definition
-//---------------------------------------------------------------------------
+//----------------------------------------------------------------------------------------