2021-01-24 00:07:58 +08:00
|
|
|
#ifndef ACTIONMANAGER_H
|
|
|
|
#define ACTIONMANAGER_H
|
|
|
|
|
|
|
|
#include <QAction>
|
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
|
|
|
|
class ActionManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ActionManager();
|
|
|
|
~ActionManager();
|
|
|
|
|
|
|
|
void setupAction(MainWindow * mainWindow);
|
|
|
|
void retranslateUi(MainWindow *MainWindow);
|
|
|
|
void setupShortcuts();
|
|
|
|
|
|
|
|
public:
|
2021-02-18 20:03:17 +08:00
|
|
|
QAction *actionZoomIn;
|
|
|
|
QAction *actionZoomOut;
|
2021-01-24 00:07:58 +08:00
|
|
|
QAction *actionCopyPixmap;
|
|
|
|
QAction *actionCopyFilePath;
|
|
|
|
QAction *actionPaste;
|
|
|
|
QAction *actionToggleStayOnTop;
|
|
|
|
QAction *actionToggleProtectMode;
|
|
|
|
QAction *actionSettings;
|
|
|
|
QAction *actionHelp;
|
|
|
|
QAction *actionProperties;
|
|
|
|
QAction *actionQuitApp;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ACTIONMANAGER_H
|