LabelMe
Public Member Functions | Public Attributes | List of all members
My::Command Class Referenceabstract

命令栈基类,用来实现撤销和重做功能 More...

#include <Command.h>

Inheritance diagram for My::Command:
My::Command2D My::Command3D

Public Member Functions

virtual void logAdd (int index)
 记录添加标注 More...
 
virtual void logDelete (int index, int id)
 记录删除标注 More...
 
virtual void logMove (int index, float xoffset, float yoffset, int id=0)
 记录移动标注 More...
 
virtual void logChange (int index, QString s1, QString s2)
 记录更改标注 More...
 
virtual void undo ()
 撤销功能 More...
 
virtual void redo ()
 重做功能 More...
 
virtual ~Command ()=0
 

Public Attributes

QStack< QString > undoCommands
 存储undo(撤销)命令栈 More...
 
QStack< QString > redoCommands
 存储redo(重做)命令栈 More...
 

Detailed Description

命令栈基类,用来实现撤销和重做功能

Constructor & Destructor Documentation

◆ ~Command()

My::Command::~Command ( )
pure virtual

Member Function Documentation

◆ logAdd()

void My::Command::logAdd ( int  index)
virtual

记录添加标注

Reimplemented in My::Command3D, and My::Command2D.

◆ logChange()

void My::Command::logChange ( int  index,
QString  s1,
QString  s2 
)
virtual

记录更改标注

Reimplemented in My::Command3D, and My::Command2D.

◆ logDelete()

void My::Command::logDelete ( int  index,
int  id 
)
virtual

记录删除标注

Reimplemented in My::Command3D, and My::Command2D.

◆ logMove()

void My::Command::logMove ( int  index,
float  xoffset,
float  yoffset,
int  id = 0 
)
virtual

记录移动标注

Reimplemented in My::Command3D, and My::Command2D.

◆ redo()

void My::Command::redo ( )
virtual

重做功能

Reimplemented in My::Command3D, and My::Command2D.

◆ undo()

void My::Command::undo ( )
virtual

撤销功能

Reimplemented in My::Command3D, and My::Command2D.

Member Data Documentation

◆ redoCommands

QStack<QString> My::Command::redoCommands

存储redo(重做)命令栈

◆ undoCommands

QStack<QString> My::Command::undoCommands

存储undo(撤销)命令栈


The documentation for this class was generated from the following files: