20#ifndef __VPOLYGONTOOL_H__
21#define __VPOLYGONTOOL_H__
23#include <kdialogbase.h>
25#include "vshapetool.h"
27class KoUnitDoubleSpinBox;
31class VPolygonTool : public VShapeTool
34 VPolygonTool( KarbonView * view );
35 virtual ~VPolygonTool();
37 virtual void setup(TDEActionCollection *collection);
38 virtual bool showDialog() const;
39 virtual TQString uiname() { return i18n( "Polygon Tool" ); }
41 virtual VPath *shape( bool interactive = false ) const;
45 virtual void arrowKeyReleased( TQt::Key );
48 class VPolygonOptionsWidget : public KDialogBase
51 VPolygonOptionsWidget( KarbonView * view, TQWidget *parent = 0L, const char *name = 0L );
53 double radius() const;
55 void setRadius( double value );
56 void setEdges( uint value );
61 KoUnitDoubleSpinBox *m_radius;
66 VPolygonOptionsWidget* m_optionsWidget;
A composite path consists of one or many subpaths.
|