~ubuntu-branches/ubuntu/saucy/merkaartor/saucy

« back to all changes in this revision

Viewing changes to src/Tools/ActionsDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2009-09-13 00:52:12 UTC
  • mto: (1.2.7 upstream) (0.1.3 upstream) (3.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090913005212-pjecal8zxm07x0fj
ImportĀ upstreamĀ versionĀ 0.14+svnfixes~20090912

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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