Shows an overview of all available commands of all groups and modules. More...
#include <DlgKeyboardImp.h>
Public Member Functions | |
DlgCustomKeyboardImp (QWidget *parent=nullptr) | |
Constructs a DlgCustomKeyboardImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. More... | |
~DlgCustomKeyboardImp () | |
Destroys the object and frees any allocated resources. More... | |
Public Member Functions inherited from Gui::Dialog::CustomizeActionPage | |
CustomizeActionPage (QWidget *parent=nullptr) | |
Construction. More... | |
virtual | ~CustomizeActionPage () |
Destruction. More... | |
Protected Slots | |
void | on_buttonAssign_clicked () |
Assigns a new accelerator to the selected command. More... | |
void | on_buttonClear_clicked () |
Clears the accelerator of the selected command. More... | |
void | on_buttonReset_clicked () |
Resets the accelerator of the selected command to the default. More... | |
void | on_buttonResetAll_clicked () |
Resets the accelerator of all commands to the default. More... | |
void | on_categoryBox_activated (int index) |
Shows all commands of this category. More... | |
void | on_commandTreeWidget_currentItemChanged (QTreeWidgetItem *) |
Shows the description for the corresponding command. More... | |
void | on_editShortcut_textChanged (const QString &) |
Checks for an already occupied shortcut. More... | |
void | onAddMacroAction (const QByteArray &) |
void | onModifyMacroAction (const QByteArray &) |
void | onRemoveMacroAction (const QByteArray &) |
Protected Slots inherited from Gui::Dialog::CustomizeActionPage | |
virtual void | onAddMacroAction (const QByteArray &)=0 |
virtual void | onModifyMacroAction (const QByteArray &)=0 |
virtual void | onRemoveMacroAction (const QByteArray &)=0 |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
void | setShortcutOfCurrentAction (const QString &) |
void | showEvent (QShowEvent *e) |
Protected Member Functions inherited from Gui::Dialog::CustomizeActionPage | |
virtual void | changeEvent (QEvent *e)=0 |
bool | event (QEvent *e) |
Shows an overview of all available commands of all groups and modules.
You can customize your workbenches just by drag&dropping any commands onto the toolbars or commandbars. But you cannot modify any standard toolbars or commandbars such as "File, View, ...". It is only possible to customize your own toolbars or commandbars.
DlgCustomKeyboardImp::DlgCustomKeyboardImp | ( | QWidget * | parent = nullptr | ) |
Constructs a DlgCustomKeyboardImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
The dialog will by default be modeless, unless you set 'modal' to true to construct a modal dialog.
References Gui::Application::commandManager(), Gui::CommandManager::getCommands(), and Gui::Application::Instance.
DlgCustomKeyboardImp::~DlgCustomKeyboardImp | ( | ) |
Destroys the object and frees any allocated resources.
|
protectedvirtual |
|
protectedslot |
Assigns a new accelerator to the selected command.
References setShortcutOfCurrentAction().
|
protectedslot |
Clears the accelerator of the selected command.
References setShortcutOfCurrentAction().
|
protectedslot |
Resets the accelerator of the selected command to the default.
References Gui::CommandBase::className(), Gui::Application::commandManager(), Gui::CommandBase::getAccel(), Gui::CommandBase::getAction(), Gui::CommandManager::getCommandByName(), Gui::WindowParameter::getDefaultParameter(), ParameterGrp::GetGroup(), Gui::Application::Instance, Gui::Command::recreateTooltip(), ParameterGrp::RemoveASCII(), Gui::Action::setShortcut(), and Gui::Action::shortcut().
|
protectedslot |
Resets the accelerator of all commands to the default.
References Gui::Application::commandManager(), Gui::CommandManager::getAllCommands(), Gui::WindowParameter::getDefaultParameter(), Gui::Application::Instance, and ParameterGrp::RemoveGrp().
|
protectedslot |
Shows all commands of this category.
References Gui::BitmapFactory(), Gui::Application::commandManager(), Gui::CommandManager::getGroupCommands(), and Gui::Application::Instance.
Referenced by changeEvent(), and showEvent().
|
protectedslot |
Shows the description for the corresponding command.
References Gui::Application::commandManager(), Gui::CommandBase::getAccel(), Gui::CommandBase::getAction(), Gui::CommandManager::getCommandByName(), Gui::Application::Instance, and Gui::Action::shortcut().
|
protectedslot |
Checks for an already occupied shortcut.
References Gui::BitmapFactory(), Gui::Application::commandManager(), Base::Console(), Gui::CommandBase::getAction(), Gui::CommandManager::getAllCommands(), Gui::CommandManager::getCommandByName(), Gui::WindowParameter::getDefaultParameter(), ParameterGrp::GetGroup(), Gui::Command::getName(), Gui::Application::Instance, ParameterGrp::RemoveASCII(), Gui::Action::shortcut(), and Base::ConsoleSingleton::Warning().
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protected |
References Gui::CommandBase::className(), Gui::Application::commandManager(), Gui::CommandBase::getAction(), App::GetApplication(), Gui::CommandManager::getCommandByName(), Gui::WindowParameter::getDefaultParameter(), ParameterGrp::GetGroup(), Gui::Command::getName(), App::Application::GetParameterGroupByPath(), ParameterGrp::HasGroup(), Gui::Application::Instance, Gui::Command::recreateTooltip(), Gui::CommandBase::setAccel(), and ParameterGrp::SetASCII().
Referenced by on_buttonAssign_clicked(), and on_buttonClear_clicked().
|
protected |
References on_categoryBox_activated().