|
@@ -239,7 +239,11 @@ void uiShowMainInterface(char status,unsigned int exeInterval){
|
|
if(tmpStatus){
|
|
if(tmpStatus){
|
|
guiClearAll(guiGetBackColor());
|
|
guiClearAll(guiGetBackColor());
|
|
guiShowCaption(0,"加速度语音系统", UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
guiShowCaption(0,"加速度语音系统", UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
|
|
+ #ifdef DEVELOP_MODE
|
|
|
|
+ guiShowStr(1, UI_BOTTOM_SHOW_Y,"研发版本", FONT_MODE_12X12, REVERSED_NO,guiGetBackColor(),COLOR_STATUS_BAR);
|
|
|
|
+ #else
|
|
guiShowStr(1, UI_BOTTOM_SHOW_Y,"菜单", FONT_MODE_12X12, REVERSED_NO,COLOR_STATUS_BAR, guiGetBackColor());
|
|
guiShowStr(1, UI_BOTTOM_SHOW_Y,"菜单", FONT_MODE_12X12, REVERSED_NO,COLOR_STATUS_BAR, guiGetBackColor());
|
|
|
|
+ #endif
|
|
danhu=sutPocStatus.danHuStatus;
|
|
danhu=sutPocStatus.danHuStatus;
|
|
uiShowGuaDuan(danhu);
|
|
uiShowGuaDuan(danhu);
|
|
lastFlag=-1;
|
|
lastFlag=-1;
|
|
@@ -374,8 +378,8 @@ static void uiShowGUName(int update){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
void uiShowLearnGName(const char *name){
|
|
void uiShowLearnGName(const char *name){
|
|
|
|
+ guiClearRect(2, UI_LEARN_SHOW_Y, GLCD_WIDTH-1, UI_LEARN_SHOW_Y+16, guiGetBackColor());
|
|
guiShowBmp(2, UI_LEARN_SHOW_Y, "Group2.bmp");
|
|
guiShowBmp(2, UI_LEARN_SHOW_Y, "Group2.bmp");
|
|
- guiClearRect(2+16, UI_LEARN_SHOW_Y, GLCD_WIDTH-1, UI_LEARN_SHOW_Y+16, guiGetBackColor());
|
|
|
|
guiShowStr(2+16, UI_LEARN_SHOW_Y, "学习组:", FONT_MODE_16X16, REVERSED_NO,guiGetForeColor(),guiGetBackColor());
|
|
guiShowStr(2+16, UI_LEARN_SHOW_Y, "学习组:", FONT_MODE_16X16, REVERSED_NO,guiGetForeColor(),guiGetBackColor());
|
|
guiShowStr(2+16+56, UI_LEARN_SHOW_Y,name, FONT_MODE_16X16, REVERSED_NO,guiGetForeColor(),guiGetBackColor());
|
|
guiShowStr(2+16+56, UI_LEARN_SHOW_Y,name, FONT_MODE_16X16, REVERSED_NO,guiGetForeColor(),guiGetBackColor());
|
|
}
|
|
}
|
|
@@ -385,23 +389,24 @@ static void uiShowGuaDuan(unsigned char danhu){
|
|
}
|
|
}
|
|
static void uiShowGroup(const char* info){
|
|
static void uiShowGroup(const char* info){
|
|
unsigned int color=guiGetForeColor();
|
|
unsigned int color=guiGetForeColor();
|
|
|
|
+ guiClearRect(2, UI_GROUP_SHOW_Y, GLCD_WIDTH-1, UI_GROUP_SHOW_Y+16, guiGetBackColor());
|
|
if(sutPocStatus.danHuStatus==0) guiShowBmp(2, UI_GROUP_SHOW_Y, "Group2.bmp");
|
|
if(sutPocStatus.danHuStatus==0) guiShowBmp(2, UI_GROUP_SHOW_Y, "Group2.bmp");
|
|
else{
|
|
else{
|
|
guiShowBmp(2, UI_GROUP_SHOW_Y, "Onecall.bmp");
|
|
guiShowBmp(2, UI_GROUP_SHOW_Y, "Onecall.bmp");
|
|
color=COLOR_RED;
|
|
color=COLOR_RED;
|
|
}
|
|
}
|
|
- guiClearRect(2+16, UI_GROUP_SHOW_Y, GLCD_WIDTH-1, UI_GROUP_SHOW_Y+16, guiGetBackColor());
|
|
|
|
guiShowStr(2+16, UI_GROUP_SHOW_Y, "对讲组:", FONT_MODE_16X16, REVERSED_NO,color,guiGetBackColor());
|
|
guiShowStr(2+16, UI_GROUP_SHOW_Y, "对讲组:", FONT_MODE_16X16, REVERSED_NO,color,guiGetBackColor());
|
|
guiShowStr(2+16+56, UI_GROUP_SHOW_Y,info, FONT_MODE_16X16, REVERSED_NO,color,guiGetBackColor());
|
|
guiShowStr(2+16+56, UI_GROUP_SHOW_Y,info, FONT_MODE_16X16, REVERSED_NO,color,guiGetBackColor());
|
|
}
|
|
}
|
|
static void uiShowUser(const char* info){
|
|
static void uiShowUser(const char* info){
|
|
|
|
+ guiClearRect(2, UI_USER_SHOW_Y, GLCD_WIDTH-1, UI_USER_SHOW_Y+16, guiGetBackColor());
|
|
guiShowBmp(2, UI_USER_SHOW_Y, "people2.bmp");
|
|
guiShowBmp(2, UI_USER_SHOW_Y, "people2.bmp");
|
|
- guiClearRect(2+16, UI_USER_SHOW_Y, GLCD_WIDTH-1, UI_USER_SHOW_Y+16, guiGetBackColor());
|
|
|
|
guiShowStr(2+16, UI_USER_SHOW_Y,"昵称:", FONT_MODE_16X16, REVERSED_NO,guiGetForeColor(),guiGetBackColor());
|
|
guiShowStr(2+16, UI_USER_SHOW_Y,"昵称:", FONT_MODE_16X16, REVERSED_NO,guiGetForeColor(),guiGetBackColor());
|
|
guiShowStr(2+16+40, UI_USER_SHOW_Y,info, FONT_MODE_16X16, REVERSED_NO,guiGetForeColor(),guiGetBackColor());
|
|
guiShowStr(2+16+40, UI_USER_SHOW_Y,info, FONT_MODE_16X16, REVERSED_NO,guiGetForeColor(),guiGetBackColor());
|
|
}
|
|
}
|
|
static void uiShowHuaQuan(const char* info,char type){
|
|
static void uiShowHuaQuan(const char* info,char type){
|
|
unsigned int color=guiGetForeColor();
|
|
unsigned int color=guiGetForeColor();
|
|
|
|
+ guiClearRect(2, UI_VOICE_SHOW_Y, GLCD_WIDTH-1, UI_VOICE_SHOW_Y+16, guiGetBackColor());
|
|
if(type==0) guiShowBmp(2, UI_VOICE_SHOW_Y, "Phone.bmp");
|
|
if(type==0) guiShowBmp(2, UI_VOICE_SHOW_Y, "Phone.bmp");
|
|
else if(type==1){
|
|
else if(type==1){
|
|
color=COLOR_RED;
|
|
color=COLOR_RED;
|
|
@@ -410,7 +415,6 @@ static void uiShowHuaQuan(const char* info,char type){
|
|
guiShowBmp(2, UI_VOICE_SHOW_Y, "Creceive.bmp");
|
|
guiShowBmp(2, UI_VOICE_SHOW_Y, "Creceive.bmp");
|
|
color=COLOR_DEEP_GREEN;
|
|
color=COLOR_DEEP_GREEN;
|
|
}
|
|
}
|
|
- guiClearRect(2+16, UI_VOICE_SHOW_Y, GLCD_WIDTH-1, UI_VOICE_SHOW_Y+16, guiGetBackColor());
|
|
|
|
guiShowStr(2+16, UI_VOICE_SHOW_Y,info, FONT_MODE_16X16, REVERSED_NO,color,guiGetBackColor());
|
|
guiShowStr(2+16, UI_VOICE_SHOW_Y,info, FONT_MODE_16X16, REVERSED_NO,color,guiGetBackColor());
|
|
}
|
|
}
|
|
static void uiShowCallUserName(void){
|
|
static void uiShowCallUserName(void){
|