Gui::Dialog::DlgCustomActionsImp Class Reference

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)
 

Detailed Description

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.

See also
Gui::Action
MacroCommand
Command
Author
Werner Mayer

Constructor & Destructor Documentation

◆ DlgCustomActionsImp()

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

Destroys the object and frees any allocated resources.

Member Function Documentation

◆ addMacroAction

void Gui::Dialog::DlgCustomActionsImp::addMacroAction ( const QByteArray &  )
signal

◆ changeEvent()

void DlgCustomActionsImp::changeEvent ( QEvent e)
protectedvirtual

◆ event()

bool DlgCustomActionsImp::event ( QEvent e)
protected

◆ modifyMacroAction

void Gui::Dialog::DlgCustomActionsImp::modifyMacroAction ( const QByteArray &  )
signal

◆ on_actionListWidget_itemActivated

◆ on_buttonAddAction_clicked

◆ on_buttonChoosePixmap_clicked

void DlgCustomActionsImp::on_buttonChoosePixmap_clicked ( )
protectedslot

Opens a iconview to select a pixmap.

References Gui::Dialog::IconDialog::currentItem().

◆ on_buttonRemoveAction_clicked

void DlgCustomActionsImp::on_buttonRemoveAction_clicked ( )
protectedslot

◆ on_buttonReplaceAction_clicked

◆ onAddMacroAction

void DlgCustomActionsImp::onAddMacroAction ( const QByteArray &  )
protectedslot

◆ onModifyMacroAction

void DlgCustomActionsImp::onModifyMacroAction ( const QByteArray &  )
protectedslot

◆ onRemoveMacroAction

void DlgCustomActionsImp::onRemoveMacroAction ( const QByteArray &  )
protectedslot

◆ removeMacroAction

void Gui::Dialog::DlgCustomActionsImp::removeMacroAction ( const QByteArray &  )
signal

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