![]() |
Sayonara Player
|
This is the little button you often see near comboboxes
It opens up a menu when clicked. The actions in the menu a configurable.
More...
#include <MenuToolButton.h>
Public Slots | |
void | showAction (ContextMenu::Entry entry, bool visible) |
show/hide an action calls ContextMenu::show_action(ContextMenu::Entry entry, bool visible) More... | |
void | showActions (ContextMenuEntries options) |
shows all actions specified in options. Hide every other action calls ContextMenu::show_actions(ContextMenuEntries options) More... | |
void | showAll () |
show all actions | |
Signals | |
void | sigOpen () |
void | sigNew () |
void | sigUndo () |
void | sigSave () |
void | sigSaveAs () |
void | sigRename () |
void | sigDelete () |
void | sigEdit () |
void | sigDefault () |
Public Member Functions | |
MenuToolButton (QWidget *parent) | |
MenuToolButton (QMenu *menu, QWidget *parent) | |
void | registerAction (QAction *action) |
Use this to add custom actions. More... | |
void | registerPreferenceAction (Gui::PreferenceAction *action) |
Use this to add a preference Action. More... | |
Gui::ContextMenuEntries | entries () const |
get current visible entries in menu calls ContextMenu::get_entries() More... | |
void | setOverrideText (bool b) |
virtual void | showEvent (QShowEvent *e) override |
Protected Member Functions | |
void | languageChanged () override |
void | skinChanged () override |
This is the little button you often see near comboboxes
It opens up a menu when clicked. The actions in the menu a configurable.
Gui::ContextMenuEntries Gui::MenuToolButton::entries | ( | ) | const |
get current visible entries in menu
calls ContextMenu::get_entries()
void Gui::MenuToolButton::registerAction | ( | QAction * | action | ) |
Use this to add custom actions.
action | a custom action |
void Gui::MenuToolButton::registerPreferenceAction | ( | Gui::PreferenceAction * | action | ) |
Use this to add a preference Action.
PreferenceAction | for accessing preference dialog |
|
slot |
show/hide an action calls ContextMenu::show_action(ContextMenu::Entry entry, bool visible)
entry | the entry of interes |
visible | show/hide the action |
|
slot |
shows all actions specified in options. Hide every other action
calls ContextMenu::show_actions(ContextMenuEntries options)
options | option mask |