Changeset View
Changeset View
Standalone View
Standalone View
src/backends/R/rvariablemodel.h
- This file was copied from src/backends/python2/testpython2.h.
Show All 9 Lines | 1 | /* | |||
---|---|---|---|---|---|
10 | GNU General Public License for more details. | 10 | GNU General Public License for more details. | ||
11 | 11 | | |||
12 | You should have received a copy of the GNU General Public License | 12 | You should have received a copy of the GNU General Public License | ||
13 | along with this program; if not, write to the Free Software | 13 | along with this program; if not, write to the Free Software | ||
14 | Foundation, Inc., 51 Franklin Street, Fifth Floor, | 14 | Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
15 | Boston, MA 02110-1301, USA. | 15 | Boston, MA 02110-1301, USA. | ||
16 | 16 | | |||
17 | --- | 17 | --- | ||
18 | Copyright (C) 2013 Tuukka Verho <tuukka.verho@aalto.fi> | 18 | Copyright (C) 2018 Nikita Sirgienko <warquark@gmail.com> | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef _TESTPYTHON2_H | 21 | #ifndef _RVARIABLEMODEL_H | ||
22 | #define _TESTPYTHON2_H | 22 | #define _RVARIABLEMODEL_H | ||
23 | 23 | | |||
24 | #include "backendtest.h" | 24 | #include "defaultvariablemodel.h" | ||
asemke: whitespace? | |||||
25 | 25 | | |||
26 | class RSession; | ||||
26 | 27 | | |||
27 | class TestPython2 : public BackendTest | 28 | class RVariableModel : public Cantor::DefaultVariableModel | ||
28 | { | 29 | { | ||
29 | Q_OBJECT | 30 | Q_OBJECT | ||
30 | private Q_SLOTS: | 31 | public: | ||
31 | void testImportNumpy(); | 32 | RVariableModel( RSession* session); | ||
32 | void testCodeWithComments(); | 33 | ~RVariableModel() override = default; | ||
33 | void testSimpleCode(); | 34 | | ||
34 | void testMultilineCode(); | 35 | void update() override; | ||
36 | | ||||
37 | public Q_SLOTS: | ||||
asemke: can the signals be made part of the base class? | |||||
38 | void parseResult(const QStringList& names, const QStringList& values, const QStringList& funcs); | ||||
35 | 39 | | |||
36 | private: | 40 | private: | ||
37 | QString backendName() override; | 41 | QStringList m_functions; | ||
38 | }; | 42 | }; | ||
39 | 43 | | |||
40 | #endif /* _TESTPYTHON2_H */ | 44 | #endif /* _RVARIABLEMODEL_H */ |
whitespace?