Blame toonz/sources/tnztools/setsaveboxtool.h
|
Shinya Kitaoka |
810553 |
#pragma once
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef SETSAVEBOXTOOL_INCLUDED
|
|
Toshihiro Shimizu |
890ddd |
#define SETSAVEBOXTOOL_INCLUDED
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "ttoonzimage.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tools/tool.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//=============================================================================
|
|
Toshihiro Shimizu |
890ddd |
// SetSaveboxTool
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
class SetSaveboxTool {
|
|
Shinya Kitaoka |
120a6e |
TTool *m_tool;
|
|
Shinya Kitaoka |
120a6e |
TPointD m_pos;
|
|
Shinya Kitaoka |
120a6e |
TRectD m_modifiedRect;
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
enum Moviment {
|
|
Shinya Kitaoka |
120a6e |
eNone = 0x1,
|
|
Shinya Kitaoka |
120a6e |
eMoveRect = 0x2,
|
|
Shinya Kitaoka |
120a6e |
eMoveLeft = 0x4,
|
|
Shinya Kitaoka |
120a6e |
eMoveRight = 0x8,
|
|
Shinya Kitaoka |
120a6e |
eMoveUp = 0x10,
|
|
Shinya Kitaoka |
120a6e |
eMoveDown = 0x20
|
|
Shinya Kitaoka |
120a6e |
} m_movementType;
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
TToonzImage *getImage();
|
|
Shinya Kitaoka |
120a6e |
int getDragType(const TPointD &pos);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
public:
|
|
Shinya Kitaoka |
120a6e |
SetSaveboxTool(TTool *tool);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
int getCursorId(const TPointD &pos);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void leftButtonDown(const TPointD &pos);
|
|
Shinya Kitaoka |
120a6e |
void leftButtonDrag(const TPointD &pos);
|
|
Shinya Kitaoka |
120a6e |
void leftButtonUp(const TPointD &pos);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void draw();
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
#endif // SETSAVEBOXTOOL_INCLUDED
|