c5e4ef4ef2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
98 lines
2.4 KiB
C++
98 lines
2.4 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: test.h
|
|
// Author: XX
|
|
// Created: XX/XX/XX
|
|
// Copyright:
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __test_H__
|
|
#define __test_H__
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface "test.cpp"
|
|
#endif
|
|
|
|
// Include wxWindows' headers
|
|
|
|
#ifndef WX_PRECOMP
|
|
#include <wx/wx.h>
|
|
#endif
|
|
|
|
#include "test_wdr.h"
|
|
|
|
// WDR: class declarations
|
|
|
|
//----------------------------------------------------------------------------
|
|
// MyDialog
|
|
//----------------------------------------------------------------------------
|
|
|
|
class MyDialog: public wxDialog
|
|
{
|
|
public:
|
|
// constructors and destructors
|
|
MyDialog( wxWindow *parent, wxWindowID id, const wxString &title,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
long style = wxDEFAULT_DIALOG_STYLE );
|
|
|
|
// WDR: method declarations for MyDialog
|
|
virtual bool Validate();
|
|
virtual bool TransferDataToWindow();
|
|
virtual bool TransferDataFromWindow();
|
|
|
|
private:
|
|
// WDR: member variable declarations for MyDialog
|
|
|
|
private:
|
|
// WDR: handler declarations for MyDialog
|
|
|
|
private:
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
//----------------------------------------------------------------------------
|
|
// MyFrame
|
|
//----------------------------------------------------------------------------
|
|
|
|
class MyFrame: public wxFrame
|
|
{
|
|
public:
|
|
// constructors and destructors
|
|
MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
long style = wxDEFAULT_FRAME_STYLE );
|
|
|
|
private:
|
|
// WDR: method declarations for MyFrame
|
|
void CreateMyMenuBar();
|
|
|
|
private:
|
|
// WDR: member variable declarations for MyFrame
|
|
|
|
private:
|
|
// WDR: handler declarations for MyFrame
|
|
void OnTest( wxCommandEvent &event );
|
|
void OnAbout( wxCommandEvent &event );
|
|
void OnQuit( wxCommandEvent &event );
|
|
void OnCloseWindow( wxCloseEvent &event );
|
|
|
|
private:
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
//----------------------------------------------------------------------------
|
|
// MyApp
|
|
//----------------------------------------------------------------------------
|
|
|
|
class MyApp: public wxApp
|
|
{
|
|
public:
|
|
MyApp();
|
|
|
|
virtual bool OnInit();
|
|
virtual int OnExit();
|
|
};
|
|
|
|
#endif
|