1 /* 2 * Rubrica 3 * file: models.h 4 * 5 * Copyright (C) Nicola Fragale <nicolafragale@gmail.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 3 of the License 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 */ 20 21 #include <gtk/gtk.h> 22 23 #ifndef _RUBRICA_MODELS_H 24 #define _RUBRICA_MODELS_H 25 26 #include "types.h" 27 28 29 GtkTreeModel* rubrica_model_new (RubricaModelType type); 30 31 void rubrica_model_init_tree (GtkTreeView* view, RubricaModelType type); 32 void rubrica_model_add_columns (GtkTreeView* view, RubricaColumnsType type); 33 void rubrica_model_toggle_group (GtkCellRendererToggle *cell, gchar *path, 34 gpointer data); 35 36 void rubrica_model_clean_groups_view (GtkTreeView* view); 37 void rubrica_model_populate_groups_view (GtkTreeView* view, RGroupBox* box); 38 void rubrica_model_update_groups_view (GtkTreeView* view, RGroupBox* box); 39 void rubrica_model_redisplay_groups_view (GtkTreeView* view, RGroupBox* box); 40 41 GtkTreeModel* rubrica_model_combo_new (void); 42 void rubrica_model_add_combo_columns (GtkComboBox *combo_box); 43 void rubrica_model_populate_combo (GtkComboBox *combo_box, 44 RubricaCombo* array); 45 #endif 46