diff options
Diffstat (limited to 'karbon/tools')
32 files changed, 74 insertions, 74 deletions
diff --git a/karbon/tools/vellipsetool.cc b/karbon/tools/vellipsetool.cc index b0f981af..b8855c50 100644 --- a/karbon/tools/vellipsetool.cc +++ b/karbon/tools/vellipsetool.cc @@ -262,13 +262,13 @@ VEllipseTool::showDialog() const } void -VEllipseTool::setup( KActionCollection *collection ) +VEllipseTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Ellipse Tool" ), "14_ellipse", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Ellipse Tool" ), "14_ellipse", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Ellipse" ) ); m_action->setExclusiveGroup( "shapes" ); //m_ownAction = true; diff --git a/karbon/tools/vellipsetool.h b/karbon/tools/vellipsetool.h index f43ad7fd..4a46aad5 100644 --- a/karbon/tools/vellipsetool.h +++ b/karbon/tools/vellipsetool.h @@ -67,7 +67,7 @@ public: VEllipseTool( KarbonView *view ); virtual ~VEllipseTool(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual bool showDialog() const; virtual TQString uiname() { return i18n( "Ellipse Tool" ); } virtual VPath *shape( bool interactive = false ) const; diff --git a/karbon/tools/vgradienttool.cc b/karbon/tools/vgradienttool.cc index 95752f52..68d7972e 100644 --- a/karbon/tools/vgradienttool.cc +++ b/karbon/tools/vgradienttool.cc @@ -470,13 +470,13 @@ VGradientTool::showDialog() const } void -VGradientTool::setup( KActionCollection *collection ) +VGradientTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Gradient Tool" ), "14_gradient", TQt::Key_G, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Gradient Tool" ), "14_gradient", TQt::Key_G, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Gradient" ) ); m_action->setExclusiveGroup( "misc" ); //m_ownAction = true; diff --git a/karbon/tools/vgradienttool.h b/karbon/tools/vgradienttool.h index 4c107ffb..bb1f17f8 100644 --- a/karbon/tools/vgradienttool.h +++ b/karbon/tools/vgradienttool.h @@ -40,7 +40,7 @@ public: virtual void activate(); virtual void deactivate(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual TQString uiname() { return i18n( "Gradient Tool" ); } virtual TQString statusText(); diff --git a/karbon/tools/vpatterntool.cc b/karbon/tools/vpatterntool.cc index 11421fcc..963f1a61 100644 --- a/karbon/tools/vpatterntool.cc +++ b/karbon/tools/vpatterntool.cc @@ -453,13 +453,13 @@ VPatternTool::showDialog() const } void -VPatternTool::setup( KActionCollection *collection ) +VPatternTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Pattern Tool" ), "14_pattern", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Pattern Tool" ), "14_pattern", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Pattern" ) ); m_action->setExclusiveGroup( "misc" ); //m_ownAction = true; diff --git a/karbon/tools/vpatterntool.h b/karbon/tools/vpatterntool.h index c125740c..36cc88f7 100644 --- a/karbon/tools/vpatterntool.h +++ b/karbon/tools/vpatterntool.h @@ -70,7 +70,7 @@ public: virtual void activate(); virtual void deactivate(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual TQString uiname() { return i18n( "Pattern Tool" ); } virtual TQString contextHelp(); virtual bool showDialog() const; diff --git a/karbon/tools/vpenciltool.cc b/karbon/tools/vpenciltool.cc index 9f2759b3..a15dbf2d 100644 --- a/karbon/tools/vpenciltool.cc +++ b/karbon/tools/vpenciltool.cc @@ -396,13 +396,13 @@ VPencilTool::showDialog() const } void -VPencilTool::setup( KActionCollection *collection ) +VPencilTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Pencil Tool" ), "14_pencil", TQt::SHIFT+TQt::Key_P, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Pencil Tool" ), "14_pencil", TQt::SHIFT+TQt::Key_P, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Pencil" ) ); m_action->setExclusiveGroup( "freehand" ); //m_ownAction = true; diff --git a/karbon/tools/vpenciltool.h b/karbon/tools/vpenciltool.h index 0abdffe4..3667f294 100644 --- a/karbon/tools/vpenciltool.h +++ b/karbon/tools/vpenciltool.h @@ -88,7 +88,7 @@ class VPencilTool : public VTool virtual void activate(); virtual void deactivate(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual TQString uiname() { return i18n( "Pencil Tool" ); } virtual TQString contextHelp(); virtual enumToolType toolType() { return TOOL_FREEHAND; } diff --git a/karbon/tools/vpolygontool.cc b/karbon/tools/vpolygontool.cc index fdd02299..18895cea 100644 --- a/karbon/tools/vpolygontool.cc +++ b/karbon/tools/vpolygontool.cc @@ -148,15 +148,15 @@ VPolygonTool::showDialog() const } void -VPolygonTool::setup( KActionCollection *collection ) +VPolygonTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - KShortcut shortcut( TQt::Key_Plus ); - shortcut.append(KShortcut( TQt::Key_F9 ) ); - m_action = new KRadioAction( i18n( "Polygon Tool" ), "14_polygon", shortcut, this, TQT_SLOT( activate() ), collection, name() ); + TDEShortcut shortcut( TQt::Key_Plus ); + shortcut.append(TDEShortcut( TQt::Key_F9 ) ); + m_action = new TDERadioAction( i18n( "Polygon Tool" ), "14_polygon", shortcut, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Polygon" ) ); m_action->setExclusiveGroup( "shapes" ); //m_ownAction = true; diff --git a/karbon/tools/vpolygontool.h b/karbon/tools/vpolygontool.h index cb1dabab..dead8534 100644 --- a/karbon/tools/vpolygontool.h +++ b/karbon/tools/vpolygontool.h @@ -34,7 +34,7 @@ public: VPolygonTool( KarbonView *view ); virtual ~VPolygonTool(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual bool showDialog() const; virtual TQString uiname() { return i18n( "Polygon Tool" ); } diff --git a/karbon/tools/vpolylinetool.cc b/karbon/tools/vpolylinetool.cc index 083ee1ea..e1689419 100644 --- a/karbon/tools/vpolylinetool.cc +++ b/karbon/tools/vpolylinetool.cc @@ -480,15 +480,15 @@ VPolylineTool::accept() } void -VPolylineTool::setup( KActionCollection *collection ) +VPolylineTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - KShortcut shortcut( TQt::Key_Plus ); - shortcut.append( KShortcut( TQt::Key_F9 ) ); - m_action = new KRadioAction( i18n( "Polyline Tool" ), "14_polyline", shortcut, this, TQT_SLOT( activate() ), collection, name() ); + TDEShortcut shortcut( TQt::Key_Plus ); + shortcut.append( TDEShortcut( TQt::Key_F9 ) ); + m_action = new TDERadioAction( i18n( "Polyline Tool" ), "14_polyline", shortcut, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Polyline" ) ); m_action->setExclusiveGroup( "freehand" ); //m_ownAction = true; diff --git a/karbon/tools/vpolylinetool.h b/karbon/tools/vpolylinetool.h index 54124e07..6743da21 100644 --- a/karbon/tools/vpolylinetool.h +++ b/karbon/tools/vpolylinetool.h @@ -55,7 +55,7 @@ class VPolylineTool : public VTool VPolylineTool( KarbonView *view ); ~VPolylineTool(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual void activate(); virtual void deactivate(); diff --git a/karbon/tools/vrectangletool.cc b/karbon/tools/vrectangletool.cc index 1b9d9c0f..5b0fcffe 100644 --- a/karbon/tools/vrectangletool.cc +++ b/karbon/tools/vrectangletool.cc @@ -128,13 +128,13 @@ VRectangleTool::showDialog() const } void -VRectangleTool::setup( KActionCollection *collection ) +VRectangleTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Rectangle Tool" ), "14_rectangle", TQt::Key_Plus+TQt::Key_F9, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Rectangle Tool" ), "14_rectangle", TQt::Key_Plus+TQt::Key_F9, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Rectangle" ) ); m_action->setExclusiveGroup( "shapes" ); //m_ownAction = true; diff --git a/karbon/tools/vrectangletool.h b/karbon/tools/vrectangletool.h index ce39a119..7da59745 100644 --- a/karbon/tools/vrectangletool.h +++ b/karbon/tools/vrectangletool.h @@ -36,7 +36,7 @@ public: VRectangleTool( KarbonView *view ); virtual ~VRectangleTool(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual bool showDialog() const; virtual TQString uiname() { return i18n( "Rectangle Tool" ); } virtual VPath* shape( bool interactive = false ) const; diff --git a/karbon/tools/vrotatetool.cc b/karbon/tools/vrotatetool.cc index 5f39a293..f8d341dc 100644 --- a/karbon/tools/vrotatetool.cc +++ b/karbon/tools/vrotatetool.cc @@ -160,13 +160,13 @@ VRotateTool::recalc() } void -VRotateTool::setup( KActionCollection *collection ) +VRotateTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Rotate Tool" ), "14_rotate", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Rotate Tool" ), "14_rotate", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Rotate" ) ); m_action->setExclusiveGroup( "manipulation" ); //m_ownAction = true; diff --git a/karbon/tools/vrotatetool.h b/karbon/tools/vrotatetool.h index 1829936b..1d7e4b6c 100644 --- a/karbon/tools/vrotatetool.h +++ b/karbon/tools/vrotatetool.h @@ -32,7 +32,7 @@ public: virtual void activate(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual TQString uiname() { return i18n( "Rotate Tool" ); } virtual enumToolType toolType() { return TOOL_MANIPULATION; } virtual TQString statusText(); diff --git a/karbon/tools/vroundrecttool.cc b/karbon/tools/vroundrecttool.cc index c88bacd8..02f694c6 100644 --- a/karbon/tools/vroundrecttool.cc +++ b/karbon/tools/vroundrecttool.cc @@ -164,13 +164,13 @@ VRoundRectTool::showDialog() const } void -VRoundRectTool::setup( KActionCollection *collection ) +VRoundRectTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Round Rectangle Tool" ), "14_roundrect", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Round Rectangle Tool" ), "14_roundrect", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Round Rectangle" ) ); m_action->setExclusiveGroup( "shapes" ); //m_ownAction = true; diff --git a/karbon/tools/vroundrecttool.h b/karbon/tools/vroundrecttool.h index 5149ff2f..27e4ca3d 100644 --- a/karbon/tools/vroundrecttool.h +++ b/karbon/tools/vroundrecttool.h @@ -40,7 +40,7 @@ public: virtual ~VRoundRectTool(); virtual bool showDialog() const; - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual TQString uiname() { return i18n( "Round Rectangle Tool" ); } virtual VPath* shape( bool interactive = false ) const; diff --git a/karbon/tools/vselectnodestool.cc b/karbon/tools/vselectnodestool.cc index 7ef25c5e..7123b71a 100644 --- a/karbon/tools/vselectnodestool.cc +++ b/karbon/tools/vselectnodestool.cc @@ -422,13 +422,13 @@ VSelectNodesTool::recalc() } void -VSelectNodesTool::setup( KActionCollection *collection ) +VSelectNodesTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Select Nodes Tool" ), "14_selectnodes", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Select Nodes Tool" ), "14_selectnodes", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Select Nodes" ) ); m_action->setExclusiveGroup( "select" ); //m_ownAction = true; diff --git a/karbon/tools/vselectnodestool.h b/karbon/tools/vselectnodestool.h index f3815b2d..1bc675b8 100644 --- a/karbon/tools/vselectnodestool.h +++ b/karbon/tools/vselectnodestool.h @@ -30,7 +30,7 @@ public: virtual void activate(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual TQString uiname() { return i18n( "Select Nodes Tool" ); } virtual enumToolType toolType() { return TOOL_SELECT; } virtual TQString statusText(); diff --git a/karbon/tools/vselecttool.cc b/karbon/tools/vselecttool.cc index e6b87f62..b2c28d66 100644 --- a/karbon/tools/vselecttool.cc +++ b/karbon/tools/vselecttool.cc @@ -597,13 +597,13 @@ VSelectTool::refreshUnit() } void -VSelectTool::setup( KActionCollection *collection ) +VSelectTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Select Tool" ), "14_select", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Select Tool" ), "14_select", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Select" ) ); m_action->setExclusiveGroup( "select" ); //m_ownAction = true; diff --git a/karbon/tools/vselecttool.h b/karbon/tools/vselecttool.h index 2785b66f..e7791172 100644 --- a/karbon/tools/vselecttool.h +++ b/karbon/tools/vselecttool.h @@ -51,7 +51,7 @@ public: VSelectTool( KarbonView *view ); virtual ~VSelectTool(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual bool showDialog() const; virtual TQString uiname() { return i18n( "Select Tool" ); } virtual enumToolType toolType() { return TOOL_SELECT; } diff --git a/karbon/tools/vsheartool.cc b/karbon/tools/vsheartool.cc index 19e11161..d7fd40b9 100644 --- a/karbon/tools/vsheartool.cc +++ b/karbon/tools/vsheartool.cc @@ -204,13 +204,13 @@ VShearTool::recalc() } void -VShearTool::setup( KActionCollection *collection ) +VShearTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Shear Tool" ), "14_shear", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Shear Tool" ), "14_shear", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Shear" ) ); m_action->setExclusiveGroup( "manipulation" ); //m_ownAction = true; diff --git a/karbon/tools/vsheartool.h b/karbon/tools/vsheartool.h index 8a576014..ce4d5ba0 100644 --- a/karbon/tools/vsheartool.h +++ b/karbon/tools/vsheartool.h @@ -30,7 +30,7 @@ public: virtual void activate(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual TQString uiname() { return i18n( "Shear Tool" ); } virtual enumToolType toolType() { return TOOL_MANIPULATION; } virtual uint priority() { return 1; } diff --git a/karbon/tools/vsinustool.cc b/karbon/tools/vsinustool.cc index d38ca972..d46c4180 100644 --- a/karbon/tools/vsinustool.cc +++ b/karbon/tools/vsinustool.cc @@ -147,13 +147,13 @@ VSinusTool::showDialog() const } void -VSinusTool::setup( KActionCollection *collection ) +VSinusTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Sinus Tool" ), "14_sinus", TQt::SHIFT+TQt::Key_S, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Sinus Tool" ), "14_sinus", TQt::SHIFT+TQt::Key_S, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Sinus" ) ); m_action->setExclusiveGroup( "shapes" ); //m_ownAction = true; diff --git a/karbon/tools/vsinustool.h b/karbon/tools/vsinustool.h index 4aa1c464..1a0ebaa4 100644 --- a/karbon/tools/vsinustool.h +++ b/karbon/tools/vsinustool.h @@ -34,7 +34,7 @@ public: VSinusTool( KarbonView *view ); virtual ~VSinusTool(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual bool showDialog() const; virtual TQString uiname() { return i18n( "Sinus Tool" ); } diff --git a/karbon/tools/vspiraltool.cc b/karbon/tools/vspiraltool.cc index e0c78e1d..e0b99c9e 100644 --- a/karbon/tools/vspiraltool.cc +++ b/karbon/tools/vspiraltool.cc @@ -198,13 +198,13 @@ VSpiralTool::showDialog() const } void -VSpiralTool::setup( KActionCollection *collection ) +VSpiralTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Spiral Tool" ), "14_spiral", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Spiral Tool" ), "14_spiral", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Spiral" ) ); m_action->setExclusiveGroup( "shapes" ); //m_ownAction = true; diff --git a/karbon/tools/vspiraltool.h b/karbon/tools/vspiraltool.h index 072e3bea..05694267 100644 --- a/karbon/tools/vspiraltool.h +++ b/karbon/tools/vspiraltool.h @@ -37,7 +37,7 @@ public: VSpiralTool( KarbonView *view ); virtual ~VSpiralTool(); - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual bool showDialog() const; virtual TQString uiname() { return i18n( "Spiral Tool" ); } diff --git a/karbon/tools/vstartool.cc b/karbon/tools/vstartool.cc index 114bab75..e152ad31 100644 --- a/karbon/tools/vstartool.cc +++ b/karbon/tools/vstartool.cc @@ -231,15 +231,15 @@ VStarTool::showDialog() const } void -VStarTool::setup( KActionCollection *collection ) +VStarTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - KShortcut shortcut( TQt::Key_Plus ); - shortcut.append(KShortcut( TQt::Key_F9 ) ); - m_action = new KRadioAction( i18n( "Star Tool" ), "14_star", shortcut, this, TQT_SLOT( activate() ), collection, name() ); + TDEShortcut shortcut( TQt::Key_Plus ); + shortcut.append(TDEShortcut( TQt::Key_F9 ) ); + m_action = new TDERadioAction( i18n( "Star Tool" ), "14_star", shortcut, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Draw a star" ) ); m_action->setExclusiveGroup( "shapes" ); //m_ownAction = true; diff --git a/karbon/tools/vstartool.h b/karbon/tools/vstartool.h index 8b5d04c0..1d35ad43 100644 --- a/karbon/tools/vstartool.h +++ b/karbon/tools/vstartool.h @@ -72,7 +72,7 @@ public: virtual ~VStarTool(); virtual bool showDialog() const; - virtual void setup(KActionCollection *collection); + virtual void setup(TDEActionCollection *collection); virtual TQString uiname() { return i18n( "Star Tool" ); } virtual VPath* shape( bool interactive = false ) const; diff --git a/karbon/tools/vtexttool.cc b/karbon/tools/vtexttool.cc index a08b7f3c..ca3ba1ea 100644 --- a/karbon/tools/vtexttool.cc +++ b/karbon/tools/vtexttool.cc @@ -332,11 +332,11 @@ VTextOptionsWidget::VTextOptionsWidget( VTextTool* tool, TQWidget *parent ) TQGridLayout* textLayout = new TQGridLayout( textWidget ); TQStringList list; - KFontChooser::getFontList( list, KFontChooser::SmoothScalableFonts ); + TDEFontChooser::getFontList( list, TDEFontChooser::SmoothScalableFonts ); textLayout->setMargin( 3 ); textLayout->setSpacing( 2 ); - textLayout->addMultiCellWidget( m_fontCombo = new KFontCombo( list, textWidget ), 0, 0, 0, 2 ); + textLayout->addMultiCellWidget( m_fontCombo = new TDEFontCombo( list, textWidget ), 0, 0, 0, 2 ); textLayout->addWidget( m_fontSize = new KIntNumInput( textWidget ), 1, 0 ); textLayout->addWidget( m_boldCheck = new TQCheckBox( i18n( "Bold" ), textWidget ), 1, 1 ); textLayout->addWidget( m_italicCheck = new TQCheckBox( i18n( "Italic" ), textWidget ), 1, 2 ); @@ -1142,13 +1142,13 @@ VTextTool::mouseDragShiftReleased() } void -VTextTool::setup( KActionCollection *collection ) +VTextTool::setup( TDEActionCollection *collection ) { - m_action = static_cast<KRadioAction *>(collection -> action( name() ) ); + m_action = static_cast<TDERadioAction *>(collection -> action( name() ) ); if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Text Tool" ), "14_text", TQt::SHIFT+TQt::Key_T, this, TQT_SLOT( activate() ), collection, name() ); + m_action = new TDERadioAction( i18n( "Text Tool" ), "14_text", TQt::SHIFT+TQt::Key_T, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Text Tool" ) ); m_action->setExclusiveGroup( "misc" ); //m_ownAction = true; diff --git a/karbon/tools/vtexttool.h b/karbon/tools/vtexttool.h index 6cf02c11..e88142ac 100644 --- a/karbon/tools/vtexttool.h +++ b/karbon/tools/vtexttool.h @@ -35,7 +35,7 @@ #include "vtext.h" #include "vtool.h" -class KFontCombo; +class TDEFontCombo; class KIntNumInput; class TQCheckBox; class TQLineEdit; @@ -136,7 +136,7 @@ public slots: protected: TQTabWidget* m_tabWidget; - KFontCombo* m_fontCombo; + TDEFontCombo* m_fontCombo; TQCheckBox* m_boldCheck; TQCheckBox* m_italicCheck; KIntNumInput* m_fontSize; @@ -157,7 +157,7 @@ public: VTextTool( KarbonView *view ); ~VTextTool(); - virtual void setup (KActionCollection *collection ); + virtual void setup (TDEActionCollection *collection ); virtual TQString uiname() { return i18n( "Text Tool" ); } virtual TQString contextHelp(); |