summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditordialog.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditordialog.h34
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;
9class EditBase; 9class EditBase;
10class QTabWidget; 10class QTabWidget;
11class QHBoxLayout; 11class QHBoxLayout;
12class ProfileEditorDialog : public QDialog { 12class QLineEdit;
13class QComboBox;
14class QLabel;
15
16class ProfileEditorDialog : public QTabDialog {
13 Q_OBJECT 17 Q_OBJECT
14public: 18public:
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
37public slots:
38 void slotOk();
39 void slotCancel();
40
41 void slotDevice(int id);
42
19private: 43private:
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