The new dialog engine is now essentially complete and ready for testing. There could still be some error checking in the cPict class to make sure the required GWorld exists, though.

git-svn-id: http://openexile.googlecode.com/svn/trunk@76 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-05-27 04:05:08 +00:00
parent 5417fda4ca
commit 1af17438f3
12 changed files with 312 additions and 96 deletions

View File

@@ -18,7 +18,7 @@ void cTextMsg::attachFocusHandler(focus_callback_t f __attribute__((unused))) th
throw xHandlerNotSupported(true);
}
bool cTextMsg::triggerClickHandler(cDialog& me, std::string id, eKeyMod mods){
bool cTextMsg::triggerClickHandler(cDialog& me, std::string id, eKeyMod mods, Point where){
if(onClick != NULL) return onClick(me,id,mods);
return false;
}
@@ -90,15 +90,7 @@ short cTextMsg::getFormat(eFormat prop) throw(xUnsupportedProp){
return 0;
}
std::string cTextMsg::getText(){
return getLabel();
}
void cTextMsg::setText(std::string what){
setLabel(what);
}
cTextMsg::cTextMsg(cDialog* parent) : cControl(parent) {}
cTextMsg::cTextMsg(cDialog* parent) : cControl(parent,CTRL_TEXT) {}
bool cTextMsg::isClickable(){
return clickable;