Tyro/src/widgets/MainFrame.h

51 lines
1.1 KiB
C
Raw Normal View History

/**
* Main Application Frame
*/
2015-03-30 14:50:10 -04:00
#ifndef TYROMAIN_H
#define TYROMAIN_H
#include "../wx_common.h"
#include "../TyroApp.h"
#include <wx/aboutdlg.h>
2015-04-10 15:11:15 -04:00
#include <wx/generic/aboutdlgg.h>
#include "TabContainer.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
{
2015-04-09 11:45:19 -04:00
friend class TabContainer;
public:
MainFrame(wxFrame *frame, const wxString &title);
2015-04-02 11:01:21 -04:00
~MainFrame();
private:
TabContainer *notebook;
enum
{
idMenuQuit = 1000,
idMenuAbout
};
void SetupMenu();
2015-04-02 11:01:21 -04:00
void SetupToolbar();
void SetupStatusBar();
2015-04-09 11:45:19 -04:00
void BindEvents();
void OnNew(wxCommandEvent &event);
void OnOpen(wxCommandEvent &event);
void OnFileClose(wxCommandEvent &event);
void OnSave(wxCommandEvent &event);
void OnSaveAs(wxCommandEvent &event);
2015-04-09 13:27:30 -04:00
void OnEditCut(wxCommandEvent &event);
void OnEditCopy(wxCommandEvent &event);
void OnEditPaste(wxCommandEvent &event);
void OnEditSelectAll(wxCommandEvent &event);
2015-04-09 13:54:28 -04:00
void OnEditUndo(wxCommandEvent &event);
void OnEditRedo(wxCommandEvent &event);
void OnClose(wxCloseEvent &event);
void OnQuit(wxCommandEvent &event);
void OnAbout(wxCommandEvent &event);
2015-03-30 14:50:10 -04:00
};
#endif // TYROMAIN_H