1 /* 2 * Copyright (c) 2009 Cyrille Berger <cberger@cberger.net> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; 7 * either version 2, or (at your option) any later version of the License. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public License 15 * along with this library; see the file COPYING. If not, write to 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef _WEBTOOLWIDGET_H_ 21 #define _WEBTOOLWIDGET_H_ 22 23 #include <QWidget> 24 25 #include "ui_WebShapeConfigWidget.h" 26 27 class KUndo2Command; 28 class WebShape; 29 class WebTool; 30 31 class WebToolWidget : public QWidget 32 { 33 Q_OBJECT 34 public: 35 explicit WebToolWidget(WebTool* _tool); 36 public Q_SLOTS: 37 void open(WebShape *shape); 38 void save(); 39 private: 40 /// reimplemented 41 KUndo2Command * createCommand(); 42 WebShape *shape(); 43 private: 44 void blockChildSignals(bool block); 45 private: 46 WebTool* m_tool; 47 WebShape *m_shape; 48 Ui::WebShapeConfigWidget m_widget; 49 }; 50 51 #endif 52