source: src-qt4/EasyPBI/mainGUI.h @ 1620346

9.1-release9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 1620346 was 1620346, checked in by Kris Moore <kris@…>, 12 months ago

Initial import of PC-BSD /current/ SVN repo

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[1620346]1#ifndef MAINGUI_H
2#define MAINGUI_H
3
4#include <QMainWindow>
5#include <QFileDialog>
6#include <QInputDialog>
7#include <QMessageBox>
8#include <QString>
9#include <QDir>
10#include <QProcess>
11#include <QTimer>
12#include <QDateTime>
13#include <QRadioButton>
14#include <QMenu>
15#include <QFileDialog>
16#include <QTreeWidget>
17#include <QTreeWidgetItem>
18
19#include "modBuild.h"
20#include "backend.h"
21#include "config.h"
22
23namespace Ui {
24    class MainGUI;
25}
26
27class MainGUI : public QMainWindow
28{
29    Q_OBJECT
30
31public:
32    explicit MainGUI(QWidget *parent = 0);
33    ~MainGUI();
34
35
36private slots:
37    //general purpose functions
38    void slotSingleInstance();
39    void refreshGUI(QString);
40    //menubar functions
41    void on_actionGet_Ports_triggered();
42    void on_actionExit_triggered();
43    void on_actionNew_Module_triggered();
44    void on_actionLoad_Module_triggered();
45    void on_actionPreferences_triggered();
46    void on_actionPackage_Module_triggered();
47    void on_actionFreeBSD_Ports_triggered();
48    void on_actionPBI_Modules_triggered();
49    void on_actionAbout_EasyPBI_triggered();
50    //editor functions
51    void slotModTabChanged(int);
52    //pbi.conf functions
53    void on_push_change_makeport_clicked();
54    void on_push_change_progdir_clicked();
55    void slotAddMakeOption(QAction*);
56    void on_push_addportbefore_clicked();
57    void on_push_rmportbefore_clicked();
58    void on_push_addportafter_clicked();
59    void on_push_rmportafter_clicked();
60    void on_push_config_save_clicked();
61    //resources functions
62    void slotResourceChanged();
63    void on_push_resources_add_clicked();
64    void on_push_resources_remove_clicked();
65    void on_push_resources_mkwrapper_clicked();
66    void slotResourceScriptSaved();
67    //XDG functions
68    void slotXdgTypeChanged();
69    void slotXdgFileChanged();
70    void slotAddMenuCat(QAction*);
71    void slotAddBin(QAction*);
72    void on_push_xdg_remove_clicked();
73    void on_push_xdg_savechanges_clicked();
74    void on_push_xdg_savenew_clicked();
75    void on_push_xdg_clearentry_clicked();
76    //Scripts functions
77    void slotScriptChanged(int);
78    void on_push_scripts_create_clicked();
79    void on_push_scripts_remove_clicked();
80    void on_push_scripts_save_clicked();
81    //External-Links functions
82    void on_push_el_add_clicked();
83    void on_push_el_remove_clicked();
84    void slotELSetFile(QAction*);
85    void slotELSetType(QAction*);
86    //PBI Build functions
87    void on_push_build_start_clicked();
88    void on_push_build_stop_clicked();
89    void on_push_build_save_clicked();
90    void slotUpdatePBIBuild();
91    void slotPBIbuildFinished(int,QProcess::ExitStatus);
92    void slotKillPBIBuild();
93    void slotBuildError(QProcess::ProcessError);
94
95
96private:
97    Ui::MainGUI *ui;
98    ModBuild *currentModule;
99    Config *settings;
100    QLineEdit *line_module;
101    QRadioButton *radio_module_port, *radio_module_local;
102    QMenu menu_addOpt, menu_elOpts, menu_validMenuCats, menu_bins, menu_el_bins;
103
104    QString PBI_BUILDING_NOW;
105    bool PBI_BUILD_TERMINATED;
106    QProcess *p;
107
108    void SetupDefaults();
109    bool isValidPort(QString);
110    void checkMime();
111
112};
113
114#endif // MAINGUI_H
Note: See TracBrowser for help on using the repository browser.