1 #ifndef ACTIONSDIALOG_H 2 #define ACTIONSDIALOG_H 3 4 #include <qdialog.h> 5 #include <qlist.h> 6 7 class QAction; 8 class QTableWidget; 9 class QTableItem; 10 class QWidget; 11 class MainWindow; 12 13 class ActionsDialog : public QDialog 14 { 15 Q_OBJECT 16 17 public: 18 ActionsDialog(QList<QAction *>& actions, MainWindow *parent = 0); 19 20 protected slots: 21 void accept(); 22 void resetToDefault(); 23 24 private slots: 25 void recordAction(int row, int column); 26 void validateAction(int row, int column); 27 void importShortcuts(); 28 void exportShortcuts(); 29 30 private: 31 MainWindow* Main; 32 QString oldAccelText; 33 QTableWidget *actionsTable; 34 QList<QAction*> actionsList; 35 }; 36 37 #endif 38