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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user