20#ifndef __VSPIRALTOOL_H__
21#define __VSPIRALTOOL_H__
23#include <kdialogbase.h>
26#include "vshapetool.h"
29class KoUnitDoubleSpinBox;
34class VSpiralTool : public VShapeTool
37 VSpiralTool( KarbonView * view );
38 virtual ~VSpiralTool();
40 virtual void setup(TDEActionCollection *collection);
42 virtual TQString uiname() { return i18n( "Spiral Tool" ); }
44 virtual VPath* shape( bool interactive = false ) const;
48 virtual void arrowKeyReleased( TQt::Key );
51 class VSpiralOptionsWidget : public KDialogBase
54 VSpiralOptionsWidget( KarbonPart *part, TQWidget *parent = 0L, const char* name = 0L );
56 double radius() const;
57 uint segments() const;
60 bool clockwise() const;
61 void setRadius( double value );
62 void setSegments( uint value );
63 void setFade( double value );
64 void setClockwise( bool value );
69 KoUnitDoubleSpinBox *m_radius;
70 KIntSpinBox *m_segments;
71 KDoubleNumInput *m_fade;
73 KComboBox *m_clockwise;
77 VSpiralOptionsWidget *m_optionsWidget;
|