diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-23 11:59:03 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-23 11:59:03 +0900 |
| commit | c2f28aadde2e2e12594c4d0b8d334254dc76a712 (patch) | |
| tree | bbf33f8184e5906621b424f3b91ab0ca7b4b2772 /kimagemapeditor/kimecommands.cpp | |
| parent | e5595fbfda5ebe3973b90d7d56f5ee46561f948f (diff) | |
| download | tdewebdev-c2f28aadde2e2e12594c4d0b8d334254dc76a712.tar.gz tdewebdev-c2f28aadde2e2e12594c4d0b8d334254dc76a712.zip | |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kimagemapeditor/kimecommands.cpp')
| -rw-r--r-- | kimagemapeditor/kimecommands.cpp | 57 |
1 files changed, 7 insertions, 50 deletions
diff --git a/kimagemapeditor/kimecommands.cpp b/kimagemapeditor/kimecommands.cpp index 20d88303..5815960f 100644 --- a/kimagemapeditor/kimecommands.cpp +++ b/kimagemapeditor/kimecommands.cpp @@ -23,14 +23,7 @@ #include "drawzone.h" CutCommand::CutCommand(KImageMapEditor * document, const AreaSelection & a) - : - -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif - (i18n( "Cut %1" ).arg( a.typeString() )) + : KNamedCommand (i18n( "Cut %1" ).arg( a.typeString() )) { _document=document; _cutAreaSelection=new AreaSelection(); @@ -78,13 +71,7 @@ DeleteCommand::DeleteCommand(KImageMapEditor * document, const AreaSelection & a } PasteCommand::PasteCommand(KImageMapEditor *document, const AreaSelection & a) - : -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif - (i18n( "Paste %1" ).arg( a.typeString() )) + : KNamedCommand(i18n( "Paste %1" ).arg( a.typeString() )) { _document=document; _pasteAreaSelection=new AreaSelection(); @@ -123,13 +110,7 @@ void PasteCommand::unexecute() MoveCommand::MoveCommand (KImageMapEditor *document, AreaSelection * a, const TQPoint & oldPoint) - : -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif -(i18n( "Move %1" ).arg( a->typeString() )) + : KNamedCommand(i18n( "Move %1" ).arg( a->typeString() )) { _document=document; _areaSelection=new AreaSelection(); @@ -185,13 +166,7 @@ void MoveCommand::unexecute() ResizeCommand::ResizeCommand (KImageMapEditor *document, AreaSelection *a, Area *oldArea) - : -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif -(i18n( "Resize %1" ).arg( a->typeString() )) + : KNamedCommand(i18n( "Resize %1" ).arg( a->typeString() )) { _areaSelection=new AreaSelection(); _areaSelection->setAreaList( a->getAreaList() ); @@ -232,13 +207,7 @@ void ResizeCommand::unexecute() AddPointCommand::AddPointCommand (KImageMapEditor *document, AreaSelection *a, const TQPoint & p) - : -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif -(i18n( "Add point to %1" ).arg( a->typeString() )) + : KNamedCommand(i18n( "Add point to %1" ).arg( a->typeString() )) { if (a->type()!=Area::Polygon) { @@ -281,13 +250,7 @@ void AddPointCommand::unexecute() } RemovePointCommand::RemovePointCommand (KImageMapEditor *document, AreaSelection *a, Area *oldArea) - : -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif -(i18n( "Remove point from %1" ).arg( a->typeString() )) + : KNamedCommand(i18n( "Remove point from %1" ).arg( a->typeString() )) { if (a->type()!=Area::Polygon) { @@ -334,13 +297,7 @@ void RemovePointCommand::unexecute() CreateCommand::CreateCommand (KImageMapEditor *document, Area *area) - : -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif -(i18n( "Create %1" ).arg( area->typeString() )) + : KNamedCommand(i18n( "Create %1" ).arg( area->typeString() )) { _document=document; _area=area; |
