| 
									
										
										
										
											2022-06-19 16:17:38 +08:00
										 |  |  | // SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // SPDX-License-Identifier: MIT
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-29 01:11:21 -04:00
										 |  |  |     static QIcon loadHidpiIcon(const QString &resp, QSize sz = QSize(32, 32)); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-24 00:07:58 +08:00
										 |  |  | public: | 
					
						
							| 
									
										
										
										
											2021-11-25 22:54:37 +08:00
										 |  |  |     QAction *actionOpen; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-02 00:06:23 +08:00
										 |  |  |     QAction *actionActualSize; | 
					
						
							|  |  |  |     QAction *actionToggleMaximize; | 
					
						
							| 
									
										
										
										
											2021-02-18 20:03:17 +08:00
										 |  |  |     QAction *actionZoomIn; | 
					
						
							|  |  |  |     QAction *actionZoomOut; | 
					
						
							| 
									
										
										
										
											2021-07-02 00:06:23 +08:00
										 |  |  |     QAction *actionToggleCheckerboard; | 
					
						
							|  |  |  |     QAction *actionRotateClockwise; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-08 14:06:18 +08:00
										 |  |  |     QAction *actionPrevPicture; | 
					
						
							|  |  |  |     QAction *actionNextPicture; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-19 23:11:06 +08:00
										 |  |  |     QAction *actionHorizontalFlip; | 
					
						
							| 
									
										
										
										
											2021-06-04 13:53:47 +08:00
										 |  |  |     QAction *actionFitInView; | 
					
						
							| 
									
										
										
										
											2021-05-14 00:00:03 +08:00
										 |  |  |     QAction *actionFitByWidth; | 
					
						
							| 
									
										
										
										
											2021-01-24 00:07:58 +08:00
										 |  |  |     QAction *actionCopyPixmap; | 
					
						
							|  |  |  |     QAction *actionCopyFilePath; | 
					
						
							|  |  |  |     QAction *actionPaste; | 
					
						
							|  |  |  |     QAction *actionToggleStayOnTop; | 
					
						
							|  |  |  |     QAction *actionToggleProtectMode; | 
					
						
							|  |  |  |     QAction *actionSettings; | 
					
						
							|  |  |  |     QAction *actionHelp; | 
					
						
							| 
									
										
										
										
											2022-01-21 16:48:43 +08:00
										 |  |  |     QAction *actionLocateInFileManager; | 
					
						
							| 
									
										
										
										
											2021-01-24 00:07:58 +08:00
										 |  |  |     QAction *actionProperties; | 
					
						
							|  |  |  |     QAction *actionQuitApp; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // ACTIONMANAGER_H
 |