⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mfilemgr.h

📁 brew 文件浏览器实现,是纯c编写的
💻 H
字号:
//////////////////////////////////////////////////////////////////////////
//MFileMgr.h
//////////////////////////////////////////////////////////////////////////


#ifndef __MFILEMGR_H__
#define __MFILEMGR_H__

#include "AEEModGen.h"          // Module interface definitions
#include "AEEAppGen.h"          // Applet interface definitions
#include "AEEShell.h"           // Shell interface definitions
#include "AEEFile.h"			// File interface definitions
#include "AEEMenu.h"			// Menu interface definitions
#include "AEEStdlib.h"			// MALLOC ,FREEIF
#include "AEEText.h"			// Text interface difinitions

#include "MFileMgr.bid"			// bid file
#include "mfilemgr.bar"         // resource file
#include "mfilemgr.brh"         // resource header file

#define  RES_FILE   "mfilemgr.bar"
#define  TITLE_BAR_BMP  "icon/titilbar.bmp"

#define  IDW_MAINMENU  10
#define  IDW_LISTWND   11
#define  IDW_TEXTINPUT 12



typedef struct _MFileMgr  MFileMgr;

typedef struct _ListWnd   ListWnd;

typedef struct _MainMenu MainMenu;

typedef struct _TextInput TextInput;


struct _ListWnd{
	MFileMgr  *pMe;
	char *curDir;   
	IMenuCtl *list;
	IFileMgr *pMgr;
};

struct _MainMenu{
	MFileMgr *pMe;
    char *curFile;    //当前要处理的文件或目录.
	char *srcFile;  //复制文件的源文件。
    IMenuCtl *menu;   //菜单接口指针.
	uint16  wid;      //当前活动的窗口ID。
};

struct _TextInput{
	MFileMgr* pMe;
	ITextCtl* text;
	char*  itext;    //用户输入的内容。
	uint16  id;      //未完成的命令。
};

struct _MFileMgr {
	AEEApplet      a ;	  
    uint16 xScreen;           // 目标屏幕的宽度.
	uint16 yScreen;           // 目标屏幕的高度.
	ListWnd listWnd;
	MainMenu mainmenu;
    TextInput textinput;   
};




void SetActiveWindow(MFileMgr* pMe,uint16 wId);

boolean MFileMgr_InitAppData(MFileMgr* pMe);
void    MFileMgr_FreeAppData(MFileMgr* pMe);

#define  IDM_BASE (EVT_USER+100)

#define IDM_CREATE_FILE	       (EVT_USER+1000)
#define IDM_CREATE_FOLDER	   (EVT_USER+1001) 
#define IDM_DELETE_FOLDER	   (EVT_USER+1002) 
#define IDM_SEARCH_FILE	       (EVT_USER+1003)
#define IDM_RENAME_FILE	       (EVT_USER+1004)
#define IDM_DELETE_FILE	       (EVT_USER+1005)
#define IDM_COPY_FILE	       (EVT_USER+1006)
#define IDM_PASTE_FILE         (EVT_USER+1007)

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -