20#ifndef __VSTARTOOL_H__
21#define __VSTARTOOL_H__
24#include <kdialogbase.h>
26#include "vshapetool.h"
29class KoUnitDoubleSpinBox;
34class VStarOptionsWidget : public KDialogBase
39 VStarOptionsWidget( KarbonPart *part, TQWidget* parent = 0L, const char* name = 0L );
44 double innerRadius() const;
45 double outerRadius() const;
46 double roundness() const;
48 uint innerAngle() const;
49 void setInnerRadius( double );
52 void typeChanged( int );
54 void setOuterRadius( double );
57 KoUnitDoubleSpinBox *m_innerR;
58 KoUnitDoubleSpinBox *m_outerR;
59 KDoubleNumInput *m_roundness;
61 KIntSpinBox *m_innerAngle;
64 TQLabel *m_innerRLabel;
65 TQLabel *m_outerRLabel;
68class VStarTool : public VShapeTool
71 VStarTool( KarbonView * view );
74 virtual bool showDialog() const;
75 virtual void setup(TDEActionCollection *collection);
76 virtual TQString uiname() { return i18n( "Star Tool" ); }
77 virtual VPath* shape( bool interactive = false ) const;
81 virtual void arrowKeyReleased( TQt::Key );
84 VStarOptionsWidget* m_optionsWidget;
Keeps track of visual per document properties.
A composite path consists of one or many subpaths.
|