From 23fa4508dabaf07a67e1e9bd9e66a7088a014ad0 Mon Sep 17 00:00:00 2001 From: drw Date: Tue, 21 Dec 2004 17:56:04 +0000 Subject: Reworked server config tab UI and included option to support src/gz feeds --- (limited to 'noncore/settings/packagemanager/oipkgconfigdlg.h') 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 @@ -44,13 +44,14 @@ 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(); @@ -81,10 +82,9 @@ private: 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 @@ -114,13 +114,15 @@ private: 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(); @@ -129,4 +131,24 @@ private slots: 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 -- cgit v0.9.0.2