20#ifndef __VELLIPSETOOL_H__
21#define __VELLIPSETOOL_H__
23#include <kdialogbase.h>
25#include "vshapetool.h"
27class KoUnitDoubleSpinBox;
34class VEllipseOptionsWidget : public KDialogBase
39 VEllipseOptionsWidget( KarbonPart *part, TQWidget *parent = 0L, const char *name = 0L );
42 double height() const;
43 uint startAngle() const;
44 uint endAngle() const;
46 void setWidth( double value );
47 void setHeight( double value );
51 void typeChanged( int );
55 KIntSpinBox *m_startAngle;
56 KIntSpinBox *m_endAngle;
57 KoUnitDoubleSpinBox *m_width;
58 KoUnitDoubleSpinBox *m_height;
60 TQLabel *m_heightLabel;
61 TQLabel *m_widthLabel;
64class VEllipseTool : public VShapeTool
67 VEllipseTool( KarbonView * view );
68 virtual ~VEllipseTool();
70 virtual void setup(TDEActionCollection *collection);
71 virtual bool showDialog() const;
72 virtual TQString uiname() { return i18n( "Ellipse Tool" ); }
73 virtual VPath *shape( bool interactive = false ) const;
77 void mouseDragRelease();
79 void mouseButtonPress();
80 void mouseButtonRelease();
84 enum { normal, startangle, endangle } m_state;
85 VEllipseOptionsWidget *m_optionsWidget;
Keeps track of visual per document properties.
A composite path consists of one or many subpaths.
|