diff options
Diffstat (limited to 'kivio/kiviopart/kivio_command.cc')
-rw-r--r-- | kivio/kiviopart/kivio_command.cc | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/kivio/kiviopart/kivio_command.cc b/kivio/kiviopart/kivio_command.cc index 0598653a..4633a60f 100644 --- a/kivio/kiviopart/kivio_command.cc +++ b/kivio/kiviopart/kivio_command.cc @@ -25,7 +25,7 @@ #include "kivio_layer.h" #include "kivio_group_stencil.h" -KivioChangePageNameCommand::KivioChangePageNameCommand(const QString &_name, const QString & _oldPageName, const QString & _newPageName, KivioPage *_page) +KivioChangePageNameCommand::KivioChangePageNameCommand(const TQString &_name, const TQString & _oldPageName, const TQString & _newPageName, KivioPage *_page) : KNamedCommand( _name ), oldPageName(_oldPageName ), newPageName(_newPageName ), @@ -49,7 +49,7 @@ void KivioChangePageNameCommand::unexecute() } -KivioHidePageCommand::KivioHidePageCommand(const QString &_name, KivioPage *_page) +KivioHidePageCommand::KivioHidePageCommand(const TQString &_name, KivioPage *_page) : KNamedCommand( _name ), m_page( _page ) { @@ -69,13 +69,13 @@ void KivioHidePageCommand::unexecute() m_page->setHidePage( false ); } -KivioShowPageCommand::KivioShowPageCommand( const QString &_name, KivioPage *_page) +KivioShowPageCommand::KivioShowPageCommand( const TQString &_name, KivioPage *_page) : KivioHidePageCommand( _name, _page) { } -KivioAddPageCommand::KivioAddPageCommand(const QString &_name, KivioPage *_page) +KivioAddPageCommand::KivioAddPageCommand(const TQString &_name, KivioPage *_page) : KNamedCommand( _name ), m_page( _page ) { @@ -97,7 +97,7 @@ void KivioAddPageCommand::unexecute() m_page->doc()->takePage( m_page ); } -KivioRemovePageCommand::KivioRemovePageCommand(const QString &_name, KivioPage *_page) +KivioRemovePageCommand::KivioRemovePageCommand(const TQString &_name, KivioPage *_page) : KNamedCommand( _name ), m_page( _page ) { @@ -120,7 +120,7 @@ void KivioRemovePageCommand::unexecute() } -KivioAddStencilCommand::KivioAddStencilCommand(const QString &_name, KivioPage *_page, KivioLayer * _layer, KivioStencil *_stencil ) +KivioAddStencilCommand::KivioAddStencilCommand(const TQString &_name, KivioPage *_page, KivioLayer * _layer, KivioStencil *_stencil ) : KNamedCommand( _name ), m_page( _page ), m_layer( _layer), @@ -149,13 +149,13 @@ void KivioAddStencilCommand::unexecute() m_page->doc()->slotSelectionChanged(); } -KivioRemoveStencilCommand::KivioRemoveStencilCommand(const QString &_name, KivioPage *_page, KivioLayer * _layer, KivioStencil *_stencil ) +KivioRemoveStencilCommand::KivioRemoveStencilCommand(const TQString &_name, KivioPage *_page, KivioLayer * _layer, KivioStencil *_stencil ) : KivioAddStencilCommand(_name, _page, _layer, _stencil ) { } -KivioChangeStencilTextCommand::KivioChangeStencilTextCommand(const QString& _name, KivioStencil* _stencil, - const QString& _oldText, const QString& _newText, KivioPage* _page, const QString& textBoxName) +KivioChangeStencilTextCommand::KivioChangeStencilTextCommand(const TQString& _name, KivioStencil* _stencil, + const TQString& _oldText, const TQString& _newText, KivioPage* _page, const TQString& textBoxName) : KNamedCommand( _name ), m_stencil(_stencil), oldText(_oldText), @@ -192,7 +192,7 @@ void KivioChangeStencilTextCommand::unexecute() } -KivioAddLayerCommand::KivioAddLayerCommand( const QString &_name, KivioPage *_page, KivioLayer * _layer, int _pos ) +KivioAddLayerCommand::KivioAddLayerCommand( const TQString &_name, KivioPage *_page, KivioLayer * _layer, int _pos ) :KNamedCommand( _name ), m_page( _page ), m_layer( _layer), @@ -220,12 +220,12 @@ void KivioAddLayerCommand::unexecute() } -KivioRemoveLayerCommand::KivioRemoveLayerCommand( const QString &_name, KivioPage *_page, KivioLayer * _layer, int _pos ) +KivioRemoveLayerCommand::KivioRemoveLayerCommand( const TQString &_name, KivioPage *_page, KivioLayer * _layer, int _pos ) :KivioAddLayerCommand( _name, _page, _layer, _pos ) { } -KivioRenameLayerCommand::KivioRenameLayerCommand( const QString &_name, KivioLayer * _layer, const QString & _oldName, const QString & _newName) +KivioRenameLayerCommand::KivioRenameLayerCommand( const TQString &_name, KivioLayer * _layer, const TQString & _oldName, const TQString & _newName) :KNamedCommand( _name ), m_layer( _layer ), oldName( _oldName), @@ -249,7 +249,7 @@ void KivioRenameLayerCommand::unexecute() m_layer->page()->doc()->resetLayerPanel(); } -KivioResizeStencilCommand::KivioResizeStencilCommand( const QString &_name, KivioStencil *_stencil, KoRect _initSize, KoRect _endSize, KivioPage *_page) +KivioResizeStencilCommand::KivioResizeStencilCommand( const TQString &_name, KivioStencil *_stencil, KoRect _initSize, KoRect _endSize, KivioPage *_page) :KNamedCommand( _name ), m_stencil( _stencil), initSize( _initSize), @@ -277,7 +277,7 @@ void KivioResizeStencilCommand::unexecute() } -KivioMoveStencilCommand::KivioMoveStencilCommand( const QString &_name, KivioStencil *_stencil, KoRect _initSize, KoRect _endSize, KivioPage *_page) +KivioMoveStencilCommand::KivioMoveStencilCommand( const TQString &_name, KivioStencil *_stencil, KoRect _initSize, KoRect _endSize, KivioPage *_page) :KNamedCommand( _name ), m_stencil( _stencil), initSize( _initSize), @@ -304,7 +304,7 @@ void KivioMoveStencilCommand::unexecute() m_page->doc()->updateView(m_page); } -KivioChangeLayoutCommand::KivioChangeLayoutCommand( const QString &_name, KivioPage *_page, KoPageLayout _oldLayout, KoPageLayout _newLayout) +KivioChangeLayoutCommand::KivioChangeLayoutCommand( const TQString &_name, KivioPage *_page, KoPageLayout _oldLayout, KoPageLayout _newLayout) :KNamedCommand( _name), m_page(_page), oldLayout( _oldLayout), @@ -326,8 +326,8 @@ void KivioChangeLayoutCommand::unexecute() m_page->setPaperLayout(oldLayout); } -KivioChangeStencilHAlignmentCommand::KivioChangeStencilHAlignmentCommand(const QString& _name, KivioPage* _page, - KivioStencil* _stencil, int _oldAlign, int _newAlign, const QString& textBoxName) +KivioChangeStencilHAlignmentCommand::KivioChangeStencilHAlignmentCommand(const TQString& _name, KivioPage* _page, + KivioStencil* _stencil, int _oldAlign, int _newAlign, const TQString& textBoxName) : KNamedCommand(_name), m_page(_page), m_stencil(_stencil), @@ -365,8 +365,8 @@ void KivioChangeStencilHAlignmentCommand::unexecute() m_page->doc()->slotSelectionChanged(); } -KivioChangeStencilVAlignmentCommand::KivioChangeStencilVAlignmentCommand(const QString& _name, KivioPage* _page, - KivioStencil* _stencil, int _oldAlign, int _newAlign, const QString& textBoxName) +KivioChangeStencilVAlignmentCommand::KivioChangeStencilVAlignmentCommand(const TQString& _name, KivioPage* _page, + KivioStencil* _stencil, int _oldAlign, int _newAlign, const TQString& textBoxName) : KNamedCommand(_name), m_page(_page), m_stencil(_stencil), @@ -405,8 +405,8 @@ void KivioChangeStencilVAlignmentCommand::unexecute() } -KivioChangeStencilFontCommand::KivioChangeStencilFontCommand(const QString& _name, KivioPage* _page, - KivioStencil* _stencil, const QFont& _oldFont, const QFont& _newFont, const QString& textBoxName) +KivioChangeStencilFontCommand::KivioChangeStencilFontCommand(const TQString& _name, KivioPage* _page, + KivioStencil* _stencil, const TQFont& _oldFont, const TQFont& _newFont, const TQString& textBoxName) : KNamedCommand(_name), m_page(_page), m_stencil( _stencil), @@ -444,8 +444,8 @@ void KivioChangeStencilFontCommand::unexecute() m_page->doc()->slotSelectionChanged(); } -KivioChangeStencilColorCommand::KivioChangeStencilColorCommand(const QString& _name, KivioPage* _page, - KivioStencil* _stencil, const QColor& _oldColor, const QColor& _newColor, ColorType _type, const QString& textBoxName) +KivioChangeStencilColorCommand::KivioChangeStencilColorCommand(const TQString& _name, KivioPage* _page, + KivioStencil* _stencil, const TQColor& _oldColor, const TQColor& _newColor, ColorType _type, const TQString& textBoxName) : KNamedCommand(_name), m_page(_page), m_stencil(_stencil), @@ -505,7 +505,7 @@ void KivioChangeStencilColorCommand::unexecute() } -KivioChangeLineWidthCommand::KivioChangeLineWidthCommand( const QString &_name, +KivioChangeLineWidthCommand::KivioChangeLineWidthCommand( const TQString &_name, KivioPage *_page, KivioStencil * _stencil, double _oldValue, double _newValue) :KNamedCommand( _name), m_page(_page), @@ -533,7 +533,7 @@ void KivioChangeLineWidthCommand::unexecute() m_page->doc()->slotSelectionChanged(); } -KivioChangeRotationCommand::KivioChangeRotationCommand( const QString &_name, +KivioChangeRotationCommand::KivioChangeRotationCommand( const TQString &_name, KivioPage *_page, KivioStencil * _stencil, int _oldValue, int _newValue) :KNamedCommand( _name), m_page(_page), @@ -562,7 +562,7 @@ void KivioChangeRotationCommand::unexecute() } -KivioChangeLineStyleCommand::KivioChangeLineStyleCommand( const QString &_name, +KivioChangeLineStyleCommand::KivioChangeLineStyleCommand( const TQString &_name, KivioPage *_page, KivioStencil * _stencil, int _oldValue, int _newValue) :KNamedCommand( _name), m_page(_page), @@ -590,7 +590,7 @@ void KivioChangeLineStyleCommand::unexecute() m_page->doc()->slotSelectionChanged(); } -KivioChangeBeginEndArrowCommand::KivioChangeBeginEndArrowCommand( const QString &_name, KivioPage *_page, KivioStencil * _stencil, int _oldArrow, int _newArrow, bool _beginArrow) +KivioChangeBeginEndArrowCommand::KivioChangeBeginEndArrowCommand( const TQString &_name, KivioPage *_page, KivioStencil * _stencil, int _oldArrow, int _newArrow, bool _beginArrow) :KNamedCommand( _name), m_page(_page), m_stencil( _stencil ), @@ -625,7 +625,7 @@ void KivioChangeBeginEndArrowCommand::unexecute() } -KivioChangeBeginEndSizeArrowCommand::KivioChangeBeginEndSizeArrowCommand( const QString &_name, KivioPage *_page, KivioStencil * _stencil, float _oldH,float _oldW, float _newH,float _newW, bool _beginArrow) +KivioChangeBeginEndSizeArrowCommand::KivioChangeBeginEndSizeArrowCommand( const TQString &_name, KivioPage *_page, KivioStencil * _stencil, float _oldH,float _oldW, float _newH,float _newW, bool _beginArrow) :KNamedCommand( _name), m_page(_page), m_stencil( _stencil ), @@ -673,7 +673,7 @@ void KivioChangeBeginEndSizeArrowCommand::unexecute() m_page->doc()->slotSelectionChanged(); } -KivioChangeStencilProtectCommand::KivioChangeStencilProtectCommand( const QString &_name, KivioPage *_page, KivioStencil * _stencil, bool _state, KVP_TYPE _type) +KivioChangeStencilProtectCommand::KivioChangeStencilProtectCommand( const TQString &_name, KivioPage *_page, KivioStencil * _stencil, bool _state, KVP_TYPE _type) :KNamedCommand( _name), m_page(_page), m_stencil( _stencil ), @@ -722,7 +722,7 @@ void KivioChangeStencilProtectCommand::changeValue( bool b ) m_page->doc()->updateView(m_page); } -KivioAddConnectorTargetCommand::KivioAddConnectorTargetCommand(const QString& name, KivioPage* page, +KivioAddConnectorTargetCommand::KivioAddConnectorTargetCommand(const TQString& name, KivioPage* page, KivioStencil* stencil, const KoPoint& targetPoint) : KNamedCommand(name) { m_page = page; @@ -742,7 +742,7 @@ void KivioAddConnectorTargetCommand::unexecute() } -KivioCustomDragCommand::KivioCustomDragCommand(const QString& name, KivioPage* page, KivioStencil* stencil, +KivioCustomDragCommand::KivioCustomDragCommand(const TQString& name, KivioPage* page, KivioStencil* stencil, int customID, const KoPoint& originalPoint, const KoPoint& newPoint) : KNamedCommand(name) { @@ -766,7 +766,7 @@ void KivioCustomDragCommand::unexecute() } -KivioGroupCommand::KivioGroupCommand(const QString& name, KivioPage* page, KivioLayer* layer, +KivioGroupCommand::KivioGroupCommand(const TQString& name, KivioPage* page, KivioLayer* layer, KivioGroupStencil* group) : KNamedCommand(name) { @@ -777,8 +777,8 @@ KivioGroupCommand::KivioGroupCommand(const QString& name, KivioPage* page, Kivio void KivioGroupCommand::execute() { - QPtrList<KivioStencil>* list = m_groupStencil->groupList(); - QPtrListIterator<KivioStencil> it(*list); + TQPtrList<KivioStencil>* list = m_groupStencil->groupList(); + TQPtrListIterator<KivioStencil> it(*list); KivioStencil* stencil = 0; for(; (stencil = it.current()) != 0; ++it) { @@ -792,8 +792,8 @@ void KivioGroupCommand::execute() void KivioGroupCommand::unexecute() { - QPtrList<KivioStencil>* list = m_groupStencil->groupList(); - QPtrListIterator<KivioStencil> it(*list); + TQPtrList<KivioStencil>* list = m_groupStencil->groupList(); + TQPtrListIterator<KivioStencil> it(*list); KivioStencil* stencil = 0; for(; (stencil = it.current()) != 0; ++it) { |