Gui::Dialog::DlgMacroExecuteImp Class Reference

The DlgMacroExecuteImp class implements a dialog to execute or edit a recorded macro. More...

#include <DlgMacroExecuteImp.h>

Inheritance diagram for Gui::Dialog::DlgMacroExecuteImp:
Gui::Dialog::Ui_DlgMacroExecute Gui::WindowParameter

List of all members.

Public Slots

void on_createButton_clicked ()
 Creates a new macro file.
void on_deleteButton_clicked ()
 Deletes the selected macro file from your harddisc.
void on_editButton_clicked ()
 Opens the macro file in an editor.
void on_fileChooser_fileNameChanged (const QString &)
 Specify the location of your macro files.

Public Member Functions

void accept ()
 Executes the selected macro file.
 DlgMacroExecuteImp (QWidget *parent=0, Qt::WFlags fl=0)
 Constructs a DlgMacroExecuteImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
 ~DlgMacroExecuteImp ()
 Destroys the object and frees any allocated resources.

Protected Slots

void on_macroListBox_currentItemChanged (QTreeWidgetItem *)
 Selects a macro file in the list view.

Protected Member Functions

void fillUpList (void)
 Fills up the list with all macro files found in the specified location.

Protected Attributes

QString macroPath

Detailed Description

The DlgMacroExecuteImp class implements a dialog to execute or edit a recorded macro.

Author:
Jürgen Riegel

Definition at line 38 of file DlgMacroExecuteImp.h.


Constructor & Destructor Documentation

DlgMacroExecuteImp::DlgMacroExecuteImp ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Constructs a DlgMacroExecuteImp 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 56 of file DlgMacroExecuteImp.cpp.

References Gui::Dialog::Ui_DlgMacroExecute::fileChooser, fillUpList(), App::Application::getUserAppDataDir(), Gui::WindowParameter::getWindowParameter(), Gui::Dialog::Ui_DlgMacroExecute::macroListBox, macroPath, Gui::FileChooser::setFileName(), and Gui::Dialog::Ui_DlgMacroExecute::setupUi().

DlgMacroExecuteImp::~DlgMacroExecuteImp (  ) 

Destroys the object and frees any allocated resources.

Definition at line 76 of file DlgMacroExecuteImp.cpp.


Member Function Documentation

void DlgMacroExecuteImp::accept (  ) 
void DlgMacroExecuteImp::fillUpList ( void   )  [protected]

Fills up the list with all macro files found in the specified location.

Definition at line 84 of file DlgMacroExecuteImp.cpp.

References Gui::Dialog::Ui_DlgMacroExecute::macroListBox, and macroPath.

Referenced by DlgMacroExecuteImp(), and on_fileChooser_fileNameChanged().

void DlgMacroExecuteImp::on_createButton_clicked (  )  [slot]
void DlgMacroExecuteImp::on_deleteButton_clicked (  )  [slot]

Deletes the selected macro file from your harddisc.

Definition at line 197 of file DlgMacroExecuteImp.cpp.

References Gui::Dialog::Ui_DlgMacroExecute::macroListBox, and macroPath.

void DlgMacroExecuteImp::on_editButton_clicked (  )  [slot]
void DlgMacroExecuteImp::on_fileChooser_fileNameChanged ( const QString &  fn  )  [slot]

Specify the location of your macro files.

The default location is FreeCAD's home path.

Definition at line 130 of file DlgMacroExecuteImp.cpp.

References fillUpList(), Gui::WindowParameter::getWindowParameter(), and macroPath.

void DlgMacroExecuteImp::on_macroListBox_currentItemChanged ( QTreeWidgetItem *  item  )  [protected, slot]

Member Data Documentation


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