|
@@ -350,7 +350,7 @@ typedef struct{//
|
|
cJSON* jsonTask[PAGE_SIZE];//用于读取每个任务详情
|
|
cJSON* jsonTask[PAGE_SIZE];//用于读取每个任务详情
|
|
char *bufTask[PAGE_SIZE];//用于读取每个任务文件使用的内存
|
|
char *bufTask[PAGE_SIZE];//用于读取每个任务文件使用的内存
|
|
char showTable[PAGE_SIZE][SHOW_TABLE_MAX_BYTES];//用于菜单显示时使用
|
|
char showTable[PAGE_SIZE][SHOW_TABLE_MAX_BYTES];//用于菜单显示时使用
|
|
- int finishedFlag[PAGE_SIZE];//完成状态
|
|
|
|
|
|
+ char finishedFlag[PAGE_SIZE];//完成状态
|
|
}LEARN_SHOW_DEF;
|
|
}LEARN_SHOW_DEF;
|
|
LEARN_SHOW_DEF sutJson={false};
|
|
LEARN_SHOW_DEF sutJson={false};
|
|
static void sutJsonInit(void){
|
|
static void sutJsonInit(void){
|
|
@@ -379,8 +379,10 @@ static unsigned char learnGetNextPageInfo(LEARN_SHOW_DEF *learn){
|
|
}else if(learn->direction==2 && learn->lastDirection==1 && num<=PAGE_SIZE){//上次是向下,现在是向上
|
|
}else if(learn->direction==2 && learn->lastDirection==1 && num<=PAGE_SIZE){//上次是向下,现在是向上
|
|
index -= learn->validNum;
|
|
index -= learn->validNum;
|
|
if(index>0 && index<5) index=0;
|
|
if(index>0 && index<5) index=0;
|
|
- else if(index<=0) index=num-num%PAGE_SIZE;
|
|
|
|
- else index -= PAGE_SIZE;
|
|
|
|
|
|
+ else if(index<=0){
|
|
|
|
+ if(num==PAGE_SIZE) index=0;//如果与本页显示数目匹配,直接设置成0
|
|
|
|
+ else index=num-num%PAGE_SIZE;
|
|
|
|
+ }else index -= PAGE_SIZE;
|
|
}else if(learn->direction==0){
|
|
}else if(learn->direction==0){
|
|
learn->direction=1;
|
|
learn->direction=1;
|
|
}
|
|
}
|
|
@@ -453,11 +455,10 @@ static unsigned char learnGetNextPageInfo(LEARN_SHOW_DEF *learn){
|
|
learn->lastDirection=learn->direction;
|
|
learn->lastDirection=learn->direction;
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
-static void learnUIShowIndexAndTotal(void){
|
|
|
|
|
|
+
|
|
|
|
+static void learnUIShowIndexAndTotal(unsigned int index, unsigned int total){
|
|
char info[20];
|
|
char info[20];
|
|
- int i,total,index;
|
|
|
|
- total=sutJson.totalNum;
|
|
|
|
- index=sutJson.selIndex+sutListBox.handle+1;
|
|
|
|
|
|
+ int i;
|
|
snprintf(info, sizeof(info), "%d/%d", index, total);
|
|
snprintf(info, sizeof(info), "%d/%d", index, total);
|
|
i=guiGetStrXLen(info,FONT_MODE_12X12);
|
|
i=guiGetStrXLen(info,FONT_MODE_12X12);
|
|
guiClearRect(GLCD_WIDTH-8*8, UI_STATUS_ITEM_Y, GLCD_WIDTH-1, UI_STATUS_ITEM_Y+UI_STATUS_ITEM_HEIGH-1, guiGetForeColor());
|
|
guiClearRect(GLCD_WIDTH-8*8, UI_STATUS_ITEM_Y, GLCD_WIDTH-1, UI_STATUS_ITEM_Y+UI_STATUS_ITEM_HEIGH-1, guiGetForeColor());
|
|
@@ -482,7 +483,7 @@ void LearnTaskSelResponse(void){
|
|
uISetNextStatus(UIS_MENU_TASK_QUERY);
|
|
uISetNextStatus(UIS_MENU_TASK_QUERY);
|
|
//里面的菜单如果不返回本菜单,直接退出此任务操作,需要释放资源LEARN_RELEASE_DB
|
|
//里面的菜单如果不返回本菜单,直接退出此任务操作,需要释放资源LEARN_RELEASE_DB
|
|
}else if(MKEY_VALUE_UP || MKEY_VALUE_DOWN){
|
|
}else if(MKEY_VALUE_UP || MKEY_VALUE_DOWN){
|
|
- learnUIShowIndexAndTotal();
|
|
|
|
|
|
+ learnUIShowIndexAndTotal(sutJson.selIndex+sutListBox.handle+1,sutJson.totalNum);
|
|
}
|
|
}
|
|
}else if(MKEY_VALUE_ESC==key) learnUpdateStatus(LEARN_RELEASE_DB);
|
|
}else if(MKEY_VALUE_ESC==key) learnUpdateStatus(LEARN_RELEASE_DB);
|
|
}
|
|
}
|
|
@@ -784,15 +785,15 @@ static void LearnTaskProcess(void){
|
|
else learnUpdateStatus(LEARN_SHOW_MENU);
|
|
else learnUpdateStatus(LEARN_SHOW_MENU);
|
|
break;
|
|
break;
|
|
case LEARN_SHOW_MENU://显示
|
|
case LEARN_SHOW_MENU://显示
|
|
|
|
+ MSG_INFO(1, "Task valid num:%d", sutJson.validNum);
|
|
guiClearRect(0,(GLCD_HEIGHT/2)-20,GLCD_WIDTH-1,(GLCD_HEIGHT/2)+20,guiGetBackColor());//清除消息框
|
|
guiClearRect(0,(GLCD_HEIGHT/2)-20,GLCD_WIDTH-1,(GLCD_HEIGHT/2)+20,guiGetBackColor());//清除消息框
|
|
if(sutJson.validNum==0){
|
|
if(sutJson.validNum==0){
|
|
guiShowMessageBox("无数据");
|
|
guiShowMessageBox("无数据");
|
|
}else{
|
|
}else{
|
|
for(i=0;i<sutJson.validNum;i++) menuTable[i]=&sutJson.showTable[i];
|
|
for(i=0;i<sutJson.validNum;i++) menuTable[i]=&sutJson.showTable[i];
|
|
- sutJson.showTable[sutJson.validNum][0]=0;
|
|
|
|
menuTable[sutJson.validNum]=learnIcon[2];
|
|
menuTable[sutJson.validNum]=learnIcon[2];
|
|
ListBoxInit(&sutListBox, menuTable,0,learnIcon, sutJson.finishedFlag);
|
|
ListBoxInit(&sutListBox, menuTable,0,learnIcon, sutJson.finishedFlag);
|
|
- learnUIShowIndexAndTotal();
|
|
|
|
|
|
+ learnUIShowIndexAndTotal(sutJson.selIndex+sutListBox.handle+1,sutJson.totalNum);
|
|
}
|
|
}
|
|
learnUpdateStatus(LEARN_WAIT_RESPONSE);
|
|
learnUpdateStatus(LEARN_WAIT_RESPONSE);
|
|
break;
|
|
break;
|
|
@@ -1022,10 +1023,8 @@ static void learnSaveTaskFile(const char *fname, const char *msg){
|
|
MSG_INFO(1, "Save task %s", fname);
|
|
MSG_INFO(1, "Save task %s", fname);
|
|
}
|
|
}
|
|
|
|
|
|
-bool showFirstFlag;
|
|
|
|
unsigned char haveNextPage;
|
|
unsigned char haveNextPage;
|
|
unsigned char taskIndex;
|
|
unsigned char taskIndex;
|
|
-unsigned short showIndex;//内容显示的索引
|
|
|
|
char tidString[20];//保存正在查看的任务的tid串
|
|
char tidString[20];//保存正在查看的任务的tid串
|
|
char *learnGetTid(void){return tidString;}
|
|
char *learnGetTid(void){return tidString;}
|
|
/*
|
|
/*
|
|
@@ -1049,45 +1048,30 @@ static void calWordNum(char *msg){
|
|
charaNum=num;
|
|
charaNum=num;
|
|
MSG_INFO(1, "Chara Num:%d", num);
|
|
MSG_INFO(1, "Chara Num:%d", num);
|
|
}
|
|
}
|
|
-void readTaskAndShow(void){
|
|
|
|
|
|
+void readTaskToShow(void){
|
|
|
|
+ char isDetailValid=0;
|
|
char info[50];
|
|
char info[50];
|
|
- int y=UI_LOGIN_SHOW_Y;
|
|
|
|
static cJSON* eleScore ,* eleContent;
|
|
static cJSON* eleScore ,* eleContent;
|
|
- unsigned short len;
|
|
|
|
- char *ptr;
|
|
|
|
-
|
|
|
|
- guiClearRect(0,y, GLCD_WIDTH-1, UI_BOTTOM_LINE_Y-1, guiGetBackColor());
|
|
|
|
- if(showFirstFlag==true){
|
|
|
|
- showFirstFlag=false;
|
|
|
|
- showIndex=0;
|
|
|
|
- //读取当前任务的uid保存起来先
|
|
|
|
- tidString[0]=0;
|
|
|
|
- eleScore=cJSON_GetObjectItem(sutJson.jsonTask[taskIndex], OBJECT_TID);
|
|
|
|
- if(NULL != eleScore) snprintf(tidString, sizeof(tidString), "%s", eleScore->valuestring);
|
|
|
|
- eleScore=cJSON_GetObjectItem(sutJson.jsonTask[taskIndex], OBJECT_SCORE);
|
|
|
|
- eleContent=cJSON_GetObjectItem(sutJson.jsonTask[taskIndex], OBJECT_CONTENT);
|
|
|
|
- }
|
|
|
|
- if(showIndex==0){
|
|
|
|
- //显示分数
|
|
|
|
- if(NULL==eleScore){//没有找到分数字段,显示'--'
|
|
|
|
- snprintf(info, sizeof(info), "分数:--");
|
|
|
|
- }else if(eleScore->valuestring==NULL){
|
|
|
|
- snprintf(info, sizeof(info), "分数:--");
|
|
|
|
- }else snprintf(info, sizeof(info), "分数:%s", eleScore->valuestring);
|
|
|
|
- guiShowStr(1, y+1, info, FONT_MODE_16X16,REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
|
- y += 18;
|
|
|
|
|
|
+ //读取当前任务的uid保存起来先
|
|
|
|
+ tidString[0]=0;
|
|
|
|
+ eleScore=cJSON_GetObjectItem(sutJson.jsonTask[taskIndex], OBJECT_TID);
|
|
|
|
+ if(NULL != eleScore) snprintf(tidString, sizeof(tidString), "%s", eleScore->valuestring);
|
|
|
|
+ eleScore=cJSON_GetObjectItem(sutJson.jsonTask[taskIndex], OBJECT_SCORE);
|
|
|
|
+ eleContent=cJSON_GetObjectItem(sutJson.jsonTask[taskIndex], OBJECT_CONTENT);
|
|
|
|
+ //制造分数串
|
|
|
|
+ if(NULL==eleScore){//没有找到分数字段,显示'--'
|
|
|
|
+ snprintf(info, sizeof(info), "分数:--");
|
|
|
|
+ }else if(eleScore->valuestring==NULL){
|
|
|
|
+ snprintf(info, sizeof(info), "分数:--");
|
|
|
|
+ }else snprintf(info, sizeof(info), "分数:%s", eleScore->valuestring);
|
|
|
|
+ //内容
|
|
|
|
+ if(NULL!=eleContent && eleContent->valuestring!=NULL){
|
|
|
|
+ isDetailValid=1;
|
|
|
|
+ calWordNum(eleContent->valuestring);//计算单词个数
|
|
|
|
+ }
|
|
|
|
+ if(0!=newMessageInit(FONT_MODE_12X12, info, eleContent->valuestring, NULL)){
|
|
|
|
+ MSG_WARN(1, "learn task show get error");
|
|
}
|
|
}
|
|
-
|
|
|
|
- //显示内容
|
|
|
|
- if(NULL==eleContent) return;
|
|
|
|
- if(eleContent->valuestring==NULL) return;
|
|
|
|
- //计算单词个数
|
|
|
|
- calWordNum(eleContent->valuestring);
|
|
|
|
- ptr=eleContent->valuestring;
|
|
|
|
- MessageEditInit(&sutMEdit, 1, y , ptr, FONT_MODE_16X16);
|
|
|
|
- len=MessageEditShow(&sutMEdit,ptr+showIndex);
|
|
|
|
- if(len !=0) showIndex+=len;
|
|
|
|
- else showIndex=0;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
unsigned char recoderVolume=0;
|
|
unsigned char recoderVolume=0;
|
|
@@ -1126,10 +1110,9 @@ void uiShowLearnTaskDetail(char update){
|
|
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);
|
|
uiMenuShowBottomLine();
|
|
uiMenuShowBottomLine();
|
|
- showFirstFlag=true;
|
|
|
|
taskIndex=sutListBox.handle;
|
|
taskIndex=sutListBox.handle;
|
|
learnRecSetStatus(LEARN_REC_IDLE);
|
|
learnRecSetStatus(LEARN_REC_IDLE);
|
|
- readTaskAndShow();
|
|
|
|
|
|
+ readTaskToShow();
|
|
learnShowStartScreen();
|
|
learnShowStartScreen();
|
|
learnTick=0;
|
|
learnTick=0;
|
|
}
|
|
}
|
|
@@ -1187,7 +1170,7 @@ void uiShowLearnTaskDetail(char update){
|
|
//返回任务详情内容页面,录音临时信息及资源回收
|
|
//返回任务详情内容页面,录音临时信息及资源回收
|
|
learnRecordBufRelease();
|
|
learnRecordBufRelease();
|
|
learnShowStartScreen();
|
|
learnShowStartScreen();
|
|
- readTaskAndShow();
|
|
|
|
|
|
+ newMessageShow(SHOW_HEAD);
|
|
learnRecSetStatus(LEARN_REC_IDLE);
|
|
learnRecSetStatus(LEARN_REC_IDLE);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -1236,7 +1219,7 @@ void uiShowLearnTaskDetailResponse(void){
|
|
case LEARN_REC_DONE://刚录音完成,选择放弃而返回到任务详情
|
|
case LEARN_REC_DONE://刚录音完成,选择放弃而返回到任务详情
|
|
learnRecordBufRelease();
|
|
learnRecordBufRelease();
|
|
learnShowStartScreen();
|
|
learnShowStartScreen();
|
|
- readTaskAndShow();
|
|
|
|
|
|
+ newMessageShow(SHOW_HEAD);
|
|
learnRecSetStatus(LEARN_REC_IDLE);
|
|
learnRecSetStatus(LEARN_REC_IDLE);
|
|
break;
|
|
break;
|
|
case LEARN_REC_PLY://停止正在播放的操作
|
|
case LEARN_REC_PLY://停止正在播放的操作
|
|
@@ -1301,7 +1284,14 @@ void uiShowLearnTaskDetailResponse(void){
|
|
switch(learnRecordStatus){
|
|
switch(learnRecordStatus){
|
|
case LEARN_REC_IDLE:
|
|
case LEARN_REC_IDLE:
|
|
case LEARN_REC_BUSY:
|
|
case LEARN_REC_BUSY:
|
|
- readTaskAndShow();//显示任务其它内容
|
|
|
|
|
|
+ newMessageShow(SHOW_DOWN);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }else if(MKEY_VALUE_UP==key){
|
|
|
|
+ switch(learnRecordStatus){
|
|
|
|
+ case LEARN_REC_IDLE:
|
|
|
|
+ case LEARN_REC_BUSY:
|
|
|
|
+ newMessageShow(SHOW_UP);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}else if(MKEY_VALUE_P1==key){
|
|
}else if(MKEY_VALUE_P1==key){
|
|
@@ -1553,6 +1543,7 @@ static void classInfoDetailShow(unsigned char direction){
|
|
MSG_WARN(1, "class no data");
|
|
MSG_WARN(1, "class no data");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+#if 0
|
|
char info[50];
|
|
char info[50];
|
|
int x=1,y=UI_CONTENT_SHOW_Y;
|
|
int x=1,y=UI_CONTENT_SHOW_Y;
|
|
//显示week
|
|
//显示week
|
|
@@ -1566,6 +1557,15 @@ static void classInfoDetailShow(unsigned char direction){
|
|
//显示subject
|
|
//显示subject
|
|
snprintf(info, sizeof(info), "subject:%s", classes.classResult[tIndex]->subject);
|
|
snprintf(info, sizeof(info), "subject:%s", classes.classResult[tIndex]->subject);
|
|
guiShowStr(x, y, info, FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
guiShowStr(x, y, info, FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
|
+#else
|
|
|
|
+ char info1[50],info2[100];
|
|
|
|
+ //显示索引和总数
|
|
|
|
+ learnUIShowIndexAndTotal(tIndex+1,classes.item);
|
|
|
|
+ //显示内容
|
|
|
|
+ snprintf(info1, sizeof(info1), "week:%d%ctime:%s", classes.classResult[tIndex]->week,0x0a,classes.classResult[tIndex]->time);
|
|
|
|
+ snprintf(info2, sizeof(info2), "subject:%s", classes.classResult[tIndex]->subject);
|
|
|
|
+ newMessageInit(FONT_MODE_16X16,info1, info2, NULL);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
static void getClassShowMessage(void);
|
|
static void getClassShowMessage(void);
|
|
/*课程表*/
|
|
/*课程表*/
|
|
@@ -1574,7 +1574,7 @@ void uiShowLearnClassDetail(char update){
|
|
static bool needGetUinfo=false;
|
|
static bool needGetUinfo=false;
|
|
if(update){
|
|
if(update){
|
|
guiClearAll(guiGetBackColor());
|
|
guiClearAll(guiGetBackColor());
|
|
- guiShowCaption(0,"课程表",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
|
|
|
|
+ guiShowCaption(30,"课程表",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
uiMenuShowBottomLine();
|
|
uiMenuShowBottomLine();
|
|
uiMenuShowBottomIndacitor(NULL, "返回");
|
|
uiMenuShowBottomIndacitor(NULL, "返回");
|
|
if(sutApp.pocPpp==0){
|
|
if(sutApp.pocPpp==0){
|
|
@@ -1676,6 +1676,7 @@ static void noticeInfoDetailShow(unsigned char direction){
|
|
MSG_WARN(1, "notice no data");
|
|
MSG_WARN(1, "notice no data");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+#if 0
|
|
char info[50];
|
|
char info[50];
|
|
int x=1,y=UI_CONTENT_SHOW_Y;
|
|
int x=1,y=UI_CONTENT_SHOW_Y;
|
|
//显示title
|
|
//显示title
|
|
@@ -1685,6 +1686,10 @@ static void noticeInfoDetailShow(unsigned char direction){
|
|
//显示time
|
|
//显示time
|
|
snprintf(info, sizeof(info), "time:%s", notices.noticeResult[noticetIndex]->time);
|
|
snprintf(info, sizeof(info), "time:%s", notices.noticeResult[noticetIndex]->time);
|
|
guiShowStr(x, y, info, FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
guiShowStr(x, y, info, FONT_MODE_16X16, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
|
+#else
|
|
|
|
+ learnUIShowIndexAndTotal(noticetIndex+1,notices.item);
|
|
|
|
+ newMessageInit(FONT_MODE_16X16, notices.noticeResult[noticetIndex]->time,notices.noticeResult[noticetIndex]->title, NULL);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
static void getNoticeShowMessage(void);
|
|
static void getNoticeShowMessage(void);
|
|
/*消息通知*/
|
|
/*消息通知*/
|
|
@@ -1693,7 +1698,7 @@ void uiShowLearnNoticeDetail(char update){
|
|
static bool needGetUinfo=false;
|
|
static bool needGetUinfo=false;
|
|
if(update){
|
|
if(update){
|
|
guiClearAll(guiGetBackColor());
|
|
guiClearAll(guiGetBackColor());
|
|
- guiShowCaption(0,"消息通知",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
|
|
|
|
+ guiShowCaption(30,"消息通知",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
uiMenuShowBottomLine();
|
|
uiMenuShowBottomLine();
|
|
uiMenuShowBottomIndacitor("阅读", "返回");
|
|
uiMenuShowBottomIndacitor("阅读", "返回");
|
|
if(sutApp.pocPpp==0){
|
|
if(sutApp.pocPpp==0){
|
|
@@ -1774,7 +1779,7 @@ void uiShowLearnNoticeDetailShow(char update){
|
|
|
|
|
|
if(update){
|
|
if(update){
|
|
guiClearAll(guiGetBackColor());
|
|
guiClearAll(guiGetBackColor());
|
|
- guiShowCaption(0,notices.noticeResult[noticetIndex]->title,UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
|
|
|
|
+ guiShowCaption(0,notices.noticeResult[noticetIndex]->time,UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
uiMenuShowBottomLine();
|
|
uiMenuShowBottomLine();
|
|
uiMenuShowBottomIndacitor(NULL, "返回");
|
|
uiMenuShowBottomIndacitor(NULL, "返回");
|
|
if(sutApp.pocPpp==0){
|
|
if(sutApp.pocPpp==0){
|
|
@@ -1825,7 +1830,7 @@ void LearnNoticeDetailResponse(void){
|
|
uISetNextStatus(UIS_MENU_LOCATION_NOTICE);
|
|
uISetNextStatus(UIS_MENU_LOCATION_NOTICE);
|
|
break;
|
|
break;
|
|
case MKEY_VALUE_DOWN:noticeInfoDetailShowContent(1);break;
|
|
case MKEY_VALUE_DOWN:noticeInfoDetailShowContent(1);break;
|
|
- //case MKEY_VALUE_UP:noticeInfoDetailShowContent(2);break;
|
|
|
|
|
|
+ case MKEY_VALUE_UP:noticeInfoDetailShowContent(2);break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2251,6 +2256,7 @@ static void getNoticeShowMessage(void){
|
|
char *noticeDetailContent=NULL;
|
|
char *noticeDetailContent=NULL;
|
|
//char *testShowData="这是一条测试信息,长度为100,然后呢就一直显示吧,我也不知道能显示多少,所以只能临时搞一段文字来显示看看效果如何了,然后再给100000000000元作者吧,作为酬劳,我也不知道是否足够呢。";
|
|
//char *testShowData="这是一条测试信息,长度为100,然后呢就一直显示吧,我也不知道能显示多少,所以只能临时搞一段文字来显示看看效果如何了,然后再给100000000000元作者吧,作为酬劳,我也不知道是否足够呢。";
|
|
void noticeInfoDetailShowContent(char direction){
|
|
void noticeInfoDetailShowContent(char direction){
|
|
|
|
+#if 0
|
|
int x=1,y=UI_CONTENT_SHOW_Y;
|
|
int x=1,y=UI_CONTENT_SHOW_Y;
|
|
char *ptr=noticeDetailContent;
|
|
char *ptr=noticeDetailContent;
|
|
static int showlen,showIndex,len;
|
|
static int showlen,showIndex,len;
|
|
@@ -2263,6 +2269,11 @@ void noticeInfoDetailShowContent(char direction){
|
|
len=MessageEditShow(&sutMEdit,ptr+showIndex);
|
|
len=MessageEditShow(&sutMEdit,ptr+showIndex);
|
|
if(len !=0) showIndex+=len;
|
|
if(len !=0) showIndex+=len;
|
|
else showIndex=0;
|
|
else showIndex=0;
|
|
|
|
+#else
|
|
|
|
+ if(direction==0) newMessageInit(FONT_MODE_16X16, noticeDetailContent, NULL, NULL);
|
|
|
|
+ else if(direction==1) newMessageShow(SHOW_DOWN);
|
|
|
|
+ else if(direction==2) newMessageShow(SHOW_UP);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
void cJSONTakeContent(char *msg, int len){
|
|
void cJSONTakeContent(char *msg, int len){
|
|
//msg={"id":"7","content":"通知测试2"}
|
|
//msg={"id":"7","content":"通知测试2"}
|