My Project
SallyAPI::GUI::CAppBase Class Reference

Application base. More...

#include <AppBase.h>

Inheritance diagram for SallyAPI::GUI::CAppBase:
SallyAPI::GUI::CForm SallyAPI::GUI::CControl SallyAPI::GUI::CGUIBaseObject SallyAPI::Core::CBaseObject SallyAPI::GUI::CApplicationWindow SallyAPI::GUI::CConfigPanel SallyAPI::GUI::CPopUpWindow SallyAPI::GUI::CWizardPanel SallyAPI::GUI::CGameWindow SallyAPI::GUI::CAboutDialog SallyAPI::GUI::CContextMenuPopUp SallyAPI::GUI::CDialog SallyAPI::GUI::CDialogBox SallyAPI::GUI::CInputBox SallyAPI::GUI::CMessageBox SallyAPI::GUI::COpenDialog SallyAPI::GUI::CQuestionBox

List of all members.

Public Member Functions

 CAppBase (SallyAPI::GUI::CGUIBaseObject *parent, int graphicId, const std::string &explicidAppName)
 Constructor.
virtual ~CAppBase ()
 Destructor.
int GetGraphicId ()
 Gets the graphic identifier.
std::string GetExplicitAppName ()
 Gets the explicit application name.
std::string GetPropertyString (const std::string &ID, const std::string &defaultReturn="")
 Gets a property string.
int GetPropertyInt (const std::string &ID, int defaultReturn=-1)
 Gets a property int.
bool GetPropertyBool (const std::string &ID, bool defaultReturn=false)
 Gets a property bool.
void SetPropertyString (const std::string &ID, const std::string &s)
 Sets a property string.
void SetPropertyInt (const std::string &ID, int i)
 Sets a property int.
void SetPropertyBool (const std::string &ID, bool i)
 Sets a property bool.
int GetPictureID (int iPicture)
 Gets a picture identifier.
virtual void SendMessageToParent (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)
 Send message to parent.

Protected Attributes

int m_iGraphicId
std::string m_strExplicitAppName

Detailed Description

Application base.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

CAppBase::CAppBase ( SallyAPI::GUI::CGUIBaseObject parent,
int  graphicId,
const std::string &  explicidAppName 
)

Constructor.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]parentIf non-null, the parent.
graphicIdIdentifier for the graphic.
explicidAppNameName of the explicid application.
CAppBase::~CAppBase ( ) [virtual]

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

Gets the explicit application name.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The explicit application name.

Gets the graphic identifier.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The graphic identifier.
int CAppBase::GetPictureID ( int  iPicture)

Gets a picture identifier.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
iPictureThe picture.
Returns:
The picture identifier.
bool CAppBase::GetPropertyBool ( const std::string &  ID,
bool  defaultReturn = false 
)

Gets a property bool.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
IDThe identifier.
defaultReturnDefault return.
Returns:
true if it succeeds, false if it fails.
int CAppBase::GetPropertyInt ( const std::string &  ID,
int  defaultReturn = -1 
)

Gets a property int.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
IDThe identifier.
defaultReturnDefault return.
Returns:
The property int.
std::string CAppBase::GetPropertyString ( const std::string &  ID,
const std::string &  defaultReturn = "" 
)

Gets a property string.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
IDThe identifier.
defaultReturnDefault return.
Returns:
The property string.
void CAppBase::SendMessageToParent ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
int  messageId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter = NULL 
) [virtual]

Send message to parent.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
messageIdIdentifier for the message.
[in,out]messageParameterIf non-null, the message parameter.

Reimplemented from SallyAPI::GUI::CForm.

Reimplemented in SallyAPI::GUI::CApplicationWindow, SallyAPI::GUI::CPopUpWindow, SallyAPI::GUI::CGameWindow, SallyAPI::GUI::CMessageBox, SallyAPI::GUI::COpenDialog, SallyAPI::GUI::CInputBox, SallyAPI::GUI::CWizardPanel, SallyAPI::GUI::CQuestionBox, and SallyAPI::GUI::CConfigPanel.

void SallyAPI::GUI::CAppBase::SetPropertyBool ( const std::string &  ID,
bool  i 
)

Sets a property bool.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
IDThe identifier.
itrue to.
void SallyAPI::GUI::CAppBase::SetPropertyInt ( const std::string &  ID,
int  i 
)

Sets a property int.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
IDThe identifier.
iThe index.
void SallyAPI::GUI::CAppBase::SetPropertyString ( const std::string &  ID,
const std::string &  s 
)

Sets a property string.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
IDThe identifier.
sThe.

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines