mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
MODIFIED: Text buttons will now delete their text too when being deleted.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
026ccfcd13
commit
48d50cb409
3 changed files with 14 additions and 3 deletions
|
@ -42,6 +42,7 @@ namespace NLGUI
|
|||
|
||||
/// Constructor
|
||||
CCtrlTextButton(const TCtorParam ¶m);
|
||||
~CCtrlTextButton();
|
||||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
void setProperty( const std::string &name, const std::string &value );
|
||||
|
|
|
@ -60,6 +60,16 @@ namespace NLGUI
|
|||
_ForceTextOver = false;
|
||||
}
|
||||
|
||||
CCtrlTextButton::~CCtrlTextButton()
|
||||
{
|
||||
if( _ViewText != NULL )
|
||||
{
|
||||
if( getParent() != NULL )
|
||||
getParent()->delElement( _ViewText );
|
||||
_ViewText = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
std::string CCtrlTextButton::getProperty( const std::string &name ) const
|
||||
{
|
||||
std::string prop;
|
||||
|
|
|
@ -141,12 +141,12 @@ namespace NLGUI
|
|||
// initStart = ryzomGetLocalTime ();
|
||||
clearGroups();
|
||||
// nlinfo ("%d seconds for clearGroups '%s'", (uint32)(ryzomGetLocalTime ()-initStart)/1000, _Id.c_str());
|
||||
// initStart = ryzomGetLocalTime ();
|
||||
clearViews();
|
||||
// nlinfo ("%d seconds for clearViews '%s'", (uint32)(ryzomGetLocalTime ()-initStart)/1000, _Id.c_str());
|
||||
// initStart = ryzomGetLocalTime ();
|
||||
clearControls();
|
||||
// nlinfo ("%d seconds for clearControls '%s'", (uint32)(ryzomGetLocalTime ()-initStart)/1000, _Id.c_str());
|
||||
// initStart = ryzomGetLocalTime ();
|
||||
clearViews();
|
||||
// nlinfo ("%d seconds for clearViews '%s'", (uint32)(ryzomGetLocalTime ()-initStart)/1000, _Id.c_str());
|
||||
CWidgetManager::getInstance()->removeRefOnGroup (this);
|
||||
|
||||
#ifdef AJM_DEBUG_TRACK_INTERFACE_GROUPS
|
||||
|
|
Loading…
Reference in a new issue