Last change
on this file since 2 was 2, checked in by dmik, 19 years ago |
Imported original Psi 0.10 sources from Affinix
|
File size:
1.3 KB
|
Line | |
---|
1 | #ifndef TOOLBARDLG_H
|
---|
2 | #define TOOLBARDLG_H
|
---|
3 |
|
---|
4 | #include <qdialog.h>
|
---|
5 |
|
---|
6 | class PsiCon;
|
---|
7 | class PsiToolBar;
|
---|
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(PsiToolBar *);
|
---|
22 |
|
---|
23 | signals:
|
---|
24 | void applyOptions(const Options &);
|
---|
25 |
|
---|
26 | private slots:
|
---|
27 | void toolbarAdd();
|
---|
28 | void toolbarDelete();
|
---|
29 | void addToolbarAction(QListView *, QString name, int toolbarId);
|
---|
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 | void rebuildToolbarList();
|
---|
52 |
|
---|
53 | signals:
|
---|
54 | void dataChanged();
|
---|
55 |
|
---|
56 | private:
|
---|
57 | void updateArrows();
|
---|
58 |
|
---|
59 | QWidget *w;
|
---|
60 | Options *opt;
|
---|
61 | PsiCon *psi;
|
---|
62 | bool noDirty;
|
---|
63 | IconButton *pb_apply;
|
---|
64 |
|
---|
65 | class Private;
|
---|
66 | Private *p;
|
---|
67 | };
|
---|
68 |
|
---|
69 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.