GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

table.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2004 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00023 00024 #ifndef GFC_ATK_TABLE_HH 00025 #define GFC_ATK_TABLE_HH 00026 00027 #ifndef GFC_G_TYPE_HH 00028 #include <gfc/glib/type.hh> 00029 #endif 00030 00031 #ifndef __ATK_TABLE_H__ 00032 #include <atk/atktable.h> 00033 #endif 00034 00035 #ifndef _CPP_VECTOR 00036 #include <vector> 00037 #endif 00038 00039 namespace GFC { 00040 00041 namespace Atk { 00042 00043 class Object; 00044 00061 00062 class Table : public virtual G::TypeInterface 00063 { 00064 protected: 00067 00068 Table(); 00070 00071 virtual ~Table() = 0; 00073 00077 00078 typedef G::Signal<void, int, int> RowInsertedSignalType; 00079 typedef G::SignalProxy<TypeInstance, RowInsertedSignalType> RowInsertedSignalProxy; 00080 static const RowInsertedSignalType row_inserted_signal; 00087 00088 typedef G::Signal<void, int, int> ColumnInsertedSignalType; 00089 typedef G::SignalProxy<TypeInstance, ColumnInsertedSignalType> ColumnInsertedSignalProxy; 00090 static const ColumnInsertedSignalType column_inserted_signal; 00097 00098 typedef G::Signal<void, int, int> RowDeletedSignalType; 00099 typedef G::SignalProxy<TypeInstance, RowDeletedSignalType> RowDeletedSignalProxy; 00100 static const RowDeletedSignalType row_deleted_signal; 00107 00108 typedef G::Signal<void, int, int> ColumnDeletedSignalType; 00109 typedef G::SignalProxy<TypeInstance, ColumnDeletedSignalType> ColumnDeletedSignalProxy; 00110 static const ColumnDeletedSignalType column_deleted_signal; 00117 00118 typedef G::Signal<void> RowReorderedSignalType; 00119 typedef G::SignalProxy<TypeInstance, RowReorderedSignalType> RowReorderedSignalProxy; 00120 static const RowReorderedSignalType row_reordered_signal; 00125 00126 typedef G::Signal<void> ColumnReorderedSignalType; 00127 typedef G::SignalProxy<TypeInstance, ColumnReorderedSignalType> ColumnReorderedSignalProxy; 00128 static const ColumnReorderedSignalType column_reordered_signal; 00133 00134 typedef G::Signal<void> ModelChangedSignalType; 00135 typedef G::SignalProxy<TypeInstance, ModelChangedSignalType> ModelChangedSignalProxy; 00136 static const ModelChangedSignalType model_changed_signal; 00141 00143 00144 public: 00147 00148 AtkTable* atk_table() const; 00150 00151 operator AtkTable* () const; 00153 00154 Object* ref_at(int row, int column) const; 00159 00160 int get_index_at(int row, int column) const; 00168 00169 int get_column_at_index(int index) const; 00174 00175 int get_row_at_index(int index) const; 00180 00181 int get_n_columns() const; 00185 00186 int get_n_rows() const; 00190 00191 int get_column_extent_at(int row, int column) const; 00198 00199 int get_row_extent_at(int row, int column) const; 00206 00207 Object* get_caption() const; 00211 00212 String get_column_description(int column) const; 00217 00218 Object* get_column_header(int column) const; 00223 00224 String get_row_description(int row) const; 00229 00230 Object* get_row_header(int row) const; 00235 00236 Object* get_summary() const; 00240 00241 bool get_selected_columns(std::vector<int>& selected) const; 00245 00246 bool get_selected_rows(std::vector<int>& selected) const; 00250 00251 bool is_column_selected(int column) const; 00256 00257 bool is_row_selected(int row) const; 00262 00263 bool is_selected(int row, int column) const; 00270 00274 00275 void set_caption(const Object *caption); 00278 00279 void set_column_description(int column, const char *description); 00280 void set_column_description(int column, const String& description); 00285 00286 void set_column_header(int column, const Object *header); 00290 00291 void set_row_description(int row, const char *description); 00292 void set_row_description(int row, const String& description); 00297 00298 void set_row_header(int row, const Object *header); 00302 00303 void set_summary(const Object *accessible); 00306 00307 bool add_row_selection(int row); 00312 00313 bool remove_row_selection(int row); 00318 00319 bool add_column_selection(int column); 00324 00325 bool remove_column_selection(int column); 00330 00334 00335 const RowInsertedSignalProxy sig_row_inserted(); 00337 00338 const ColumnInsertedSignalProxy sig_column_inserted(); 00340 00341 const RowDeletedSignalProxy sig_row_deleted(); 00343 00344 const ColumnDeletedSignalProxy sig_column_deleted(); 00346 00347 const RowReorderedSignalProxy sig_row_reordered(); 00349 00350 const ColumnReorderedSignalProxy sig_column_reordered(); 00352 00353 const ModelChangedSignalProxy sig_model_changed(); 00355 00357 }; 00358 00359 } // namespace Atk 00360 00361 } // namespace GFC 00362 00363 #include <gfc/atk/inline/table.inl> 00364 00365 #endif // GFC_ATK_TABLE_HH 00366

Generated on Tue Aug 24 00:34:32 2004 for GFC-UI by doxygen 1.3.8