Blame toonz/sources/tcomposer/tests.cpp
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "tsystem.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tenv.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tproject.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tconvert.h"
|
|
Toshihiro Shimizu |
890ddd |
#include <iostream.h></iostream.h>
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
TEnv::RootSystemVar
|
|
Toshihiro Shimizu |
890ddd |
systemVar(TFilePath("SOFTWARE\\Digital Video\\Toonz\\5.0\\ToonzRoot"));
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
ostream &operator<<(ostream &out, TProject *project)
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
if (project == 0) {
|
|
Toshihiro Shimizu |
890ddd |
return out << "<null>";</null>
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
out << "'" << toString(project->getName().getWideString()) << "'";
|
|
Toshihiro Shimizu |
890ddd |
out << " {" << toString(project->getPath().getWideString()) << "}";
|
|
Toshihiro Shimizu |
890ddd |
return out;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
extern void test();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
int main()
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
/*
|
|
Toshihiro Shimizu |
890ddd |
cout << "current: " << TProject::getCurrent() << endl;
|
|
Toshihiro Shimizu |
890ddd |
TProjectManager *m = TProjectManager::instance();
|
|
Toshihiro Shimizu |
890ddd |
for(int i=0;i<m->getProjectCount();i++)</m->
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
cout << " " << m->getProject(i) << endl;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
TProject *project = new TProject(TFilePath("funziona"));
|
|
Toshihiro Shimizu |
890ddd |
project->setFolder(TProject::Extras, TFilePath("C:\\butta"));
|
|
Toshihiro Shimizu |
890ddd |
m->addProject(project);
|
|
Toshihiro Shimizu |
890ddd |
*/
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
test();
|
|
Toshihiro Shimizu |
890ddd |
return 0;
|
|
Toshihiro Shimizu |
890ddd |
}
|