Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

tables.h

00001 /* 00002 * =========================== 00003 * VDK Visual Development Kit 00004 * Version 0.4 00005 * October 1998 00006 * Update to VDK 0.5.0 00007 * by mm 12.13.1998 00008 * =========================== 00009 * 00010 * Copyright (C) 1998, Mario Motta 00011 * Developed by Mario Motta <mmotta@guest.net> 00012 * 00013 * This library is free software; you can redistribute it and/or 00014 * modify it under the terms of the GNU Library General Public 00015 * License as published by the Free Software Foundation; either 00016 * version 2 of the License, or (at your option) any later version. 00017 * 00018 * This library is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00021 * Library General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Library General Public 00024 * License along with this library; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00026 * 02111-1307, USA. 00027 */ 00028 00029 #ifndef TABLES_H 00030 #define TABLES_H 00031 #include <vdk/vdkobj.h> 00032 #include <vdk/widcontain.h> 00039 class VDKTable: public VDKObjectContainer 00040 { 00041 00042 public: 00046 __rwproperty(VDKTable,int) ColSpacing; 00050 __rwproperty(VDKTable,int) RowSpacing; 00058 VDKTable(VDKForm* owner,int rows, int cols, int homogeneous = false); 00062 virtual ~VDKTable(); 00071 virtual void Add(VDKObject* obj, 00072 int left_attach, 00073 int right_attach, 00074 int top_attach, 00075 int bot_attach); 00090 void AddToCell(VDKObject* obj, 00091 int row, 00092 int col, 00093 int opt = int(GTK_FILL | GTK_EXPAND), 00094 int padding = 1); 00095 /* 00096 Extended attaching mode using all arguments provided by gtk+ 00097 \param obj object to be attached 00098 \param l_a left attach 00099 \param r_a right attach 00100 \param t_a top attach 00101 \param b_a bottom attach 00102 \param x_o x options 00103 \param y_o y options 00104 \param x_p x padding 00105 \param y_p y padding 00106 */ 00107 void AddExt(VDKObject* obj, 00108 int l_a, int r_a, 00109 int t_a, int b_a, 00110 int x_o = int(GTK_FILL | GTK_EXPAND), 00111 int y_o = int(GTK_FILL | GTK_EXPAND), 00112 int x_p = 0, int y_p = 0); 00113 00114 void SetRowSpacing(int row, int spacing) 00115 { gtk_table_set_row_spacing(GTK_TABLE(widget),row,spacing); } 00116 void SetColSpacing(int col, int spacing) 00117 { gtk_table_set_col_spacing(GTK_TABLE(widget),col,spacing); } 00118 void SetRowSpacings(int spacing) 00119 { gtk_table_set_row_spacings(GTK_TABLE(widget),spacing); } 00120 void SetColSpacings(int spacing) 00121 { gtk_table_set_col_spacings(GTK_TABLE(widget),spacing); } 00122 }; 00123 #endif

Generated on Wed Jul 28 17:23:53 2004 for vdk 2.0.3 by doxygen 1.3.7