39 lines
707 B
C++
39 lines
707 B
C++
/*
|
|
*@file ZoomOutCmd.h
|
|
*@brief Zoom out模块
|
|
*@date 2014-8-21
|
|
*/
|
|
|
|
#ifndef PAI_FRAME_WORKFLOWVIEW_ZOOMOUTCMD_H_
|
|
#define PAI_FRAME_WORKFLOWVIEW_ZOOMOUTCMD_H_
|
|
|
|
#include <QGraphicsView>
|
|
#include <QUndoCommand>
|
|
|
|
namespace pai
|
|
{
|
|
/**
|
|
* @class ZoomOutCmd
|
|
* @brief 缩小工作流中的模块
|
|
*/
|
|
class ZoomOutCmd :public QUndoCommand
|
|
{
|
|
public:
|
|
ZoomOutCmd(QGraphicsView *view, QUndoCommand *parent = 0);
|
|
virtual ~ZoomOutCmd();
|
|
/**
|
|
* @brief undo 操作
|
|
*/
|
|
void undo();
|
|
/**
|
|
* @brief redo 操作
|
|
*/
|
|
void redo();
|
|
|
|
private:
|
|
QGraphicsView *m_pView;
|
|
};
|
|
}
|
|
|
|
#endif /* ZOOMOUTCMD_H_ */
|