Changeset View
Changeset View
Standalone View
Standalone View
src/backends/python/pythonvariablemodel.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) 2019 Nikita Sirgienko <warquark@gmail.com> | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef _TESTPYTHON2_H | 21 | #ifndef _PYTHONVARIABLEMODEL_H | ||
22 | #define _TESTPYTHON2_H | 22 | #define _PYTHONVARIABLEMODEL_H | ||
23 | 23 | | |||
24 | #include "backendtest.h" | 24 | #include "defaultvariablemodel.h" | ||
25 | 25 | | |||
26 | class PythonSession; | ||||
27 | class QDBusInterface; | ||||
26 | 28 | | |||
27 | class TestPython2 : public BackendTest | 29 | class PythonVariableModel : public Cantor::DefaultVariableModel | ||
28 | { | 30 | { | ||
29 | Q_OBJECT | 31 | public: | ||
30 | private Q_SLOTS: | 32 | PythonVariableModel( PythonSession* session); | ||
31 | void testImportNumpy(); | 33 | ~PythonVariableModel() override = default; | ||
32 | void testCodeWithComments(); | 34 | | ||
33 | void testSimpleCode(); | 35 | void update() override; | ||
34 | void testMultilineCode(); | 36 | | ||
37 | void setPythonServer(QDBusInterface* pIface); | ||||
35 | 38 | | |||
36 | private: | 39 | private: | ||
37 | QString backendName() override; | 40 | QDBusInterface* m_pIface; | ||
38 | }; | 41 | }; | ||
39 | 42 | | |||
40 | #endif /* _TESTPYTHON2_H */ | 43 | #endif /* _PYTHONVARIABLEMODEL_H */ |