summaryrefslogtreecommitdiffstats
path: root/karbon/commands
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/commands')
-rw-r--r--karbon/commands/vbooleancmd.h4
-rw-r--r--karbon/commands/vreplacingcmd.cc6
-rw-r--r--karbon/commands/vshapecmd.cc28
-rw-r--r--karbon/commands/vshapecmd.h8
-rw-r--r--karbon/commands/vtextcmd.h2
-rw-r--r--karbon/commands/vtransformcmd.cc2
6 files changed, 25 insertions, 25 deletions
diff --git a/karbon/commands/vbooleancmd.h b/karbon/commands/vbooleancmd.h
index c782c838..3a3478d3 100644
--- a/karbon/commands/vbooleancmd.h
+++ b/karbon/commands/vbooleancmd.h
@@ -37,8 +37,8 @@ public:
enum VBooleanType
{
intersect,
- shape_union,
- shape_xor,
+ tqshape_union,
+ tqshape_xor,
substract
};
diff --git a/karbon/commands/vreplacingcmd.cc b/karbon/commands/vreplacingcmd.cc
index 427ecdca..2275dba8 100644
--- a/karbon/commands/vreplacingcmd.cc
+++ b/karbon/commands/vreplacingcmd.cc
@@ -44,7 +44,7 @@ VReplacingCmd::execute()
bool successful = false;
- // Create new shapes if they don't exist yet.
+ // Create new tqshapes if they don't exist yet.
if( !m_newObjects )
{
m_newObjects = new VSelection();
@@ -65,11 +65,11 @@ VReplacingCmd::execute()
{
successful = true;
- // Insert new shape right before old shape.
+ // Insert new tqshape right before old tqshape.
itr.current()->parent()->insertInfrontOf(
newObject, itr.current() );
- // Add new shape to list of new objects.
+ // Add new tqshape to list of new objects.
m_newObjects->append( newObject );
}
// No success.
diff --git a/karbon/commands/vshapecmd.cc b/karbon/commands/vshapecmd.cc
index 9a59fcd9..ae0ad2dc 100644
--- a/karbon/commands/vshapecmd.cc
+++ b/karbon/commands/vshapecmd.cc
@@ -25,33 +25,33 @@
#include "vshapecmd.h"
-VShapeCmd::VShapeCmd( VDocument* doc, const TQString& name, VPath* shape, const TQString& icon )
- : VCommand( doc, name, icon ), m_shape( shape )
+VShapeCmd::VShapeCmd( VDocument* doc, const TQString& name, VPath* tqshape, const TQString& icon )
+ : VCommand( doc, name, icon ), m_tqshape( tqshape )
{
}
void
VShapeCmd::execute()
{
- if( !m_shape )
+ if( !m_tqshape )
return;
- if( m_shape->state() == VObject::deleted )
+ if( m_tqshape->state() == VObject::deleted )
{
document()->selection()->clear();
- m_shape->setState( VObject::normal );
- document()->selection()->append( m_shape );
+ m_tqshape->setState( VObject::normal );
+ document()->selection()->append( m_tqshape );
}
else
{
- m_shape->setState( VObject::normal );
- m_shape->setFill( *( document()->selection()->fill() ) );
- m_shape->setStroke( *( document()->selection()->stroke() ) );
+ m_tqshape->setState( VObject::normal );
+ m_tqshape->setFill( *( document()->selection()->fill() ) );
+ m_tqshape->setStroke( *( document()->selection()->stroke() ) );
// Add path:
- document()->append( m_shape );
+ document()->append( m_tqshape );
document()->selection()->clear();
- document()->selection()->append( m_shape );
+ document()->selection()->append( m_tqshape );
}
setSuccess( true );
@@ -60,11 +60,11 @@ VShapeCmd::execute()
void
VShapeCmd::unexecute()
{
- if( !m_shape )
+ if( !m_tqshape )
return;
- document()->selection()->take( *m_shape );
- m_shape->setState( VObject::deleted );
+ document()->selection()->take( *m_tqshape );
+ m_tqshape->setState( VObject::deleted );
setSuccess( false );
}
diff --git a/karbon/commands/vshapecmd.h b/karbon/commands/vshapecmd.h
index d4742a67..30607fcd 100644
--- a/karbon/commands/vshapecmd.h
+++ b/karbon/commands/vshapecmd.h
@@ -28,13 +28,13 @@ class VPath;
/*
* Provides a common base class for creation commands since they all have
* a similar execute / unexecute behaviour and all build a VPath. Upon
- * execution() the shape will be added to the document and selected, upon undoing
+ * execution() the tqshape will be added to the document and selected, upon undoing
* it will be set to the deleted state.
*/
class KARBONCOMMAND_EXPORT VShapeCmd : public VCommand
{
public:
- VShapeCmd( VDocument* doc, const TQString& name, VPath* shape, const TQString& icon = "14_polygon" );
+ VShapeCmd( VDocument* doc, const TQString& name, VPath* tqshape, const TQString& icon = "14_polygon" );
virtual ~VShapeCmd() {}
virtual void execute();
@@ -43,8 +43,8 @@ public:
virtual bool changesSelection() const { return true; }
protected:
- /// Pointer to the created shape.
- VPath *m_shape;
+ /// Pointer to the created tqshape.
+ VPath *m_tqshape;
};
#endif
diff --git a/karbon/commands/vtextcmd.h b/karbon/commands/vtextcmd.h
index 2fb0a75a..708250c8 100644
--- a/karbon/commands/vtextcmd.h
+++ b/karbon/commands/vtextcmd.h
@@ -23,7 +23,7 @@
#include <tqfont.h>
-#include "vshapecmd.h"
+#include "vtqshapecmd.h"
// create a text-object.
diff --git a/karbon/commands/vtransformcmd.cc b/karbon/commands/vtransformcmd.cc
index dc1038ab..f0173920 100644
--- a/karbon/commands/vtransformcmd.cc
+++ b/karbon/commands/vtransformcmd.cc
@@ -484,7 +484,7 @@ VTranslatePointCmd::translatePoints()
segment->setPoint( pnts[i], segment->point( pnts[i] ).transform( m_mat ) );
}
- // invalidate all changed subpaths
+ // tqinvalidate all changed subpaths
VObjectListIterator itr( m_subpaths );
for( ; itr.current(); ++itr )
itr.current()->invalidateBoundingBox();