|
@@ -89,6 +89,43 @@ void setFunctionTheme() {
|
|
|
|
|
|
functionColor = redDeepColour;
|
|
functionColor = redDeepColour;
|
|
}
|
|
}
|
|
|
|
+ else if (functionThemeInt == 2) {
|
|
|
|
+ mCallBedPicPainterPtr->setBackgroundPic("/function/chuangwei-pink.png");
|
|
|
|
+ mConfirmCallButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink.png");
|
|
|
|
+ mConfirmLogoutButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
|
|
+ mLogoutPicPainterPtr->setBackgroundPic("/medicalCare/dianhua-pink.png");
|
|
|
|
+ mPwdPainterPtr->setBackgroundPic("/medicalCare/dianhua-pink.png");
|
|
|
|
+ mPwdEditTextPtr->setBackgroundPic("/function/input-pink.png");
|
|
|
|
+ mPwdConfirmButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
|
|
+ mServerPainterPtr->setBackgroundPic("/medicalCare/dianhua-pink.png");
|
|
|
|
+ mServerIpEditTextPtr->setBackgroundPic("/function/input-pink.png");
|
|
|
|
+ mServerPortEditTextPtr->setBackgroundPic("/function/input-pink.png");
|
|
|
|
+ mServerConfirmButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
|
|
+ mRebootPowerButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
|
|
+ mRebootDeviceButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
|
|
+ mRebootLineButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
|
|
+
|
|
|
|
+ functionColor = redDeepColour;
|
|
|
|
+ }
|
|
|
|
+ else if (functionThemeInt == 3) {
|
|
|
|
+ mCallBedPicPainterPtr->setBackgroundPic("/function/chuangwei-green.png");
|
|
|
|
+ mConfirmCallButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green_402x48.png");
|
|
|
|
+ mConfirmLogoutButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+ mLogoutPicPainterPtr->setBackgroundPic("/medicalCare/dianhua-green.png");
|
|
|
|
+ mPwdPainterPtr->setBackgroundPic("/medicalCare/dianhua-green.png");
|
|
|
|
+ mPwdEditTextPtr->setBackgroundPic("/function/input-green.png");
|
|
|
|
+ mPwdConfirmButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+ mServerPainterPtr->setBackgroundPic("/medicalCare/dianhua-green.png");
|
|
|
|
+ mServerIpEditTextPtr->setBackgroundPic("/function/input-green.png");
|
|
|
|
+ mServerPortEditTextPtr->setBackgroundPic("/function/input-green.png");
|
|
|
|
+ mServerConfirmButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+ mRebootPowerButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+ mRebootDeviceButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+ mRebootLineButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+
|
|
|
|
+ functionColor = greenDeepColour;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -123,6 +160,11 @@ static void help() {
|
|
mIconPainterPtr->setBackgroundPic("icon/zengyuan2-pink.png");
|
|
mIconPainterPtr->setBackgroundPic("icon/zengyuan2-pink.png");
|
|
mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
}
|
|
}
|
|
|
|
+ else if (functionThemeInt == 3) {
|
|
|
|
+ mIconPainterPtr->setBackgroundPic("icon/zengyuan2-green.png");
|
|
|
|
+ mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+
|
|
|
|
+ }
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("HelpInfo"));
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("HelpInfo"));
|
|
mStateTextViewPtr->setVisible(false);
|
|
mStateTextViewPtr->setVisible(false);
|
|
mFunctionButtonPtr->setText(LANGUAGEMANAGER->getValue("Confirm"));
|
|
mFunctionButtonPtr->setText(LANGUAGEMANAGER->getValue("Confirm"));
|
|
@@ -220,12 +262,19 @@ void theme(string functionText) {
|
|
mIconPainterPtr->setBackgroundPic("icon/zengyuan2-pink.png");
|
|
mIconPainterPtr->setBackgroundPic("icon/zengyuan2-pink.png");
|
|
mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
}
|
|
}
|
|
|
|
+ else if (functionThemeInt == 3) {
|
|
|
|
+ mIconPainterPtr->setBackgroundPic("icon/zengyuan2-green.png");
|
|
|
|
+ mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+ }
|
|
if (functionText == "蓝色") {
|
|
if (functionText == "蓝色") {
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("ThemeBlue"));
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("ThemeBlue"));
|
|
}
|
|
}
|
|
else if (functionText == "红色") {
|
|
else if (functionText == "红色") {
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("ThemeRed"));
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("ThemeRed"));
|
|
}
|
|
}
|
|
|
|
+ else if (functionText == "绿色") {
|
|
|
|
+ mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("ThemeGreen"));
|
|
|
|
+ }
|
|
mStateTextViewPtr->setVisible(true);
|
|
mStateTextViewPtr->setVisible(true);
|
|
mStateTextViewPtr->setText(LANGUAGEMANAGER->getValue("ThemeConfirm"));
|
|
mStateTextViewPtr->setText(LANGUAGEMANAGER->getValue("ThemeConfirm"));
|
|
mFunctionButtonPtr->setText(LANGUAGEMANAGER->getValue("Confirm"));
|
|
mFunctionButtonPtr->setText(LANGUAGEMANAGER->getValue("Confirm"));
|
|
@@ -233,6 +282,32 @@ void theme(string functionText) {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+void mode(string functionText) {
|
|
|
|
+ if (functionThemeInt == 1) {
|
|
|
|
+ mIconPainterPtr->setBackgroundPic("icon/chenggong.png");
|
|
|
|
+ mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_bule2.png");
|
|
|
|
+ }
|
|
|
|
+ else if (functionThemeInt == 2) {
|
|
|
|
+ mIconPainterPtr->setBackgroundPic("icon/chenggong-pink.png");
|
|
|
|
+ mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_pink2.png");
|
|
|
|
+ }
|
|
|
|
+ else if (functionThemeInt == 3) {
|
|
|
|
+ mIconPainterPtr->setBackgroundPic("icon/chenggong-green.png");
|
|
|
|
+ mFunctionButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "button/elliptic_green2.png");
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ if (functionText == "模式1") {
|
|
|
|
+ mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("Mode1"));
|
|
|
|
+ }
|
|
|
|
+ else if (functionText == "模式2") {
|
|
|
|
+ mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("Mode2"));
|
|
|
|
+ }
|
|
|
|
+ mStateTextViewPtr->setVisible(true);
|
|
|
|
+ mStateTextViewPtr->setText(LANGUAGEMANAGER->getValue("ModeConfirm"));
|
|
|
|
+ mFunctionButtonPtr->setText(LANGUAGEMANAGER->getValue("Confirm"));
|
|
|
|
+ mFunctionWindowPtr->showWnd();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 注册定时器
|
|
* 注册定时器
|
|
@@ -314,6 +389,10 @@ static void onUI_intent(const Intent *intentPtr) {
|
|
_functionText = intentPtr->getExtra(functionText);
|
|
_functionText = intentPtr->getExtra(functionText);
|
|
theme(_functionText);
|
|
theme(_functionText);
|
|
}
|
|
}
|
|
|
|
+ else if (_functionWindows == "mode") {
|
|
|
|
+ _functionText = intentPtr->getExtra(functionText);
|
|
|
|
+ mode(_functionText);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -413,6 +492,9 @@ static void obtainListItemData_CallBedListView(ZKListView *pListView,ZKListView:
|
|
else if (functionThemeInt == 2) {
|
|
else if (functionThemeInt == 2) {
|
|
pListItem->setButtonStatusPic(ZK_CONTROL_STATUS_SELECTED, "/function/chooseBed-pink.png");
|
|
pListItem->setButtonStatusPic(ZK_CONTROL_STATUS_SELECTED, "/function/chooseBed-pink.png");
|
|
}
|
|
}
|
|
|
|
+ else if (functionThemeInt == 3) {
|
|
|
|
+ pListItem->setButtonStatusPic(ZK_CONTROL_STATUS_SELECTED, "/function/chooseBed-green.png");
|
|
|
|
+ }
|
|
pListItem->setTextStatusColor(ZK_CONTROL_STATUS_SELECTED, functionColor);
|
|
pListItem->setTextStatusColor(ZK_CONTROL_STATUS_SELECTED, functionColor);
|
|
|
|
|
|
if (bedList.size() > 0) {
|
|
if (bedList.size() > 0) {
|
|
@@ -503,9 +585,23 @@ static bool onButtonClick_FunctionButton(ZKButton *pButton) {
|
|
else if (_functionText == "红色") {
|
|
else if (_functionText == "红色") {
|
|
StoragePreferences::putInt(STORE_THEME, 2);
|
|
StoragePreferences::putInt(STORE_THEME, 2);
|
|
}
|
|
}
|
|
|
|
+ else if (_functionText == "绿色") {
|
|
|
|
+ StoragePreferences::putInt(STORE_THEME, 3);
|
|
|
|
+ }
|
|
sync();
|
|
sync();
|
|
reboot(RB_AUTOBOOT);
|
|
reboot(RB_AUTOBOOT);
|
|
}
|
|
}
|
|
|
|
+ else if (_functionWindows == "mode") {
|
|
|
|
+ if (_functionText == "模式1") {
|
|
|
|
+ StoragePreferences::putInt(STORE_MODE, 1);
|
|
|
|
+ }
|
|
|
|
+ else if (_functionText == "模式2") {
|
|
|
|
+ StoragePreferences::putInt(STORE_MODE, 2);
|
|
|
|
+ }
|
|
|
|
+ sync();
|
|
|
|
+ reboot(RB_AUTOBOOT);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
EASYUICONTEXT->closeActivity("functionActivity");
|
|
EASYUICONTEXT->closeActivity("functionActivity");
|
|
return false;
|
|
return false;
|