|
GnuCash 2.4.99
|
00001 /********************************************************************\ 00002 * This program is free software; you can redistribute it and/or * 00003 * modify it under the terms of the GNU General Public License as * 00004 * published by the Free Software Foundation; either version 2 of * 00005 * the License, or (at your option) any later version. * 00006 * * 00007 * This program is distributed in the hope that it will be useful, * 00008 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00009 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00010 * GNU General Public License for more details. * 00011 * * 00012 * You should have received a copy of the GNU General Public License* 00013 * along with this program; if not, contact: * 00014 * * 00015 * Free Software Foundation Voice: +1-617-542-5942 * 00016 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00017 * Boston, MA 02110-1301, USA gnu@gnu.org * 00018 * * 00019 \********************************************************************/ 00020 00021 #ifndef GNUCASH_HEADER_H 00022 #define GNUCASH_HEADER_H 00023 00024 #include <gnome.h> 00025 00026 00027 #define GNC_TYPE_HEADER (gnc_header_get_type ()) 00028 #define GNC_HEADER(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GNC_TYPE_HEADER, GncHeader)) 00029 #define GNC_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNC_TYPE_HEADER, GncHeaderClass)) 00030 #define GNC_IS_HEADER(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GNC_TYPE_HEADER)) 00031 00032 GType gnc_header_get_type (void); 00033 00034 typedef struct 00035 { 00036 GnomeCanvasItem canvas_item; 00037 00038 GnucashSheet *sheet; 00039 SheetBlockStyle *style; 00040 00041 char *cursor_name; 00042 00043 int num_phys_rows; 00044 00045 int in_resize; 00046 int resize_col_width; 00047 int resize_x; 00048 int resize_col; 00049 00050 gboolean needs_ungrab; 00051 00052 int height; 00053 int width; 00054 00055 GdkGC *gc; 00056 GdkCursor *normal_cursor; 00057 GdkCursor *resize_cursor; 00058 } GncHeader; 00059 00060 00061 typedef struct 00062 { 00063 GnomeCanvasItemClass parent_class; 00064 } GncHeaderClass; 00065 00066 00067 GtkWidget *gnc_header_new (GnucashSheet *sheet); 00068 void gnc_header_reconfigure (GncHeader *header); 00069 00070 void gnc_header_set_header_rows (GncHeader *header, 00071 int num_phys_rows); 00072 00073 #endif /* GNUCASH_HEADER_H */ 00074
1.7.4