]> git.saurik.com Git - wxWidgets.git/commitdiff
dbbrowse.cpp dbbrowse.h
authorMark Johnson <mj10777@web.de>
Tue, 22 Feb 2000 13:00:06 +0000 (13:00 +0000)
committerMark Johnson <mj10777@web.de>
Tue, 22 Feb 2000 13:00:06 +0000 (13:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/dbbrowse/dbbrowse.cpp
demos/dbbrowse/dbbrowse.h

index f93ca6d6777fcc6ecde692af312b85a795f16b93..090073bd2dda4c9e2cb3e774850e2842e211565c 100644 (file)
@@ -262,7 +262,8 @@ bool MainApp::OnInit(void)  // Does everything needed for a program start
 MainFrame::MainFrame(wxFrame *frame, char *title,  const wxPoint& pos, const wxSize& size):
   wxFrame(frame, -1, title,  pos, size)
 {
- //--- Everything is done in MainApp -----------------------------------------------------
+ p_Splitter = NULL; pDoc = NULL; p_Help = NULL;    // Keep the Pointers clean !
+ //--- Everything else is done in MainApp::OnInit() --------------------------------------
 }
 //----------------------------------------------------------------------------------------
 MainFrame::~MainFrame(void)
@@ -284,8 +285,8 @@ MainFrame::~MainFrame(void)
  // we want here!)
  // delete wxConfigBase::Set((wxConfigBase *) NULL);
  p_ProgramCfg->Flush(TRUE);        // saves   Objekt
- if (!frame->pDoc)                 // If we have a Valid Document
-  delete frame->pDoc;              // Cleanup (MainDoc::~MainDoc)
+ if (pDoc)                         // If we have a Valid Document
+  delete pDoc;                     // Cleanup (MainDoc::~MainDoc)
 } // MainFrame::~MainFrame(void)
 //----------------------------------------------------------------------------------------
 void MainFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
index 3850290e252fa9b6988e765bfde5d9d08ca24513..0949892916d6a70cea7c689c3e48edf769865a7b 100644 (file)
@@ -27,15 +27,15 @@ class MainFrame: public wxFrame
 
  public:
   // menu callbacks
-  void OnQuit(wxCommandEvent& event);
   void OnAbout(wxCommandEvent& event);
   void OnHelp(wxCommandEvent& event);
+  void OnQuit(wxCommandEvent& event);
   //--------------------------------------------------------------------------------------
-  wxHtmlHelpController *p_Help;
+  int DiffW, DiffH;                  // Needed the saving of Frame size
   //--------------------------------------------------------------------------------------
-  int DiffW, DiffH;
-  MainDoc *pDoc;
-  DocSplitterWindow *p_Splitter;
+  DocSplitterWindow    *p_Splitter;  // for Document Views
+  MainDoc              *pDoc;        // Self made Document
+  wxHtmlHelpController *p_Help;      // Help System
   //--------------------------------------------------------------------------------------
  DECLARE_EVENT_TABLE()
 };