summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditordialog.h
blob: 3b67bb30317e5ca033113948a04c19e48e41085f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef PROFILE_EDITOR_DIALOG
#define PROFILE_EDITOR_DIALOG

#include <qdialog.h>

#include "profile.h"

class MetaFactory;
class EditBase;
class QTabWidget;
class QHBoxLayout;
class QLineEdit;
class QComboBox;
class QLabel;
class ProfileDialogWidget;

class ProfileEditorDialog : public QDialog {
    Q_OBJECT
public:
    ProfileEditorDialog(MetaFactory* fact,
                        const Profile& prof );
    ProfileEditorDialog(MetaFactory* fact );
    ~ProfileEditorDialog();
    Profile profile()const;



public slots:
    void accept();

private slots:
    void slotConActivated(const QString& );
    void slotTermActivated( const QString& );
private:
    void initUI();
    QString profName()const;
    QCString profType()const;

    MetaFactory* m_fact;
    QHBoxLayout* m_lay;
    Profile m_prof;

    QLineEdit *m_name;
    QComboBox *m_conCmb, *m_termCmb;

    QWidget *m_tabCon, *m_tabTerm;
    ProfileDialogWidget* m_con, *m_term;
    QHBoxLayout *m_layCon, *m_layTerm;
};

#endif