Skip to content

Commit

Permalink
Bugfix: create slide snapshot scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
insilmaril committed Jan 3, 2017
1 parent d38fd96 commit 5d79127
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
File renamed without changes.
9 changes: 5 additions & 4 deletions macros/slideeditor-snapshot.vys
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Template for taking snapshots in slideeditor
// Template for taking snapshots in slideeditor

setMapZoom(CURRENT_ZOOM);
setMapRotation(CURRENT_ANGLE);
centerOnID(CURRENT_ID);
map = vym.currentMap();
map.setMapZoom(CURRENT_ZOOM);
map.setMapRotation(CURRENT_ANGLE);
map.centerOnID(CURRENT_ID);
6 changes: 3 additions & 3 deletions scripteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ void ScriptEditor::setSlideScript(uint model_id, uint slide_id,const QString &s)

void ScriptEditor::runMacro()
{
emit runLegacyScript (ui.macroEditor->toPlainText() );
emit runScript (ui.macroEditor->toPlainText() );
}

void ScriptEditor::runSlide()
{
emit runLegacyScript (ui.slideEditor->toPlainText() );
emit runScript (ui.slideEditor->toPlainText() );
}

void ScriptEditor::runFile()
Expand All @@ -152,7 +152,7 @@ void ScriptEditor::saveMacro()
}
void ScriptEditor::loadFile()
{
QString filter("VYM scripts (*.vys *.js);;All (*)");
QString filter("VYM scripts (*.vys);;All (*)");
QString fn = QFileDialog::getOpenFileName(
this,
vymName + " - " + tr("Load script"),
Expand Down
1 change: 0 additions & 1 deletion scripteditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public slots:
void saveFileAs();

signals:
void runLegacyScript (QString);
void runScript (QString);

private:
Expand Down

0 comments on commit 5d79127

Please sign in to comment.