|
@@ -44,28 +44,38 @@ void setSipTestTheme() {
|
|
|
msip_backPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/back_bule.png");
|
|
|
mSipPicPainterPtr->setBackgroundPic("/medicalCare/dianhua.png");
|
|
|
mEditTextDestURIPtr->setBackgroundPic("/function/input.png");
|
|
|
- mCallButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_383x52.png");
|
|
|
- mHandleKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_383x52.png");
|
|
|
- mPanelCallKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_383x52.png");
|
|
|
- mPanelCancelKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_383x52.png");
|
|
|
- mSosKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_383x52.png");
|
|
|
- mRecordTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_383x52.png");
|
|
|
- mDoorLightTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_383x52.png");
|
|
|
- mColorTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_383x52.png");
|
|
|
+ mCallButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mHandleKeys1CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mHandleKeys2CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mHandleKeys3CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mPanelKeys1CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mPanelKeys2CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mPanelKeys3CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");;
|
|
|
+ mPanelKeys4CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mSosKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mSosKeys2CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mRecordTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mDoorLightTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
+ mColorTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_blue_190_52.png");
|
|
|
|
|
|
}
|
|
|
else if (sipTestThemeInt == 2) {
|
|
|
msip_backPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/back_pink.png");
|
|
|
mSipPicPainterPtr->setBackgroundPic("/medicalCare/dianhua-pink.png");
|
|
|
mEditTextDestURIPtr->setBackgroundPic("/function/input-pink.png");
|
|
|
- mCallButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_383x52.png");
|
|
|
- mHandleKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_383x52.png");
|
|
|
- mPanelCallKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_383x52.png");
|
|
|
- mPanelCancelKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_383x52.png");
|
|
|
- mSosKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_383x52.png");
|
|
|
- mRecordTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_383x52.png");
|
|
|
- mDoorLightTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_383x52.png");
|
|
|
- mColorTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_383x52.png");
|
|
|
+ mCallButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190x52.png");
|
|
|
+ mHandleKeys1CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mHandleKeys2CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mHandleKeys3CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mPanelKeys1CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mPanelKeys2CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mPanelKeys3CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mPanelKeys4CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mSosKeysCheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mSosKeys2CheckboxPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mRecordTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mDoorLightTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
+ mColorTestButtonPtr->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/button/elliptic_pink_190_52.png");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -172,50 +182,85 @@ static RecordTest recordTest;
|
|
|
}
|
|
|
|
|
|
|
|
|
-static bool panelCallKeysCheckbox = false;
|
|
|
-static bool handleKeysCheckbox = false;
|
|
|
-static bool panelCancelKeysCheckbox = false;
|
|
|
+static bool panelKeys1Checkbox = false;
|
|
|
+static bool panelKeys2Checkbox = false;
|
|
|
+static bool panelKeys3Checkbox = false;
|
|
|
+static bool panelKeys4Checkbox = false;
|
|
|
+static bool handleKeys1Checkbox = false;
|
|
|
+static bool handleKeys2Checkbox = false;
|
|
|
+static bool handleKeys3Checkbox = false;
|
|
|
static bool sosKeysCheckbox = false;
|
|
|
+static bool sosKeys2Checkbox = false;
|
|
|
|
|
|
void setCheckbox(std::string check) {
|
|
|
if (check == "KEY5") {
|
|
|
- if (panelCallKeysCheckbox) {
|
|
|
- panelCallKeysCheckbox = false;
|
|
|
- mPanelCallKeysCheckboxPtr->setChecked(false);
|
|
|
+ if (panelKeys1Checkbox) {
|
|
|
+ panelKeys1Checkbox = false;
|
|
|
+ mPanelKeys1CheckboxPtr->setChecked(false);
|
|
|
}
|
|
|
else {
|
|
|
- panelCallKeysCheckbox = true;
|
|
|
- mPanelCallKeysCheckboxPtr->setChecked(true);
|
|
|
+ panelKeys1Checkbox = true;
|
|
|
+ mPanelKeys1CheckboxPtr->setChecked(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (check == "KEY;") {
|
|
|
+ if (panelKeys2Checkbox) {
|
|
|
+ panelKeys2Checkbox = false;
|
|
|
+ mPanelKeys2CheckboxPtr->setChecked(false);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ panelKeys2Checkbox = true;
|
|
|
+ mPanelKeys2CheckboxPtr->setChecked(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (check == "KEY<") {
|
|
|
+ if (panelKeys3Checkbox) {
|
|
|
+ panelKeys3Checkbox = false;
|
|
|
+ mPanelKeys3CheckboxPtr->setChecked(false);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ panelKeys3Checkbox = true;
|
|
|
+ mPanelKeys3CheckboxPtr->setChecked(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (check == "KEY>") {
|
|
|
+ if (panelKeys4Checkbox) {
|
|
|
+ panelKeys4Checkbox = false;
|
|
|
+ mPanelKeys4CheckboxPtr->setChecked(false);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ panelKeys4Checkbox = true;
|
|
|
+ mPanelKeys4CheckboxPtr->setChecked(true);
|
|
|
}
|
|
|
}
|
|
|
else if (check == "KEY6") {
|
|
|
- if (handleKeysCheckbox) {
|
|
|
- handleKeysCheckbox = false;
|
|
|
- mHandleKeysCheckboxPtr->setChecked(false);
|
|
|
+ if (handleKeys1Checkbox) {
|
|
|
+ handleKeys1Checkbox = false;
|
|
|
+ mHandleKeys1CheckboxPtr->setChecked(false);
|
|
|
}
|
|
|
else {
|
|
|
- handleKeysCheckbox = true;
|
|
|
- mHandleKeysCheckboxPtr->setChecked(true);
|
|
|
+ handleKeys1Checkbox = true;
|
|
|
+ mHandleKeys1CheckboxPtr->setChecked(true);
|
|
|
}
|
|
|
}
|
|
|
- else if (check == "KEY>") {
|
|
|
- if (panelCancelKeysCheckbox) {
|
|
|
- panelCancelKeysCheckbox = false;
|
|
|
- mPanelCancelKeysCheckboxPtr->setChecked(false);
|
|
|
+ else if (check == "KEY=") {
|
|
|
+ if (handleKeys2Checkbox) {
|
|
|
+ handleKeys2Checkbox = false;
|
|
|
+ mHandleKeys2CheckboxPtr->setChecked(false);
|
|
|
}
|
|
|
else {
|
|
|
- panelCancelKeysCheckbox = true;
|
|
|
- mPanelCancelKeysCheckboxPtr->setChecked(true);
|
|
|
+ handleKeys2Checkbox = true;
|
|
|
+ mHandleKeys2CheckboxPtr->setChecked(true);
|
|
|
}
|
|
|
}
|
|
|
- if (check == "KEY<") {
|
|
|
- if (panelCallKeysCheckbox) {
|
|
|
- panelCallKeysCheckbox = false;
|
|
|
- mPanelCallKeysCheckboxPtr->setChecked(false);
|
|
|
+ else if (check == "KEY?") {
|
|
|
+ if (handleKeys3Checkbox) {
|
|
|
+ handleKeys3Checkbox = false;
|
|
|
+ mHandleKeys3CheckboxPtr->setChecked(false);
|
|
|
}
|
|
|
else {
|
|
|
- panelCallKeysCheckbox = true;
|
|
|
- mPanelCallKeysCheckboxPtr->setChecked(true);
|
|
|
+ handleKeys3Checkbox = true;
|
|
|
+ mHandleKeys3CheckboxPtr->setChecked(true);
|
|
|
}
|
|
|
}
|
|
|
else if (check == "KEY7") {
|
|
@@ -227,7 +272,16 @@ void setCheckbox(std::string check) {
|
|
|
sosKeysCheckbox = true;
|
|
|
mSosKeysCheckboxPtr->setChecked(true);
|
|
|
}
|
|
|
-
|
|
|
+ }
|
|
|
+ else if (check == "KEY@") {
|
|
|
+ if (sosKeys2Checkbox) {
|
|
|
+ sosKeys2Checkbox = false;
|
|
|
+ mSosKeys2CheckboxPtr->setChecked(false);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ sosKeys2Checkbox = true;
|
|
|
+ mSosKeys2CheckboxPtr->setChecked(true);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -358,13 +412,6 @@ static bool onButtonClick_CallButton(ZKButton *pButton) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-static void onCheckedChanged_Checkbox1(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
- LOGD(" Checkbox Checkbox1 checked %d", isChecked);
|
|
|
-}
|
|
|
-static void onCheckedChanged_HandleKeysCheckbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
- LOGD(" Checkbox HandleKeysCheckbox checked %d", isChecked);
|
|
|
-}
|
|
|
-
|
|
|
static bool onButtonClick_RecordTestButton(ZKButton *pButton) {
|
|
|
LOGD(" ButtonClick RecordTestButton !!!\n");
|
|
|
|
|
@@ -378,14 +425,43 @@ static bool onButtonClick_RecordTestButton(ZKButton *pButton) {
|
|
|
recordTest.Record();
|
|
|
return false;
|
|
|
}
|
|
|
-static void onCheckedChanged_PanelCallKeysCheckbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
- LOGD(" Checkbox PanelCallKeysCheckbox checked %d", isChecked);
|
|
|
-}
|
|
|
|
|
|
static void onCheckedChanged_SosKeysCheckbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
LOGD(" Checkbox SosKeysCheckbox checked %d", isChecked);
|
|
|
}
|
|
|
|
|
|
+static void onCheckedChanged_HandleKeys2Checkbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
+ LOGD(" Checkbox HandleKeys2Checkbox checked %d", isChecked);
|
|
|
+}
|
|
|
+
|
|
|
+static void onCheckedChanged_PanelKeys3Checkbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
+ LOGD(" Checkbox PanelKeys3Checkbox checked %d", isChecked);
|
|
|
+}
|
|
|
+
|
|
|
+static void onCheckedChanged_HandleKeys3Checkbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
+ LOGD(" Checkbox HandleKeys3Checkbox checked %d", isChecked);
|
|
|
+}
|
|
|
+
|
|
|
+static void onCheckedChanged_SosKeys2Checkbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
+ LOGD(" Checkbox SosKeys2Checkbox checked %d", isChecked);
|
|
|
+}
|
|
|
+
|
|
|
+static void onCheckedChanged_PanelKeys4Checkbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
+ LOGD(" Checkbox PanelKeys4Checkbox checked %d", isChecked);
|
|
|
+}
|
|
|
+
|
|
|
+static void onCheckedChanged_PanelKeys2Checkbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
+ LOGD(" Checkbox PanelKeys2Checkbox checked %d", isChecked);
|
|
|
+}
|
|
|
+
|
|
|
+static void onCheckedChanged_PanelKeys1Checkbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
+ LOGD(" Checkbox PanelKeys1Checkbox checked %d", isChecked);
|
|
|
+}
|
|
|
+
|
|
|
+static void onCheckedChanged_HandleKeys1Checkbox(ZKCheckBox* pCheckBox, bool isChecked) {
|
|
|
+ LOGD(" Checkbox HandleKeys1Checkbox checked %d", isChecked);
|
|
|
+}
|
|
|
+
|
|
|
static bool onButtonClick_sip_back(ZKButton *pButton) {
|
|
|
LOGD(" ButtonClick sip_back !!!\n");
|
|
|
EASYUICONTEXT->goBack();
|