karbon
roundcornersplugin.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __ROUNDCORNERSPLUGIN_H__
00021 #define __ROUNDCORNERSPLUGIN_H__
00022
00023 #include <kparts/plugin.h>
00024 #include <kdialogbase.h>
00025 #include <commands/vreplacingcmd.h>
00026 #include <koffice_export.h>
00027
00028 class KarbonView;
00029 class VRoundCornersDlg;
00030
00031 class KARBONBASE_EXPORT VRoundCornersPlugin : public KParts::Plugin
00032 {
00033 Q_OBJECT
00034 public:
00035 VRoundCornersPlugin( KarbonView *parent, const char* name, const QStringList & );
00036 virtual ~VRoundCornersPlugin();
00037
00038 private slots:
00039 void slotRoundCorners();
00040
00041 private:
00042 VRoundCornersDlg *m_roundCornersDlg;
00043 };
00044
00045 class KDoubleNumInput;
00046
00047 class VRoundCornersDlg : public KDialogBase
00048 {
00049 Q_OBJECT
00050
00051 public:
00052 VRoundCornersDlg( QWidget* parent = 0L, const char* name = 0L );
00053
00054 double radius() const;
00055 void setRadius( double value );
00056
00057 private:
00058 KDoubleNumInput* m_radius;
00059 };
00060
00061 class VSubpath;
00062
00063 class VRoundCornersCmd : public VReplacingCmd
00064 {
00065 public:
00066 VRoundCornersCmd( VDocument* doc, double radius );
00067 virtual ~VRoundCornersCmd() {}
00068
00069 virtual void visitVSubpath( VSubpath& path );
00070
00071 protected:
00072 double m_radius;
00073 };
00074
00075 #endif
00076
|