dbbrowse.cpp dbbrowse.h

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mark Johnson
2000-02-22 13:00:06 +00:00
parent 99306db210
commit 66d6c315a3
2 changed files with 9 additions and 8 deletions

View 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): MainFrame::MainFrame(wxFrame *frame, char *title, const wxPoint& pos, const wxSize& size):
wxFrame(frame, -1, title, pos, 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) MainFrame::~MainFrame(void)
@@ -284,8 +285,8 @@ MainFrame::~MainFrame(void)
// we want here!) // we want here!)
// delete wxConfigBase::Set((wxConfigBase *) NULL); // delete wxConfigBase::Set((wxConfigBase *) NULL);
p_ProgramCfg->Flush(TRUE); // saves Objekt p_ProgramCfg->Flush(TRUE); // saves Objekt
if (!frame->pDoc) // If we have a Valid Document if (pDoc) // If we have a Valid Document
delete frame->pDoc; // Cleanup (MainDoc::~MainDoc) delete pDoc; // Cleanup (MainDoc::~MainDoc)
} // MainFrame::~MainFrame(void) } // MainFrame::~MainFrame(void)
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
void MainFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) void MainFrame::OnQuit(wxCommandEvent& WXUNUSED(event))

View File

@@ -27,15 +27,15 @@ class MainFrame: public wxFrame
public: public:
// menu callbacks // menu callbacks
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event); void OnAbout(wxCommandEvent& event);
void OnHelp(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; DocSplitterWindow *p_Splitter; // for Document Views
MainDoc *pDoc; MainDoc *pDoc; // Self made Document
DocSplitterWindow *p_Splitter; wxHtmlHelpController *p_Help; // Help System
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };