2016-03-11 00:23:16 +00:00
|
|
|
#ifndef __URDE_CGUIGROUP_HPP__
|
|
|
|
#define __URDE_CGUIGROUP_HPP__
|
|
|
|
|
|
|
|
#include "CGuiCompoundWidget.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CGuiGroup : public CGuiCompoundWidget
|
|
|
|
{
|
2016-03-16 03:37:51 +00:00
|
|
|
u32 xf8_workerCount = 0;
|
|
|
|
int xfc_selectedWorker;
|
|
|
|
bool x100_b;
|
2016-03-11 00:23:16 +00:00
|
|
|
public:
|
2016-03-16 03:37:51 +00:00
|
|
|
CGuiGroup(const CGuiWidgetParms& parms, int defaultWorker, bool b);
|
2016-03-16 20:49:35 +00:00
|
|
|
FourCC GetWidgetTypeID() const {return FOURCC('GRUP');}
|
2016-03-16 03:37:51 +00:00
|
|
|
|
|
|
|
void SelectWorkerWidget(int workerId, bool setActive, bool setVisible);
|
|
|
|
CGuiWidget* GetSelectedWidget();
|
|
|
|
bool AddWorkerWidget(CGuiWidget* worker);
|
|
|
|
void OnDeActivate();
|
|
|
|
void OnActivate(bool flag);
|
|
|
|
bool DoUnregisterEventHandler();
|
|
|
|
bool DoRegisterEventHandler();
|
|
|
|
|
|
|
|
static CGuiGroup* Create(CGuiFrame* frame, CInputStream& in, bool flag);
|
2016-03-11 00:23:16 +00:00
|
|
|
static void LoadWidgetFnMap();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CGUIGROUP_HPP__
|