1 /*---------------------------------------------------------------------------- 2 browse.h (definitions of browse interface) 3 This file is a part of topaz systems 4 Copyright: Hisao Kawaura, All rights reserved 5 1997 - 98 6 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 22 ----------------------------------------------------------------------------*/ 23 24 #if !defined(__browse_h) 25 #define __browse_h 26 27 #include "topazcurses.h" 28 #include <sys/stat.h> 29 #include <string> 30 #include "vect.h" 31 #include "buffarray.h" 32 33 34 class fileentry 35 { 36 public: fileentry()37 fileentry(){selected = false; filename[0] = 0;} ~fileentry()38 ~fileentry(){;} 39 bool selected; 40 char filename[1024]; 41 struct stat status; 42 }; 43 44 typedef vect<fileentry> fileentarray; 45 46 extern int selectfile(WINDOW *win, std::string *dir, buffarray *out, bool ismulti, std::string* filter); 47 48 #endif 49 50 51 52 53 54 55 56 57 58 59 60 61 62