📄 dirb.h
字号:
/* dirb.h Directory browser class This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details, www.gnu.org. Copyright (C) 2000 Simon Harrison (email smh@N_O_S_P_A_M@dr.com)*/#ifndef DIRB_DOT_H#define DIRB_DOT_H#include <dirent.h>#include <unistd.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include "listb.h"// A Directory browser.class CDirBrowser : public CListBrowser { char cwdbuffer[1024]; // current working directory char lastaction[1024]; char* file_attribs; char buffer2[1024]; char* p; int ok; public : int start_processing(char* cwd=NULL); // Call this before doing anything else. void left(); void right(); char* enter(); // enter key (select a file or directory) private : static int ls_compare_func( const void* a, const void* b ); int isdirectory( char * ); void loadvalues(); // Get a directory listing. int newlisting( int disp );};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -