📄 txt_main.c
字号:
/******************
* mp3_main.c
*****************/
#include <string.h>
#include "api.h"
#include "lcd.h"
#include "common.h"
#include "ap_common.h"
#include "display.h"
#include "txt_utile.h"
#include "txt_display.h"
#include "txt_sub_menu.h"
#include "prefer.h"
#include "ui_main.h"
#include "res.h"
#include "ui_message.h"
BOOLEAN txt_init;
BOOLEAN fm_lock, music_on, lyric_on, scroll_on;
BOOLEAN play_statu=0;
void screen_txt_init(void)
{
/* Change to ROOT dir */
if(txt_init)
{
change_dir(0);
scan_dir_file(SEARCH_MODE_CURRDIR, "TXT", 1);
if(totfile==0)
{
ui_show_message(MFILEOUT);
#ifdef dynamic_load
api_vLoad(Code_USER1,1);
#else
Print("Load Function\n");
#endif
}
else
{
curr_finfo.u16Order = 0;
screen_map(SCREEN_FILEBROWSER);
txt_init = 0;
}
}
else
{
//maybe need some ui there
show_one_page();
return;
}
}
void screen_txt(UINT8 key)
{
UINT8 ret=1;
switch(key)
{
case KEY_MENU:
txt_sub_menu();
return;
case KEY_PLAY:
txt_close();
screen_map(SCREEN_FILEBROWSER);
return;
case KEY_NEXT:
ret = txt_page_next();
break;
case KEY_PREV:
ret = txt_page_prev();
break;
case KEY_FORWARD:
case KEY_REWIND:
//
// break;
case KEY_RELEASE:
//
// break;
case KEY_VOL_UP:
//
// break;
case KEY_VOL_DN:
// break;
default:
return;
}
if(ret==1)
show_one_page();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -