You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
513 B
C++
26 lines
513 B
C++
#include "FITKAbstractGUIObject.h"
|
|
#include "FITKGUIRepo.h"
|
|
|
|
namespace Core
|
|
{
|
|
FITKAbstractGUIObject::FITKAbstractGUIObject()
|
|
{
|
|
//自动分配ID
|
|
static int ID = 0;
|
|
_guiID = ++ID;
|
|
//加入仓库
|
|
FITKGUIREPO->insertGUIObject(this);
|
|
}
|
|
|
|
FITKAbstractGUIObject::~FITKAbstractGUIObject()
|
|
{
|
|
//从仓库移除
|
|
FITKGUIREPO->removeGUIObject(this);
|
|
}
|
|
|
|
int FITKAbstractGUIObject::getGUIObjectID() const
|
|
{
|
|
return _guiID;
|
|
}
|
|
}
|