|
@@ -2,23 +2,22 @@ $#include "MessageBox.h"
|
|
|
|
|
|
|
|
class MessageBox : public Object
|
|
class MessageBox : public Object
|
|
|
{
|
|
{
|
|
|
- MessageBox(const String& messageString = String::EMPTY, const String& titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0);
|
|
|
|
|
|
|
+ MessageBox(const String messageString = String::EMPTY, const String titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0);
|
|
|
virtual ~MessageBox();
|
|
virtual ~MessageBox();
|
|
|
|
|
|
|
|
- void SetTitle(const String& text);
|
|
|
|
|
- void SetMessage(const String& text);
|
|
|
|
|
|
|
+ void SetTitle(const String text);
|
|
|
|
|
+ void SetMessage(const String text);
|
|
|
|
|
|
|
|
const String GetTitle() const;
|
|
const String GetTitle() const;
|
|
|
const String GetMessage() const;
|
|
const String GetMessage() const;
|
|
|
UIElement* GetWindow() const;
|
|
UIElement* GetWindow() const;
|
|
|
|
|
|
|
|
- tolua_property__get_set String& title;
|
|
|
|
|
- tolua_property__get_set String& message;
|
|
|
|
|
|
|
+ tolua_property__get_set String title;
|
|
|
|
|
+ tolua_property__get_set String message;
|
|
|
tolua_readonly tolua_property__get_set UIElement* window;
|
|
tolua_readonly tolua_property__get_set UIElement* window;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
${
|
|
${
|
|
|
-/* method: new of class MessageBox */
|
|
|
|
|
#define TOLUA_DISABLE_tolua_UILuaAPI_MessageBox_new00
|
|
#define TOLUA_DISABLE_tolua_UILuaAPI_MessageBox_new00
|
|
|
static int tolua_UILuaAPI_MessageBox_new00(lua_State* tolua_S)
|
|
static int tolua_UILuaAPI_MessageBox_new00(lua_State* tolua_S)
|
|
|
{
|
|
{
|
|
@@ -26,14 +25,22 @@ static int tolua_UILuaAPI_MessageBox_new00(lua_State* tolua_S)
|
|
|
tolua_Error tolua_err;
|
|
tolua_Error tolua_err;
|
|
|
if (
|
|
if (
|
|
|
!tolua_isusertable(tolua_S,1,"MessageBox",0,&tolua_err) ||
|
|
!tolua_isusertable(tolua_S,1,"MessageBox",0,&tolua_err) ||
|
|
|
- !tolua_isnoobj(tolua_S,2,&tolua_err)
|
|
|
|
|
|
|
+ !tolua_isurho3dstring(tolua_S,2,1,&tolua_err) ||
|
|
|
|
|
+ !tolua_isurho3dstring(tolua_S,3,1,&tolua_err) ||
|
|
|
|
|
+ !tolua_isusertype(tolua_S,4,"XMLFile",1,&tolua_err) ||
|
|
|
|
|
+ !tolua_isusertype(tolua_S,5,"XMLFile",1,&tolua_err) ||
|
|
|
|
|
+ !tolua_isnoobj(tolua_S,6,&tolua_err)
|
|
|
)
|
|
)
|
|
|
goto tolua_lerror;
|
|
goto tolua_lerror;
|
|
|
else
|
|
else
|
|
|
#endif
|
|
#endif
|
|
|
{
|
|
{
|
|
|
|
|
+ const String messageString = ((const String) tolua_tourho3dstring(tolua_S,2,String::EMPTY));
|
|
|
|
|
+ const String titleString = ((const String) tolua_tourho3dstring(tolua_S,3,String::EMPTY));
|
|
|
|
|
+ XMLFile* layoutFile = ((XMLFile*) tolua_tousertype(tolua_S,4,0));
|
|
|
|
|
+ XMLFile* styleFile = ((XMLFile*) tolua_tousertype(tolua_S,5,0));
|
|
|
{
|
|
{
|
|
|
- MessageBox* tolua_ret = (MessageBox*) Mtolua_new((MessageBox)(GetContext(tolua_S)));
|
|
|
|
|
|
|
+ MessageBox* tolua_ret = (MessageBox*) Mtolua_new((MessageBox)(GetContext(tolua_S),messageString,titleString,layoutFile,styleFile));
|
|
|
tolua_pushusertype(tolua_S,(void*)tolua_ret,"MessageBox");
|
|
tolua_pushusertype(tolua_S,(void*)tolua_ret,"MessageBox");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -45,7 +52,6 @@ static int tolua_UILuaAPI_MessageBox_new00(lua_State* tolua_S)
|
|
|
#endif
|
|
#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* method: new_local of class MessageBox */
|
|
|
|
|
#define TOLUA_DISABLE_tolua_UILuaAPI_MessageBox_new00_local
|
|
#define TOLUA_DISABLE_tolua_UILuaAPI_MessageBox_new00_local
|
|
|
static int tolua_UILuaAPI_MessageBox_new00_local(lua_State* tolua_S)
|
|
static int tolua_UILuaAPI_MessageBox_new00_local(lua_State* tolua_S)
|
|
|
{
|
|
{
|
|
@@ -53,14 +59,22 @@ static int tolua_UILuaAPI_MessageBox_new00_local(lua_State* tolua_S)
|
|
|
tolua_Error tolua_err;
|
|
tolua_Error tolua_err;
|
|
|
if (
|
|
if (
|
|
|
!tolua_isusertable(tolua_S,1,"MessageBox",0,&tolua_err) ||
|
|
!tolua_isusertable(tolua_S,1,"MessageBox",0,&tolua_err) ||
|
|
|
- !tolua_isnoobj(tolua_S,2,&tolua_err)
|
|
|
|
|
|
|
+ !tolua_isurho3dstring(tolua_S,2,1,&tolua_err) ||
|
|
|
|
|
+ !tolua_isurho3dstring(tolua_S,3,1,&tolua_err) ||
|
|
|
|
|
+ !tolua_isusertype(tolua_S,4,"XMLFile",1,&tolua_err) ||
|
|
|
|
|
+ !tolua_isusertype(tolua_S,5,"XMLFile",1,&tolua_err) ||
|
|
|
|
|
+ !tolua_isnoobj(tolua_S,6,&tolua_err)
|
|
|
)
|
|
)
|
|
|
goto tolua_lerror;
|
|
goto tolua_lerror;
|
|
|
else
|
|
else
|
|
|
#endif
|
|
#endif
|
|
|
{
|
|
{
|
|
|
|
|
+ const String messageString = ((const String) tolua_tourho3dstring(tolua_S,2,String::EMPTY));
|
|
|
|
|
+ const String titleString = ((const String) tolua_tourho3dstring(tolua_S,3,String::EMPTY));
|
|
|
|
|
+ XMLFile* layoutFile = ((XMLFile*) tolua_tousertype(tolua_S,4,0));
|
|
|
|
|
+ XMLFile* styleFile = ((XMLFile*) tolua_tousertype(tolua_S,5,0));
|
|
|
{
|
|
{
|
|
|
- MessageBox* tolua_ret = (MessageBox*) Mtolua_new((MessageBox)(GetContext(tolua_S)));
|
|
|
|
|
|
|
+ MessageBox* tolua_ret = (MessageBox*) Mtolua_new((MessageBox)(GetContext(tolua_S),messageString,titleString,layoutFile,styleFile));
|
|
|
tolua_pushusertype(tolua_S,(void*)tolua_ret,"MessageBox");
|
|
tolua_pushusertype(tolua_S,(void*)tolua_ret,"MessageBox");
|
|
|
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
|
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
|
|
}
|
|
}
|
|
@@ -72,120 +86,4 @@ static int tolua_UILuaAPI_MessageBox_new00_local(lua_State* tolua_S)
|
|
|
return 0;
|
|
return 0;
|
|
|
#endif
|
|
#endif
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* method: new of class MessageBox */
|
|
|
|
|
-#define TOLUA_DISABLE_tolua_UILuaAPI_MessageBox_new01
|
|
|
|
|
-static int tolua_UILuaAPI_MessageBox_new01(lua_State* tolua_S)
|
|
|
|
|
-{
|
|
|
|
|
- tolua_Error tolua_err;
|
|
|
|
|
- if (
|
|
|
|
|
- !tolua_isusertable(tolua_S,1,"MessageBox",0,&tolua_err) ||
|
|
|
|
|
- !tolua_isurho3dstring(tolua_S,2,0,&tolua_err) ||
|
|
|
|
|
- !tolua_isnoobj(tolua_S,3,&tolua_err)
|
|
|
|
|
- )
|
|
|
|
|
- goto tolua_lerror;
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- const String messageString = ((const String) tolua_tourho3dstring(tolua_S,2,0));
|
|
|
|
|
- {
|
|
|
|
|
- MessageBox* tolua_ret = (MessageBox*) Mtolua_new((MessageBox)(GetContext(tolua_S),messageString));
|
|
|
|
|
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"MessageBox");
|
|
|
|
|
- tolua_pushurho3dstring(tolua_S,(const char*)messageString);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- return 2;
|
|
|
|
|
-tolua_lerror:
|
|
|
|
|
- return tolua_UILuaAPI_MessageBox_new00(tolua_S);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/* method: new_local of class MessageBox */
|
|
|
|
|
-#define TOLUA_DISABLE_tolua_UILuaAPI_MessageBox_new01_local
|
|
|
|
|
-static int tolua_UILuaAPI_MessageBox_new01_local(lua_State* tolua_S)
|
|
|
|
|
-{
|
|
|
|
|
- tolua_Error tolua_err;
|
|
|
|
|
- if (
|
|
|
|
|
- !tolua_isusertable(tolua_S,1,"MessageBox",0,&tolua_err) ||
|
|
|
|
|
- !tolua_isurho3dstring(tolua_S,2,0,&tolua_err) ||
|
|
|
|
|
- !tolua_isnoobj(tolua_S,3,&tolua_err)
|
|
|
|
|
- )
|
|
|
|
|
- goto tolua_lerror;
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- const String messageString = ((const String) tolua_tourho3dstring(tolua_S,2,0));
|
|
|
|
|
- {
|
|
|
|
|
- MessageBox* tolua_ret = (MessageBox*) Mtolua_new((MessageBox)(GetContext(tolua_S),messageString));
|
|
|
|
|
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"MessageBox");
|
|
|
|
|
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
|
|
|
|
- tolua_pushurho3dstring(tolua_S,(const char*)messageString);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- return 2;
|
|
|
|
|
-tolua_lerror:
|
|
|
|
|
- return tolua_UILuaAPI_MessageBox_new00_local(tolua_S);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/* method: new of class MessageBox */
|
|
|
|
|
-#define TOLUA_DISABLE_tolua_UILuaAPI_MessageBox_new02
|
|
|
|
|
-static int tolua_UILuaAPI_MessageBox_new02(lua_State* tolua_S)
|
|
|
|
|
-{
|
|
|
|
|
- tolua_Error tolua_err;
|
|
|
|
|
- if (
|
|
|
|
|
- !tolua_isusertable(tolua_S,1,"MessageBox",0,&tolua_err) ||
|
|
|
|
|
- !tolua_isurho3dstring(tolua_S,2,0,&tolua_err) ||
|
|
|
|
|
- !tolua_isurho3dstring(tolua_S,3,0,&tolua_err) ||
|
|
|
|
|
- !tolua_isusertype(tolua_S,4,"XMLFile",1,&tolua_err) ||
|
|
|
|
|
- !tolua_isusertype(tolua_S,5,"XMLFile",1,&tolua_err) ||
|
|
|
|
|
- !tolua_isnoobj(tolua_S,6,&tolua_err)
|
|
|
|
|
- )
|
|
|
|
|
- goto tolua_lerror;
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- const String messageString = ((const String) tolua_tourho3dstring(tolua_S,2,0));
|
|
|
|
|
- const String titleString = ((const String) tolua_tourho3dstring(tolua_S,3,0));
|
|
|
|
|
- XMLFile* layoutFile = ((XMLFile*) tolua_tousertype(tolua_S,4,0));
|
|
|
|
|
- XMLFile* styleFile = ((XMLFile*) tolua_tousertype(tolua_S,5,0));
|
|
|
|
|
- {
|
|
|
|
|
- MessageBox* tolua_ret = (MessageBox*) Mtolua_new((MessageBox)(GetContext(tolua_S),messageString,titleString,layoutFile,styleFile));
|
|
|
|
|
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"MessageBox");
|
|
|
|
|
- tolua_pushurho3dstring(tolua_S,(const char*)messageString);
|
|
|
|
|
- tolua_pushurho3dstring(tolua_S,(const char*)titleString);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- return 3;
|
|
|
|
|
-tolua_lerror:
|
|
|
|
|
- return tolua_UILuaAPI_MessageBox_new01(tolua_S);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/* method: new_local of class MessageBox */
|
|
|
|
|
-#define TOLUA_DISABLE_tolua_UILuaAPI_MessageBox_new02_local
|
|
|
|
|
-static int tolua_UILuaAPI_MessageBox_new02_local(lua_State* tolua_S)
|
|
|
|
|
-{
|
|
|
|
|
- tolua_Error tolua_err;
|
|
|
|
|
- if (
|
|
|
|
|
- !tolua_isusertable(tolua_S,1,"MessageBox",0,&tolua_err) ||
|
|
|
|
|
- !tolua_isurho3dstring(tolua_S,2,0,&tolua_err) ||
|
|
|
|
|
- !tolua_isurho3dstring(tolua_S,3,0,&tolua_err) ||
|
|
|
|
|
- !tolua_isusertype(tolua_S,4,"XMLFile",1,&tolua_err) ||
|
|
|
|
|
- !tolua_isusertype(tolua_S,5,"XMLFile",1,&tolua_err) ||
|
|
|
|
|
- !tolua_isnoobj(tolua_S,6,&tolua_err)
|
|
|
|
|
- )
|
|
|
|
|
- goto tolua_lerror;
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- const String messageString = ((const String) tolua_tourho3dstring(tolua_S,2,0));
|
|
|
|
|
- const String titleString = ((const String) tolua_tourho3dstring(tolua_S,3,0));
|
|
|
|
|
- XMLFile* layoutFile = ((XMLFile*) tolua_tousertype(tolua_S,4,0));
|
|
|
|
|
- XMLFile* styleFile = ((XMLFile*) tolua_tousertype(tolua_S,5,0));
|
|
|
|
|
- {
|
|
|
|
|
- MessageBox* tolua_ret = (MessageBox*) Mtolua_new((MessageBox)(GetContext(tolua_S),messageString,titleString,layoutFile,styleFile));
|
|
|
|
|
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"MessageBox");
|
|
|
|
|
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
|
|
|
|
- tolua_pushurho3dstring(tolua_S,(const char*)messageString);
|
|
|
|
|
- tolua_pushurho3dstring(tolua_S,(const char*)titleString);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- return 3;
|
|
|
|
|
-tolua_lerror:
|
|
|
|
|
- return tolua_UILuaAPI_MessageBox_new01_local(tolua_S);
|
|
|
|
|
-}
|
|
|
|
|
$}
|
|
$}
|