void GameCFGWidget::fullNetConfig() { ammoChanged(WeaponsName->currentIndex()); seedChanged(pMapContainer->getCurrentSeed()); templateFilterChanged(pMapContainer->getTemplateFilter()); QString t = pMapContainer->getCurrentTheme(); if(!t.isEmpty()) themeChanged(t); schemeChanged(GameSchemes->currentIndex()); scriptChanged(Scripts->currentIndex()); mapgenChanged(pMapContainer->get_mapgen()); maze_sizeChanged(pMapContainer->getMazeSize()); slMapFeatureSizeChanged(pMapContainer->getFeatureSize()); if(pMapContainer->get_mapgen() == 2) onDrawnMapChanged(pMapContainer->getDrawnMapData()); // map must be the last QString map = pMapContainer->getCurrentMap(); if (map.size()) mapChanged(map); }
void QInstallerPackage::setScript(const QString &script) { if(m_script == script ) return; m_script = script; emit scriptChanged(); ; }
void ScriptBehavior::setScript(const QQmlScriptString &script) { m_script = script; if (m_expression) delete m_expression; m_expression = new QQmlExpression(m_script); emit scriptChanged(); }
void GM_Script::watchedFileChanged(const QString &file) { if (m_fileName == file) { parseScript(); m_manager->removeScript(this, false); m_manager->addScript(this); emit scriptChanged(); } }
GM_SettingsScriptInfo::GM_SettingsScriptInfo(GM_Script* script, QWidget* parent) : QDialog(parent) , ui(new Ui::GM_SettingsScriptInfo) , m_script(script) { ui->setupUi(this); loadScript(); connect(m_script, SIGNAL(scriptChanged()), this, SLOT(loadScript())); connect(ui->editInEditor, SIGNAL(clicked()), this, SLOT(editInTextEditor())); }
void GameCFGWidget::fullNetConfig() { ammoChanged(WeaponsName->currentIndex()); seedChanged(pMapContainer->getCurrentSeed()); templateFilterChanged(pMapContainer->getTemplateFilter()); themeChanged(pMapContainer->getCurrentTheme()); schemeChanged(GameSchemes->currentIndex()); scriptChanged(Scripts->currentIndex()); mapgenChanged(pMapContainer->get_mapgen()); maze_sizeChanged(pMapContainer->getMazeSize()); // map must be the last QString map = pMapContainer->getCurrentMap(); if (map.size()) mapChanged(map); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); itptr=new SLangWrapper(); waitImgs << ":/progress/prog0.png" << ":/progress/prog1.png" << ":/progress/prog2.png" << ":/progress/prog3.png" << ":/progress/prog4.png" << ":/progress/prog5.png" << ":/progress/prog6.png" << ":/progress/prog7.png"; waitTimer = new QTimer(this); waitTimer->setInterval(100); waitTimer->setSingleShot(false); connect(waitTimer,SIGNAL(timeout()),this,SLOT(onProgressTimerTick())); connect(itptr,SIGNAL(executionStarted()),this,SLOT(onScriptRunning())); connect(itptr,SIGNAL(executionEnded()),this,SLOT(onScriptStoped())); connect(ui->lwApi,SIGNAL(doubleClicked(QModelIndex)),this,SLOT(on_pbExecute_clicked())); ce = new CodeEditor(this); ui->wtPanel->insertTab(1,ce,tr("Code")); ui->wtPanel->setCurrentIndex(0); codeFileManager = new CodeFile(this); connect(codeFileManager,SIGNAL(setFilenameIndicator(QString)),this,SLOT(onFilenameIndicatorChanged(QString))); PlaneTextConsoleInterface * cis = new PlaneTextConsoleInterface(); cis->setParent(this); cis->setPlaneTextEdit(ui->consoleView); cis->setProgressBar(ui->progressBar); itptr->setConsoleInterface(cis); ci=cis; hfm = new HexFilesMenager(this); hfm->setTabWidget(ui->twHex); hfm->setInfoLine(ui->hexInfoLine); itptr->setMemoryInterface(hfm); imp = new ImportExportMenager(this); imp->setHexFilesMenager(hfm); imp->setConsoleInterfaceMenager(ci); onScriptStoped(); driverWindow = new DriverDialog(this); driverWindow->setModal(true); cis->print("Hardware configuration:\n"); cis->print("COM port: "+driverWindow->getCurrentComPort()->description()+"\n"); cis->print("LPT port: "+driverWindow->getCurrentLptPort()->description()+"\n"); cis->print("I2C port: "+driverWindow->getCurrentI2cPort()->description()+"\n"); optionWindow = new OptionsDialog(this); optionWindow->setModal(true); codeFileManager->setCodeEditor(ce); codeFileManager->setSelectTreeWidget(ui->twScriptCatalog); connect(optionWindow,SIGNAL(updateScriptLibrary(QStringList)),codeFileManager,SLOT(updateLibrary(QStringList))); optionWindow->sendPathList(); //connect(ti,SIGNAL(addPageSignal(QByteArray,QString)),this,SLOT(addNewHexPage(QByteArray,QString))); //connect(ti,SIGNAL(overwritePageSignal(QByteArray*)),this,SLOT(overwriteHexPage(QByteArray*)),Qt::QueuedConnection); connect(hfm,SIGNAL(enableFilePrcessing(bool)),ui->menuHex,SLOT(setEnabled(bool))); connect(ce,SIGNAL(textChanged()),this,SLOT(scriptChanged())); use_settings; if (settings.value("saveGui",0).toInt()==2) { settings.beginGroup("Window"); this->setGeometry(settings.value("Geometry",this->geometry()).toRect()); this->restoreState(settings.value("State",this->saveState()).toByteArray()); settings.endGroup(); } installEventFilter(this); helpWindow = new HelpWindow(this); emit hexPageCountChange(); }