aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-subset-variable.h
blob: 8ac0af038209e5838316bfdce14940f66b6fa44a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef _E_TABLE_SUBSET_VARIABLE_H_
#define _E_TABLE_SUBSET_VARIABLE_H_

#include <gtk/gtkobject.h>
#include "e-table-subset.h"

#define E_TABLE_SUBSET_VARIABLE_TYPE        (e_table_subset_variable_get_type ())
#define E_TABLE_SUBSET_VARIABLE(o)          (GTK_CHECK_CAST ((o), E_TABLE_SUBSET_VARIABLE_TYPE, ETableSubsetVariable))
#define E_TABLE_SUBSET_VARIABLE_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), E_TABLE_SUBSET_VARIABLE_TYPE, ETableSubsetVariableClass))
#define E_IS_TABLE_SUBSET_VARIABLE(o)       (GTK_CHECK_TYPE ((o), E_TABLE_SUBSET_VARIABLE_TYPE))
#define E_IS_TABLE_SUBSET_VARIABLE_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TABLE_SUBSET_VARIABLE_TYPE))

typedef struct {
    ETableSubset base;

    int n_vals_allocated;
} ETableSubsetVariable;

typedef struct {
    ETableSubsetClass parent_class;
    
    void     (*add)    (ETableSubsetVariable *ets,
                gint                  row);
    gboolean (*remove) (ETableSubsetVariable *ets,
                gint                  row);
} ETableSubsetVariableClass;

GtkType      e_table_subset_variable_get_type  (void);
ETableModel *e_table_subset_variable_new       (ETableModel          *etm);
ETableModel *e_table_subset_variable_construct (ETableSubsetVariable *etssv,
                        ETableModel          *source);
void         e_table_subset_variable_add       (ETableSubsetVariable *ets,
                        gint                  row);
gboolean     e_table_subset_variable_remove    (ETableSubsetVariable *ets,
                        gint                  row);
void         e_table_subset_variable_increment (ETableSubsetVariable *ets,
                        gint                  position,
                        gint                  amount);
void         e_table_subset_variable_set_allocation (ETableSubsetVariable *ets,
                             gint                  total);
#endif /* _E_TABLE_SUBSET_VARIABLE_H_ */

/td>2011-07-091-1/+1 * - Update to 20110623sunpoet2011-06-281-1/+1 * - Update to 20110617sunpoet2011-06-251-23/+31 * - Update to 20110525sunpoet2011-06-021-1/+1 * - Update to 20110520sunpoet2011-05-271-1/+1 * - Update to 20110426sunpoet2011-05-071-1/+1 * - Update to 20110422sunpoet2011-04-261-1/+1 * - Update to 20110404sunpoet2011-04-121-1/+1 * Update to 20110312.kwm2011-03-241-2/+2 * Update to 20110206.kwm2011-02-251-2/+2 * Update to 20101124.mezz2010-12-191-1/+2 * Update to 20101107kwm2010-11-181-1/+1 * Update to 20101020.kwm2010-11-011-1/+1 * Update to 20101005.kwm2010-10-171-3/+5 * Update to 20100827.mezz2010-10-041-2/+2 * Update to 20091229ahze2009-12-301-1/+1 * Update to 20090807 snapshotahze2009-08-081-1/+1 * Update to 20090224 snapshotahze2009-02-241-1/+1 * Update to 20081012ahze2008-10-131-5/+3 * Update to 20080901 snapshotahze2008-09-021-1/+1 * Update to 20080726 snapshotahze2008-07-271-1/+1 * The FreeBSD GNOME team is proud to annunce the release of GNOME 2.22.0 formarcus2008-03-241-2/+2 * Update to 20080109 snapshotahze2008-01-091-3/+2 * Update to 20071004 snapshotahze2007-10-041-1/+1 * Update to 20070906 snapshotahze2007-09-071-1/+1