Files
player/Project_App_Calendar/App_Src/win/mywin_user_picset.c
2025-07-05 19:47:28 +08:00

123 lines
3.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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);
PICMENU_AddItem (menu,"0:/png/主题1.png","0:/GIF/主题.gif","主题",creat_theme);
PICMENU_AddItem (menu,"0:/png/时间1.png","0:/GIF/时间.gif","时间",creat_time);
PICMENU_AddItem (menu,"0:/png/背光1.png","0:/GIF/背光.gif","背光",creat_light);
PICMENU_AddItem (menu,"0:/png/重置1.png","0:/GIF/重置.gif","重置",creat_reset);
PICMENU_AddItem (menu,"0:/png/关于1.png","0:/GIF/关于.gif","关于",creat_about);
PICMENU_AddItem (menu,"0:/png/系统1.png","0:/GIF/系统.gif","系统",creat_sys);
PICMENU_AddItem (menu,"0:/png/文件管理1.png","0:/GIF/文件管理.gif","文件管理",creat_explore);
return menu;
}
//定义获取程序下载位置的变量
#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)
{
MSGBOX_Inquiry ((WIN_WindowStruct *)base,"重置","再按一次确定键重置","确定","返回");
return 0;
}
WIN_TouchWinStruct *creat_about(WIN_TouchWinStruct *base)
{
char *txt=mymalloc (512);
if (APP_SOURCE)
{
sprintf (txt,"型号RC520\n软件版本1.11 Beta1\n编译:%s\n本程序通过IAP升级\n"
"程序名:%s\n程序大小:%d Byte"
,__DATE__ " " __TIME__,APP_APPNAME,APP_SIZE);
}
else
{
sprintf (txt,"型号RC520\n软件版本1.11 Beta1\n编译:%s\n本程序通过SWD下载"
,__DATE__ " " __TIME__);
}
MSGBOX_TipsTime ((WIN_WindowStruct*)base,"关于", txt,"确定",5000);
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;
}