]> git.saurik.com Git - wxWidgets.git/commitdiff
browsedb.h dbbrowse.cpp dbbrowse.h dbgrid.h dbtree.h
authorMark Johnson <mj10777@web.de>
Mon, 21 Feb 2000 08:05:13 +0000 (08:05 +0000)
committerMark Johnson <mj10777@web.de>
Mon, 21 Feb 2000 08:05:13 +0000 (08:05 +0000)
  dlguser.cpp dlguser.h doc.cpp doc.h pgmctrl.h de/dbbrowse.mo
  de/dbbrowse.po

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 files changed:
demos/dbbrowse/browsedb.h
demos/dbbrowse/dbbrowse.cpp
demos/dbbrowse/dbbrowse.h
demos/dbbrowse/dbgrid.h
demos/dbbrowse/dbtree.h
demos/dbbrowse/de/dbbrowse.mo
demos/dbbrowse/de/dbbrowse.po
demos/dbbrowse/dlguser.cpp
demos/dbbrowse/dlguser.h
demos/dbbrowse/doc.cpp
demos/dbbrowse/doc.h
demos/dbbrowse/pgmctrl.h

index 2fde1fbb786e03d315c529f81c541ae13cbc586f..cd695c9e2a2d1ff925da34f96857c4d831b71eda 100644 (file)
@@ -15,7 +15,7 @@
 // Global structure for holding ODBC connection information
 //----------------------------------------------------------------------------------------
 extern struct DbStuff DbConnectInf;
-class mjDoc;
+class MainDoc;
 //----------------------------------------------------------------------------------------
 class BrowserDB
 {
@@ -45,7 +45,7 @@ class BrowserDB
   wxDbInf*       ct_BrowserDB;
   wxColInf*      cl_BrowserDB;
   wxString       ODBCSource, UserName, Password;
-  mjDoc *pDoc;
+  MainDoc *pDoc;
  //---------------------------------------------------------------------------------------
   wxString       Temp0, Temp1, Temp2, Temp3, Temp4, Temp5;
   wxString       ODBCText;
index 89b4c659a4041efbf9b0a069063ac8ede67d9cc0..a1ac115f0d303fbc998621b8c5a017104136fb85 100644 (file)
@@ -222,7 +222,7 @@ bool MainApp::OnInit(void)  // Does everything needed for a program start
  //---------------------------------------------------------------------------------------
  frame->p_Splitter = new DocSplitterWindow(frame,-1);
  // p_Splitter->SetCursor(wxCursor(wxCURSOR_PENCIL));
- frame->pDoc                       = new mjDoc();
+ frame->pDoc                       = new MainDoc();
  frame->pDoc->p_MainFrame          = frame;
  frame->pDoc->p_Splitter           = frame->p_Splitter;
  frame->pDoc->p_Splitter->pDoc     = frame->pDoc;       // ControlBase: saving the Sash
@@ -285,7 +285,7 @@ MainFrame::~MainFrame(void)
  // delete wxConfigBase::Set((wxConfigBase *) NULL);
  p_ProgramCfg->Flush(TRUE);        // saves   Objekt
  if (!frame->pDoc)                 // If we have a Valid Document
-  delete frame->pDoc;              // Cleanup (mjDoc::~mjDoc)
+  delete frame->pDoc;              // Cleanup (MainDoc::~MainDoc)
 } // MainFrame::~MainFrame(void)
 //----------------------------------------------------------------------------------------
 void MainFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
index 13f8571891966479a259f4bee18fa0b1dcd1213e..9c64ce51e9715dcb6909b223e83ca029472c0d05 100644 (file)
@@ -34,7 +34,7 @@ class MainFrame: public wxFrame
   wxHtmlHelpController *p_Help;
   //--------------------------------------------------------------------------------------
   int DiffW, DiffH;
-  mjDoc *pDoc;
+  MainDoc *pDoc;
   DocSplitterWindow *p_Splitter;
   //--------------------------------------------------------------------------------------
  DECLARE_EVENT_TABLE()
index 39e7cc48c02c16e637782cbb1f45aed3ad4c4009..81b73d2e9c2642ec3890419bbe0830ffd55f3f70 100644 (file)
@@ -12,7 +12,7 @@
  #error "DBGrid requires the new wxGrid class"
 #endif
 //----------------------------------------------------------------------------------------
