~ubuntu-branches/ubuntu/edgy/psi/edgy

« back to all changes in this revision

Viewing changes to src/options/toolbardlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2004-06-15 00:10:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040615001041-enywb6pcpe4sjsw6
Tags: 0.9.2-1
* New upstream release
* Set KDEDIR for ./configure so kde specific files get installed
* Don't install libpsiwidgets.so. It got installed in /usr/share
  where it doesn't belong. May be included (at a better location)
  later.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TOOLBARDLG_H
 
2
#define TOOLBARDLG_H
 
3
 
 
4
#include <qdialog.h>
 
5
 
 
6
class PsiCon;
 
7
class QToolBar;
 
8
struct Options;
 
9
class QAction;
 
10
class IconButton;
 
11
class QListView;
 
12
class QListViewItem;
 
13
 
 
14
class ToolbarDlg : public QDialog
 
15
{
 
16
        Q_OBJECT
 
17
public:
 
18
        ToolbarDlg(PsiCon *, QWidget *parent = 0, const char *name = 0);
 
19
        ~ToolbarDlg();
 
20
 
 
21
        void setCurrentToolbar(QToolBar *);
 
22
 
 
23
signals:
 
24
        void applyOptions(const Options &);
 
25
 
 
26
private slots:
 
27
        void toolbarAdd();
 
28
        void toolbarDelete();
 
29
        void addToolbarAction(QListView *, QString name);
 
30
        void addToolbarAction(QListView *, const QAction *action, QString name);
 
31
        void toolbarSelectionChanged(int);
 
32
        void rebuildToolbarKeys();
 
33
        void toolbarNameChanged();
 
34
        void toolbarActionUp();
 
35
        void toolbarActionDown();
 
36
        void toolbarAddAction();
 
37
        void toolbarRemoveAction();
 
38
        void toolbarDataChanged();
 
39
        QString actionName(const QAction *a);
 
40
        void toolbarPosition();
 
41
        void selAct_selectionChanged(QListViewItem *);
 
42
        void avaAct_selectionChanged(QListViewItem *);
 
43
 
 
44
        void doApply();
 
45
        void toolbarPositionApply();
 
46
 
 
47
        void dataChangedSlot();
 
48
 
 
49
        void applyOptions(Options *opt);
 
50
        void restoreOptions(const Options *opt);
 
51
 
 
52
signals:
 
53
        void dataChanged();
 
54
 
 
55
private:
 
56
        void updateArrows();
 
57
 
 
58
        QWidget *w;
 
59
        Options *opt;
 
60
        PsiCon *psi;
 
61
        bool noDirty;
 
62
        IconButton *pb_apply;
 
63
};
 
64
 
 
65
#endif