author | josef <josef> | 2002-10-04 19:44:46 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-04 19:44:46 (UTC) |
commit | dc0344e987ba9b386056dd7bab7c5e34922eff5c (patch) (unidiff) | |
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) (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 @@ | |||
1 | #ifndef PROFILE_EDITOR_DIALOG | 1 | #ifndef PROFILE_EDITOR_DIALOG |
2 | #define PROFILE_EDITOR_DIALOG | 2 | #define PROFILE_EDITOR_DIALOG |
3 | 3 | ||
4 | #include <qdialog.h> | 4 | #include <qtabdialog.h> |
5 | 5 | ||
6 | #include "profile.h" | 6 | #include "profile.h" |
7 | 7 | ||
@@ -9,20 +9,48 @@ class MetaFactory; | |||
9 | class EditBase; | 9 | class EditBase; |
10 | class QTabWidget; | 10 | class QTabWidget; |
11 | class QHBoxLayout; | 11 | class QHBoxLayout; |
12 | class ProfileEditorDialog : public QDialog { | 12 | class QLineEdit; |
13 | class QComboBox; | ||
14 | class QLabel; | ||
15 | |||
16 | class ProfileEditorDialog : public QTabDialog { | ||
13 | Q_OBJECT | 17 | Q_OBJECT |
14 | public: | 18 | public: |
15 | ProfileEditorDialog(MetaFactory* fact, | 19 | ProfileEditorDialog(MetaFactory* fact, |
16 | const Profile& prof ); | 20 | const Profile& prof ); |
17 | ProfileEditorDialog(MetaFactory* fact ); | 21 | ProfileEditorDialog(MetaFactory* fact ); |
22 | ~ProfileEditorDialog(); | ||
18 | Profile profile()const; | 23 | Profile profile()const; |
24 | |||
25 | QString prof_name(); | ||
26 | QString prof_type(); | ||
27 | |||
28 | QString conn_device(); | ||
29 | int conn_baud(); | ||
30 | int conn_parity(); | ||
31 | int conn_databits(); | ||
32 | int conn_stopbits(); | ||
33 | int conn_flow(); | ||
34 | |||
35 | QString term_type(); | ||
36 | |||
37 | public slots: | ||
38 | void slotOk(); | ||
39 | void slotCancel(); | ||
40 | |||
41 | void slotDevice(int id); | ||
42 | |||
19 | private: | 43 | private: |
20 | void initUI(); | 44 | //void initUI(); |
21 | MetaFactory* m_fact; | 45 | MetaFactory* m_fact; |
22 | EditBase* m_base; | 46 | EditBase* m_base; |
23 | QTabWidget* m_tab; | 47 | QTabWidget* m_tab; |
24 | QHBoxLayout* m_lay; | 48 | QHBoxLayout* m_lay; |
25 | Profile m_prof; | 49 | Profile m_prof; |
50 | |||
51 | QLabel *frame_number; | ||
52 | QLineEdit *name_line, *frame_device_line, *frame_number_line; | ||
53 | QComboBox *terminal_box, *speed_box, *device_box; | ||
26 | }; | 54 | }; |
27 | 55 | ||
28 | #endif | 56 | #endif |