-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobalUI.h
33 lines (27 loc) · 907 Bytes
/
GlobalUI.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
#ifndef _GLOBAL_UI_H_
#define _GLOBAL_UI_H_
#pragma once
// a lua script can access all the functionalities of the ogrefltk framework.
// this is for enabling command line mode execution. e.g. batch optimization.
// this class should be written in a general way.
// can access to FlLayout, FlChoiceWin, Loader, MotionPanel, luawrapper, etc...(only inside the lua script, or a lua console.)
class LUAwrapper;
class FlLayout;
#ifdef USE_LUABIND
#include "luabindWorker.h"
#endif
#include "WrapperLua/OR_LUA_Stack.h"
class GlobalUI : public OR::LUAWrap::Worker
{
TStrings _param;
LUAwrapper* _L;
public:
GlobalUI(FlLayout* win, int argc, char* argv[]);
~GlobalUI();
void releaseScript();
#ifdef USE_LUABIND
virtual void work(const char* wn, luabind::adl::object const& table);
#endif
virtual int work(TString const& workname, OR::LUAStack& L);
};
#endif