mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CLuaInstance: Move msg box functions in separate classes / files
- hintbox - messagebox - No api changes, code only
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user