2025-06-27 00:32:57 +08:00
|
|
|
|
#include "mywin_inc.h"
|
|
|
|
|
|
#include "mywin_user_picmenu.h"
|
|
|
|
|
|
#include "mywin_user_menu.h"
|
|
|
|
|
|
#include "flash_manager.h"
|
|
|
|
|
|
#include "mywin_user_timeset.h"
|
|
|
|
|
|
#include "mywin_user_backlightset.h"
|
|
|
|
|
|
#include "mywin_user_sysfile.h"
|
|
|
|
|
|
#include "mywin_user_filder.h"
|
|
|
|
|
|
#include "mywin_user_time.h"
|
|
|
|
|
|
#include "mywin_user_light.h"
|
|
|
|
|
|
#include "mywin_user_theme.h"
|
|
|
|
|
|
#include "mywin_user_bluetooth.h"
|
|
|
|
|
|
#include "mywin_user_picset.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WIN_PicMenuStruct *CreatPicSet(WIN_WindowStruct *base)
|
|
|
|
|
|
{
|
|
|
|
|
|
WIN_WindowStruct *win=(WIN_WindowStruct *)base;
|
|
|
|
|
|
WIN_PicMenuStruct *menu=WIN_CreatPicMenu (win, 0, 0,0,win->x_size,win->y_size);
|
|
|
|
|
|
WIN_SetBackPic ((WIN_WindowStruct*)menu,&win->pic);
|
|
|
|
|
|
WIN_ShowWindow((WIN_WindowStruct*)menu);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WIN_TouchWinStruct *creat_theme(WIN_TouchWinStruct *base);
|
|
|
|
|
|
WIN_TouchWinStruct *creat_time(WIN_TouchWinStruct *base);
|
|
|
|
|
|
WIN_TouchWinStruct *creat_light(WIN_TouchWinStruct *base);
|
|
|
|
|
|
WIN_TouchWinStruct *creat_reset(WIN_TouchWinStruct *base);
|
|
|
|
|
|
WIN_TouchWinStruct *creat_about(WIN_TouchWinStruct *base);
|
|
|
|
|
|
WIN_TouchWinStruct *creat_sys(WIN_TouchWinStruct *base);
|
|
|
|
|
|
WIN_TouchWinStruct *creat_explore(WIN_TouchWinStruct *base);
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
PICMENU_AddItem (menu,"0:/png/<2F><><EFBFBD><EFBFBD>1.png","0:/GIF/<2F><><EFBFBD><EFBFBD>.gif","<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",creat_theme);
|
|
|
|
|
|
PICMENU_AddItem (menu,"0:/png/ʱ<><CAB1>1.png","0:/GIF/ʱ<><CAB1>.gif","ʱ<EFBFBD><EFBFBD>",creat_time);
|
|
|
|
|
|
PICMENU_AddItem (menu,"0:/png/<2F><><EFBFBD><EFBFBD>1.png","0:/GIF/<2F><><EFBFBD><EFBFBD>.gif","<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",creat_light);
|
|
|
|
|
|
PICMENU_AddItem (menu,"0:/png/<2F><><EFBFBD><EFBFBD>1.png","0:/GIF/<2F><><EFBFBD><EFBFBD>.gif","<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",creat_reset);
|
|
|
|
|
|
PICMENU_AddItem (menu,"0:/png/<2F><><EFBFBD><EFBFBD>1.png","0:/GIF/<2F><><EFBFBD><EFBFBD>.gif","<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",creat_about);
|
|
|
|
|
|
PICMENU_AddItem (menu,"0:/png/ϵͳ1.png","0:/GIF/ϵͳ.gif","ϵͳ",creat_sys);
|
|
|
|
|
|
PICMENU_AddItem (menu,"0:/png/<2F>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>1.png","0:/GIF/<2F>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>.gif","<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",creat_explore);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
|
|
|
|
|
return menu;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD>õı<C3B5><C4B1><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
#define APP_SOURCE (*(u32 *)(0x08020000+4*7))
|
|
|
|
|
|
#define APP_APPNAME (*(char **)(0x08020000+4*8))
|
|
|
|
|
|
#define APP_SIZE (*(u32 *)(0x08020000+4*9))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WIN_TouchWinStruct *creat_theme(WIN_TouchWinStruct *base)
|
|
|
|
|
|
{
|
|
|
|
|
|
void *temp=0;
|
|
|
|
|
|
temp=MENU_ThemeSet((WIN_WindowStruct *)base);
|
|
|
|
|
|
return temp;
|
|
|
|
|
|
}
|
|
|
|
|
|
WIN_TouchWinStruct *creat_time(WIN_TouchWinStruct *base)
|
|
|
|
|
|
{
|
|
|
|
|
|
void *temp=0;
|
|
|
|
|
|
TIMEBOX_TimeSet ((WIN_WindowStruct *)base);
|
|
|
|
|
|
return temp;
|
|
|
|
|
|
}
|
|
|
|
|
|
WIN_TouchWinStruct *creat_light(WIN_TouchWinStruct *base)
|
|
|
|
|
|
{
|
|
|
|
|
|
void *temp=0;
|
|
|
|
|
|
temp=MENU_LightSet((WIN_WindowStruct *)base);
|
|
|
|
|
|
return temp;
|
|
|
|
|
|
}
|
|
|
|
|
|
WIN_TouchWinStruct *creat_reset(WIN_TouchWinStruct *base)
|
|
|
|
|
|
{
|
2025-07-05 19:47:28 +08:00
|
|
|
|
MSGBOX_Inquiry ((WIN_WindowStruct *)base,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<EFBFBD>ٰ<EFBFBD>һ<EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","ȷ<EFBFBD><EFBFBD>","<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
2025-06-27 00:32:57 +08:00
|
|
|
|
return 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
WIN_TouchWinStruct *creat_about(WIN_TouchWinStruct *base)
|
|
|
|
|
|
{
|
|
|
|
|
|
char *txt=mymalloc (512);
|
|
|
|
|
|
if (APP_SOURCE)
|
|
|
|
|
|
{
|
2025-07-05 19:47:28 +08:00
|
|
|
|
sprintf (txt,"<EFBFBD>ͺţ<EFBFBD>RC520\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>汾<EFBFBD><EFBFBD>1.11 Beta1\n<EFBFBD><EFBFBD><EFBFBD>룺%s\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>IAP<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n"
|
|
|
|
|
|
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><EFBFBD>%d Byte"
|
2025-06-27 00:32:57 +08:00
|
|
|
|
,__DATE__ " " __TIME__,APP_APPNAME,APP_SIZE);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
2025-07-05 19:47:28 +08:00
|
|
|
|
sprintf (txt,"<EFBFBD>ͺţ<EFBFBD>RC520\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>汾<EFBFBD><EFBFBD>1.11 Beta1\n<EFBFBD><EFBFBD><EFBFBD>룺%s\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>SWD<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2025-06-27 00:32:57 +08:00
|
|
|
|
,__DATE__ " " __TIME__);
|
|
|
|
|
|
}
|
2025-07-05 19:47:28 +08:00
|
|
|
|
MSGBOX_TipsTime ((WIN_WindowStruct*)base,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>", txt,"ȷ<EFBFBD><EFBFBD>",5000);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
myfree(txt);
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
WIN_TouchWinStruct *creat_sys(WIN_TouchWinStruct *base)
|
|
|
|
|
|
{
|
|
|
|
|
|
void *temp=0;
|
|
|
|
|
|
SYSFILE_ChooseFile((WIN_WindowStruct *)base);
|
|
|
|
|
|
return temp;
|
|
|
|
|
|
}
|
|
|
|
|
|
WIN_TouchWinStruct *creat_explore(WIN_TouchWinStruct *base)
|
|
|
|
|
|
{
|
|
|
|
|
|
void *temp=0;
|
|
|
|
|
|
FILDER_ChooseFile((WIN_WindowStruct *)base,"0:");
|
|
|
|
|
|
return temp;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|