author | josef <josef> | 2002-10-04 19:44:46 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-04 19:44:46 (UTC) |
commit | dc0344e987ba9b386056dd7bab7c5e34922eff5c (patch) (side-by-side diff) | |
tree | 260ac8afe05e87634088dbae4256315d64481844 /noncore/apps/opie-console/profileeditordialog.h | |
parent | 4710de046588f0eab2ea08e74a829c29fe238ed0 (diff) | |
download | opie-dc0344e987ba9b386056dd7bab7c5e34922eff5c.zip opie-dc0344e987ba9b386056dd7bab7c5e34922eff5c.tar.gz opie-dc0344e987ba9b386056dd7bab7c5e34922eff5c.tar.bz2 |
- first stub for configuration dialog
- does not yet use metafactory, this is next on my todo list
Doh! got my account right, finally :)
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.h') (more/less context) (show 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 |