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

lokalize

cmd.h File Reference

#include <QUndoCommand>
#include "pos.h"
#include "note.h"
#include "phase.h"
#include "state.h"
#include "catalogstring.h"
Include dependency graph for cmd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DelTagCmd
 TagRange is filled from document. More...
class  DelTextCmd
class  InsTagCmd
 Do insert tag. More...
class  InsTextCmd
 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. More...
class  LokalizeTargetCmd
class  LokalizeUnitCmd
class  SetEquivTransCmd
class  SetNoteCmd
 Insert or remove (if content is empty) a note. More...
class  SetStateCmd
class  UpdatePhaseCmd
 Add or remove (if content is empty) a phase. More...

Enumerations

enum  Commands {
  Insert, Delete, InsertTag, DeleteTag,
  ToggleApprovement, EquivTrans, SetNote, UpdatePhase
}

Functions

bool fillTagPlaces (QMap< int, int > &tagPlaces, const CatalogString &catalogString, int start, int len)
void insertCatalogString (Catalog *catalog, DocPosition pos, const CatalogString &catStr, int start)
bool removeTargetSubstring (Catalog *catalog, DocPosition pos, int delStart, int delLen)

Enumeration Type Documentation

enum Commands
Enumerator:
Insert 
Delete 
InsertTag 
DeleteTag 
ToggleApprovement 
EquivTrans 
SetNote 
UpdatePhase 

Definition at line 37 of file cmd.h.


Function Documentation

bool fillTagPlaces ( QMap< int, int > &  tagPlaces,
const CatalogString &  catalogString,
int  start,
int  len 
)

CatalogString cmds helper function.

tagPlaces: pos -> int: >0 if both start and end parts of tag were (to be) deleted 1 means this is start, 2 means this is end

Returns:
false if it can't find second part of any paired tag in the range

Definition at line 319 of file cmd.cpp.

void insertCatalogString ( Catalog *  catalog,
DocPosition  pos,
const CatalogString &  catStr,
int  start 
)

Definition at line 405 of file cmd.cpp.

bool removeTargetSubstring ( Catalog *  catalog,
DocPosition  pos,
int  delStart,
int  delLen 
)

Definition at line 354 of file cmd.cpp.

lokalize

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

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal