krita/ui
kis_shape_selection_canvas.h
Go to the documentation of this file.00001 /* 00002 * Copyright (c) 2007 Boudewijn Rempt <boud@valdyas.org> 00003 * Copyright (c) 2007 Sven Langkamp <sven.langkamp@gmail.com> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 */ 00019 #ifndef KIS_SHAPE_SELECTION_CANVAS_H 00020 #define KIS_SHAPE_SELECTION_CANVAS_H 00021 00022 #include <KoCanvasBase.h> 00023 00024 #include <kis_types.h> 00025 00026 class KoShapeManager; 00027 class KoToolProxy; 00028 class KoViewConverter; 00029 class QUndoCommand; 00030 class QWidget; 00031 class KoUnit; 00032 00036 class KisShapeSelectionCanvas : public QObject, public KoCanvasBase 00037 { 00038 Q_OBJECT 00039 public: 00040 00041 KisShapeSelectionCanvas(); 00042 virtual ~KisShapeSelectionCanvas(); 00043 00044 void gridSize(qreal *horizontal, qreal *vertical) const; 00045 bool snapToGrid() const; 00046 void addCommand(QUndoCommand *command); 00047 KoShapeManager *shapeManager() const; 00048 void updateCanvas(const QRectF& rc); 00049 KoToolProxy * toolProxy() const; 00050 const KoViewConverter *viewConverter() const; 00051 QWidget* canvasWidget(); 00052 const QWidget* canvasWidget() const; 00053 KoUnit unit() const; 00054 virtual void updateInputMethodInfo() {} 00055 00056 private: 00057 KoShapeManager * m_shapeManager; 00058 }; 00059 00060 #endif
