Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.h b/noncore/apps/opie-console/profileeditordialog.h index 18e2ec0..8e830f1 100644 --- a/noncore/apps/opie-console/profileeditordialog.h +++ b/noncore/apps/opie-console/profileeditordialog.h | |||
@@ -1,53 +1,50 @@ | |||
1 | #ifndef PROFILE_EDITOR_DIALOG | 1 | #ifndef PROFILE_EDITOR_DIALOG |
2 | #define PROFILE_EDITOR_DIALOG | 2 | #define PROFILE_EDITOR_DIALOG |
3 | 3 | ||
4 | #include <qtabdialog.h> | 4 | #include <qdialog.h> |
5 | 5 | ||
6 | #include "profile.h" | 6 | #include "profile.h" |
7 | 7 | ||
8 | class MetaFactory; | 8 | class MetaFactory; |
9 | class EditBase; | 9 | class EditBase; |
10 | class QTabWidget; | 10 | class QTabWidget; |
11 | class QHBoxLayout; | 11 | class QHBoxLayout; |
12 | class QLineEdit; | 12 | class QLineEdit; |
13 | class QComboBox; | 13 | class QComboBox; |
14 | class QLabel; | 14 | class QLabel; |
15 | class ProfileEditorPlugin; | 15 | class ProfileEditorPlugin; |
16 | 16 | ||
17 | class ProfileEditorDialog : public QTabDialog { | 17 | class ProfileEditorDialog : public QDialog { |
18 | Q_OBJECT | 18 | Q_OBJECT |
19 | public: | 19 | public: |
20 | ProfileEditorDialog(MetaFactory* fact, | 20 | ProfileEditorDialog(MetaFactory* fact, |
21 | const Profile& prof ); | 21 | const Profile& prof ); |
22 | ProfileEditorDialog(MetaFactory* fact ); | 22 | ProfileEditorDialog(MetaFactory* fact ); |
23 | ~ProfileEditorDialog(); | 23 | ~ProfileEditorDialog(); |
24 | Profile profile()const; | 24 | Profile profile()const; |
25 | 25 | ||
26 | QString prof_name(); | 26 | QString prof_name(); |
27 | QString prof_type(); | 27 | QString prof_type(); |
28 | 28 | ||
29 | public slots: | 29 | public slots: |
30 | void accept(); | 30 | void accept(); |
31 | //void slotOk(); | 31 | void slotDevice(int id); |
32 | void slotCancel(); | ||
33 | |||
34 | void slotDevice(int id); | ||
35 | 32 | ||
36 | private: | 33 | private: |
37 | void initUI(); | 34 | void initUI(); |
38 | 35 | ||
39 | MetaFactory* m_fact; | 36 | MetaFactory* m_fact; |
40 | EditBase* m_base; | 37 | EditBase* m_base; |
41 | QTabWidget* m_tab; | 38 | QTabWidget* m_tab; |
42 | QHBoxLayout* m_lay; | 39 | QHBoxLayout* m_lay; |
43 | Profile m_prof; | 40 | Profile m_prof; |
44 | 41 | ||
45 | QLineEdit *name_line; | 42 | QLineEdit *name_line; |
46 | QComboBox *device_box; | 43 | QComboBox *device_box; |
47 | 44 | ||
48 | QWidget *plugin_base; | 45 | QWidget *plugin_base; |
49 | ProfileEditorPlugin *plugin_plugin; | 46 | ProfileEditorPlugin *plugin_plugin; |
50 | QHBoxLayout *plugin_layout; | 47 | QHBoxLayout *plugin_layout; |
51 | }; | 48 | }; |
52 | 49 | ||
53 | #endif | 50 | #endif |