dirb.h

来自「Yet another mp3 player, but this time us」· C头文件 代码 · 共 56 行

H
56
字号
/*   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 + =
减小字号Ctrl + -
显示快捷键?