mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
refs #507, adjustements in swift data (mapping tool)
* output of download template * setup will be read automatically
This commit is contained in:
committed by
Mathew Sutcliffe
parent
348d4e2f60
commit
b24cd2e9c7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user