|
@@ -575,9 +575,11 @@ void uiShowMenuMain(char update){
|
|
|
"侧键定义",
|
|
|
"本机信息",
|
|
|
"首长功能",
|
|
|
+ /*
|
|
|
"闹铃设置",
|
|
|
"初始化",
|
|
|
"初始化",
|
|
|
+ */
|
|
|
""
|
|
|
};
|
|
|
|
|
@@ -596,22 +598,29 @@ void MenuMainResponse(void){
|
|
|
uISetNextStatus(UIS_MENU_USER_SEL);
|
|
|
break;
|
|
|
case 2:
|
|
|
- uISetNextStatus(UIS_MENU_MAIL_SEL);
|
|
|
+ uISetNextStatus(UIS_MENU_FRIEND_SEL);
|
|
|
break;
|
|
|
case 3:
|
|
|
- uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ uISetNextStatus(UIS_MENU_BLE_MAIN);
|
|
|
break;
|
|
|
case 4:
|
|
|
uISetNextStatus(UIS_MENU_XINBIAO_MAIN);
|
|
|
break;
|
|
|
+
|
|
|
case 5:
|
|
|
- uISetNextStatus(UIS_MENU_INFO_SEL);
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
break;
|
|
|
case 6:
|
|
|
- uISetNextStatus(UIS_MENU_BLE_MAIN);
|
|
|
+ uISetNextStatus(UIS_MENU_CJ_MIAN);
|
|
|
break;
|
|
|
case 7:
|
|
|
- uISetNextStatus(UIS_MENU_FRIEND_SEL);
|
|
|
+ uISetNextStatus(UIS_MENU_INFO_SEL);
|
|
|
+ break;
|
|
|
+ case 8:
|
|
|
+ uISetNextStatus(UIS_MENU_SZ_MIAN);
|
|
|
+ break;
|
|
|
+ case 9:
|
|
|
+ uISetNextStatus(UIS_MENU_ALARM_SET);
|
|
|
break;
|
|
|
}
|
|
|
uiPushStack(sutPalace.Index);
|
|
@@ -658,7 +667,8 @@ void uiShowGUSel(char StatusUpdate,unsigned int exeInterval,char type){
|
|
|
uiSwitchLock=true;
|
|
|
if(type==0) appSleepCtl(ASLEEP_GGROUP, 1);//要获取群组信息,不让休眠,记得超时或获取成功或获取失败后需要释放
|
|
|
else if(type==1)appSleepCtl(ASLEEP_GUSER, 1);
|
|
|
- else appSleepCtl(ASLEEP_GFRIEND,1);
|
|
|
+ else if(type==2)appSleepCtl(ASLEEP_GFRIEND,1);
|
|
|
+ else appSleepCtl(ASLEEP_LEADER,1);
|
|
|
UiassistStart(0);
|
|
|
machine=2;
|
|
|
setHandleToZero=true;
|
|
@@ -679,17 +689,26 @@ void uiShowGUSel(char StatusUpdate,unsigned int exeInterval,char type){
|
|
|
}else if(type==1){
|
|
|
guiShowCaption(30,"用户选择",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16); //0
|
|
|
uiMenuShowBottomIndacitor("单呼", "返回");
|
|
|
- }else {
|
|
|
+ }else if(type==2){
|
|
|
guiShowCaption(30,"好友选择",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16); //0
|
|
|
uiMenuShowBottomIndacitor("呼叫", "返回");
|
|
|
+ }else if(type==3){
|
|
|
+ guiShowCaption(30,"摇晕选择",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16); //0
|
|
|
+ uiMenuShowBottomIndacitor("勾选", "返回");
|
|
|
+ }else if(type==4){
|
|
|
+ guiShowCaption(30,"摇毙选择",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16); //0
|
|
|
+ uiMenuShowBottomIndacitor("勾选", "返回");
|
|
|
}
|
|
|
- ReFlashItemGU(type);
|
|
|
+ if(type<3)ReFlashItemGU(type);
|
|
|
+ else
|
|
|
+
|
|
|
uiMenuShowBottomLine();
|
|
|
machine=3;
|
|
|
//获取成功后退出释放休眠
|
|
|
if(type==0) appSleepCtl(ASLEEP_GGROUP, 0);
|
|
|
else if(type==1)appSleepCtl(ASLEEP_GUSER, 0);
|
|
|
- else appSleepCtl(ASLEEP_GFRIEND,0);
|
|
|
+ else if(type==2)appSleepCtl(ASLEEP_GFRIEND,1);
|
|
|
+ else appSleepCtl(ASLEEP_LEADER,1);
|
|
|
uiSwitchLock=false;
|
|
|
}
|
|
|
break;
|
|
@@ -830,7 +849,7 @@ static void UserAssistAdd(void){
|
|
|
if(getAssistResult()){
|
|
|
if(sutUIstatus.Status==UIS_MENU_GROUP_SEL)ReFlashItemGU(0);
|
|
|
else if(sutUIstatus.Status==UIS_MENU_USER_SEL)ReFlashItemGU(1);
|
|
|
- else ReFlashItemGU(2);
|
|
|
+ else if(sutUIstatus.Status==UIS_MENU_FRIEND_SEL)ReFlashItemGU(2);
|
|
|
SelMachine=0;
|
|
|
}
|
|
|
break;
|
|
@@ -838,7 +857,7 @@ static void UserAssistAdd(void){
|
|
|
if(getAssistResult()){
|
|
|
if(sutUIstatus.Status==UIS_MENU_GROUP_SEL)ReFlashItemGU(0);
|
|
|
else if(sutUIstatus.Status==UIS_MENU_USER_SEL)ReFlashItemGU(1);
|
|
|
- else ReFlashItemGU(2);
|
|
|
+ else if(sutUIstatus.Status==UIS_MENU_FRIEND_SEL)ReFlashItemGU(2);
|
|
|
SelMachine=0;
|
|
|
}
|
|
|
break;
|
|
@@ -865,12 +884,14 @@ static void ReFlashItemGU(char type){
|
|
|
if(type==0){
|
|
|
icons[0]=accIconFileName[0];
|
|
|
icons[1]=accIconFileName[1];
|
|
|
+ icons[2]=accIconFileName[5];
|
|
|
}else{
|
|
|
icons[0]=accIconFileName[2];
|
|
|
icons[1]=accIconFileName[3];
|
|
|
icons[2]=accIconFileName[4];
|
|
|
+ icons[3]=accIconFileName[5];
|
|
|
}
|
|
|
- icons[3]=accIconFileName[5];
|
|
|
+
|
|
|
for(i=0;i<=POC_ALL_GROUPS_NUM;i++){
|
|
|
GUName[i]=NullGU;
|
|
|
GUFeatures[i]=0;
|
|
@@ -912,11 +933,12 @@ static void ReFlashItemGU(char type){
|
|
|
/*****************************系统设置部分开始*********************************/
|
|
|
void uiShowMenuSysSetup(char flash){
|
|
|
static const char *apcPtr[]={
|
|
|
- "1.LCD设置",
|
|
|
- "2.功耗模式设置",
|
|
|
- "3.提示音设置",
|
|
|
- "4.键锁设置",
|
|
|
- "5.工程设置",
|
|
|
+ "1.屏保时间",
|
|
|
+ "2.语音播报",
|
|
|
+ "3.哗音开关",
|
|
|
+ "4.震动开关",
|
|
|
+ "5.音质设置",
|
|
|
+ "6.省电模式",
|
|
|
""
|
|
|
};
|
|
|
if(flash){
|
|
@@ -928,7 +950,12 @@ void uiShowMenuSysSetup(char flash){
|
|
|
uiMenuInit(&sutMenuSysSetup,apcPtr,FONT_MODE_16X16);
|
|
|
}
|
|
|
}
|
|
|
+/*
|
|
|
+UIS_MENU_SYS_TTSON, //语音播报
|
|
|
+UIS_MENU_SYS_SHAKE, //震动
|
|
|
+UIS_MENU_SYS_SOUNDSEL,//音质
|
|
|
|
|
|
+*/
|
|
|
void sysTemSetResponse(void){
|
|
|
unsigned short key;
|
|
|
|
|
@@ -938,20 +965,23 @@ void sysTemSetResponse(void){
|
|
|
case 0://LCD设置
|
|
|
uISetNextStatus(UIS_MENU_SYS_LCD);
|
|
|
break;
|
|
|
- case 1://功耗模式设置
|
|
|
- uISetNextStatus(UIS_MENU_SYS_PWR);
|
|
|
+ case 1:
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_TTSON);
|
|
|
break;
|
|
|
- case 2://提示音设置
|
|
|
+ case 2:
|
|
|
uISetNextStatus(UIS_MENU_SYS_NOTE);
|
|
|
break;
|
|
|
- case 3://键锁设置
|
|
|
- uISetNextStatus(UIS_MENU_SYS_LOCK);
|
|
|
- break;
|
|
|
- case 4://工程设置
|
|
|
- uISetNextStatus(UIS_MENU_SYS_FACTORY);
|
|
|
+ case 3://
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_SHAKE);
|
|
|
+ break;
|
|
|
+ case 4://
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_SOUNDSEL);
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_PWR);
|
|
|
break;
|
|
|
}
|
|
|
- if(sutMenuSysSetup.handle<=4) uiPushStack(sutMenuSysSetup.handle);
|
|
|
+ if(sutMenuSysSetup.handle<=5) uiPushStack(sutMenuSysSetup.handle);
|
|
|
}else if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_MAIN);
|
|
|
}
|
|
|
/*****************************系统设置部分结束*********************************/
|
|
@@ -963,10 +993,11 @@ static locationXYFlash(char flash);
|
|
|
void uiShowMenuLocationSel(char flash){
|
|
|
static unsigned int timer;
|
|
|
static char machine=0;
|
|
|
+ static int cnt=0;
|
|
|
if(flash){
|
|
|
machine=0;
|
|
|
guiClearAll(guiGetBackColor());
|
|
|
- guiShowCaption(0,"定位设置",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ guiShowCaption(0,"GPS开关",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
uiMenuShowBottomLine();
|
|
|
if(newPara.gpsEnable==0){
|
|
|
machine=1;
|
|
@@ -978,17 +1009,25 @@ void uiShowMenuLocationSel(char flash){
|
|
|
uiMenuShowBottomIndacitor("保存", "返回");
|
|
|
locationTimeFlash(0);
|
|
|
}
|
|
|
- if(newPara.gpsEnable!=0) locationXYFlash(flash);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if(machine==1){
|
|
|
if(uTimerExpired(&timer)){
|
|
|
machine=0;
|
|
|
uISetNextStatus(UIS_MENU_MAIN);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if(++cnt<(1000/APP_SUB_DIV_TIME)) return;
|
|
|
+ if(newPara.gpsEnable!=0) locationXYFlash(flash);
|
|
|
+ cnt=0;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
void loationSetResponse(void){
|
|
|
unsigned short key;
|
|
|
-
|
|
|
key=getKeyValue();
|
|
|
if(newPara.gpsEnable==0){
|
|
|
if(key!=MKEY_VALUE_ESC) return;
|
|
@@ -997,9 +1036,8 @@ void loationSetResponse(void){
|
|
|
else if(MKEY_VALUE_DOWN==key) locationTimeFlash(2);
|
|
|
else if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_XINBIAO_MAIN);
|
|
|
else if(MKEY_VALUE_MENU==key){
|
|
|
- if(tempGpsIndex != newPara.gpsTimeIndex){
|
|
|
- MSG_INFO(1, "GPS timeIndex update:%d",getGPSTimeValue(tempGpsIndex));
|
|
|
- newPara.gpsTimeIndex=tempGpsIndex;
|
|
|
+ if(tempGpsIndex != newPara.gpsEnable){
|
|
|
+ newPara.gpsEnable=tempGpsIndex;
|
|
|
sysIniSave("location");
|
|
|
gpsCheckInfo();//检测一下
|
|
|
}
|
|
@@ -1009,35 +1047,24 @@ void loationSetResponse(void){
|
|
|
static locationTimeFlash(char type){
|
|
|
unsigned short gpsTimeValue;
|
|
|
char buf[50];
|
|
|
- unsigned short y=70;
|
|
|
-
|
|
|
- if(type==0){
|
|
|
- tempGpsIndex=newPara.gpsTimeIndex;
|
|
|
- }else if(type==1){
|
|
|
- if(++tempGpsIndex>=GPS_TABLE_NUM) tempGpsIndex=0;
|
|
|
- }else if(type==2){
|
|
|
- if(tempGpsIndex>0) tempGpsIndex--;
|
|
|
- else tempGpsIndex=GPS_TABLE_NUM-1;
|
|
|
- }else return;
|
|
|
-
|
|
|
- gpsTimeValue=getGPSTimeValue(tempGpsIndex);
|
|
|
- if(gpsTimeValue==0) snprintf(buf, sizeof(buf), "定位上传设置:关闭");
|
|
|
- else snprintf(buf, sizeof(buf), "定位上传设置:%d秒",gpsTimeValue);
|
|
|
+ unsigned short y=200;
|
|
|
+ tempGpsIndex=!tempGpsIndex;
|
|
|
+ if(gpsTimeValue==0) snprintf(buf, sizeof(buf), "关闭");
|
|
|
+ else snprintf(buf, sizeof(buf), "打开",gpsTimeValue);
|
|
|
guiClearRect(0,y,GLCD_WIDTH-1, y+12,guiGetBackColor());
|
|
|
guiShowStr(30,y, buf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
}
|
|
|
static locationXYFlash(char flash){
|
|
|
char buf[50];
|
|
|
unsigned short y=UI_CONTENT_SHOW_Y+2;
|
|
|
-
|
|
|
// if(gpsInfo.update==0 && flash==0) return;
|
|
|
// gpsInfo.update=0;
|
|
|
guiClearRect(0, y,GLCD_WIDTH-1, y+12+5+12,guiGetBackColor());
|
|
|
snprintf(buf, sizeof(buf), "纬度 S:%d.%05d",sutGpsInfo.latitue/1000000,sutGpsInfo.latitue%1000000);
|
|
|
- guiShowStr(30,y, buf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
+ guiShowStr(0,y, buf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
y+=12+5;
|
|
|
snprintf(buf, sizeof(buf), "经度 W:%d.%05d",sutGpsInfo.longitue/1000000,sutGpsInfo.longitue%1000000);
|
|
|
- guiShowStr(30,y, buf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
+ guiShowStr(0,y, buf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
}
|
|
|
/*****************************定位设置部分结束*********************************/
|
|
|
|
|
@@ -1046,7 +1073,7 @@ unsigned char sysInfoType;
|
|
|
static void sysInfoFlash(void){
|
|
|
unsigned short x,y;
|
|
|
char buf[50];
|
|
|
- unsigned char LineSpace=12+4;
|
|
|
+ unsigned char LineSpace=24+4;
|
|
|
unsigned char NeedSpace=0;
|
|
|
int len;
|
|
|
char yunyingshang=0;
|
|
@@ -1772,7 +1799,7 @@ static void switchFlash(void){
|
|
|
void uiShowNoteSel(char StatusUpdate){
|
|
|
if(StatusUpdate){
|
|
|
guiClearAll(guiGetBackColor());
|
|
|
- guiShowCaption(0,"提示音设置",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ guiShowCaption(0,"哗音开关",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
uiMenuShowBottomLine();
|
|
|
noteSetTmp=newPara.KeySound;
|
|
|
switchFlash();
|
|
@@ -2378,7 +2405,11 @@ void uiShowBleEnableUpdate(char StatusUpdate){
|
|
|
|
|
|
void uiShowBleEnableUpdateResponse(void){
|
|
|
unsigned short key=ListBoxResponse(&sutListBox);
|
|
|
- if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_BLE_MAIN);
|
|
|
+ if(MKEY_VALUE_ESC==key) {
|
|
|
+ if(getStackStruct()->FastUiChange)uISetNextStatus(UIS_STANDBY);
|
|
|
+ else uISetNextStatus(UIS_MENU_BLE_MAIN);
|
|
|
+
|
|
|
+ }
|
|
|
else if(MKEY_VALUE_MENU==key){
|
|
|
getStackStruct()->ok_back=1;
|
|
|
if(newPara.BleEnable != sutListBox.handle){
|
|
@@ -2387,7 +2418,8 @@ void uiShowBleEnableUpdateResponse(void){
|
|
|
else BLE_Close();
|
|
|
sysIniSave("bleenable");
|
|
|
}
|
|
|
- uISetNextStatus(UIS_MENU_BLE_MAIN);
|
|
|
+ if(getStackStruct()->FastUiChange)uISetNextStatus(UIS_STANDBY);
|
|
|
+ else uISetNextStatus(UIS_MENU_BLE_MAIN);
|
|
|
}
|
|
|
}
|
|
|
/*****************************蓝牙开关结束********************************/
|
|
@@ -2719,6 +2751,14 @@ void sysXINBIAOSetResponse(void){
|
|
|
void uiShowXINBIAOStationUpdate(char StatusUpdate){
|
|
|
char Features[NORMAL_BOOL_NUM];
|
|
|
unsigned char i;
|
|
|
+
|
|
|
+
|
|
|
+ static const char *StationMode[2+1]={
|
|
|
+ "固定站点",
|
|
|
+ "GPS坐标",
|
|
|
+ ""
|
|
|
+ };
|
|
|
+
|
|
|
if(StatusUpdate){
|
|
|
guiClearAll(guiGetBackColor());
|
|
|
guiShowCaption(0,"站点设置",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
@@ -2748,11 +2788,6 @@ void uiShowXINBIAOStationUpdateResponse(void){
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/*****************************信标详情开始********************************/
|
|
|
|
|
|
void uiShowXINBIAOPageShow(char dir){
|
|
@@ -2766,29 +2801,28 @@ void uiShowXINBIAOPageShow(char dir){
|
|
|
}else if(dir==2){
|
|
|
if(--UserTempIndex==0)UserTempIndex=sut_xinbiao_info.Max_id-1;
|
|
|
}
|
|
|
- snprintf(Showbuf,sizeof(Showbuf),"ID号:%03d",sut_xinbiaopage.xb_id);
|
|
|
+ snprintf(Showbuf,sizeof(Showbuf),"ID号:%03d",sut_xinbiaopage[UserTempIndex].xb_id);
|
|
|
guiShowStr(0,y,Showbuf,FONT_MODE_16X16,REVERSED_NO,COLOR_BLACK,guiGetBackColor());
|
|
|
y+=LIST_ITEM_HEGH;
|
|
|
- snprintf(Showbuf,sizeof(Showbuf),"名字:%s",sut_xinbiaopage.xb_CallName);
|
|
|
+ snprintf(Showbuf,sizeof(Showbuf),"名字:%s",sut_xinbiaopage[UserTempIndex].xb_CallName);
|
|
|
guiShowStr(0,y,Showbuf,FONT_MODE_16X16,REVERSED_NO,COLOR_BLACK,guiGetBackColor());
|
|
|
y+=LIST_ITEM_HEGH;
|
|
|
//guiClearRect(0, y,GLCD_WIDTH-1, y+12+5+12,guiGetBackColor());
|
|
|
- snprintf(Showbuf, sizeof(Showbuf), "纬度 S:%d.%05d",sut_xinbiaopage.xb_latitue/1000000,sut_xinbiaopage.xb_latitue%1000000);
|
|
|
- guiShowStr(30,y, buf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
+ snprintf(Showbuf, sizeof(Showbuf), "纬度 S:%d.%05d",sut_xinbiaopage[UserTempIndex].xb_latitue/1000000,sut_xinbiaopage[UserTempIndex].xb_latitue%1000000);
|
|
|
+ guiShowStr(0,y, Showbuf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
y+=LIST_ITEM_HEGH;
|
|
|
- snprintf(Showbuf, sizeof(Showbuf), "经度 W:%d.%05d",sut_xinbiaopage.xb_longitue/1000000,sut_xinbiaopage.xb_longitue%1000000);
|
|
|
- guiShowStr(30,y, Showbuf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
+ snprintf(Showbuf, sizeof(Showbuf), "经度 W:%d.%05d",sut_xinbiaopage[UserTempIndex].xb_longitue/1000000,sut_xinbiaopage[UserTempIndex].xb_longitue%1000000);
|
|
|
+ guiShowStr(0,y, Showbuf,FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
y+=LIST_ITEM_HEGH;
|
|
|
- snprintf(Showbuf,sizeof(Showbuf),"航向:%s",sut_xinbiaopage.xb_heading);
|
|
|
+ snprintf(Showbuf,sizeof(Showbuf),"航向:%s",sut_xinbiaopage[UserTempIndex].xb_heading);
|
|
|
guiShowStr(0,y,Showbuf,FONT_MODE_16X16,REVERSED_NO,COLOR_BLACK,guiGetBackColor());
|
|
|
y+=LIST_ITEM_HEGH;
|
|
|
- snprintf(Showbuf,sizeof(Showbuf),"方向:%s",sut_xinbiaopage.xb_dir);
|
|
|
+ snprintf(Showbuf,sizeof(Showbuf),"方向:%s",sut_xinbiaopage[UserTempIndex].xb_dir);
|
|
|
guiShowStr(0,y,Showbuf,FONT_MODE_16X16,REVERSED_NO,COLOR_BLACK,guiGetBackColor());
|
|
|
y+=LIST_ITEM_HEGH;
|
|
|
- snprintf(Showbuf,sizeof(Showbuf),"海拔:%s",sut_xinbiaopage.xb_elevation);
|
|
|
+ snprintf(Showbuf,sizeof(Showbuf),"海拔:%s",sut_xinbiaopage[UserTempIndex].xb_elevation);
|
|
|
guiShowStr(0,y,Showbuf,FONT_MODE_16X16,REVERSED_NO,COLOR_BLACK,guiGetBackColor());
|
|
|
y+=LIST_ITEM_HEGH;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|
|
@@ -2805,13 +2839,27 @@ void uiShowXINBIAOInfoUpdate(char StatusUpdate){
|
|
|
uiMenuShowBottomIndacitor("详情", "返回");
|
|
|
}
|
|
|
}
|
|
|
-/*****************************信标详情结束********************************/
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
+void uiShowXINBIAOInfoResponse(void){
|
|
|
+ unsigned short key=getKeyValue();
|
|
|
+ if(MKEY_VALUE_ESC==key) {
|
|
|
+ UserTempIndex=0;
|
|
|
+ if(getStackStruct()->FastUiChange)uISetNextStatus(UIS_STANDBY);
|
|
|
+ else uISetNextStatus(UIS_MENU_XINBIAO_MAIN);
|
|
|
+ }
|
|
|
+ else if(MKEY_VALUE_UP==key)uiShowXINBIAOPageShow(1);
|
|
|
+ else if(MKEY_VALUE_DOWN==key)uiShowXINBIAOPageShow(2);
|
|
|
+ else if(MKEY_VALUE_MENU==key){
|
|
|
+ UserTempIndex=0;
|
|
|
+ getStackStruct()->ok_back=1;
|
|
|
+ if(getStackStruct()->FastUiChange)uISetNextStatus(UIS_STANDBY);
|
|
|
+ else uISetNextStatus(UIS_MENU_XINBIAO_MAIN);
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
+/*****************************信标详情结束********************************/
|
|
|
|
|
|
|
|
|
|
|
@@ -2882,14 +2930,19 @@ void uiShowXINBIAOTriggerMode(char StatusUpdate){
|
|
|
|
|
|
void uiShowXINBIAOTriggerModeResponse(void){
|
|
|
unsigned short key=ListBoxResponse(&sutListBox);
|
|
|
- if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_XINBIAO_MAIN);
|
|
|
+ if(MKEY_VALUE_ESC==key) {
|
|
|
+ if(getStackStruct()->FastUiChange)uISetNextStatus(UIS_STANDBY);
|
|
|
+ else uISetNextStatus(UIS_MENU_XINBIAO_MAIN);
|
|
|
+
|
|
|
+ }
|
|
|
else if(MKEY_VALUE_MENU==key){
|
|
|
getStackStruct()->ok_back=1;
|
|
|
if(newPara.Xinbiao_SendMode != sutListBox.handle){
|
|
|
newPara.Xinbiao_SendMode=sutListBox.handle;
|
|
|
sysIniSave("bleenable");
|
|
|
}
|
|
|
- uISetNextStatus(UIS_MENU_XINBIAO_MAIN);
|
|
|
+ if(getStackStruct()->FastUiChange)uISetNextStatus(UIS_STANDBY);
|
|
|
+ else uISetNextStatus(UIS_MENU_XINBIAO_MAIN);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2994,7 +3047,7 @@ void uiShowXinbiaoClearlist(char StatusUpdate){
|
|
|
if(StatusUpdate){
|
|
|
guiClearAll(guiGetBackColor());
|
|
|
guiShowCaption(0,"清除列表",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
- BleAudioLvFlash(0,1);
|
|
|
+ //BleAudioLvFlash(0,1);
|
|
|
uiMenuShowBottomLine();
|
|
|
uiMenuShowBottomIndacitor("确认", "返回");
|
|
|
}
|
|
@@ -3009,13 +3062,371 @@ void uiShowXinbiaoClearlistResponse(void){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/*****************************清除列表结束********************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/*****************************菜单TTS开关开始********************************/
|
|
|
+
|
|
|
+void uiShowMenuTTSEnableUpdate(char StatusUpdate){
|
|
|
+ char Features[NORMAL_BOOL_NUM];
|
|
|
+ unsigned char i;
|
|
|
+ if(StatusUpdate){
|
|
|
+ guiClearAll(guiGetBackColor());
|
|
|
+ guiShowCaption(0,"语音播报",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ uiMenuShowBottomLine();
|
|
|
+ for(i=0;i<NORMAL_BOOL_NUM;i++){
|
|
|
+ if(i==newPara.menu_tts) Features[i]=1;
|
|
|
+ else Features[i]=0;
|
|
|
+ }
|
|
|
+ ListBoxInit(&sutListBox,BoolMode,0,commonIcon2,Features,0);
|
|
|
+ uiMenuShowBottomIndacitor("保存", "返回");
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void uiShowMenuTTSEnableUpdateResponse(void){
|
|
|
+ unsigned short key=ListBoxResponse(&sutListBox);
|
|
|
+ if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ else if(MKEY_VALUE_MENU==key){
|
|
|
+ getStackStruct()->ok_back=1;
|
|
|
+ if(newPara.menu_tts!= sutListBox.handle){
|
|
|
+ newPara.menu_tts=sutListBox.handle;
|
|
|
+ sysIniSave("menu_tts");
|
|
|
+ }
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ }
|
|
|
+}
|
|
|
+/*****************************菜单TTS开关结束********************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/*****************************震动开关开始********************************/
|
|
|
+
|
|
|
+void uiShowShakeEnableUpdate(char StatusUpdate){
|
|
|
+ char Features[NORMAL_BOOL_NUM];
|
|
|
+ unsigned char i;
|
|
|
+ if(StatusUpdate){
|
|
|
+ guiClearAll(guiGetBackColor());
|
|
|
+ guiShowCaption(0,"振动开关",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ uiMenuShowBottomLine();
|
|
|
+ for(i=0;i<NORMAL_BOOL_NUM;i++){
|
|
|
+ if(i==newPara.Shake) Features[i]=1;
|
|
|
+ else Features[i]=0;
|
|
|
+ }
|
|
|
+ ListBoxInit(&sutListBox,BoolMode,0,commonIcon2,Features,0);
|
|
|
+ uiMenuShowBottomIndacitor("保存", "返回");
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void uiShowShakeEnableUpdateResponse(void){
|
|
|
+ unsigned short key=ListBoxResponse(&sutListBox);
|
|
|
+ if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ else if(MKEY_VALUE_MENU==key){
|
|
|
+ getStackStruct()->ok_back=1;
|
|
|
+ if(newPara.Shake!= sutListBox.handle){
|
|
|
+ newPara.Shake=sutListBox.handle;
|
|
|
+ sysIniSave("Shake");
|
|
|
+ }
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ }
|
|
|
+}
|
|
|
+/****************************震动开关结束********************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/*****************************音质设置开始********************************/
|
|
|
+
|
|
|
+void uiShowPoc_soundUpdate(char StatusUpdate){
|
|
|
+ char Features[NORMAL_BOOL_NUM];
|
|
|
+
|
|
|
+ static const char *POc_SoundMode[NORMAL_BOOL_NUM+1]={
|
|
|
+ "4K",
|
|
|
+ "8K",
|
|
|
+ ""
|
|
|
+ };
|
|
|
+ unsigned char i;
|
|
|
+ if(StatusUpdate){
|
|
|
+ guiClearAll(guiGetBackColor());
|
|
|
+ guiShowCaption(0,"音质设置",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ uiMenuShowBottomLine();
|
|
|
+ for(i=0;i<NORMAL_BOOL_NUM;i++){
|
|
|
+ if(i==newPara.Poc_sound) Features[i]=1;
|
|
|
+ else Features[i]=0;
|
|
|
+ }
|
|
|
+ ListBoxInit(&sutListBox,POc_SoundMode,0,commonIcon2,Features,0);
|
|
|
+ uiMenuShowBottomIndacitor("保存", "返回");
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void uiShowPoc_soundUpdateResponse(void){
|
|
|
+ char buf[20];
|
|
|
+ unsigned short key=ListBoxResponse(&sutListBox);
|
|
|
+ if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ else if(MKEY_VALUE_MENU==key){
|
|
|
+ getStackStruct()->ok_back=1;
|
|
|
+ if(newPara.Poc_sound!= sutListBox.handle){
|
|
|
+ newPara.Poc_sound=sutListBox.handle;
|
|
|
+ snprintf(buf,sizeof(buf),"AT+POC=3000%02d01\r\n",newPara.Poc_sound+1);
|
|
|
+ msgAtSend(buf);
|
|
|
+ sysIniSave("Poc_sound");
|
|
|
+ }
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ }
|
|
|
+}
|
|
|
+/****************************音质设置结束********************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/*****************************侧键部分开始*********************************/
|
|
|
+void uiShowSideKeyMenuSysSetup(char StatusUpdate){
|
|
|
+ static const char *CjapcPtr[]={
|
|
|
+ "1.侧键一长按",
|
|
|
+ "2.侧键二长按",
|
|
|
+ ""
|
|
|
+ };
|
|
|
+ if(StatusUpdate){
|
|
|
+ guiClearAll(guiGetBackColor());
|
|
|
+ guiShowCaption(0,"侧键定义",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ uiMenuShowBottomLine();
|
|
|
+ uiMenuShowBottomIndacitor("确认", "返回");
|
|
|
+ uiMenuInit(&sutMenuSysSetup,CjapcPtr,FONT_MODE_16X16);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void sysSetSideKeyResponse(void){
|
|
|
+ unsigned short key;
|
|
|
+ key=uiMenuResponse(&sutMenuSysSetup);
|
|
|
+ if(MKEY_VALUE_MENU==key){
|
|
|
+ switch(sutMenuSysSetup.handle){
|
|
|
+ case 0:
|
|
|
+ uISetNextStatus(UIS_MENU_CFUN_1_SEL);
|
|
|
+ break;
|
|
|
+ case 1:
|
|
|
+ uISetNextStatus(UIS_MENU_CFUN_2_SEL);
|
|
|
+ break;
|
|
|
+
|
|
|
+ }
|
|
|
+ if(sutMenuSysSetup.handle<=1) uiPushStack(sutMenuSysSetup.handle);
|
|
|
+ }else if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_MAIN);
|
|
|
+}
|
|
|
+/*****************************侧键部分结束*********************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/*****************************侧键长按设置开始********************************/
|
|
|
+
|
|
|
+void uiShowSideKeyFuncUpdate(char StatusUpdate,char type){
|
|
|
+ char Features[6];
|
|
|
+
|
|
|
+ static const char *SideKeyMode[6+1]={
|
|
|
+ "蓝牙开关",
|
|
|
+ "信标发送",
|
|
|
+ "信标详情",
|
|
|
+ "群组选择",
|
|
|
+ "成员选择",
|
|
|
+ "好友选呼",
|
|
|
+ ""
|
|
|
+ };
|
|
|
+ unsigned char i;
|
|
|
+ char temp;
|
|
|
+ if(StatusUpdate){
|
|
|
+ guiClearAll(guiGetBackColor());
|
|
|
+ if(type==0){
|
|
|
+ temp=newPara.sidekey01_func;
|
|
|
+ guiShowCaption(0,"侧键1长按",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ temp=newPara.sidekey02_func;
|
|
|
+ guiShowCaption(0,"侧键2长按",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+
|
|
|
+ }
|
|
|
+ uiMenuShowBottomLine();
|
|
|
+ for(i=0;i<6;i++){
|
|
|
+ if(i==temp) Features[i]=1;
|
|
|
+ else Features[i]=0;
|
|
|
+ }
|
|
|
+ ListBoxInit(&sutListBox,SideKeyMode,0,commonIcon2,Features,0);
|
|
|
+ uiMenuShowBottomIndacitor("选择", "返回");
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void uiShowSideKeyFuncUpdateResponse(char type){
|
|
|
+ char buf[20];
|
|
|
+ char tmep=0;
|
|
|
+ unsigned short key=ListBoxResponse(&sutListBox);
|
|
|
+
|
|
|
+ if(type==0)tmep=newPara.sidekey01_func;
|
|
|
+ else tmep=newPara.sidekey02_func;
|
|
|
+ if(MKEY_VALUE_ESC==key) {
|
|
|
+ if(getStackStruct()->FastUiChange)uISetNextStatus(UIS_STANDBY);
|
|
|
+ else uISetNextStatus(UIS_MENU_CJ_MIAN);
|
|
|
+ }
|
|
|
+ else if(MKEY_VALUE_MENU==key){
|
|
|
+ getStackStruct()->ok_back=1;
|
|
|
+ if(tmep!= sutListBox.handle){
|
|
|
+ if(type==0)newPara.sidekey01_func=sutListBox.handle;
|
|
|
+ else newPara.sidekey02_func=sutListBox.handle;
|
|
|
+ sysIniSave("SideKey");
|
|
|
+ }
|
|
|
+ if(getStackStruct()->FastUiChange)uISetNextStatus(UIS_STANDBY);
|
|
|
+ else uISetNextStatus(UIS_MENU_CJ_MIAN);
|
|
|
+ }
|
|
|
+}
|
|
|
+/****************************侧键长按结束********************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/*****************************首长主菜单开始*********************************/
|
|
|
+void uiShowLeaderMenuSysSetup(char StatusUpdate){
|
|
|
+ static const char *CjapcPtr[]={
|
|
|
+ "1.摇晕",
|
|
|
+ "2.摇毙",
|
|
|
+ "3.强制打开GPS",
|
|
|
+ ""
|
|
|
+ };
|
|
|
+ if(StatusUpdate){
|
|
|
+ guiClearAll(guiGetBackColor());
|
|
|
+ guiShowCaption(0,"首长功能",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ uiMenuShowBottomLine();
|
|
|
+ uiMenuShowBottomIndacitor("确认", "返回");
|
|
|
+ uiMenuInit(&sutMenuSysSetup,CjapcPtr,FONT_MODE_16X16);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void sysSetLeaderResponse(void){
|
|
|
+ unsigned short key;
|
|
|
+ key=uiMenuResponse(&sutMenuSysSetup);
|
|
|
+ if(MKEY_VALUE_MENU==key){
|
|
|
+ switch(sutMenuSysSetup.handle){
|
|
|
+ case 0:
|
|
|
+ uISetNextStatus(UIS_MENU_SZ_YAOYUN);
|
|
|
+ break;
|
|
|
+ case 1:
|
|
|
+ uISetNextStatus(UIS_MENU_SZ_YAOYBI);
|
|
|
+ break;
|
|
|
+
|
|
|
+ case 2:
|
|
|
+ uISetNextStatus(UIS_MENU_SZ_FORCEGPS);
|
|
|
+ break;
|
|
|
+
|
|
|
+ }
|
|
|
+ if(sutMenuSysSetup.handle<=2) uiPushStack(sutMenuSysSetup.handle);
|
|
|
+ }else if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_MAIN);
|
|
|
+}
|
|
|
+/*****************************首长主菜单结束*********************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ void ReFlashItemLeader(char StatusUpdate,char type){
|
|
|
+ static unsigned short susCt=0;
|
|
|
+ static const char *leaderIconFileName[]={
|
|
|
+ "/ext/prepack/people2.bmp",
|
|
|
+ "/ext/prepack/yaoyun.bmp",
|
|
|
+ "/ext/prepack/yaobi.bmp",
|
|
|
+ "/ext/prepack/unsel.bmp",
|
|
|
+ "/ext/prepack/sel.bmp",
|
|
|
+ ""
|
|
|
+ };
|
|
|
+ static char *icons[5];//3//3
|
|
|
+ int i,j;
|
|
|
+ unsigned short timeout;
|
|
|
+ static const char *NullGU="";
|
|
|
+ static char *GUName[MAX_USER+1+1];
|
|
|
+ static char GUFeatures[MAX_USER+1+1];
|
|
|
+ static char checkboxFeatures[MAX_USER+1+1];
|
|
|
+ static char *Pall="所有";
|
|
|
+
|
|
|
+ unsigned char showHandle=0;
|
|
|
+
|
|
|
+ if(StatusUpdate==0)return;
|
|
|
+
|
|
|
+ for(i=0;i<6;i++)icons[i]=leaderIconFileName[i];
|
|
|
+
|
|
|
+ GUName[0]=Pall;
|
|
|
+ GUFeatures[0]=0;
|
|
|
+ if(StatusUpdate==1)checkboxFeatures[0]=0;
|
|
|
+ else checkboxFeatures[0]=1;
|
|
|
+
|
|
|
+ for(i=1;i<=MAX_USER;i++){
|
|
|
+ GUName[i]=NullGU;
|
|
|
+ GUFeatures[i]=0;
|
|
|
+ if(StatusUpdate==1)checkboxFeatures[i]=0;
|
|
|
+ else checkboxFeatures[i]=1;
|
|
|
+
|
|
|
+ }
|
|
|
+ for(i=0;i<MAX_USER;i++){
|
|
|
+ GUName[i+1]=UserArr[i].UserName;
|
|
|
+ for(j=0;j<MAX_USER;j++){
|
|
|
+ if(UserArr[i].id==leader[j].id){
|
|
|
+ GUFeatures[i+1]=leader[j].status;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(UserArr[0].UserName[0]==0){
|
|
|
+ GUName[0]="空";
|
|
|
+ GUFeatures[0]=0;
|
|
|
+ }
|
|
|
+
|
|
|
+ guiFillRect(0, UI_STATUS_ITEM_Y, GLCD_WIDTH-1, UI_CONTENT_SHOW_Y-1, guiGetForeColor());//清除第二区
|
|
|
+ if(type==0){
|
|
|
+ guiShowCaption(0,"摇晕选择",UI_STATUS_BAR_HEIGH,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ uiMenuShowBottomIndacitor("勾选", "返回");
|
|
|
+ }else if(type==1){
|
|
|
+ guiShowCaption(0,"摇毙选择",UI_STATUS_BAR_HEIGH,guiGetBackColor(),guiGetForeColor(),FONT_MODE_16X16);
|
|
|
+ uiMenuShowBottomIndacitor("勾选", "返回");
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ if(setHandleToZero==true){
|
|
|
+ showHandle=0;
|
|
|
+ setHandleToZero=false;
|
|
|
+ }else{
|
|
|
+ if(sutPocStatus.ListFillIndex) showHandle=sutPocStatus.ListFillIndex-1;
|
|
|
+ else showHandle=0;
|
|
|
+ }
|
|
|
+ */
|
|
|
+ CheckBoxInit(&sut_check_box,GUName,0,leaderIconFileName,GUFeatures,0,checkboxFeatures);
|
|
|
+ // GUListBoxInited=1;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+void uiShowLeaderFuncResponse(){
|
|
|
+ char buf[20];
|
|
|
+ char tmep=0;
|
|
|
+ unsigned short key=CheckBoxResponse(&sut_check_box);
|
|
|
+ if(key==MKEY_VALUE_ESC)uISetNextStatus(UIS_MENU_SZ_MIAN);
|
|
|
+ else if(key==MKEY_VALUE_PTT){
|
|
|
+
|
|
|
+ if(sutUIstatus.Status==UIS_MENU_SZ_YAOYUN){
|
|
|
+ Record_Leader_Status(0);
|
|
|
+ LeaderPackSend(YAOYUN);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ Record_Leader_Status(1);
|
|
|
+ LeaderPackSend(YAOBI);
|
|
|
+ }
|
|
|
+ //write
|
|
|
+ WriteLeaderFile();
|
|
|
+ uISetNextStatus(UIS_MENU_SZ_MIAN);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-/*****************************清除列表结束********************************/
|
|
|
|
|
|
|
|
|
|