folderview.h

00001 /***************************************************************************
00002                           folderview.h  -  description
00003                              -------------------
00004     begin                : Sun Feb 8 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018  #ifndef __FOLDERVIEW_H
00019  #define __FOLDERVIEW_H
00020 
00021   #ifdef __cplusplus
00022    extern "C"
00023    {
00024      #include "common/ktypes.h"
00025      #include "common/stdlib.h"
00026      #include "gui/graphics.h"
00027      #include "common/string.h"
00028      #include "gui/components/icon.h"
00029      #include "fs/fat12.h"
00030      #include "fs/client/client_fs.h"
00031    }
00032  #else
00033       #include "common/ktypes.h"
00034       #include "common/stdlib.h"
00035       #include "gui/graphics.h"
00036       #include "common/string.h"
00037       #include "gui/components/icon.h"
00038       #include "fs/fat12.h"
00039       #include "fs/client/client_fs.h"
00040  #endif
00041 
00042  #include "gui/components/component.h"
00043  #include "gui/components/window.h"
00044  #include "gui/components/frame.h"
00045  #include "gui/utility.h"
00046  
00047  #define MIN_FV_WIDTH  50
00048  #define MIN_FV_HEIGHT 50
00049  
00050  #define Y_OFFSET 3
00051  #define X_OFFSET 5
00052 
00053  #define FV_BASE  0xF0F0
00054 
00055  class folderview:public component
00056  {
00057    public :
00058     char dirname[1024]; //MAX PATH LENGTH
00059 
00060    void folderview_init(DW _id,DW _parent_id,DW _cnt_type,void *_cnt_ptr,DW _alias_id,DW _x,DW _y,DW _width,DW _height,DD _style,char *_dirname);
00061 
00062    void paint();
00063    void drawFiles(DW x, DW y);
00064       
00065    void react(DW _x,DW _y);
00066  };
00067  
00068  #endif

Generated on Thu Jul 27 23:52:26 2006 for Dynacube by  doxygen 1.4.7