tahoma2d/toonz/sources/tnztools/setsaveboxtool.h

43 lines
892 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef SETSAVEBOXTOOL_INCLUDED
#define SETSAVEBOXTOOL_INCLUDED
#include "ttoonzimage.h"
#include "tools/tool.h"
//=============================================================================
// SetSaveboxTool
//-----------------------------------------------------------------------------
2016-06-15 18:43:10 +12:00
class SetSaveboxTool {
TTool *m_tool;
TPointD m_pos;
TRectD m_modifiedRect;
enum Moviment {
eNone = 0x1,
eMoveRect = 0x2,
eMoveLeft = 0x4,
eMoveRight = 0x8,
eMoveUp = 0x10,
eMoveDown = 0x20
} m_movementType;
TToonzImage *getImage();
int getDragType(const TPointD &pos);
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
SetSaveboxTool(TTool *tool);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
int getCursorId(const TPointD &pos);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void leftButtonDown(const TPointD &pos);
void leftButtonDrag(const TPointD &pos);
void leftButtonUp(const TPointD &pos);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void draw();
2016-03-19 06:57:51 +13:00
};
2016-06-15 18:43:10 +12:00
#endif // SETSAVEBOXTOOL_INCLUDED