Shows an overview of all available commands of all groups and modules. More...
#include <DlgCommandsImp.h>
Public Member Functions | |
DlgCustomCommandsImp (QWidget *parent=0) | |
Constructs a DlgCustomCommandsImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
~DlgCustomCommandsImp () | |
Destroys the object and frees any allocated resources. | |
Protected Slots | |
void | onAddMacroAction (const QByteArray &) |
void | onDescription (QTreeWidgetItem *i) |
Shows the description for the corresponding command. | |
void | onGroupActivated (QTreeWidgetItem *i) |
Shows all commands of this category. | |
void | onModifyMacroAction (const QByteArray &) |
void | onRemoveMacroAction (const QByteArray &) |
Protected Member Functions | |
void | changeEvent (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 poosible to customize your own toolbars or commandbars.
Definition at line 41 of file DlgCommandsImp.h.
DlgCustomCommandsImp::DlgCustomCommandsImp | ( | QWidget * | parent = 0 |
) |
Constructs a DlgCustomCommandsImp 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 63 of file DlgCommandsImp.cpp.
References Gui::Dialog::Ui_DlgCustomCommands::categoryTreeWidget, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomCommands::commandTreeWidget, draftlibs::fcgeo::connect(), Gui::CommandManager::getCommands(), group, Gui::Application::Instance, onDescription(), onGroupActivated(), and Gui::Dialog::Ui_DlgCustomCommands::setupUi().
DlgCustomCommandsImp::~DlgCustomCommandsImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 120 of file DlgCommandsImp.cpp.
void DlgCustomCommandsImp::changeEvent | ( | QEvent * | e | ) | [protected, virtual] |
Implements Gui::Dialog::CustomizeActionPage.
Definition at line 237 of file DlgCommandsImp.cpp.
References Gui::Dialog::Ui_DlgCustomCommands::categoryTreeWidget, Gui::Application::commandManager(), Gui::CommandManager::getGroupCommands(), Gui::Application::Instance, onGroupActivated(), and Gui::Dialog::Ui_DlgCustomCommands::retranslateUi().
void DlgCustomCommandsImp::onAddMacroAction | ( | const QByteArray & | macro | ) | [protected, virtual, slot] |
Implements Gui::Dialog::CustomizeActionPage.
Definition at line 160 of file DlgCommandsImp.cpp.
References Gui::BitmapFactory(), Gui::Dialog::Ui_DlgCustomCommands::categoryTreeWidget, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomCommands::commandTreeWidget, Gui::CommandManager::getCommandByName(), Gui::CommandBase::getMenuText(), Gui::CommandBase::getPixmap(), Gui::CommandBase::getToolTipText(), group, and Gui::Application::Instance.
void DlgCustomCommandsImp::onDescription | ( | QTreeWidgetItem * | i | ) | [protected, slot] |
Shows the description for the corresponding command.
Definition at line 125 of file DlgCommandsImp.cpp.
References Gui::Dialog::Ui_DlgCustomCommands::textLabel.
Referenced by DlgCustomCommandsImp(), and onModifyMacroAction().
void DlgCustomCommandsImp::onGroupActivated | ( | QTreeWidgetItem * | i | ) | [protected, slot] |
Shows all commands of this category.
Definition at line 134 of file DlgCommandsImp.cpp.
References Gui::BitmapFactory(), Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomCommands::commandTreeWidget, Gui::CommandManager::getGroupCommands(), group, Gui::Application::Instance, and Gui::Dialog::Ui_DlgCustomCommands::textLabel.
Referenced by changeEvent(), and DlgCustomCommandsImp().
void DlgCustomCommandsImp::onModifyMacroAction | ( | const QByteArray & | macro | ) | [protected, virtual, slot] |
Implements Gui::Dialog::CustomizeActionPage.
Definition at line 206 of file DlgCommandsImp.cpp.
References Gui::BitmapFactory(), Gui::Dialog::Ui_DlgCustomCommands::categoryTreeWidget, Gui::Application::commandManager(), Gui::Dialog::Ui_DlgCustomCommands::commandTreeWidget, Gui::CommandManager::getCommandByName(), Gui::CommandBase::getMenuText(), Gui::CommandBase::getPixmap(), Gui::CommandBase::getToolTipText(), group, Gui::Application::Instance, and onDescription().
void DlgCustomCommandsImp::onRemoveMacroAction | ( | const QByteArray & | macro | ) | [protected, virtual, slot] |
Implements Gui::Dialog::CustomizeActionPage.
Definition at line 184 of file DlgCommandsImp.cpp.
References Gui::Dialog::Ui_DlgCustomCommands::categoryTreeWidget, Gui::Dialog::Ui_DlgCustomCommands::commandTreeWidget, and group.