Gui::Dialog::DlgCustomKeyboardImp Class Reference

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)
 

Detailed Description

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.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ DlgCustomKeyboardImp()

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::~DlgCustomKeyboardImp ( )

Destroys the object and frees any allocated resources.

Member Function Documentation

◆ changeEvent()

◆ on_buttonAssign_clicked

void DlgCustomKeyboardImp::on_buttonAssign_clicked ( )
protectedslot

Assigns a new accelerator to the selected command.

References setShortcutOfCurrentAction().

◆ on_buttonClear_clicked

void DlgCustomKeyboardImp::on_buttonClear_clicked ( )
protectedslot

Clears the accelerator of the selected command.

References setShortcutOfCurrentAction().

◆ on_buttonReset_clicked

◆ on_buttonResetAll_clicked

void DlgCustomKeyboardImp::on_buttonResetAll_clicked ( )
protectedslot

◆ on_categoryBox_activated

void DlgCustomKeyboardImp::on_categoryBox_activated ( int  index)
protectedslot

◆ on_commandTreeWidget_currentItemChanged

void DlgCustomKeyboardImp::on_commandTreeWidget_currentItemChanged ( QTreeWidgetItem item)
protectedslot

◆ on_editShortcut_textChanged

◆ onAddMacroAction

◆ onModifyMacroAction

◆ onRemoveMacroAction

void DlgCustomKeyboardImp::onRemoveMacroAction ( const QByteArray &  macro)
protectedslot

◆ setShortcutOfCurrentAction()

◆ showEvent()

void DlgCustomKeyboardImp::showEvent ( QShowEvent *  e)
protected

The documentation for this class was generated from the following files: