This class implements the creation of user defined actions executing a recorded macro. More...
#include <DlgActionsImp.h>
Signals | |
void | addMacroAction (const QByteArray &) |
void | modifyMacroAction (const QByteArray &) |
void | removeMacroAction (const QByteArray &) |
Public Member Functions | |
DlgCustomActionsImp (QWidget *parent=nullptr) | |
Constructs a DlgCustomActionsImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. More... | |
~DlgCustomActionsImp () | |
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_actionListWidget_itemActivated (QTreeWidgetItem *i) |
Enables/disables buttons for deletion. More... | |
void | on_buttonAddAction_clicked () |
Adds a custom action. More... | |
void | on_buttonChoosePixmap_clicked () |
Opens a iconview to select a pixmap. More... | |
void | on_buttonRemoveAction_clicked () |
Deletes a custom action. More... | |
void | on_buttonReplaceAction_clicked () |
Shows the setup of the action. 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) |
bool | event (QEvent *e) |
Trigger for reparent event. More... | |
Protected Member Functions inherited from Gui::Dialog::CustomizeActionPage | |
virtual void | changeEvent (QEvent *e)=0 |
bool | event (QEvent *e) |
This class implements the creation of user defined actions executing a recorded macro.
It is possible to use these actions in own toolbars or commandbars.
DlgCustomActionsImp::DlgCustomActionsImp | ( | QWidget * | parent = nullptr | ) |
Constructs a DlgCustomActionsImp 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 App::GetApplication(), App::Application::getHomePath(), and App::Application::getUserMacroDir().
DlgCustomActionsImp::~DlgCustomActionsImp | ( | ) |
Destroys the object and frees any allocated resources.
|
signal |
Referenced by event(), and on_buttonAddAction_clicked().
|
protectedvirtual |
Implements Gui::Dialog::CustomizeActionPage.
Trigger for reparent event.
References addMacroAction(), draftgeoutils.intersections::connect(), modifyMacroAction(), and removeMacroAction().
|
signal |
Referenced by event(), and on_buttonReplaceAction_clicked().
|
protectedslot |
Enables/disables buttons for deletion.
References Gui::BitmapFactory(), Gui::Application::commandManager(), Gui::CommandBase::getAccel(), Gui::CommandManager::getCommandByName(), Gui::CommandBase::getMenuText(), Gui::CommandBase::getPixmap(), Gui::MacroCommand::getScriptName(), Gui::CommandBase::getStatusTip(), Gui::CommandBase::getToolTipText(), Gui::CommandBase::getWhatsThis(), Gui::Application::Instance, and Gui::BitmapFactoryInst::pixmap().
|
protectedslot |
Adds a custom action.
References Gui::CommandManager::addCommand(), addMacroAction(), Gui::Application::commandManager(), Gui::Application::Instance, Gui::CommandManager::newMacroName(), Gui::CommandBase::setAccel(), Gui::CommandBase::setMenuText(), Gui::CommandBase::setPixmap(), Gui::MacroCommand::setScriptName(), Gui::CommandBase::setStatusTip(), Gui::CommandBase::setToolTipText(), and Gui::CommandBase::setWhatsThis().
|
protectedslot |
Opens a iconview to select a pixmap.
References Gui::Dialog::IconDialog::currentItem().
|
protectedslot |
Deletes a custom action.
References Gui::Application::commandManager(), Gui::CommandManager::getGroupCommands(), Gui::Application::Instance, Gui::CommandManager::removeCommand(), and removeMacroAction().
|
protectedslot |
Shows the setup of the action.
References Gui::BitmapFactory(), Gui::Application::commandManager(), Gui::CommandBase::getAccel(), Gui::CommandBase::getAction(), Gui::CommandManager::getCommandByName(), Gui::CommandBase::getMenuText(), Gui::CommandBase::getPixmap(), Gui::CommandBase::getStatusTip(), Gui::CommandBase::getToolTipText(), Gui::CommandBase::getWhatsThis(), Gui::Application::Instance, modifyMacroAction(), Gui::BitmapFactoryInst::pixmap(), Gui::CommandBase::setAccel(), Gui::CommandBase::setMenuText(), Gui::CommandBase::setPixmap(), Gui::MacroCommand::setScriptName(), Gui::CommandBase::setStatusTip(), Gui::CommandBase::setToolTipText(), and Gui::CommandBase::setWhatsThis().
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
signal |
Referenced by event(), and on_buttonRemoveAction_clicked().