CLuaInstance: Move msg box functions in separate classes / files

- hintbox
 - messagebox

 - No api changes, code only


Origin commit data
------------------
Branch: ni/coolstream
Commit: b904febf6a
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-12 (Sat, 12 Dec 2015)



------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2015-12-12 10:22:02 +01:00
parent 672e1ca1d0
commit 7e019ec888
7 changed files with 422 additions and 277 deletions

View File

@@ -26,8 +26,6 @@ extern "C" {
#include <lualib.h>
}
#include <driver/fb_window.h>
#include <gui/widget/hintbox.h>
#include <gui/widget/messagebox.h>
#include <vector>
#include "luainstance_helpers.h"
@@ -35,24 +33,6 @@ extern "C" {
#define LUA_API_VERSION_MAJOR 1
#define LUA_API_VERSION_MINOR 22
class CLuaHintbox
{
public:
CHintBox *b;
char *caption;
CLuaHintbox();
~CLuaHintbox();
};
class CLuaMessagebox
{
public:
CMessageBox *b;
CLuaMessagebox();
~CLuaMessagebox();
};
/* inspired by Steve Kemp http://www.steve.org.uk/ */
class CLuaInstance
{
@@ -105,18 +85,6 @@ private:
static int strFind(lua_State *L);
static int strSub(lua_State *L);
void HintboxRegister(lua_State *L);
static int HintboxNew(lua_State *L);
static int HintboxDelete(lua_State *L);
static int HintboxExec(lua_State *L);
static int HintboxPaint(lua_State *L);
static int HintboxHide(lua_State *L);
static CLuaHintbox *HintboxCheck(lua_State *L, int n);
void MessageboxRegister(lua_State *L);
static int MessageboxExec(lua_State *L);
static CLuaMessagebox *MessageboxCheck(lua_State *L, int n);
static int checkVersion(lua_State *L);
static int createChannelIDfromUrl(lua_State *L);
static int enableInfoClock(lua_State *L);