Shows an overview of all available commands of all groups and modules. More...
#include <DlgKeyboardImp.h>
Public Member Functions | |
DlgCustomKeyboardImp (QWidget *parent=0) | |
Constructs a DlgCustomKeyboardImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
~DlgCustomKeyboardImp () | |
Destroys the object and frees any allocated resources. | |
Protected Slots | |
void | on_buttonAssign_clicked () |
Assigns a new accelerator to the selected command. | |
void | on_buttonReset_clicked () |
Resets the accelerator of the selected command to the default. | |
void | on_buttonResetAll_clicked () |
Resets the accelerator of all commands to the default. | |
void | on_categoryBox_activated (int index) |
Shows all commands of this category. | |
void | on_commandTreeWidget_currentItemChanged (QTreeWidgetItem *) |
Shows the description for the corresponding command. | |
void | on_editShortcut_textChanged (const QString &) |
Checks for an already occupied shortcut. | |
void | onAddMacroAction (const QByteArray &) |
void | onModifyMacroAction (const QByteArray &) |
void | onRemoveMacroAction (const QByteArray &) |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
void | showEvent (QShowEvent *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 poosible to customize your own toolbars or commandbars.
Definition at line 40 of file DlgKeyboardImp.h.
DlgCustomKeyboardImp::DlgCustomKeyboardImp | ( | QWidget * | parent = 0 |
) |
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.
Definition at line 65 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::assignedTreeWidget, Gui::Dialog::Ui_DlgCustomKeyboard::categoryBox, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomKeyboard::commandTreeWidget, Gui::CommandManager::getCommands(), group, Gui::Application::Instance, and Gui::Dialog::Ui_DlgCustomKeyboard::setupUi().
DlgCustomKeyboardImp::~DlgCustomKeyboardImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 109 of file DlgKeyboardImp.cpp.
void DlgCustomKeyboardImp::changeEvent | ( | QEvent * | e | ) | [protected, virtual] |
Implements Gui::Dialog::CustomizeActionPage.
Definition at line 382 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::categoryBox, Gui::Application::commandManager(), RobotExampleTrajectoryOutOfShapes::count, Gui::CommandManager::getGroupCommands(), Gui::Application::Instance, on_categoryBox_activated(), and Gui::Dialog::Ui_DlgCustomKeyboard::retranslateUi().
void DlgCustomKeyboardImp::on_buttonAssign_clicked | ( | ) | [protected, slot] |
Assigns a new accelerator to the selected command.
Definition at line 189 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::accelLineEditShortcut, Gui::Dialog::Ui_DlgCustomKeyboard::buttonAssign, Gui::Dialog::Ui_DlgCustomKeyboard::buttonReset, macros::cmd, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomKeyboard::commandTreeWidget, Gui::Dialog::Ui_DlgCustomKeyboard::editShortcut, Gui::CommandBase::getAction(), Gui::CommandManager::getCommandByName(), Gui::WindowParameter::getDefaultParameter(), Gui::Application::Instance, and Gui::Action::setShortcut().
void DlgCustomKeyboardImp::on_buttonReset_clicked | ( | ) | [protected, slot] |
Resets the accelerator of the selected command to the default.
Definition at line 214 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::accelLineEditShortcut, Gui::Dialog::Ui_DlgCustomKeyboard::buttonReset, macros::cmd, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomKeyboard::commandTreeWidget, Gui::CommandBase::getAccel(), Gui::CommandBase::getAction(), Gui::CommandManager::getCommandByName(), Gui::WindowParameter::getDefaultParameter(), Gui::Application::Instance, Gui::Action::setShortcut(), and Gui::Action::shortcut().
void DlgCustomKeyboardImp::on_buttonResetAll_clicked | ( | ) | [protected, slot] |
Resets the accelerator of all commands to the default.
Definition at line 237 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::buttonReset, Gui::Application::commandManager(), Gui::CommandManager::getAllCommands(), Gui::WindowParameter::getDefaultParameter(), and Gui::Application::Instance.
void DlgCustomKeyboardImp::on_categoryBox_activated | ( | int | index | ) | [protected, slot] |
Shows all commands of this category.
Definition at line 162 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::accelLineEditShortcut, Gui::BitmapFactory(), Gui::Dialog::Ui_DlgCustomKeyboard::buttonAssign, Gui::Dialog::Ui_DlgCustomKeyboard::buttonReset, Gui::Dialog::Ui_DlgCustomKeyboard::categoryBox, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomKeyboard::commandTreeWidget, Gui::Dialog::Ui_DlgCustomKeyboard::editShortcut, Gui::CommandManager::getGroupCommands(), group, and Gui::Application::Instance.
Referenced by changeEvent(), and showEvent().
void DlgCustomKeyboardImp::on_commandTreeWidget_currentItemChanged | ( | QTreeWidgetItem * | item | ) | [protected, slot] |
Shows the description for the corresponding command.
Definition at line 124 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::accelLineEditShortcut, Gui::Dialog::Ui_DlgCustomKeyboard::buttonAssign, Gui::Dialog::Ui_DlgCustomKeyboard::buttonReset, macros::cmd, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomKeyboard::editShortcut, Gui::CommandBase::getAccel(), Gui::CommandBase::getAction(), Gui::CommandManager::getCommandByName(), Gui::Application::Instance, Gui::Action::shortcut(), and Gui::Dialog::Ui_DlgCustomKeyboard::textLabelDescription.
void DlgCustomKeyboardImp::on_editShortcut_textChanged | ( | const QString & | sc | ) | [protected, slot] |
Checks for an already occupied shortcut.
Definition at line 252 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::assignedTreeWidget, Gui::BitmapFactory(), Gui::Dialog::Ui_DlgCustomKeyboard::buttonAssign, macros::cmd, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomKeyboard::commandTreeWidget, Gui::Dialog::Ui_DlgCustomKeyboard::editShortcut, Gui::CommandBase::getAction(), Gui::CommandManager::getAllCommands(), Gui::CommandManager::getCommandByName(), Gui::Application::Instance, and Gui::Action::shortcut().
void DlgCustomKeyboardImp::onAddMacroAction | ( | const QByteArray & | macro | ) | [protected, virtual, slot] |
Implements Gui::Dialog::CustomizeActionPage.
Definition at line 317 of file DlgKeyboardImp.cpp.
References Gui::BitmapFactory(), Gui::Dialog::Ui_DlgCustomKeyboard::categoryBox, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomKeyboard::commandTreeWidget, Gui::CommandManager::getCommandByName(), Gui::CommandBase::getMenuText(), Gui::CommandBase::getPixmap(), Gui::CommandBase::getToolTipText(), group, and Gui::Application::Instance.
void DlgCustomKeyboardImp::onModifyMacroAction | ( | const QByteArray & | macro | ) | [protected, virtual, slot] |
Implements Gui::Dialog::CustomizeActionPage.
Definition at line 355 of file DlgKeyboardImp.cpp.
References Gui::BitmapFactory(), Gui::Dialog::Ui_DlgCustomKeyboard::categoryBox, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomKeyboard::commandTreeWidget, Gui::CommandManager::getCommandByName(), Gui::CommandBase::getMenuText(), Gui::CommandBase::getPixmap(), Gui::CommandBase::getToolTipText(), group, Gui::Application::Instance, and Gui::Dialog::Ui_DlgCustomKeyboard::textLabelDescription.
void DlgCustomKeyboardImp::onRemoveMacroAction | ( | const QByteArray & | macro | ) | [protected, virtual, slot] |
Implements Gui::Dialog::CustomizeActionPage.
Definition at line 337 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::categoryBox, Gui::Dialog::Ui_DlgCustomKeyboard::commandTreeWidget, and group.
void DlgCustomKeyboardImp::showEvent | ( | QShowEvent * | e | ) | [protected] |
Definition at line 113 of file DlgKeyboardImp.cpp.
References Gui::Dialog::Ui_DlgCustomKeyboard::categoryBox, and on_categoryBox_activated().