SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / gwenview / app / imageopscontextmanageritem.h
blobaf9bbf14680053dc5346f18344e058c9be475f9b
1 // vim: set tabstop=4 shiftwidth=4 noexpandtab:
2 /*
3 Gwenview: an image viewer
4 Copyright 2007 Aurélien Gâteau <aurelien.gateau@free.fr>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef IMAGEOPSCONTEXTMANAGERITEM_H
22 #define IMAGEOPSCONTEXTMANAGERITEM_H
24 // Qt
26 // KDE
28 // Local
29 #include "abstractcontextmanageritem.h"
32 class QRect;
35 namespace Gwenview {
38 class AbstractImageOperation;
39 class MainWindow;
42 class ImageOpsContextManagerItem : public AbstractContextManagerItem {
43 Q_OBJECT
44 public:
45 ImageOpsContextManagerItem(ContextManager*, MainWindow*);
46 ~ImageOpsContextManagerItem();
48 virtual void setSideBar(SideBar* sideBar);
50 private Q_SLOTS:
51 void updateActions();
52 void updateSideBarContent();
53 void rotateLeft();
54 void rotateRight();
55 void mirror();
56 void flip();
57 void resizeImage();
58 void crop();
59 void startRedEyeReduction();
60 void applyImageOperation(AbstractImageOperation*);
61 void restoreDefaultImageViewTool();
63 private:
64 struct Private;
65 Private* const d;
69 } // namespace
71 #endif /* IMAGEOPSCONTEXTMANAGERITEM_H */