mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
- luainstance: add CKeybordInput
Syntax: m:addItem { \ type="keyboardinput", \ action="_action", \ id="_id", \ value="_value", \ name="_name", \ help="help (first line)", help2="help (second line)" }
This commit is contained in:
@@ -103,6 +103,20 @@ class CLuaMenuStringinput : public CLuaMenuForwarder
|
||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
};
|
||||
|
||||
class CLuaMenuKeyboardinput : public CLuaMenuForwarder
|
||||
{
|
||||
private:
|
||||
std::string *value;
|
||||
const char *name;
|
||||
const char *icon;
|
||||
int size;
|
||||
CChangeObserver *observ;
|
||||
std::string help, help2;
|
||||
public:
|
||||
CLuaMenuKeyboardinput(lua_State *_L, std::string _luaAction, std::string _luaId, const char *_name, std::string *_value, int _size, CChangeObserver *_observ, const char *_icon, std::string _help, std::string _help2);
|
||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
};
|
||||
|
||||
class CLuaHintbox
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user