SpikeStream Application Library
0.2
|
00001 #ifndef NETWORKDIALOG_H 00002 #define NETWORKDIALOG_H 00003 00004 //Qt includes 00005 #include <QDialog> 00006 #include <QLineEdit> 00007 00008 namespace spikestream { 00009 00011 class NetworkDialog : public QDialog { 00012 Q_OBJECT 00013 00014 public: 00015 NetworkDialog(QWidget* parent=0); 00016 NetworkDialog(const QString& name, const QString& description, QWidget* parent=0); 00017 ~NetworkDialog(); 00018 QString getName(); 00019 QString getDescription(); 00020 00021 00022 private slots: 00023 void okButtonPressed(); 00024 void cancelButtonPressed(); 00025 00026 00027 private: 00028 //==================== VARIABLES ==================== 00030 QLineEdit* nameLineEdit; 00031 00033 QLineEdit* descLineEdit; 00034 00036 bool addNetworkToDatabase; 00037 00038 00039 //==================== METHODS ==================== 00040 void buildGUI(const QString& name, const QString& description); 00041 }; 00042 } 00043 00044 #endif//NETWORKDIALOG_H 00045