diff options
author | deva <deva> | 2011-03-10 15:07:26 +0000 |
---|---|---|
committer | deva <deva> | 2011-03-10 15:07:26 +0000 |
commit | 3b4966ef4dbabbbc0fcb62b7b1a52ad9f327de1d (patch) | |
tree | f777d58b8cf08b6fa6a17e233c85eff91c82665f /client/lua.h | |
parent | 56deeeb81d9ed9e535cb0f9a74f355eaed6281ec (diff) |
New lua functions: template(), macro(), user() and patientid(). New onInit lua callback attribute.
Diffstat (limited to 'client/lua.h')
-rw-r--r-- | client/lua.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/client/lua.h b/client/lua.h index 8200873..fcc7f54 100644 --- a/client/lua.h +++ b/client/lua.h @@ -36,7 +36,8 @@ class Widget; class LUA { public: - LUA(Widget **rootwidget); + LUA(Widget **rootwidget, QString templ, QString macro, QString user, + QString patientid); ~LUA(); bool runScript(QString script, Widget *widget, QString name = ""); @@ -46,9 +47,20 @@ public: void clear(); + QString getTemplate(); + QString getMacro(); + QString getUser(); + QString getPatientID(); + + QString macro; + private: lua_State *L; Widget **rootwidget; + + QString templ; + QString user; + QString patientid; }; #endif/*__PRACRO_LUA_H__*/ |