Tyro/src/Main.h

48 lines
1.0 KiB
C
Raw Normal View History

2015-03-30 14:50:10 -04:00
/***************************************************************
* Name: Main.h
2015-03-30 14:50:10 -04:00
* Purpose: Defines Application Frame
* Author: Timothy J Warren (tim@timshomepage.net)
2015-03-30 14:50:10 -04:00
* Created: 2015-03-30
* Copyright: Timothy J Warren (https://timshomepage.net)
* License:
**************************************************************/
#ifndef TYROMAIN_H
#define TYROMAIN_H
2015-04-02 11:01:21 -04:00
#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif
2015-03-30 14:50:10 -04:00
#ifndef WX_PRECOMP
2015-04-02 11:01:21 -04:00
#include <wx/wx.h>
2015-03-30 14:50:10 -04:00
#endif
#include "TyroApp.h"
#include "DocFrame.h"
2015-03-30 14:50:10 -04:00
2015-04-02 11:01:21 -04:00
class MainFrame: public wxFrame
2015-03-30 14:50:10 -04:00
{
public:
2015-04-02 11:01:21 -04:00
MainFrame(wxFrame *frame, const wxString& title);
~MainFrame();
private:
enum
{
idMenuQuit = 1000,
idMenuAbout
};
void SetupMenu();
2015-04-02 11:01:21 -04:00
void SetupToolbar();
void SetupStatusBar();
void OnMenuFileOpen(wxCommandEvent &event);
void OnMenuFileSave(wxCommandEvent &event);
void OnClose(wxCloseEvent &event);
void OnQuit(wxCommandEvent &event);
void OnAbout(wxCommandEvent &event);
wxAuiNotebook* CreateNotebook();
DECLARE_EVENT_TABLE()
2015-03-30 14:50:10 -04:00
};
#endif // TYROMAIN_H