source: src-qt4/EasyPBI/mainGUI.h

Last change on this file was 975b8be, checked in by Ken Moore <ken@…>, 4 months ago

Get the application binaries usable within the xdg-editor tab of the main GUI again. This should help people create desktop/menu entries again.

  • Property mode set to 100644
File size: 2.9 KB
Line 
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 "backend.h"
20#include "config.h"
21#include "PBIModule.h"
22#include "ModuleUtils.h"
23#include "pkgSelect.h"
24#include "bulkModDialog.h"
25
26namespace Ui {
27    class MainGUI;
28}
29
30class MainGUI : public QMainWindow
31{
32    Q_OBJECT
33
34public:
35    explicit MainGUI(QWidget *parent = 0);
36    ~MainGUI();
37
38    void loadModule(QString confFile);
39
40private slots:
41    //general purpose functions
42    void slotSingleInstance();
43    void refreshGUI(QString);
44    //menubar functions
45    void on_actionBulk_Module_Creator_triggered();
46    void on_actionExit_triggered();
47    void on_actionNew_Module_triggered();
48    void on_actionLoad_Module_triggered();
49    void on_actionLoad_Files_triggered();
50    void on_actionPreferences_triggered();
51    void on_actionPackage_Module_triggered();
52    void on_actionRefresh_Module_triggered();
53    void on_actionFreeBSD_Ports_triggered();
54    void on_actionPBI_Modules_triggered();
55    void on_actionAbout_EasyPBI_triggered();
56    //editor functions
57    void updateConfigVisibility();
58    void slotModTabChanged(int);
59    //pbi.conf functions
60    void on_push_change_makeport_clicked();
61    void on_tool_addportafter_clicked();
62    void on_tool_rmportafter_clicked();
63    void on_push_config_save_clicked();
64    void slotOptionChanged(QString tmp="");
65    void slotSetRepoType(QAction* act);
66    void on_tool_addplugin_clicked();
67    void on_tool_rmplugin_clicked();
68    void on_tool_addscreenshot_clicked();
69    void on_tool_rmscreenshot_clicked();
70    void on_tool_addsimilar_clicked();
71    void on_tool_rmsimilar_clicked();
72    void on_tool_showicon_clicked();
73    //XDG functions
74    void slotXdgTypeChanged();
75    void slotXdgFileChanged();
76    void slotAddMenuCat(QAction*);
77    void slotAddBin(QAction*);
78    void on_push_xdg_remove_clicked();
79    void on_push_xdg_savechanges_clicked();
80    void on_push_xdg_savenew_clicked();
81    void on_push_xdg_clearentry_clicked();
82    void slotXDGOptionChanged(QString tmp="");
83    //Scripts functions
84    void slotScriptChanged(int);
85    void on_push_scripts_create_clicked();
86    void on_push_scripts_remove_clicked();
87    void on_push_scripts_save_clicked();
88    void slotScriptModified();
89
90private:
91    Ui::MainGUI *ui;
92    PBIModule MODULE;
93    Config *settings;
94    QLineEdit *line_module;
95    QMenu menu_bins, menu_validMenuCats, menu_validRepoCats, menu_validRepoTypes, menu_portopts;
96    bool XDGUPDATING;
97    QString lastModuleDir;
98    QStringList pkgplist;
99
100    void SetupDefaults();
101    void checkMime();
102    QString getPortPackage(); //single selection mode
103    QStringList getPackages();  //multi-selection mode
104
105};
106
107#endif // MAINGUI_H
Note: See TracBrowser for help on using the repository browser.