oopapidocs  2.0
actiontableeditor.h
00001 #ifndef ACTIONTABLEEDITOR_H
00002 #define ACTIONTABLEEDITOR_H
00003 #include "actioneditor_export.h"
00004 #include <QDialog>
00005 #include <QList>
00006 #include "actioneditor_export.h"
00007 
00008 class QModelIndex;
00009 class QAction;
00010 class QSortFilterProxyModel;
00011 class ActionTableModel;
00012 
00013 namespace Ui {
00014   class ActionTableEditor;   /* forward namespace class declaration */
00015 };
00016 
00025 class ACTIONEDITOR_EXPORT ActionTableEditor : public QDialog {
00026 
00027         Q_OBJECT
00028  public:
00031         explicit ActionTableEditor(QWidget* parent=0);
00032 
00034         explicit ActionTableEditor(QList<QAction*> actions, QWidget* parent=0);
00035 
00036         virtual ~ActionTableEditor();
00037 
00040         static QList<QAction*> allActions();
00041 
00045         static void restoreShortcuts(QList<QAction*> actions = allActions()) ;
00046 
00047 protected slots:
00048         void on_m_tableView_activated(const QModelIndex& idx);      /* Auto-connected slot */
00049         void on_m_filterField_textChanged(const QString& newText);  /* Auto-connected slot */
00051         void accept();
00052 
00053 protected:
00054         void setupSortFilter();
00055         void changeEvent(QEvent* e);
00056 
00057 private:
00058         ActionTableModel* m_model;
00059         QSortFilterProxyModel* m_sortFilterProxy;
00060         Ui::ActionTableEditor* m_ui;            /* Designer ui object */
00061         QList<QAction*> m_changedActions;
00062 };
00063 
00064 #endif        //  #ifndef ACTIONTABLEEDITOR_H
 All Classes Namespaces Functions Enumerations