00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
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
00097
00098
00099
00100
00101
00102
00103
00104
00105
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