2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
|
|
|
|
#include "tsystem.h"
|
|
|
|
#include "tenv.h"
|
|
|
|
#include "tproject.h"
|
|
|
|
#include "tconvert.h"
|
|
|
|
#include <iostream.h>
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TEnv::RootSystemVar systemVar(
|
|
|
|
TFilePath("SOFTWARE\\Digital Video\\Toonz\\5.0\\ToonzRoot"));
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
ostream &operator<<(ostream &out, TProject *project) {
|
|
|
|
if (project == 0) {
|
|
|
|
return out << "<null>";
|
|
|
|
}
|
|
|
|
out << "'" << toString(project->getName().getWideString()) << "'";
|
|
|
|
out << " {" << toString(project->getPath().getWideString()) << "}";
|
|
|
|
return out;
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|
|
|
|
extern void test();
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
int main() {
|
|
|
|
/*
|
|
|
|
cout << "current: " << TProject::getCurrent() << endl;
|
|
|
|
TProjectManager *m = TProjectManager::instance();
|
|
|
|
for(int i=0;i<m->getProjectCount();i++)
|
2016-03-19 06:57:51 +13:00
|
|
|
{
|
2016-06-15 18:43:10 +12:00
|
|
|
cout << " " << m->getProject(i) << endl;
|
|
|
|
}
|
|
|
|
TProject *project = new TProject(TFilePath("funziona"));
|
|
|
|
project->setFolder(TProject::Extras, TFilePath("C:\\butta"));
|
|
|
|
m->addProject(project);
|
|
|
|
*/
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
test();
|
|
|
|
return 0;
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|