author | drw <drw> | 2004-12-21 17:56:04 (UTC) |
---|---|---|
committer | drw <drw> | 2004-12-21 17:56:04 (UTC) |
commit | 23fa4508dabaf07a67e1e9bd9e66a7088a014ad0 (patch) (side-by-side diff) | |
tree | 37c602b938dff7be3e2e76658497507fbf53d3eb /noncore/settings/packagemanager/oipkgconfigdlg.h | |
parent | 769f2a09ccfcc639a87600ecb046e9140fe2f691 (diff) | |
download | opie-23fa4508dabaf07a67e1e9bd9e66a7088a014ad0.zip opie-23fa4508dabaf07a67e1e9bd9e66a7088a014ad0.tar.gz opie-23fa4508dabaf07a67e1e9bd9e66a7088a014ad0.tar.bz2 |
Reworked server config tab UI and included option to support src/gz feeds
Diffstat (limited to 'noncore/settings/packagemanager/oipkgconfigdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/oipkgconfigdlg.h | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/noncore/settings/packagemanager/oipkgconfigdlg.h b/noncore/settings/packagemanager/oipkgconfigdlg.h index a4e4f82..076a181 100644 --- a/noncore/settings/packagemanager/oipkgconfigdlg.h +++ b/noncore/settings/packagemanager/oipkgconfigdlg.h @@ -41,19 +41,20 @@ _;:, .> :=|. This program is free software; you can #include "oipkg.h" class QCheckBox; class QComboBox; class QLineEdit; class QListBox; +class QPushButton; class OIpkgConfigDlg : public QDialog { Q_OBJECT public: - OIpkgConfigDlg( OIpkg *ipkg = 0x0, bool installOptions = false, QWidget *parent = 0x0 ); + OIpkgConfigDlg( OIpkg *ipkg = 0l, bool installOptions = false, QWidget *parent = 0l ); protected slots: void accept(); void reject(); private: @@ -78,16 +79,15 @@ private: QWidget *m_serverWidget; // Widget containing server configuration controls QWidget *m_destWidget; // Widget containing destination configuration controls QWidget *m_proxyWidget; // Widget containing proxy configuration controls QWidget *m_optionsWidget; // Widget containing ipkg execution configuration controls // Server configuration UI controls - QListBox *m_serverList; // Server list selection - QLineEdit *m_serverName; // Server name edit box - QLineEdit *m_serverLocation; // Server location URL edit box - QCheckBox *m_serverActive; // Activate server check box + QListBox *m_serverList; // Server list selection + QPushButton *m_serverEditBtn; // Server edit button + QPushButton *m_serverDeleteBtn; // Server edit button // Destination configuration UI controls QListBox *m_destList; // Destination list selection QLineEdit *m_destName; // Destination name edit box QLineEdit *m_destLocation; // Destination location URL edit box QCheckBox *m_destActive; // Activate destination check box @@ -111,22 +111,44 @@ private: void initDestinationWidget(); void initProxyWidget(); void initOptionsWidget(); void initData(); - OConfItem *findConfItem( OConfItem::Type type = OConfItem::NotDefined, const QString &name = 0x0 ); + OConfItem *findConfItem( OConfItem::Type type = OConfItem::NotDefined, + const QString &name = QString::null ); private slots: - void slotServerEdit( int index ); + void slotServerSelected( int index ); void slotServerNew(); + void slotServerEdit(); void slotServerDelete(); - void slotServerUpdate(); +// void slotServerUpdate(); void slotDestEdit( int index ); void slotDestNew(); void slotDestDelete(); void slotDestSelectPath(); void slotDestUpdate(); }; +class OIpkgServerDlg : public QDialog +{ + Q_OBJECT + +public: + OIpkgServerDlg( OConfItem *server = 0l, QWidget *parent = 0l ); + +protected slots: + void accept(); + +private: + OConfItem *m_server; + + // UI controls + QLineEdit *m_name; // Server name edit box + QLineEdit *m_location; // Server location URL edit box + QCheckBox *m_compressed; // Indicates whether the server is a 'src/gz' feed + QCheckBox *m_active; // Indicates whether the server is activated +}; + #endif |