2015-05-08 16:01:36 -04:00
|
|
|
/**
|
|
|
|
* Main Menu class
|
2015-05-07 17:05:27 -04:00
|
|
|
*/
|
2016-01-13 09:29:09 -05:00
|
|
|
#pragma once
|
2015-05-07 17:05:27 -04:00
|
|
|
|
2015-07-07 10:01:17 -04:00
|
|
|
#include "src/widgets/widget.h"
|
2015-05-08 16:01:36 -04:00
|
|
|
|
2015-05-07 17:05:27 -04:00
|
|
|
class TyroMenu : public wxMenuBar {
|
|
|
|
public:
|
|
|
|
TyroMenu();
|
|
|
|
~TyroMenu();
|
|
|
|
void EnableEditControls(bool enable);
|
2015-05-12 16:30:22 -04:00
|
|
|
void SetIdChecked(int id, bool checked);
|
|
|
|
void SetCurrentLanguage(string lang);
|
2015-05-07 17:05:27 -04:00
|
|
|
private:
|
2015-06-03 17:06:55 -04:00
|
|
|
wxMenu *fileMenu = nullptr;
|
|
|
|
wxMenu *editMenu = nullptr;
|
|
|
|
wxMenu *viewMenu = nullptr;
|
|
|
|
wxMenu *langMenu = nullptr;
|
|
|
|
wxMenu *helpMenu = nullptr;
|
2015-05-07 17:05:27 -04:00
|
|
|
void SetupMainMenus();
|
|
|
|
void SetupLangMenu();
|
|
|
|
void EnableEntireMenu(size_t menuId, wxMenu *menu, bool enable);
|
2016-01-13 09:29:09 -05:00
|
|
|
};
|