Scribus
Open source desktop publishing at your fingertips
runscriptdialog.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef _RUNSCRIPTDIALOG_H
8 #define _RUNSCRIPTDIALOG_H
9 
10 // Pulls in Python.h
11 // #include "cmdvar.h"
12 #include "ui_runscriptdialog.h"
13 
14 
19 class RunScriptDialog : public QDialog, public Ui::RunScriptDialog
20 {
21  Q_OBJECT
22 
23  public:
24  RunScriptDialog(QWidget* parent, bool extEnable = false);
25  ~RunScriptDialog();
26 
28  bool extensionRequested();
30  QString selectedFile();
31 
32  protected:
33  // true id there is "scripter extensions" feature enabled
34  bool m_extEnable;
35 
36  static QString m_lastScriptDir;
37 
38  protected slots:
39  virtual void accept();
40 };
41 
42 #endif
Select a python script for execution.
Definition: runscriptdialog.h:19
bool extensionRequested()
Check if the user wanted the script run as an extension script.
Definition: runscriptdialog.cpp:40
QString selectedFile()
Return chosen filename.
Definition: runscriptdialog.cpp:48