oopapidocs  2.0
actioneditordialog.h
00001 #ifndef ACTIONEDITORDIALOG_H
00002 #define ACTIONEDITORDIALOG_H
00003 
00004 #include "ui_actioneditordialog.h"
00005 class QAction;
00006 #include <QShortcut>
00007 #include <QString>
00008 #include <QDialog>
00009 #include <QList>
00010 #include <QKeySequence>
00011 #include "actioneditor_export.h"
00012 
00018 class ACTIONEDITOR_EXPORT ActionEditorDialog : public QDialog, private Ui::ActionEditorDialog {
00019         Q_OBJECT
00020 public:
00022         explicit ActionEditorDialog(QAction* action, QWidget* parent = 0);
00023         void keyPressEvent(QKeyEvent*);
00024 
00026         QKeySequence keySequence() const {return m_sequence;}
00027 
00028 protected slots:
00029         void on_m_clearButton_clicked();
00030         void updateUi();
00031 protected:
00032         void changeEvent(QEvent* e);
00033 private:
00034         QKeySequence m_sequence;
00035         QAction* m_action;
00036         QList<QPair<int, int> > m_events;
00037 
00038 };
00039 
00040 #endif // ACTIONEDITORDIALOG_H
 All Classes Namespaces Functions Enumerations