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
Shinya Kitaoka 120a6e
TEnv::RootSystemVar systemVar(
Shinya Kitaoka 120a6e
    TFilePath("SOFTWARE\\Digital Video\\Toonz\\5.0\\ToonzRoot"));
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
ostream &operator<<(ostream &out, TProject *project) {
Shinya Kitaoka 120a6e
  if (project == 0) {
Shinya Kitaoka 120a6e
    return out << "<null>";</null>
Shinya Kitaoka 120a6e
  }
Shinya Kitaoka 120a6e
  out << "'" << toString(project->getName().getWideString()) << "'";
Shinya Kitaoka 120a6e
  out << " {" << toString(project->getPath().getWideString()) << "}";
Shinya Kitaoka 120a6e
  return out;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
extern void test();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
int main() {
Shinya Kitaoka 120a6e
  /*
Shinya Kitaoka 120a6e
cout << "current: " << TProject::getCurrent() << endl;
Shinya Kitaoka 120a6e
TProjectManager *m = TProjectManager::instance();
Shinya Kitaoka 120a6e
for(int i=0;i<m->getProjectCount();i++)</m->
Toshihiro Shimizu 890ddd
{
Shinya Kitaoka 120a6e
cout << "  " << m->getProject(i) << endl;
Shinya Kitaoka 120a6e
}
Shinya Kitaoka 120a6e
TProject *project = new TProject(TFilePath("funziona"));
Shinya Kitaoka 120a6e
project->setFolder(TProject::Extras, TFilePath("C:\\butta"));
Shinya Kitaoka 120a6e
m->addProject(project);
Shinya Kitaoka 120a6e
*/
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  test();
Shinya Kitaoka 120a6e
  return 0;
Toshihiro Shimizu 890ddd
}