• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

Public Member Functions | List of all members
InsTextCmd Class Reference

#include <cmd.h>

Inheritance diagram for InsTextCmd:
Inheritance graph
[legend]

Public Member Functions

 InsTextCmd (Catalog *catalog, const DocPosition &pos, const QString &str)
 
 ~InsTextCmd ()
 
void doRedo ()
 
void doUndo ()
 
int id () const
 
bool mergeWith (const QUndoCommand *other)
 
- Public Member Functions inherited from LokalizeTargetCmd
 LokalizeTargetCmd (Catalog *catalog, const DocPosition &pos, const QString &name)
 
virtual ~LokalizeTargetCmd ()
 
void redo ()
 
void undo ()
 
- Public Member Functions inherited from LokalizeUnitCmd
 LokalizeUnitCmd (Catalog *catalog, const DocPosition &pos, const QString &name)
 
virtual ~LokalizeUnitCmd ()
 
DocPosition pos () const
 
- Public Member Functions inherited from QUndoCommand
 QUndoCommand (QUndoCommand *parent)
 
 QUndoCommand (const QString &text, QUndoCommand *parent)
 
virtual  ~QUndoCommand ()
 
QString actionText () const
 
const QUndoCommand * child (int index) const
 
int childCount () const
 
void setText (const QString &text)
 
QString text () const
 

Additional Inherited Members

- Protected Member Functions inherited from LokalizeUnitCmd
virtual void setJumpingPos ()
 
- Protected Attributes inherited from LokalizeTargetCmd
QString _prevTargetPhase
 
- Protected Attributes inherited from LokalizeUnitCmd
Catalog * _catalog
 
bool _firstModificationForThisEntry
 
DocPosition _pos
 
QString _prevPhase
 

Detailed Description

how undo system works: undo() and redo() functions call appropriate private method of Catalog to change catalog contents, then set DocPosition (posBuffer var in Catalog), which is used to navigate editor to appr.

place Do insert text

Definition at line 85 of file cmd.h.

Constructor & Destructor Documentation

InsTextCmd::InsTextCmd ( Catalog *  catalog,
const DocPosition &  pos,
const QString &  str 
)

Definition at line 93 of file cmd.cpp.

InsTextCmd::~InsTextCmd ( )
inline

Definition at line 89 of file cmd.h.

Member Function Documentation

void InsTextCmd::doRedo ( )
virtual

Implements LokalizeUnitCmd.

Definition at line 120 of file cmd.cpp.

void InsTextCmd::doUndo ( )
virtual

Implements LokalizeUnitCmd.

Definition at line 128 of file cmd.cpp.

int InsTextCmd::id ( ) const
inlinevirtual

Reimplemented from QUndoCommand.

Definition at line 90 of file cmd.h.

bool InsTextCmd::mergeWith ( const QUndoCommand *  other)
virtual

Reimplemented from QUndoCommand.

Definition at line 98 of file cmd.cpp.


The documentation for this class was generated from the following files:
  • cmd.h
  • cmd.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal