source: src-qt4/EasyPBI/preferencesDialog.h @ e177abf

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since e177abf was e177abf, checked in by Ken Moore <ken@…>, 20 months ago

Update EasyPBI to version 2.1
Changes: FreeBSD ports dialog merged into the settings dialog, save buttons now dynamicly enabled, use portsnap for all ports fetching/updating

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#ifndef _PREFERENCES_DIALOG_H
2#define _PREFERENCES_DIALOG_H
3
4#include <QDialog>
5#include <QFileDialog>
6#include <QString>
7#include <QDir>
8#include <QFileDialog>
9#include <QMessageBox>
10#include <QDateTime>
11#include "ui_preferencesDialog.h"
12#include "backend.h"
13#include "config.h"
14
15
16namespace Ui {
17    class PreferencesDialog;
18}
19
20class PreferencesDialog : public QDialog
21{
22    Q_OBJECT
23
24public:
25    explicit PreferencesDialog(QWidget *parent = 0);
26    virtual ~PreferencesDialog();
27
28private slots:
29    void resetGUI();
30    void updateGUI();
31    void on_buttonBox_accepted();
32    void on_buttonBox_rejected();
33    // PBI Settings Tab
34    void on_push_pbioutdir_clicked();
35    void on_push_sigfile_clicked();
36    void on_push_addpkg_clicked();
37    void on_push_rmpkg_clicked();
38    void on_push_clearcache_clicked();
39    void on_check_signpbi_stateChanged(int);
40    void on_check_usepkgcache_stateChanged(int);
41    // Paths Tab
42    void on_push_moduledir_clicked();
43    void on_push_icondir_clicked();
44    void on_push_defaulticon_clicked();
45    //Utilities Tab
46    void on_push_suutility_clicked();
47    void on_push_pbicreate_clicked();
48    void on_push_makeport_clicked();
49    void on_push_resetutils_clicked();
50    //Ports Tab
51    void on_list_portsDirectories_currentIndexChanged(int);
52    void on_line_otherPortsDir_textChanged(QString);
53    void on_tool_otherPortsDir_clicked();
54    void on_push_fetchPorts_clicked();
55    void on_push_updatePorts_clicked();
56    void updateStatusBar();
57    void processFinished(int,QProcess::ExitStatus);
58   
59
60private:
61    Ui::PreferencesDialog *ui;
62    Config *settings;
63    QProcess *process;
64   
65    QString getLastPortsUpdate(QString);
66    void fetchPorts(QString, bool);
67
68};
69
70#endif
Note: See TracBrowser for help on using the repository browser.