Gui::Dialog::DlgCustomActionsImp Class Reference

This class implements the creation of user defined actions executing a recorded macro. More...

#include <DlgActionsImp.h>

Inheritance diagram for Gui::Dialog::DlgCustomActionsImp:
Gui::Dialog::CustomizeActionPage Gui::Dialog::Ui_DlgCustomActions

List of all members.

Signals

void addMacroAction (const QByteArray &)
void modifyMacroAction (const QByteArray &)
void removeMacroAction (const QByteArray &)

Public Member Functions

 DlgCustomActionsImp (QWidget *parent=0)
 Constructs a DlgCustomActionsImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
 ~DlgCustomActionsImp ()
 Destroys the object and frees any allocated resources.

Protected Slots

void on_actionListWidget_itemActivated (QTreeWidgetItem *i)
 Enables/disables buttons for deletion.
void on_buttonAddAction_clicked ()
 Adds a custom action.
void on_buttonChoosePixmap_clicked ()
 Opens a iconview to select a pixmap.
void on_buttonRemoveAction_clicked ()
 Deletes a custom action.
void on_buttonReplaceAction_clicked ()
 Shows the setup of the action.
void onAddMacroAction (const QByteArray &)
void onModifyMacroAction (const QByteArray &)
void onRemoveMacroAction (const QByteArray &)

Protected Member Functions

void changeEvent (QEvent *e)
bool event (QEvent *e)
 Trigger for reparent event.
void showEvent (QShowEvent *e)
 Displays this page.

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

Definition at line 42 of file DlgActionsImp.h.


Constructor & Destructor Documentation

DlgCustomActionsImp::DlgCustomActionsImp ( QWidget *  parent = 0  ) 

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.

Definition at line 54 of file DlgActionsImp.cpp.

References Gui::Dialog::Ui_DlgCustomActions::actionListWidget, Gui::Dialog::Ui_DlgCustomActions::actionMacros, App::GetApplication(), App::Application::getUserAppDataDir(), and Gui::Dialog::Ui_DlgCustomActions::setupUi().

DlgCustomActionsImp::~DlgCustomActionsImp (  ) 

Destroys the object and frees any allocated resources.

Definition at line 73 of file DlgActionsImp.cpp.


Member Function Documentation

void Gui::Dialog::DlgCustomActionsImp::addMacroAction ( const QByteArray &   )  [signal]
void DlgCustomActionsImp::changeEvent ( QEvent *  e  )  [protected, virtual]
bool DlgCustomActionsImp::event ( QEvent *  e  )  [protected]

Trigger for reparent event.

Reimplemented from Gui::Dialog::CustomizeActionPage.

Definition at line 91 of file DlgActionsImp.cpp.

References addMacroAction(), draftlibs::fcgeo::connect(), modifyMacroAction(), and removeMacroAction().

void Gui::Dialog::DlgCustomActionsImp::modifyMacroAction ( const QByteArray &   )  [signal]
void DlgCustomActionsImp::on_actionListWidget_itemActivated ( QTreeWidgetItem *  i  )  [protected, slot]
void DlgCustomActionsImp::on_buttonAddAction_clicked (  )  [protected, slot]
void DlgCustomActionsImp::on_buttonChoosePixmap_clicked (  )  [protected, slot]

Opens a iconview to select a pixmap.

Definition at line 434 of file DlgActionsImp.cpp.

References Gui::Dialog::IconDialog::currentItem(), and Gui::Dialog::Ui_DlgCustomActions::pixmapLabel.

void DlgCustomActionsImp::on_buttonRemoveAction_clicked (  )  [protected, slot]
void DlgCustomActionsImp::on_buttonReplaceAction_clicked (  )  [protected, slot]
void DlgCustomActionsImp::onAddMacroAction ( const QByteArray &   )  [protected, virtual, slot]

Implements Gui::Dialog::CustomizeActionPage.

Definition at line 126 of file DlgActionsImp.cpp.

void DlgCustomActionsImp::onModifyMacroAction ( const QByteArray &   )  [protected, virtual, slot]

Implements Gui::Dialog::CustomizeActionPage.

Definition at line 136 of file DlgActionsImp.cpp.

void DlgCustomActionsImp::onRemoveMacroAction ( const QByteArray &   )  [protected, virtual, slot]

Implements Gui::Dialog::CustomizeActionPage.

Definition at line 131 of file DlgActionsImp.cpp.

void Gui::Dialog::DlgCustomActionsImp::removeMacroAction ( const QByteArray &   )  [signal]
void DlgCustomActionsImp::showEvent ( QShowEvent *  e  )  [protected]

Displays this page.

If no macros were found a message box appears.

Definition at line 81 of file DlgActionsImp.cpp.

References Gui::Dialog::Ui_DlgCustomActions::actionMacros.


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

Generated on Wed Nov 23 19:02:06 2011 for FreeCAD by  doxygen 1.6.1