karbon

roundcornersplugin.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002, The Karbon Developers
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
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 
KDE Home | KDE Accessibility Home | Description of Access Keys