refs #507, adjustements in swift data (mapping tool)

* output of download template
* setup will be read automatically
This commit is contained in:
Klaus Basan
2015-11-17 01:12:43 +01:00
committed by Mathew Sutcliffe
parent 348d4e2f60
commit b24cd2e9c7
4 changed files with 40 additions and 10 deletions

View File

@@ -29,9 +29,6 @@ using namespace BlackCore;
using namespace BlackGui::Components;
using namespace BlackMisc;
/*
* Menu clicked
*/
void CSwiftData::ps_onMenuClicked()
{
QObject *sender = QObject::sender();
@@ -103,12 +100,18 @@ void CSwiftData::ps_onMenuClicked()
CDbMappingComponent *mappingComponent = this->ui->comp_MainInfoArea->getMappingComponent();
mappingComponent->resizeForMapping();
}
else if (sender == this->ui->menu_InternalsJsonBootstrapTemplate)
else if (sender == this->ui->menu_JsonBootstrapTemplate)
{
QString json(m_setup.get().toJsonString());
this->ui->comp_MainInfoArea->getLogComponent()->appendPlainTextToConsole(json);
this->displayConsole();
}
else if (sender == this->ui->menu_JsonDownloadTemplate)
{
QString json(m_download.get().toJsonString());
this->ui->comp_MainInfoArea->getLogComponent()->appendPlainTextToConsole(json);
this->displayConsole();
}
else if (sender == this->ui->menu_InternalsMetatypes)
{
QString metadata(getAllUserMetatypesTypes());
@@ -135,6 +138,11 @@ void CSwiftData::ps_onMenuClicked()
}
}
void CSwiftData::ps_setupChanged()
{
CLogMessage(this).debug() << "Setup changed";
}
void CSwiftData::initDynamicMenus()
{
Q_ASSERT(this->ui->menu_InfoAreas);