Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

sptktablepane.h

00001 /***************************************************************************
00002 sptktablepane.h  -  description
00003 -------------------
00004 begin                : Mon Dez 2 2002
00005 copyright            : (C) 2002 by Sven Broenstrup
00006 email                : starpeak@sptk.org
00007 ***************************************************************************/
00008 
00009 /***************************************************************************
00010 *                                                                         *
00011 *   StarPeak OnlineMedia., hereby disclaims all copyright interest in     *
00012 *   the library `SPTK' written by Sven Broenstrup.                        *
00013 *                                                                         *
00014 *   Permission is hereby granted, free of charge, to any person obtaining *
00015 *   a copy of this software and associated documentation files (the       *
00016 *   "Software"), to deal in the Software without restriction, including   *
00017 *   without limitation the rights to use, copy, modify, merge, publish,   *
00018 *   distribute, sublicense, and/or sell copies of the Software, and to    *
00019 *   permit persons to whom the Software is furnished to do so, subject to *
00020 *   the following conditions:                                             *
00021 *                                                                         *
00022 *   The above copyright notice and this permission notice shall be        *
00023 *   included in all copies or substantial portions of the Software.       *
00024 *                                                                         *
00025 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *
00026 *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *
00027 *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
00028 *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *
00029 *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
00030 *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
00031 *   OTHER DEALINGS IN THE SOFTWARE.                                       *
00032 *                                                                         *
00033 ***************************************************************************/
00034 
00035 #ifndef SPTKTABLEPANE_H
00036 #define SPTKTABLEPANE_H
00037 #include "sptkpane.h"
00038 #include "../sptkcore/spdtlist.h"
00039 #include <string>
00040 
00045 class sptkTablePane : public sptkPane
00046 {
00047 public:
00048     sptkTablePane();
00049     ~sptkTablePane();
00054     void setBorder(int border);
00059     int getBorder();
00064     void setCellPadding(int cellPadding);
00069     int getCellPadding();
00074     void setCellSpacing(int cellSpacing);
00079     int getCellSpacing();
00084     void setHeight(std::string height);
00089     std::string getHeight();
00094     void setWidth(std::string width);
00099     std::string getWidth();
00108     void setElements(spdtList *elements);
00114     spdtList *getElements();
00115 
00119     void newRow();
00127     void add
00128         (sptkGadget *content, int colspan=1, int rowspan=1, bool header=0);
00135     void addHead(sptkGadget * content, int colspan=1, int rowspan=1);
00136 private: // Private attributes
00138     spdtList *elements;
00139 protected:
00141     int border;
00143     std::string width;
00145     std::string height;
00147     int cellSpacing;
00149     int cellPadding;
00150 };
00151 
00152 #endif
Powered by SPOM