三级设置页面管理测试demo

#include "PhoneBookWindow.h"
#include "xWindow/xWindow.h"
#include "hardwareDefine.h"
#include "TalkD/VcsTalkD.h"
#include "ETLLib/ETLLib.hpp"
#include "UtilityLib/gsCallMethod.h"
#include "xWindow/xWindowManager.h"

static chStringA LoadTitleFrameWindow(const jsParameter& objParams)
{
chASSERT(objParams.size() == 2);
chConstStringA strFileName(objParams.at(0));
xLinearLayout* obj = new xLinearLayout();
obj->loadContent(strFileName);
obj->show();
return NULL;
}

static chStringA HideActiveWindow(const jsParameter&)
{
xView* pActiveView = getCurrentStation().getActiveView();
if(pActiveView != NULL)
{
pActiveView->hide();
}
return NULL;
}

#define DEF_ROUTINE(routine, param) { #routine, param, &routine}
RoutineMethod s_SettingRoutine[] =
{
DEF_ROUTINE(LoadTitleFrameWindow, "LPCSTR lpszFileName, LPCSTR lpszTitle"),
DEF_ROUTINE(HideActiveWindow, ""),
{ "", NULL, NULL}
};
static BOOL bAppendSettingRoutine = AppendRoutineTable(s_SettingRoutine); //use static to append function

PhoneBookWindow::PhoneBookWindow(void)
{
setGeometry(chRect(0,0,1920,1080));
loadContent("Status.xml");
}

PhoneBookWindow::~PhoneBookWindow(void)
{
}

原文地址:https://www.cnblogs.com/hqu-ye/p/4344528.html