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

@@ -31,9 +31,13 @@ class cDialog {
cKey parseKey(std::string what);
WindowRef win;
cTextField* currentFocus;
class _init {
_init();
~_init();
};
static _init init;
public:
static const short BG_LIGHT, BG_DARK;
static void init(); // must call this before constructing any dialogs
cDialog(std::string path); // cd_create_dialog
cDialog(std::string path,cDialog parent); // cd_create_dialog_parent_num
~cDialog(); // cd_kill_dialog
@@ -44,6 +48,7 @@ public:
void setBg(short n);
void setDefTextClr(RGBColor clr);
void toast();
cControl& operator[](std::string id);
private:
void draw();
std::string process_keystroke(cKey keyHit);
@@ -57,6 +62,7 @@ private:
friend class cPict;
friend class cTextField;
friend class cTextMsg;
friend class _init;
};
class xBadNode : std::exception {