paintcomp.cpp

00001 /***************************************************************************
00002                           paintcomp.cpp  -  description
00003                              -------------------
00004     begin                : Wed Jan 28 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  #include "gui/server/paintcomp.h"
00019  
00020  void paint_component(component *comp)
00021   {
00022     button *but;
00023     text *txt;
00024     textarea *txtarea;
00025     label *lbl;
00026     folderview *fv;
00027     
00028     switch(comp->type)
00029     {
00030       case BUT_TYPE :
00031                       but = (button *)comp;
00032                       but->paint();
00033                       break;
00034 
00035       case TEXT_TYPE:
00036                       txt = (text *)comp;
00037                       txt->paint();
00038                       break;
00039                       
00040       case TEXTAREA_TYPE:
00041                       txtarea = (textarea *)comp;
00042                       txtarea->paint();
00043                       break;
00044 
00045       case LABEL_TYPE:
00046                       lbl = (label *)comp;
00047                       lbl->paint();
00048                       break;      
00049 
00050       case FOLDERVIEW_TYPE:
00051                       fv = (folderview *)comp;
00052                       fv->paint();
00053                       break;
00054     }
00055   }  

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