~ubuntu-branches/ubuntu/jaunty/psi/jaunty

« back to all changes in this revision

Viewing changes to src/psioptionseditor.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PSIOPTIONSEDITOR_H_
 
2
#define _PSIOPTIONSEDITOR_H_
 
3
 
 
4
 
 
5
#include <QtCore>
 
6
#include <QTreeView>
 
7
#include <QCheckBox>
 
8
#include <QLabel>
 
9
#include <QPushButton>
 
10
#include <QToolButton>
 
11
 
 
12
#include "optionstreemodel.h"
 
13
 
 
14
class PsiOptions;
 
15
 
 
16
class PsiOptionsEditor : public QWidget
 
17
{
 
18
        Q_OBJECT
 
19
public:
 
20
        PsiOptionsEditor(QWidget *parent=0);
 
21
        void bringToFront();
 
22
 
 
23
private slots:
 
24
        void tv_edit(const QModelIndex &idx);
 
25
        void selectionChanged(const QModelIndex &idx);
 
26
        void updateWidth();
 
27
        void add();
 
28
        void edit();
 
29
        void deleteit();
 
30
        void detach();
 
31
 
 
32
private:
 
33
        PsiOptions *o_;
 
34
        QTreeView* tv_;
 
35
        int tv_colWidth;
 
36
        OptionsTreeModel* tm_;
 
37
        QCheckBox* cb_;
 
38
        QLabel* lb_type;
 
39
        QLabel* lb_path;
 
40
        QLabel* lb_comment;
 
41
        QPushButton *pb_delete;
 
42
        QPushButton *pb_edit;
 
43
        QPushButton *pb_new;
 
44
        QToolButton *pb_detach;
 
45
};
 
46
 
 
47
 
 
48
 
 
49
#endif /* _PSIOPTIONSEDITOR_H_ */