2015-07-26 21:39:49 +00:00
|
|
|
#include "TestDialog.h"
|
|
|
|
#include "ui_TestDialog.h"
|
2016-01-22 20:53:57 +00:00
|
|
|
#include "Editor/PropertyEdit/CPropertyDelegate.h"
|
2015-12-15 02:07:22 +00:00
|
|
|
#include "Editor/Widgets/WResourceSelector.h"
|
|
|
|
#include "Editor/Widgets/WTextureGLWidget.h"
|
|
|
|
#include <Core/Resource/Factory/CTextureDecoder.h>
|
|
|
|
#include <Core/Resource/CResCache.h>
|
2016-01-22 20:53:57 +00:00
|
|
|
#include <Core/Resource/Script/CMasterTemplate.h>
|
|
|
|
#include <Core/Resource/Script/CScriptTemplate.h>
|
|
|
|
#include <Core/Resource/Factory/CTemplateLoader.h>
|
2015-12-15 02:07:22 +00:00
|
|
|
|
2015-07-26 21:39:49 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
TestDialog::TestDialog(QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::TestDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
2016-01-31 01:54:00 +00:00
|
|
|
/*CTemplateLoader::LoadGameTemplates(eCorruption);
|
2016-01-22 20:53:57 +00:00
|
|
|
CMasterTemplate *pMaster = CMasterTemplate::GetMasterForGame(eCorruption);
|
|
|
|
CScriptTemplate *pTemp = pMaster->TemplateByID("PCKP");
|
|
|
|
|
|
|
|
CPropertyStruct *pBase = static_cast<CPropertyStruct*>(pTemp->BaseStruct()->InstantiateProperty(nullptr));
|
|
|
|
ui->treeView->setItemDelegate(new CPropertyDelegate(ui->treeView));
|
2016-01-31 01:54:00 +00:00
|
|
|
ui->treeView->SetObject(pBase);*/
|
2015-07-26 21:39:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TestDialog::~TestDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|