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 |
|
|
Toshihiro Shimizu |
890ddd |
class SetSaveboxTool
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
TTool *m_tool;
|
|
Toshihiro Shimizu |
890ddd |
TPointD m_pos;
|
|
Toshihiro Shimizu |
890ddd |
TRectD m_modifiedRect;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
enum Moviment {
|
|
Toshihiro Shimizu |
890ddd |
eNone = 0x1,
|
|
Toshihiro Shimizu |
890ddd |
eMoveRect = 0x2,
|
|
Toshihiro Shimizu |
890ddd |
eMoveLeft = 0x4,
|
|
Toshihiro Shimizu |
890ddd |
eMoveRight = 0x8,
|
|
Toshihiro Shimizu |
890ddd |
eMoveUp = 0x10,
|
|
Toshihiro Shimizu |
890ddd |
eMoveDown = 0x20
|
|
Toshihiro Shimizu |
890ddd |
} m_movementType;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
TToonzImage *getImage();
|
|
Toshihiro Shimizu |
890ddd |
int getDragType(const TPointD &pos);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
public:
|
|
Toshihiro Shimizu |
890ddd |
SetSaveboxTool(TTool *tool);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
int getCursorId(const TPointD &pos);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
void leftButtonDown(const TPointD &pos);
|
|
Toshihiro Shimizu |
890ddd |
void leftButtonDrag(const TPointD &pos);
|
|
Toshihiro Shimizu |
890ddd |
void leftButtonUp(const TPointD &pos);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
void draw();
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif //SETSAVEBOXTOOL_INCLUDED
|