added "install" instruction
[Leditor.git] / src / lqt_function.hpp
blob97c6897ecf2798880d52682b9742c3b9c763bf54
1 #ifndef __LQT_FUNCTION
2 #define __LQT_FUNCTION
4 #include "lqt_common.hpp"
6 #include <QObject>
7 //#include <QDebug>
9 #define LUA_FUNCTION_REGISTRY "Registry Function"
10 //#ifndef SEE_STACK
11 //# define SEE_STACK(L, j) for (int j=1;j<=lua_gettop(L);j++) { qDebug() << j << '=' << luaL_typename(L, j) << '@' << lua_topointer (L, j); }
12 //#endif
14 class LuaFunction: public QObject {
15 Q_OBJECT
17 public:
18 LuaFunction(lua_State *state);
19 virtual ~LuaFunction();
21 private:
22 lua_State *L;
23 static int __gc (lua_State *L);
24 protected:
25 public:
26 public slots:
27 void function ();
28 void function (double arg1);
29 void function (int arg1);
30 void function (const char * arg1);
31 void function (bool arg1);
32 void function (int arg1, const char * arg2);
33 void function (bool arg1, double arg2);
34 void function (bool arg1, int arg2);
35 void function (int arg1, int arg2);
36 void function (bool arg1, bool arg2);
37 void function (bool arg1, const char * arg2);
38 void function (int arg1, double arg2);
39 void function (double arg1, int arg2);
40 void function (const char * arg1, bool arg2);
41 void function (int arg1, bool arg2);
42 void function (double arg1, double arg2);
43 void function (const char * arg1, double arg2);
44 void function (const char * arg1, int arg2);
45 void function (double arg1, bool arg2);
46 void function (double arg1, const char * arg2);
47 void function (const char * arg1, const char * arg2);
51 #endif // __LQT_FUNCTION