File indexing completed on 2024-12-22 04:17:22

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2014 Barth Netterfield                                *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef SCALARSCRIPTINTERFACE_H
0014 #define SCALARSCRIPTINTERFACE_H
0015 
0016 #include <QString>
0017 
0018 #include "scriptinterface.h"
0019 #include "datascalar.h"
0020 #include "vscalar.h"
0021 
0022 namespace Kst {
0023 
0024 class KSTCORE_EXPORT ScalarGenSI : public ScriptInterface
0025 {
0026     Q_OBJECT
0027     ScalarPtr scalar;
0028 public:
0029     explicit ScalarGenSI(ScalarPtr it);
0030     QString doCommand(QString);
0031     bool isValid();
0032     QByteArray endEditUpdate();
0033 
0034     static ScriptInterface* newScalar(ObjectStore *store);
0035 
0036 };
0037 
0038 
0039 class KSTCORE_EXPORT ScalarDataSI : public ScriptInterface
0040 {
0041     Q_OBJECT
0042     DataScalarPtr scalar;
0043 public:
0044     explicit ScalarDataSI(DataScalarPtr it);
0045     QString doCommand(QString);
0046     bool isValid();
0047     QByteArray endEditUpdate();
0048 
0049     static ScriptInterface* newScalar(ObjectStore *store);
0050 
0051 };
0052 
0053 
0054 class KSTCORE_EXPORT ScalarVectorSI : public ScriptInterface
0055 {
0056     Q_OBJECT
0057     VScalarPtr scalar;
0058 public:
0059     explicit ScalarVectorSI(VScalarPtr it);
0060     QString doCommand(QString);
0061     bool isValid();
0062     QByteArray endEditUpdate();
0063 
0064     static ScriptInterface* newScalar(ObjectStore *store);
0065 
0066 };
0067 
0068 }
0069 #endif // SCALARSCRIPTINTERFACE_H