-class mjDoc;
+class MainDoc;
 //----------------------------------------------------------------------------------------
 class DBGrid: public wxGrid
 {
@@ -24,7 +24,7 @@ class DBGrid: public wxGrid
   int        i_ViewNr;   // View Nummer in Tab / Page
   int        i_Which;    // Which View, Database is this/using
  //---------------------------------------------------------------------------------------
-  mjDoc*     pDoc;
+  MainDoc*   pDoc;
   wxDbInf*   ct_BrowserDB;
   BrowserDB* db_Br;
   wxMenu   *popupMenu1; // OnDBClass
index b7631fde6619fb0d3ee2fc01d846f8d69bdc4050..b516dd67261cdb70cc1c26088f570ce9027acd80 100644 (file)
@@ -8,7 +8,7 @@
 // Licence:     wxWindows license
 // RCS-ID:      $Id$
 //----------------------------------------------------------------------------------------
-class mjDoc;               // Declared in Doc.h file
+class MainDoc;             // Declared in Doc.h file
 //----------------------------------------------------------------------------------------
 class DBTreeData : public wxTreeItemData
 {
@@ -42,7 +42,7 @@ class DBTree : public wxTreeCtrl
   DBTree(wxWindow *parent);
   DBTree(wxWindow *parent, const wxWindowID id,const wxPoint& pos, const wxSize& size,long style);
   virtual ~DBTree();
-  mjDoc *pDoc;
+  MainDoc *pDoc;
   wxDbInf *ct_BrowserDB;
 //----------------------------------------------------------------------------------------
   int       i_TabArt;   // Tab = 0 ; Page = 1;
index 58445f52450f3e1bef6a313e6a37e292e885c703..16aebd129fe6d97920ec21af35c8be542522b508 100644 (file)
Binary files a/demos/dbbrowse/de/dbbrowse.mo and b/demos/dbbrowse/de/dbbrowse.mo differ
index ecb970e716150c0fda0aacc9451e93bc21d4e226..143505faac58a6fe92ed16f7687b8b9a76b7dfda 100644 (file)
@@ -130,10 +130,11 @@ msgid   "\n"
         "-I-> BrowserDB::OnCloseDB() : Begin "
 msgstr  ""
 
-#: ../BrowserDB.cpp:161
+#: ../BrowserDB.cpp:148
 msgid   "\n"
-        "-I-> BrowserDB::OnCloseDB() : Ende "
-msgstr  ""
+        "-I-> BrowserDB::OnCloseDB() : End"
+msgstr  "\n"
+        "-I-> BrowserDB::OnCloseDB() : Ende"
 
 #: ../BrowserDB.cpp:139
 #, c-format
@@ -178,9 +179,9 @@ msgstr  "\n"
 #: ../Doc.cpp:268 ../Doc.cpp:281
 #, c-format
 msgid   "\n"
-        "mjDoc::OnLeer(%s) : even this function will one day be available !"
+        "MainDoc::OnLeer(%s) : even this function will one day be available !"
 msgstr  "\n"
-        "mjDoc::OnLeer(%s) : eines Tages steht auch diese Funktion zur Verfügung !"
+        "MainDoc::OnLeer(%s) : eines Tages steht auch diese Funktion zur Verfügung !"
 
 #: ../BrowserDB.cpp:47
 msgid   "   Line: "
@@ -191,8 +192,8 @@ msgid   "Time"
 msgstr  "Zeit"
 
 #: ../BrowserDB.cpp:47
-msgid   "-I-> mjDoc::OnNewDocument() - End - Time needed : %ld ms"
-msgstr  "-I-> mjDoc::OnNewDocument() - Ende - Dauer : %ld ms"
+msgid   "-I-> MainDoc::OnNewDocument() - End - Time needed : %ld ms"
+msgstr  "-I-> MainDoc::OnNewDocument() - Ende - Dauer : %ld ms"
 
 #: ../BrowserDB.cpp:47
 msgid   "OK"
@@ -361,6 +362,10 @@ msgstr  "-I-> DBGrid::OnTableView(%s) - Satz %6d wurde gelesen."
 msgid   "-I-> DBTree::OnPopulate(%s) - %6d Tables have been read. - Time needed : %ld ms"
 msgstr  "-I-> DBTree::OnPopulate(%s) - %6d Tabellen wurde gelesen. - Dauer : %ld ms"
 
+#, c-format
+msgid   "-I-> DBTree::OnPopulate() - %6d Tables have been read. - Time needed : %ld ms"
+msgstr  "-I-> DBTree::OnPopulate() - %6d Tabellen wurde gelesen. - Dauer : %ld ms"
+
 #: ../DBTree.cpp:110
 #, c-format
 msgid   "-I-> DBTree::OnPopulate(%s) - Table %6d has been read."
@@ -378,8 +383,8 @@ msgstr  "-I-> PgmCtrl::OnSelChanged - %s"
 
 #: ../Doc.cpp:126
 #, c-format
-msgid   "-I-> mjDoc::OnInitView() - End - %d DSN's found"
-msgstr  "-I-> mjDoc::OnInitView() - Ende - %d DSN's gefunden"
+msgid   "-I-> MainDoc::OnInitView() - End - %d DSN's found"
+msgstr  "-I-> MainDoc::OnInitView() - Ende - %d DSN's gefunden"
 
 #: ../PgmCtrl.cpp:160 ../PgmCtrl.cpp:163
 msgid   "-I-> wxConfigBase.p_ProgramCfg->DeleteAll() was succesfull."
index a229730846f0839f91e0d310cdace725ad28f472..416b6841ad6386b3fcf760cd220ed41ab4bffd74 100644 (file)
@@ -30,7 +30,7 @@
 //----------------------------------------------------------------------------------------
 #include "std.h"
 //----------------------------------------------------------------------------------------
-DlgUser::DlgUser(wxWindow *parent, mjDoc *p_Doc, const wxString& title) :
+DlgUser::DlgUser(wxWindow *parent, MainDoc *p_Doc, const wxString& title) :
   wxDialog(parent, ID_DIALOG_DSN, title)
 {
  int chSize;                          // Height of Font * 1.4 = Height of wxTextCtrl
index 0ab682fec21dd55d58ce0a9ec61818c0291845ca..8e0f2eddff0684616a4e69bd4247f7dcb4be0d06 100644 (file)
@@ -16,7 +16,7 @@
 #define ID_PASSWORD     103
 #define ID_TEXT         104
 //----------------------------------------------------------------------------------------
-class mjDoc;
+class MainDoc;
 //----------------------------------------------------------------------------------------
 class DlgUser: public wxDialog
 {
@@ -25,9 +25,9 @@ class DlgUser: public wxDialog
  wxStaticText *m_Label1, *m_Label2;
  wxTextCtrl *m_UserName, *m_Password;
  wxButton *m_OK, *m_Cancel;
mjDoc *pDoc;
MainDoc *pDoc;
  //---------------------------------------------------------------------------------------
- DlgUser(wxWindow *parent,mjDoc *pDoc, const wxString& title);
+ DlgUser(wxWindow *parent,MainDoc *pDoc, const wxString& title);
  void OnInit();
  void OnOk(wxCommandEvent& event);
  //---------------------------------------------------------------------------------------
index afe107b74cfdd6157a5eb52558ac6721c7967bef..b4f8f4e7c41789c58f4de40ff6820a0cc1714679 100644 (file)
@@ -39,7 +39,7 @@ wxConfigBase   *p_ProgramCfg;       // All Config and Path information
 wxLogTextCtrl  *p_LogBook;          // All Log messages
 wxString        LogBuf;             // String for all Logs
 //----------------------------------------------------------------------------------------
-mjDoc::mjDoc()
+MainDoc::MainDoc()
 {
  db_Br          = NULL;
  p_DSN          = NULL;
@@ -58,7 +58,7 @@ mjDoc::mjDoc()
  ft_Doc = new wxFont(wxSystemSettings::GetSystemFont(wxSYS_SYSTEM_FONT));
 }
 //----------------------------------------------------------------------------------------
-mjDoc::~mjDoc()
+MainDoc::~MainDoc()
 {
  // ----------------------------------------------------------
  // -E-> The Tree Controls take to long to close : Why ??
@@ -75,10 +75,10 @@ mjDoc::~mjDoc()
  p_Splitter = NULL;
  delete p_Splitter;
  delete [] db_Br;
- //  wxMessageBox("~mjDoc");
+ //  wxMessageBox("~MainDoc");
 }
 //----------------------------------------------------------------------------------------
-bool mjDoc::OnNewDocument()
+bool MainDoc::OnNewDocument()
 {
  wxStopWatch sw;
  //---------------------------------------------------------------------------------------
@@ -86,14 +86,14 @@ bool mjDoc::OnNewDocument()
   return FALSE;
  p_PgmCtrl->OnPopulate();
  //---------------------------------------------------------------------------------------
- wxLogMessage(_("-I-> mjDoc::OnNewDocument() - End - Time needed : %ld ms"),sw.Time());
+ wxLogMessage(_("-I-> MainDoc::OnNewDocument() - End - Time needed : %ld ms"),sw.Time());
  return TRUE;
 }
 //----------------------------------------------------------------------------------------
-bool mjDoc::OnInitView()
+bool MainDoc::OnInitView()
 {
  Sash = p_ProgramCfg->Read("/MainFrame/Sash", 200);
- // wxMessageBox("OnInitView() - Begin ","-I->mjDoc::OnInitView");
+ // wxMessageBox("OnInitView() - Begin ","-I->MainDoc::OnInitView");
  //---------------------------------------------------------------------------------------
  // create "workplace" window
  //---------------------------------------------------------------------------------------
@@ -136,13 +136,13 @@ bool mjDoc::OnInitView()
  if (!OnInitODBC())
   return FALSE;
  //---------------------------------------------------------------------------------------
- Temp0.Printf(_("-I-> mjDoc::OnInitView() - End - %d DSN's found"),i_DSN);
+ Temp0.Printf(_("-I-> MainDoc::OnInitView() - End - %d DSN's found"),i_DSN);
  p_MainFrame->SetStatusText(Temp0, 0);
  wxLogMessage(Temp0);
  return TRUE;
 }
 //----------------------------------------------------------------------------------------
-bool mjDoc::OnInitODBC()
+bool MainDoc::OnInitODBC()
 {
  char Dsn[SQL_MAX_DSN_LENGTH + 1];
  char DsDesc[255]; // BJO20002501 instead of 512
@@ -222,7 +222,7 @@ bool mjDoc::OnInitODBC()
  return TRUE;
 }
 //----------------------------------------------------------------------------------------
-bool mjDoc::OnChosenDSN(int Which)
+bool MainDoc::OnChosenDSN(int Which)
 {
  // wxLogMessage("OnChosenDSN(%d) - Begin",Which);
  //---------------------------------------------------------------------------------------
@@ -251,7 +251,7 @@ bool mjDoc::OnChosenDSN(int Which)
  return TRUE;
 }
 //----------------------------------------------------------------------------------------
-bool mjDoc::OnChosenTbl(int Tab,wxString Table)
+bool MainDoc::OnChosenTbl(int Tab,wxString Table)
 {
  // wxLogMessage("OnChosenTbl(%d,%s)",Tab,Table.c_str());
  //-------------------------
@@ -307,10 +307,10 @@ bool mjDoc::OnChosenTbl(int Tab,wxString Table)
  return TRUE;;
 }
 //----------------------------------------------------------------------------------------
-void mjDoc::OnLeer(wxString Aufrufer)
+void MainDoc::OnLeer(wxString Aufrufer)
 {
- // Temp0.Printf(_("\nmjDoc::OnLeer(%s) : auch diese funktion steht eines Tages zur Verfügung !"),Aufrufer.c_str());
- Temp0.Printf(_("\nmjDoc::OnLeer(%s) : even this function will one day be available !"),Aufrufer.c_str());
+ // Temp0.Printf(_("\nMainDoc::OnLeer(%s) : auch diese funktion steht eines Tages zur Verfügung !"),Aufrufer.c_str());
+ Temp0.Printf(_("\nMainDoc::OnLeer(%s) : even this function will one day be available !"),Aufrufer.c_str());
  wxLogMessage(Temp0);  Temp0.Empty();
  return;
 }
index 50a761071692187aa132c0cadd200f06d07107f1..488c5093afc9d8e060c3712dd98cf58d943a0036 100644 (file)
@@ -29,12 +29,12 @@ extern wxString        LogBuf;             // String for all Logs
 class PgmCtrl;             // Declared in PgmCtrl.h file
 class DocSplitterWindow;   // Declared at the end of the file
 //----------------------------------------------------------------------------------------
-class mjDoc
+class MainDoc
 {
  public:
  //---------------------------------------------------------------------------------------
-  mjDoc();
-  virtual ~mjDoc();
+  MainDoc();
+  virtual ~MainDoc();
   int Sash;
  //---------------------------------------------------------------------------------------
  //-- declare document Vars here ---------------------------------------------------------
@@ -72,7 +72,7 @@ class mjDoc
 class DocSplitterWindow: public wxSplitterWindow
 {
  public:
mjDoc *pDoc;
MainDoc *pDoc;
  DocSplitterWindow(wxWindow *parent, wxWindowID id);
  virtual bool OnSashPositionChange(int newSashPosition)
  {
index b528e2674191b004d8a849f224024ba2cd875e44..51ad07f681a3e88280c31f5364f769b97b0747f2 100644 (file)
@@ -8,7 +8,7 @@
 // Copyright:   (c) Mark Johnson, Berlin Germany, mj10777@gmx.net
 // Licence:     wxWindows license
 //----------------------------------------------------------------------------------------
-class mjDoc;               // Declared in doc.h file
+class MainDoc;             // Declared in doc.h file
 //----------------------------------------------------------------------------------------
 class TreeData : public wxTreeItemData
 {
@@ -37,7 +37,7 @@ class PgmCtrl : public wxTreeCtrl
   PgmCtrl(wxWindow *parent);
   PgmCtrl(wxWindow *parent, const wxWindowID id,const wxPoint& pos, const wxSize& size,long style);
   virtual ~PgmCtrl();
-  mjDoc *pDoc;
+  MainDoc *pDoc;
 //----------------------------------------------------------------------------------------
   int i_TabArt;   // Tab = 0 ; Page = 1;
   int i_ViewNr;   // View Nummer in Tab / Page