forked from emilk/sproxel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.h
42 lines (26 loc) · 784 Bytes
/
script.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __SPROXEL_SCRIPT_H__
#define __SPROXEL_SCRIPT_H__
#ifdef SPROXEL_USE_PYTHON
#if defined(__APPLE__)
#include <Python/Python.h>
#else
# include <Python.h>
#endif
void init_script(const char *exe_path);
void close_script();
void script_set_main_window(class MainWindow *);
void scan_plugins();
void register_plugins();
void unregister_plugins();
bool run_script(const class QString &filename);
#define GLUE(a, b) a##b
#define TOPYT(cls) PyObject * GLUE(cls, _toPy ) (class cls *);
#define TOCPP(cls) class cls* GLUE(cls, _toCpp) (PyObject *);
#include "glue/classGlue.h"
#undef GLUE
extern class QDir exe_dir;
extern PyObject *py_save_project, *py_load_project;
PyObject* qstr_to_py(const QString &str);
bool py_to_qstr(PyObject *o, QString &str);
#endif
#endif