2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
|
|
|
|
#include "toolmanager.h"
|
|
|
|
#include "toonz/tsecurity.h"
|
|
|
|
#include "drawingobserver.h"
|
|
|
|
#include "tdata.h"
|
|
|
|
#include "selection.h"
|
|
|
|
#include "thumbnail.h"
|
|
|
|
#include "movieoptions.h"
|
|
|
|
#include "tpalette.h"
|
|
|
|
#include "toonz/application.h"
|
|
|
|
#include "dagviewer.h"
|
|
|
|
#include "toonz/txshsimplelevel.h"
|
|
|
|
#include "toonz/imagemanager.h"
|
|
|
|
#include "xshselection.h"
|
|
|
|
#include "fxcontroller.h"
|
|
|
|
#include "tthread.h"
|
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// TDrawingView
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void TDrawingView::notify(TXshSimpleLevel *, TFrameId id) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TDrawingView::TDrawingView(TXshSimpleLevel *level, TFrameId fid,
|
|
|
|
const TDimension &size, TDrawingViewObserver *o)
|
|
|
|
: m_size(size) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TDrawingView::~TDrawingView() {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
const TRaster32P TDrawingView::getRaster() const { return TRaster32P(); }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
const TImageP TDrawingView::getImage() const { return TImageP(); }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TImageP TDrawingView::build(TImageInfo &info) { return TImageP(); }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void TDrawingView::onImageBuilt(const string &id, const TImageP &img) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
string TDrawingView::getDrawingId() const { return ""; }
|
2016-03-19 06:57:51 +13:00
|
|
|
//=========================================================
|
|
|
|
// TImageManager
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// TToolManager
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
class TToolManager::Imp {
|
2016-03-19 06:57:51 +13:00
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
Imp() {}
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TToolManager::TToolManager() : m_imp(new Imp()) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TToolManager::~TToolManager() { delete m_imp; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TToolManager *TToolManager::instance() {
|
|
|
|
static TToolManager theInstance;
|
|
|
|
return &theInstance;
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TTool *TToolManager::getCurrentTool() const { return 0; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void TToolManager::setCurrentTool(string toolName) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
int TToolManager::getCurrentTargetType() { return 0; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void TToolManager::setCurrentTargetType(int tt) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// TSelection
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void TSelection::setCurrent(TSelection *) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// TFramesMovieInfo
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TFramesMovieInfo::TFramesMovieInfo() : m_type("tif"), m_options(0) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TFramesMovieInfo::~TFramesMovieInfo() {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// getxxxinfo()
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TWriterInfo *getRasterMovieInfo(string, bool) { return 0; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
bool getFramesMovieInfo(struct TFramesMovieInfo &, bool) { return true; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TFlashMovieInfo *getFlashMovieInfo(bool) { return 0; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TFlashMovieInfo *getScrMovieInfo(bool) { return 0; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// makeScreenSaver
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
void makeScreenSaver(TFilePath, TFilePath, string) {}
|
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// bigBoxSize[]
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
double bigBoxSize[3]; // per stage.cpp
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// TFxNode
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
// TFxNode::TFxNode(TFx *fx) : m_fx(fx) {}
|
|
|
|
|
|
|
|
/*
|
|
|
|
// da Connectable
|
|
|
|
int getInputCount() const;
|
|
|
|
Connectable *getInput(int inputPortId) const;
|
|
|
|
|
|
|
|
bool setInput(Connectable*, int inputPortId);
|
|
|
|
bool isCompatibleInput(Connectable*, int inputPortId);
|
|
|
|
|
|
|
|
const DagViewer::Node *getDagNode() const {return this;}
|
|
|
|
DagViewer::Node *getDagNode() {return this;}
|
|
|
|
|
|
|
|
|
|
|
|
// da DagViewer::Node
|
|
|
|
wstring getName() const;
|
|
|
|
Connectable *getConnectable() const;
|
|
|
|
|
|
|
|
void onClick(const TPointD& pos, const TMouseEvent &e);
|
|
|
|
TContextMenu *makeContextMenu(TWidget *parent) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
// not implemented
|
|
|
|
TFxNode(const TFxNode &);
|
|
|
|
TFxNode&operator=(const TFxNode &);
|
|
|
|
};
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// TSecurity
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
string TSecurity::getRegistryRoot(void) {
|
2016-03-19 06:57:51 +13:00
|
|
|
#ifdef WIN32
|
2016-06-15 18:43:10 +12:00
|
|
|
string reg = "SOFTWARE\\Digital Video\\Toonz\\5.0\\";
|
|
|
|
return reg;
|
2016-03-19 06:57:51 +13:00
|
|
|
#else
|
2016-06-15 18:43:10 +12:00
|
|
|
assert(false);
|
|
|
|
return "";
|
2016-03-19 06:57:51 +13:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// TSelection
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TSelection *TSelection::getCurrent() { return 0; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// XshPasteBuffer
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
XshPasteBuffer::XshPasteBuffer(int, int) : m_columnCount(0), m_rowCount(0) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TXshCell &XshPasteBuffer::cell(int, int) {
|
|
|
|
static TXshCell empty;
|
|
|
|
return empty;
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TDataP XshPasteBuffer::clone() const { return TDataP(); }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
/*
|
|
|
|
LevelThumbnail::LevelThumbnail(const TDimension &d, TXshSimpleLevel *)
|
|
|
|
: Thumbnail(d)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
void FxController::setCurrentFx(TFx *) {}
|
|
|
|
FxController::FxController() {}
|
2016-06-15 18:43:10 +12:00
|
|
|
FxController *FxController::instance() {
|
|
|
|
static FxController _instance;
|
|
|
|
return &_instance;
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef WIN32
|
2016-06-15 18:43:10 +12:00
|
|
|
// to avoid twin dep
|
|
|
|
void postThreadMsg(TThread::Msg *) { return; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
DEFINE_CLASS_CODE(TData, 16)
|
|
|
|
|
|
|
|
#endif
|