6 changes: 6 additions & 0 deletions src/libkstapp/scriptserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ public slots:
QByteArray getBoxList(QByteArray& command, QLocalSocket* s,ObjectStore*_store);
QByteArray newBox(QByteArray& command, QLocalSocket* s,ObjectStore*_store);

QByteArray getLegendList(QByteArray& command, QLocalSocket* s,ObjectStore*_store);
QByteArray newLegend(QByteArray& command, QLocalSocket* s,ObjectStore*_store);

QByteArray getButtonList(QByteArray& command, QLocalSocket* s,ObjectStore*_store);
QByteArray newButton(QByteArray& command, QLocalSocket* s,ObjectStore*_store);

Expand Down Expand Up @@ -173,6 +176,9 @@ public slots:
QByteArray setDatasourceBoolConfig(QByteArray& command, QLocalSocket* s,ObjectStore*_store);
QByteArray setDatasourceIntConfig(QByteArray& command, QLocalSocket* s,ObjectStore*_store);
QByteArray setDatasourceStringConfig(QByteArray& command, QLocalSocket* s,ObjectStore*_store);

QByteArray testCommand(QByteArray& command, QLocalSocket* s,ObjectStore*_store);

};


Expand Down
1 change: 1 addition & 0 deletions src/libkstapp/viewitemscriptinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ ScriptInterface* ViewItemSI::newBox() {
return new ViewItemSI(bi);
}


ScriptInterface* ViewItemSI::newButton() {
ButtonItem* bi=new ButtonItem(kstApp->mainWindow()->tabWidget()->currentView());
kstApp->mainWindow()->tabWidget()->currentView()->scene()->addItem(bi);
Expand Down
2 changes: 2 additions & 0 deletions src/libkstapp/viewitemscriptinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "labelitem.h"
#include "pictureitem.h"
#include "svgitem.h"
#include "legenditem.h"
#include "plotitem.h"

#ifndef VIEWITEMSCRIPTINTERFACE_H
#define VIEWITEMSCRIPTINTERFACE_H
Expand Down