[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/karbon/plugins/tools/CalligraphyTool
From: Thorsten Zachmann <t.zachmann () zagge ! de>
Date: 2008-10-19 13:20:49
Message-ID: 1224422449.703346.17623.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 873426 by zachmann:
o don't show calligraphic shape in shape selector
o change tooltip
M +11 -1 KarbonCalligraphicShapeFactory.cpp
M +2 -1 KarbonCalligraphicShapeFactory.h
--- trunk/koffice/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShapeFactory.cpp #873425:873426
@@ -26,11 +26,15 @@
KarbonCalligraphicShapeFactory::KarbonCalligraphicShapeFactory( QObject *parent )
: KoShapeFactory( parent, KarbonCalligraphicShapeId, i18n( "A calligraphic shape" ) )
{
- setToolTip( i18n( "An calligraphic shape" ) );
+ setToolTip( i18n( "Calligraphic Shape" ) );
setIcon("ellipse-shape");
setLoadingPriority( 1 ); // TODO: to what should this be set??
}
+KarbonCalligraphicShapeFactory::~KarbonCalligraphicShapeFactory()
+{
+}
+
KoShape * KarbonCalligraphicShapeFactory::createDefaultShape() const
{
KarbonCalligraphicShape *path = new KarbonCalligraphicShape();
@@ -59,3 +63,9 @@
panels.append( new CalligraphicShapeConfigWidget() );
return panels;
}*/
+
+bool KarbonCalligraphicShapeFactory::hidden() const
+{
+ return true;
+}
+
--- trunk/koffice/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShapeFactory.h #873425:873426
@@ -30,11 +30,12 @@
public:
/// constructor
explicit KarbonCalligraphicShapeFactory( QObject *parent );
- ~KarbonCalligraphicShapeFactory() {}
+ virtual ~KarbonCalligraphicShapeFactory();
KoShape * createDefaultShape() const;
KoShape * createShape( const KoProperties * params ) const;
//virtual bool supports(const KoXmlElement & e) const;
//virtual QList<KoShapeConfigWidgetBase*> createShapeOptionPanels();
+ bool hidden() const;
};
#endif // KARBONCALLIGRAPHICSHAPEFACTORY_H
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic