FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
QOperationMenu.h
1 /*
2  * Copyright 2011, 2012 Lukas Jirkovsky
3  *
4  * This file is part of FotoSHOCK.
5  *
6  * FotoSHOCK is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, version 3 of the License.
9  *
10  * FotoSHOCK is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FotoSHOCK. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef QOPERATIONMENU_H
20 #define QOPERATIONMENU_H
21 
22 #include <vector>
23 
24 #include <QtGui/QMenu>
25 #include <QtGui/QAction>
26 
27 namespace FotoSHOCKcore {
28  class ImageOperationDescriptor;
29 }
30 
31 class QOperationAction : public QAction {
32 Q_OBJECT
33  public:
34  explicit QOperationAction(FotoSHOCKcore::ImageOperationDescriptor* descriptor, QObject* parent);
35  FotoSHOCKcore::ImageOperationDescriptor* ImageOperationDescriptor() const;
36  private:
37  FotoSHOCKcore::ImageOperationDescriptor* m_operationDescriptor;
38 };
39 
40 class QOperationMenu : public QMenu {
41 Q_OBJECT
42  public:
43  explicit QOperationMenu(const std::vector<FotoSHOCKcore::ImageOperationDescriptor*>& operations, QWidget* parent = 0);
44 };
45 
46 #endif // QOPERATIONMENU_H