|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
|
|
#include <nel/misc/path.h>
|
|
|
|
|
#include <nel/ligo/primitive_utils.h>
|
|
|
|
|
#include <nel/ligo/primitive.h>
|
|
|
|
|
#include <nel/ligo/primitive.h>
|
|
|
|
|
#include <nel/ligo/ligo_config.h>
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
@ -81,7 +81,7 @@ MissionCompilerMainWindow::MissionCompilerMainWindow(QWidget *parent) :
|
|
|
|
|
connect(Core::ICore::instance(), SIGNAL(changeSettings()), this, SLOT(handleChangedSettings()));
|
|
|
|
|
|
|
|
|
|
// Set the default data dir to the primitives path.
|
|
|
|
|
QSettings *settings = Core::ICore::instance()->settings();
|
|
|
|
|
QSettings *settings = Core::ICore::instance()->settings();
|
|
|
|
|
settings->beginGroup(Core::Constants::DATA_PATH_SECTION);
|
|
|
|
|
m_lastDir = settings->value(Core::Constants::PRIMITIVES_PATH).toString();
|
|
|
|
|
ui->dataDirEdit->setText(m_lastDir);
|
|
|
|
@ -381,7 +381,7 @@ bool MissionCompilerMainWindow::parsePrimForMissions(NLLIGO::IPrimitive const *p
|
|
|
|
|
{
|
|
|
|
|
std::string value;
|
|
|
|
|
// if the node is a mission parse it
|
|
|
|
|
if (prim->getPropertyByName("class",value) && !stricmp(value.c_str(),"mission") )
|
|
|
|
|
if (prim->getPropertyByName("class",value) && !NLMISC::stricmp(value.c_str(),"mission") )
|
|
|
|
|
{
|
|
|
|
|
std::string name;
|
|
|
|
|
prim->getPropertyByName("name",name);
|
|
|
|
@ -460,20 +460,20 @@ void MissionCompilerMainWindow::loadConfig() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MissionCompilerMainWindow::saveConfig() {
|
|
|
|
|
QSettings *settings = Core::ICore::instance()->settings();
|
|
|
|
|
settings->beginGroup(MISSION_COMPILER_SECTION);
|
|
|
|
|
|
|
|
|
|
QSettings *settings = Core::ICore::instance()->settings();
|
|
|
|
|
settings->beginGroup(MISSION_COMPILER_SECTION);
|
|
|
|
|
|
|
|
|
|
QStringList servers;
|
|
|
|
|
for(int row = 0; row < ui->publishServersList->count(); row++)
|
|
|
|
|
{
|
|
|
|
|
QListWidgetItem *item = ui->publishServersList->item(row);
|
|
|
|
|
if(item->checkState() == Qt::Checked)
|
|
|
|
|
servers << item->text();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
settings->setValue(SETTING_PUBLISH_SERVER_CHECKS, servers);
|
|
|
|
|
|
|
|
|
|
settings->endGroup();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
settings->setValue(SETTING_PUBLISH_SERVER_CHECKS, servers);
|
|
|
|
|
|
|
|
|
|
settings->endGroup();
|
|
|
|
|
settings->sync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|