1
0
Files
sarasacw-picture/app/actionmanager.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.4 KiB
C
Raw Normal View History

2025-06-25 21:55:08 +08:00
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net>
//
// SPDX-License-Identifier: MIT
2025-07-23 21:20:34 +08:00
#ifndef ACTIONMANAGER_H
#define ACTIONMANAGER_H
2025-07-23 21:20:34 +08:00
#include <QAction>
2025-07-23 21:20:34 +08:00
class MainWindow;
class PlaylistManager;
class GraphicsView;
2025-07-23 21:20:34 +08:00
/// Action Manager is separated from Main Window
/// to manage all actions specifically.
class ActionManager
{
public:
2025-06-25 21:55:08 +08:00
explicit ActionManager() = default;
~ActionManager() = default;
2025-07-23 21:20:34 +08:00
void setupAction(MainWindow * mainWindow);
void setupShortcuts();
public slots:
void updateActionState(PlaylistManager* pm, GraphicsView* gv);
2025-07-23 21:20:34 +08:00
public:
QAction *actionCopyPixmap;
QAction *actionCopyFilePath;
QAction *actionPrevPicture;
QAction *actionNextPicture;
2025-07-23 21:20:34 +08:00
QAction *actionActualSize;
QAction *actionFitToScreen;
QAction *actionFitByWidth;
QAction *actionFitByHeight;
QAction *actionZoomIn;
QAction *actionZoomOut;
QAction *actionFlipHorizontal;
QAction *actionFlipVertical;
QAction *actionRotateClockwise;
2024-07-31 19:41:51 +08:00
QAction *actionRotateCounterClockwise;
2025-07-23 21:20:34 +08:00
QAction *actionToggleAvoidResetTransform;
QAction *actionToggleCheckerboard;
QAction *actionTogglePauseAnimation;
QAction *actionAnimationNextFrame;
2025-07-23 21:20:34 +08:00
QAction *actionTrash;
2022-01-21 16:48:43 +08:00
QAction *actionLocateInFileManager;
QAction *actionProperties;
QAction *actionSettings;
QAction *actionHelp;
};
2025-07-23 21:20:34 +08:00
#endif // ACTIONMANAGER_H