~siretart/gnucash/ubuntu-fullsource

« back to all changes in this revision

Viewing changes to src/register/register-core/cellblock.h

  • Committer: Reinhard Tartler
  • Date: 2008-08-03 07:25:46 UTC
  • Revision ID: siretart@tauware.de-20080803072546-y6p8xda8zpfi62ys
import gnucash_2.2.4.orig.tar.gz

The original tarball had the md5sum: 27e660297dc5b8ce574515779d05a5a5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/********************************************************************\
 
2
 * cellblock.h -- group of cells that act as cursor within a table  *
 
3
 *                                                                  *
 
4
 * This program is free software; you can redistribute it and/or    *
 
5
 * modify it under the terms of the GNU General Public License as   *
 
6
 * published by the Free Software Foundation; either version 2 of   *
 
7
 * the License, or (at your option) any later version.              *
 
8
 *                                                                  *
 
9
 * This program is distributed in the hope that it will be useful,  *
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
 
12
 * GNU General Public License for more details.                     *
 
13
 *                                                                  *
 
14
 * You should have received a copy of the GNU General Public License*
 
15
 * along with this program; if not, contact:                        *
 
16
 *                                                                  *
 
17
 * Free Software Foundation           Voice:  +1-617-542-5942       *
 
18
 * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
 
19
 * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
 
20
 *                                                                  *
 
21
\********************************************************************/
 
22
 
 
23
/* 
 
24
 * FILE:
 
25
 * cellblock.h
 
26
 *
 
27
 * FUNCTION:
 
28
 * The CellBlock struct is a rectangular grid of cells that 
 
29
 * define an arrangement of cells.  It is typically used to
 
30
 * define a virtual cursor within a larger table of cells.
 
31
 *
 
32
 * HISTORY:
 
33
 * Copyright (c) 1988 Linas Vepstas
 
34
 * Copyright (c) 2000-2001 Dave Peticolas <dave@krondo.com>
 
35
 */
 
36
 
 
37
#ifndef XACC_CELL_BLOCK_H
 
38
#define XACC_CELL_BLOCK_H
 
39
 
 
40
#include "basiccell.h"
 
41
 
 
42
#include "gtable.h"
 
43
 
 
44
typedef struct
 
45
{
 
46
  short num_rows;
 
47
  short num_cols;
 
48
 
 
49
  short start_col;
 
50
  short stop_col;
 
51
 
 
52
  char *cursor_name;
 
53
 
 
54
  GPtrArray *cells; /* Holds the CellBlockCell table */
 
55
} CellBlock;
 
56
 
 
57
 
 
58
CellBlock * gnc_cellblock_new (int rows, int cols, const char *cursor_name);
 
59
 
 
60
void        gnc_cellblock_destroy (CellBlock *cellblock);
 
61
 
 
62
void        gnc_cellblock_set_cell (CellBlock *cellblock,
 
63
                                    int row, int col,
 
64
                                    BasicCell *cell);
 
65
 
 
66
BasicCell * gnc_cellblock_get_cell (CellBlock *cellblock,
 
67
                                    int row, int col);
 
68
 
 
69
/* Return number of changed cells. */
 
70
int         gnc_cellblock_changed (CellBlock *cursor,
 
71
                                   gboolean include_conditional);
 
72
 
 
73
void        gnc_cellblock_clear_changes (CellBlock *cursor);
 
74
 
 
75
#endif