Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.h b/noncore/apps/opie-console/profileeditordialog.h index 5ccc691..f81354c 100644 --- a/noncore/apps/opie-console/profileeditordialog.h +++ b/noncore/apps/opie-console/profileeditordialog.h @@ -1,7 +1,7 @@ #ifndef PROFILE_EDITOR_DIALOG #define PROFILE_EDITOR_DIALOG -#include <qdialog.h> +#include <qtabdialog.h> #include "profile.h" @@ -9,20 +9,48 @@ class MetaFactory; class EditBase; class QTabWidget; class QHBoxLayout; -class ProfileEditorDialog : public QDialog { +class QLineEdit; +class QComboBox; +class QLabel; + +class ProfileEditorDialog : public QTabDialog { Q_OBJECT public: ProfileEditorDialog(MetaFactory* fact, const Profile& prof ); ProfileEditorDialog(MetaFactory* fact ); + ~ProfileEditorDialog(); Profile profile()const; + + QString prof_name(); + QString prof_type(); + + QString conn_device(); + int conn_baud(); + int conn_parity(); + int conn_databits(); + int conn_stopbits(); + int conn_flow(); + + QString term_type(); + +public slots: + void slotOk(); + void slotCancel(); + + void slotDevice(int id); + private: - void initUI(); + //void initUI(); MetaFactory* m_fact; EditBase* m_base; QTabWidget* m_tab; QHBoxLayout* m_lay; Profile m_prof; + + QLabel *frame_number; + QLineEdit *name_line, *frame_device_line, *frame_number_line; + QComboBox *terminal_box, *speed_box, *device_box; }; #endif |