Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Protected Attributes
RunScriptDialog Class Reference

#include <runscriptdialog.h>

List of all members.

Public Member Functions

 RunScriptDialog (QWidget *parent, bool extEnable)
 ~RunScriptDialog ()
bool extensionRequested ()
 Check if the user wanted the script run as an extension script.

Protected Attributes

QCheckBox * extChk
bool extEnable

Detailed Description

Definition at line 18 of file runscriptdialog.h.

Constructor & Destructor Documentation

RunScriptDialog::RunScriptDialog ( QWidget *  parent = 0,
bool  extEnable = false 

Definition at line 12 of file runscriptdialog.cpp.

       QFileDialog(parent, "runScriptDialog", true)
       this->extEnable = extEnable;
       PrefsManager *prefsManager=PrefsManager::instance();
       setDir(!prefsManager->appPrefs.ScriptDir.isEmpty() ? prefsManager->appPrefs.ScriptDir : QDir::currentDirPath());
       setFilters( tr("Python Scripts (*.py *.PY);; All Files (*)"));

       if (extEnable)
              extChk = new QCheckBox( tr("Run as Extension Script", "run script dialog"), this);
              addWidgets(0, extChk, 0);

Here is the call graph for this function:

Definition at line 28 of file runscriptdialog.cpp.


Member Function Documentation

Check if the user wanted the script run as an extension script.

Definition at line 32 of file runscriptdialog.cpp.

       if (extEnable)
              return extChk->isChecked();
              return false;

Member Data Documentation

QCheckBox* RunScriptDialog::extChk [protected]

Definition at line 30 of file runscriptdialog.h.

Definition at line 31 of file runscriptdialog.h.

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