~ubuntu-branches/ubuntu/wily/psi/wily

« back to all changes in this revision

Viewing changes to src/options/opt_shortcuts.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:
28
28
class QTreeWidgetItem;
29
29
class QWidget;
30
30
 
 
31
class PsiOptions;
 
32
 
31
33
class OptionsTabShortcuts : public OptionsTab
32
34
{
33
35
        Q_OBJECT
36
38
        ~OptionsTabShortcuts();
37
39
 
38
40
        QWidget *widget();
39
 
        void applyOptions(Options *opt);
40
 
        void restoreOptions(const Options *opt);
 
41
        void applyOptions();
 
42
        void restoreOptions();
41
43
 
42
44
        typedef enum Kind {
43
45
                TopLevelItem = 1,
45
47
                KeyItem
46
48
        };
47
49
 
 
50
        bool stretchable() const {return true;};
 
51
 
48
52
private slots:
49
53
        void onAdd();
50
54
        void onRemove();
51
55
        void onEdit();
 
56
        void onRestoreDefaults();
52
57
        void onItemDoubleClicked(QTreeWidgetItem *item, int column);
53
58
        void onItemSelectionChanged();
54
59
        void onNewShortcutKey(QKeySequence key);
57
62
        void addTo(QTreeWidgetItem *shortcutItem);
58
63
        void grep();
59
64
        QString translateShortcut(QString comment);
 
65
        void readShortcuts(const PsiOptions *options);
60
66
 
61
67
        QWidget *w;
62
68
};