2002-04-26 14:28:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: styles.h
|
|
|
|
// Author: Robert Roebling
|
2006-01-26 14:06:06 -05:00
|
|
|
// RCS-ID: $Id$
|
2002-04-26 14:28:30 -04:00
|
|
|
// Created: 04/07/02
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __styles_H__
|
|
|
|
#define __styles_H__
|
|
|
|
|
2004-05-25 07:20:37 -04:00
|
|
|
// Include wxWidgets' headers
|
2002-04-26 14:28:30 -04:00
|
|
|
|
|
|
|
#ifndef WX_PRECOMP
|
2006-01-26 14:06:06 -05:00
|
|
|
#include "wx/wx.h"
|
2002-04-26 14:28:30 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// constants
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#define ID_ABOUT 100
|
|
|
|
#define ID_QUIT 204
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// 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 );
|
2004-10-06 16:54:57 -04:00
|
|
|
|
2002-04-26 14:28:30 -04:00
|
|
|
private:
|
|
|
|
void CreateMyMenuBar();
|
2004-10-06 16:54:57 -04:00
|
|
|
|
2002-04-26 14:28:30 -04:00
|
|
|
private:
|
|
|
|
void OnAbout( wxCommandEvent &event );
|
|
|
|
void OnQuit( wxCommandEvent &event );
|
2004-10-06 16:54:57 -04:00
|
|
|
|
2002-04-26 14:28:30 -04:00
|
|
|
void OnCloseWindow( wxCloseEvent &event );
|
2004-10-06 16:54:57 -04:00
|
|
|
|
2002-04-26 14:28:30 -04:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// MyApp
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class MyApp: public wxApp
|
|
|
|
{
|
|
|
|
public:
|
2004-10-06 16:54:57 -04:00
|
|
|
MyApp(){};
|
|
|
|
|
2002-04-26 14:28:30 -04:00
|
|
|
virtual bool OnInit();
|
|
|
|
virtual int OnExit();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|