diff options
Diffstat (limited to 'kimagemapeditor/kimecommands.h')
| -rw-r--r-- | kimagemapeditor/kimecommands.h | 54 |
1 files changed, 7 insertions, 47 deletions
diff --git a/kimagemapeditor/kimecommands.h b/kimagemapeditor/kimecommands.h index cc341bb4..3a0619f8 100644 --- a/kimagemapeditor/kimecommands.h +++ b/kimagemapeditor/kimecommands.h @@ -21,21 +21,11 @@ #include <kcommand.h> -#include <tdeversion.h> - class KImageMapEditor; class AreaSelection; - -class CutCommand : public - -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif - +class CutCommand : public KNamedCommand { public: CutCommand (KImageMapEditor * document, const AreaSelection & selection); @@ -60,12 +50,7 @@ class DeleteCommand : public CutCommand DeleteCommand (KImageMapEditor * document, const AreaSelection & selection); }; -class PasteCommand : public -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif +class PasteCommand : public KNamedCommand { public: PasteCommand (KImageMapEditor * document, const AreaSelection & selection); @@ -82,12 +67,7 @@ KNamedCommand }; -class MoveCommand : public -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif +class MoveCommand : public KNamedCommand { public: MoveCommand (KImageMapEditor *document, AreaSelection *a,const TQPoint & oldPoint); @@ -105,12 +85,7 @@ KNamedCommand //- Area *_oldArea; }; -class ResizeCommand : public -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif +class ResizeCommand : public KNamedCommand { public: ResizeCommand (KImageMapEditor *document, AreaSelection *a, Area *oldArea); @@ -127,12 +102,7 @@ KNamedCommand Area *_newArea; }; -class AddPointCommand : public -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif +class AddPointCommand : public KNamedCommand { public: AddPointCommand (KImageMapEditor *document, AreaSelection *a, const TQPoint & p); @@ -149,12 +119,7 @@ KNamedCommand int _coordpos; }; -class RemovePointCommand : public -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif +class RemovePointCommand : public KNamedCommand { public: RemovePointCommand (KImageMapEditor *document, AreaSelection *a, Area *oldArea); @@ -172,12 +137,7 @@ KNamedCommand }; -class CreateCommand : public -#if TDE_VERSION < 300 -KCommand -#else -KNamedCommand -#endif +class CreateCommand : public KNamedCommand { public: CreateCommand (KImageMapEditor *document, Area *area); |
