Open-Typer
Open source typewriting tutor program
|
The AppMenuBar class provides a model for the application menu bar. More...
#include "app/AppMenuBar.h"
Signals | |
void | newLessonPackActionChanged () |
void | openExerciseActionChanged () |
void | openPackActionChanged () |
void | openPackInEditorActionChanged () |
void | printActionChanged () |
void | typingTestActionChanged () |
void | exerciseHistoryActionChanged () |
void | timedExActionChanged () |
void | errorWordsActionChanged () |
void | reverseTextActionChanged () |
void | preferencesActionChanged () |
void | aboutProgramActionChanged () |
Signals inherited from AbstractMenuBar | |
void | menusChanged () |
Public Member Functions | |
void | updateMenus (void) override |
AppMenuItem * | newLessonPackAction (void) |
AppMenuItem * | openExerciseAction (void) |
AppMenuItem * | openPackAction (void) |
AppMenuItem * | openPackInEditorAction (void) |
AppMenuItem * | printAction (void) |
AppMenuItem * | typingTestAction (void) |
AppMenuItem * | exerciseHistoryAction (void) |
AppMenuItem * | timedExAction (void) |
AppMenuItem * | errorWordsAction (void) |
AppMenuItem * | reverseTextAction (void) |
AppMenuItem * | preferencesAction (void) |
AppMenuItem * | aboutProgramAction (void) |
Public Member Functions inherited from AbstractMenuBar | |
AbstractMenuBar (QObject *parent=nullptr) | |
void | init () |
QQmlListProperty< AppMenuModel > | menus (void) |
QList< AppMenuModel * > | getMenus (void) |
void | setMenus (QList< AppMenuModel * > newMenus) |
Q_INVOKABLE void | addMenu (AppMenuModel *menu) |
Q_INVOKABLE void | removeMenu (AppMenuModel *menu) |
Static Public Member Functions | |
static std::shared_ptr< AppMenuBar > | instance () |
Properties | |
AppMenuItem * | newLessonPackAction |
AppMenuItem * | openExerciseAction |
AppMenuItem * | openPackAction |
AppMenuItem * | openPackInEditorAction |
AppMenuItem * | printAction |
AppMenuItem * | typingTestAction |
AppMenuItem * | exerciseHistoryAction |
AppMenuItem * | timedExAction |
AppMenuItem * | errorWordsAction |
AppMenuItem * | reverseTextAction |
AppMenuItem * | preferencesAction |
AppMenuItem * | aboutProgramAction |
Properties inherited from AbstractMenuBar | |
QQmlListProperty< AppMenuModel > | menus |
Private Member Functions | |
void | createMenus (void) override |
Private Attributes | |
bool | blockDarkThemeActionConnection = false |
AppMenuModel | fileMenu |
AppMenuItem | m_newLessonPackAction |
AppMenuItem | openMenuAction |
AppMenuModel | openMenu |
AppMenuItem | m_openExerciseAction |
AppMenuItem | m_openPackAction |
AppMenuItem | m_openPackInEditorAction |
AppMenuItem | fileSeparator1 |
AppMenuItem | fileSeparator2 |
AppMenuItem | m_printAction |
AppMenuItem | quitAction |
AppMenuModel | viewMenu |
AppMenuItem | uiMenuAction |
AppMenuModel | uiMenu |
AppMenuItem | darkThemeAction |
AppMenuModel | toolsMenu |
AppMenuItem | m_typingTestAction |
AppMenuModel | exerciseMenu |
AppMenuItem | m_exerciseHistoryAction |
AppMenuItem | m_timedExAction |
AppMenuItem | m_errorWordsAction |
AppMenuItem | m_reverseTextAction |
AppMenuModel | optionsMenu |
AppMenuItem | m_preferencesAction |
AppMenuModel | helpMenu |
AppMenuItem | docsAction |
AppMenuItem | m_aboutProgramAction |
AppMenuItem | aboutQtAction |
Static Private Attributes | |
static std::shared_ptr< AppMenuBar > | m_instance = std::make_shared<AppMenuBar>() |
Additional Inherited Members | |
Protected Attributes inherited from AbstractMenuBar | |
QList< AppMenuModel * > | m_menus |
The AppMenuBar class provides a model for the application menu bar.
Note: This model shouldn't be created more than once because the application is intended to have only one menu bar. Use globalMenuBar to access the model.
|
overrideprivatevirtual |
Creates default menus.
Reimplemented from AbstractMenuBar.
|
static |
Returns the static instance of AppMenuBar.
|
overridevirtual |
Updates default menus.
Reimplemented from AbstractMenuBar.