{
Q_OBJECT
- //! Size of menu item
- //TODO(sbh, vsv): Move to the settings
- enum ItemSize {
- Small = 20,
- Medium = 25,
- Large = 30
- };
-
public:
XGUI_MainMenu(XGUI_MainWindow *parent);
virtual ~XGUI_MainMenu();
//! Returns list of created commands
QList<XGUI_Command*> features() const;
- QList<XGUI_Workbench*> workbenches() const;
-
virtual bool eventFilter(QObject *theWatched, QEvent *theEvent);
//! Displays given console as a tab in the workbench
//! Removes already created tab with python console
void removeConsole();
+ //! Defines size of menu item.
+ //! In the future this value should be extracted from the preferences.
int menuItemSize() const;
+ //! Defines number of menu item rows.
+ //! In the future this value should be extracted from the preferences.
int menuItemRowsCount() const;
+ //! Defines height of the main menu. (Number of rows * row height)
int menuHeight() const;
+ void updateFromResources();
+
private:
XGUI_MainWindow* myDesktop;
QTabWidget* myMenuTabs;
XGUI_MenuGroupPanel* myGeneralPage;
+ QList<XGUI_Workbench*> myWorkbenches;
QMap<XGUI_Command*, bool> myCommandState;
};