Huge cleanup of the code. Reformatting, spelling fixes, standardizing on wxWindows conventions, etc.
Changed the couple lines of code required to work with checkins of the new ODBC classes that use wxStrings. Fixed a ton of memory leaks Demo still crashes on exit though - this problem has exited for nearly a year though. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -12,34 +12,37 @@
|
||||
//----------------------------------------------------------------------------------------
|
||||
class MainFrame: public wxFrame
|
||||
{
|
||||
public:
|
||||
MainFrame(wxFrame *frame, char *title, const wxPoint& pos, const wxSize& size);
|
||||
~MainFrame(void);
|
||||
public:
|
||||
MainFrame(wxFrame *frame, char *title, const wxPoint& pos, const wxSize& size);
|
||||
~MainFrame(void);
|
||||
|
||||
public:
|
||||
// menu callbacks
|
||||
void OnAbout(wxCommandEvent& event);
|
||||
void OnHelp(wxCommandEvent& event);
|
||||
void OnQuit(wxCommandEvent& event);
|
||||
//--------------------------------------------------------------------------------------
|
||||
int DiffW, DiffH; // Needed the saving of Frame size
|
||||
//--------------------------------------------------------------------------------------
|
||||
DocSplitterWindow *p_Splitter; // for Document Views
|
||||
MainDoc *pDoc; // Self made Document
|
||||
wxHtmlHelpController *p_Help; // Help System
|
||||
|
||||
public:
|
||||
// menu callbacks
|
||||
void OnAbout(wxCommandEvent& event);
|
||||
void OnHelp(wxCommandEvent& event);
|
||||
void OnQuit(wxCommandEvent& event);
|
||||
//--------------------------------------------------------------------------------------
|
||||
int DiffW, DiffH; // Needed the saving of Frame size
|
||||
//--------------------------------------------------------------------------------------
|
||||
DocSplitterWindow *p_Splitter; // for Document Views
|
||||
MainDoc *pDoc; // Self made Document
|
||||
wxHtmlHelpController *p_Help; // Help System
|
||||
//--------------------------------------------------------------------------------------
|
||||
DECLARE_EVENT_TABLE()
|
||||
//--------------------------------------------------------------------------------------
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
// Define a new application type
|
||||
//----------------------------------------------------------------------------------------
|
||||
class MainApp: public wxApp
|
||||
{
|
||||
public:
|
||||
MainFrame *frame; // The one and only MainFrame
|
||||
bool OnInit(void); // Programmstart
|
||||
wxLocale m_locale; // locale we'll be using and language support - MUST be here !
|
||||
public:
|
||||
MainFrame *frame; // The one and only MainFrame
|
||||
bool OnInit(void); // Programmstart
|
||||
wxLocale m_locale; // locale we'll be using and language support - MUST be here !
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
// ID for the menu quit command
|
||||
//----------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user