Tyro/src/widgets/TyroMenu.h

24 lines
534 B
C
Raw Normal View History

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