~lubuntu-dev/juffed/trunk

« back to all changes in this revision

Viewing changes to plugins/keybindings/KeysPage.h

  • Committer: Mikhail Murzin
  • Date: 2012-01-31 01:33:22 UTC
  • Revision ID: git-v1:28dda15acf875c1565ffd527d8d4e8daa88ac487
Added plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __KEYS_PAGE_H__
 
2
#define __KEYS_PAGE_H__
 
3
 
 
4
#include <QList>
 
5
 
 
6
#include "ui_KeysPage.h"
 
7
#include "CommandStorageInt.h"
 
8
 
 
9
class KeysPage : public QWidget {
 
10
Q_OBJECT
 
11
public:
 
12
        KeysPage(CommandStorageInt*);
 
13
 
 
14
        void init();
 
15
        void apply();
 
16
 
 
17
protected:
 
18
        virtual void keyPressEvent(QKeyEvent*);
 
19
 
 
20
private slots:
 
21
        void onItemDoubleClicked(QTreeWidgetItem*, int);
 
22
 
 
23
private:
 
24
        void restore();
 
25
 
 
26
        Ui::KeysPage ui;
 
27
        QTreeWidgetItem* cur_;
 
28
        QString oldText_;
 
29
        QList<int> changedItems_;
 
30
        CommandStorageInt* storage_;
 
31
};
 
32
 
 
33
#endif /* __KEYS_PAGE_H__ */