1 //===========================================
2 //  Lumina-DE source code
3 //  Copyright (c) 2014, Ken Moore
4 //  Available under the 3-clause BSD license
5 //  See the LICENSE file for full details
6 //===========================================
7 //  This is the dialog for selecting an installed application
8 //===========================================
9 #ifndef _LUMINA_FILE_MANAGER_SCRIPT_SELECT_DIALOG_H
10 #define _LUMINA_FILE_MANAGER_SCRIPT_SELECT_DIALOG_H
11 
12 #include "globals.h"
13 
14 namespace Ui{
15 	class ScriptDialog;
16 };
17 
18 class ScriptDialog : public QDialog{
19 	Q_OBJECT
20 public:
21 	ScriptDialog(QWidget *parent = 0);
22 	~ScriptDialog();
23 
24 	//Main interaction functions
25 	bool isValid();
26 	QString icon();
27 	QString name();
28 	QString command();
29 
30 private:
31 	Ui::ScriptDialog *ui;
32 	bool ok;
33 
34 private slots:
35 	void on_pushApply_clicked();
36 	void on_pushCancel_clicked();
37 	void on_tool_getexec_clicked();
38 	void on_tool_geticon_clicked();
39 	void checkItems(bool firstrun = false);
40 };
41 #endif
42