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 |
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
| void insertCatalogString | ( | Catalog * | catalog, | |
| DocPosition | pos, | |||
| const CatalogString & | catStr, | |||
| int | start | |||
| ) |
| bool removeTargetSubstring | ( | Catalog * | catalog, | |
| DocPosition | pos, | |||
| int | delStart, | |||
| int | delLen | |||
| ) |
KDE 4.5 API Reference