working on ScreenOptionsProfiles

This commit is contained in:
Chris Danford
2005-07-05 23:13:49 +00:00
parent c69c3af4b9
commit 7c6dbc102b
10 changed files with 158 additions and 51 deletions
+12 -9
View File
@@ -32,12 +32,15 @@ public:
CString sQuestion,
CString sInitialAnswer,
int iMaxInputLength,
bool(*Validate)(CString sAnswer,CString &sErrorOut) = NULL,
void(*OnOK)(CString sAnswer) = NULL,
bool(*Validate)(const CString &sAnswer,CString &sErrorOut) = NULL,
void(*OnOK)(const CString &sAnswer) = NULL,
void(*OnCanel)() = NULL,
bool bPassword = false
);
static void Password( ScreenMessage smSendOnPop, const CString &sQuestion, void(*OnOK)(CString sPassword) = NULL, void(*OnCanel)() = NULL )
bool bPassword = false );
static void Password(
ScreenMessage smSendOnPop,
const CString &sQuestion,
void(*OnOK)(const CString &sPassword) = NULL,
void(*OnCanel)() = NULL )
{
TextEntry( smSendOnPop, sQuestion, "", 255, NULL, OnOK, OnCanel, true );
}
@@ -48,8 +51,8 @@ public:
CString sQuestion,
CString sInitialAnswer,
int iMaxInputLength,
bool(*Validate)(CString sAnswer,CString &sErrorOut) = NULL,
void(*OnOK)(CString sAnswer) = NULL,
bool(*Validate)(const CString &sAnswer,CString &sErrorOut) = NULL,
void(*OnOK)(const CString &sAnswer) = NULL,
void(*OnCanel)() = NULL,
bool bPassword = false );
~ScreenTextEntry();
@@ -91,8 +94,8 @@ protected:
AutoActor m_sprAnswerBox;
wstring m_sAnswer;
BitmapText m_textAnswer;
bool(*m_pValidate)( CString sAnswer, CString &sErrorOut );
void(*m_pOnOK)( CString sAnswer );
bool(*m_pValidate)( const CString &sAnswer, CString &sErrorOut );
void(*m_pOnOK)( const CString &sAnswer );
void(*m_pOnCancel)();
AutoActor m_sprCursor;