src/config.h

changeset 10
bc1414343e19
parent 6
67b6ef6917ba
child 13
9bdddd2ccde6
equal deleted inserted replaced
9:f9893eea978b 10:bc1414343e19
3 3
4 #include <QDialog> 4 #include <QDialog>
5 #include "main.h" 5 #include "main.h"
6 #include "types.h" 6 #include "types.h"
7 7
8 class QNetworkReply;
9 class QHBoxLayout;
10 class QLabel;
11 class QAbstractButton;
8 class QLineEdit; 12 class QLineEdit;
9 class Ui_ConfigBox; 13 class Ui_ConfigBox;
14 class QNetworkAccessManager;
10 15
11 class ConfigBox : public QDialog { 16 class ConfigBox : public QDialog {
12 Q_OBJECT 17 Q_OBJECT
13 18
14 public: 19 public:
15 explicit ConfigBox( QWidget* parent = null, Qt::WindowFlags f = 0 ); 20 explicit ConfigBox( QWidget* parent = null, Qt::WindowFlags f = 0 );
16 virtual ~ConfigBox(); 21 virtual ~ConfigBox();
17 void addPath( str path ); 22 void addPath( str path );
18 void initFromSettings(); 23 void initFromSettings();
24 void saveSettings();
25 void initVersions();
26
27 static str getBinaryPath (QWidget* parent);
19 28
20 public slots: 29 public slots:
21 void addPath(); 30 void addPath();
22 void findPath(); 31 void findPath();
23 void delPath(); 32 void delPath();
24 void findZanBinary(); 33 void findZanBinary();
25 void okPressed(); 34 void buttonPressed( QAbstractButton* btn );
26 void cancelPressed();
27 35
28 private: 36 private:
29 Ui_ConfigBox* ui; 37 Ui_ConfigBox* ui;
30 list<QLineEdit*> m_zanBinaries; 38 list<QLineEdit*> m_zanBinaries;
39 QNetworkAccessManager* m_nam;
40 QNetworkReply* m_reply;
31 }; 41 };
32 42
33 #endif // CONFIG_H 43 #endif // CONFIG_H

mercurial