Commit 3cb12424 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

rename gnumeric-sheet -> gnumeric-canvas

2001-07-30  Jody Goldberg <jgoldberg@home.com>

	* src/Makefile.am : rename gnumeric-sheet -> gnumeric-canvas
parent 43215bb3
2001-07-30 Jody Goldberg <jgoldberg@home.com>
* src/Makefile.am : rename gnumeric-sheet -> gnumeric-canvas
2001-07-30 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control.c (sc_wbc) : new.
......
2001-07-30 Jody Goldberg <jgoldberg@home.com>
* src/Makefile.am : rename gnumeric-sheet -> gnumeric-canvas
2001-07-30 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control.c (sc_wbc) : new.
......
2001-07-30 Jody Goldberg <jgoldberg@home.com>
* src/Makefile.am : rename gnumeric-sheet -> gnumeric-canvas
2001-07-30 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control.c (sc_wbc) : new.
......
2001-07-30 Jody Goldberg <jgoldberg@home.com>
* src/Makefile.am : rename gnumeric-sheet -> gnumeric-canvas
2001-07-30 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control.c (sc_wbc) : new.
......
......@@ -89,10 +89,10 @@ GNUMERIC_BASE_SOURCES = \
global-gnome-font.h \
goal-seek.c \
goal-seek.h \
gnumeric-canvas.c \
gnumeric-canvas.h \
gnumeric-pane.c \
gnumeric-pane.h \
gnumeric-sheet.c \
gnumeric-sheet.h \
gnumeric-util.c \
gnumeric-util.h \
gnumeric.h \
......
......@@ -8,7 +8,7 @@
*/
#include <config.h>
#include <gnumeric-pane.h>
#include <gnumeric-sheet.h>
#include <gnumeric-canvas.h>
#include <item-bar.h>
#include <item-cursor.h>
#include <item-edit.h>
......
This diff is collapsed.
#ifndef GNUMERIC_GNUMERIC_CANVAS_H
#define GNUMERIC_GNUMERIC_CANVAS_H
#include "gui-gnumeric.h"
#define GNUMERIC_TYPE_CANVAS (gnumeric_canvas_get_type ())
#define GNUMERIC_CANVAS(obj) (GTK_CHECK_CAST((obj), GNUMERIC_TYPE_CANVAS, GnumericCanvas))
#define GNUMERIC_CANVAS_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), GNUMERIC_TYPE_CANVAS))
#define IS_GNUMERIC_CANVAS(o) (GTK_CHECK_TYPE((o), GNUMERIC_TYPE_CANVAS))
#define GNUMERIC_CANVAS_FACTOR_X 1000000
#define GNUMERIC_CANVAS_FACTOR_Y 2000000
struct _GnumericCanvas {
GnomeCanvas canvas;
SheetControlGUI *scg;
GnumericPane *pane;
CellPos first, last_full, last_visible, first_offset;
GnomeCanvasGroup *anted_group;
GnomeCanvasGroup *object_group;
/* Input context for dead key support */
GdkIC *ic;
GdkICAttr *ic_attr;
/* Sliding scroll */
GnumericCanvasSlideHandler slide_handler;
gpointer slide_data;
int sliding; /* a gtk_timeout tag, -1 means not set */
int sliding_x, sliding_y;
int sliding_dx, sliding_dy;
gboolean sliding_adjacent_h, sliding_adjacent_v;
};
GtkType gnumeric_canvas_get_type (void);
GnumericCanvas *gnumeric_canvas_new (SheetControlGUI *scg, GnumericPane *pane);
int gnm_canvas_find_col (GnumericCanvas *gsheet, int x, int *col_origin);
int gnm_canvas_find_row (GnumericCanvas *gsheet, int y, int *row_origin);
void gnm_canvas_compute_visible_region (GnumericCanvas *gsheet,
gboolean const full_recompute);
void gnm_canvas_redraw_region (GnumericCanvas *gsheet,
int start_col, int start_row,
int end_col, int end_row);
void gnm_canvas_create_editor (GnumericCanvas *gsheet);
void gnm_canvas_stop_editing (GnumericCanvas *gsheet);
typedef enum {
GNM_SLIDE_X = 1,
GNM_SLIDE_Y = 2,
GNM_SLIDE_EXTERIOR_ONLY = 4,
GNM_SLIDE_AT_COLROW_BOUND = 8, /* not implemented */
} GnumericSlideFlags;
void gnm_canvas_slide_stop (GnumericCanvas *gsheet);
void gnm_canvas_slide_init (GnumericCanvas *gsheet);
gboolean gnm_canvas_handle_motion (GnumericCanvas *gsheet,
GnomeCanvas *canvas,
GdkEventMotion *event,
GnumericSlideFlags slide_flags,
GnumericCanvasSlideHandler callback,
gpointer user_data);
#endif /* GNUMERIC_GNUMERIC_CANVAS_H */
......@@ -16,7 +16,7 @@
#include "sheet-control-gui-priv.h"
#include "application.h"
#include "selection.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "gnumeric-pane.h"
#include "workbook-edit.h"
#include "gnumeric-util.h"
......
......@@ -11,7 +11,7 @@
#include "item-cursor.h"
#define GNUMERIC_ITEM "CURSOR"
#include "item-debug.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "sheet-control-gui-priv.h"
#include "style-color.h"
#include "cell.h"
......
......@@ -21,7 +21,7 @@
#include "item-grid.h"
#define GNUMERIC_ITEM "EDIT"
#include "item-debug.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "sheet-control-gui-priv.h"
#include "sheet.h"
#include "sheet-style.h"
......
......@@ -13,7 +13,7 @@
#include "item-grid.h"
#define GNUMERIC_ITEM "GRID"
#include "item-debug.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "workbook-edit.h"
#include "workbook-view.h"
#include "workbook-control.h"
......
......@@ -12,7 +12,7 @@
#include "item-bar.h"
#define GNUMERIC_ITEM "SCG"
#include "item-debug.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "sheet.h"
#include "sheet-merge.h"
#include "workbook.h"
......
......@@ -16,7 +16,7 @@
#include "sheet.h"
#include "gnumeric-util.h"
#include "sheet-control-gui-priv.h" /* REMOVE when we localize the frame */
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "sheet-object-container.h"
#include "sheet-object-widget.h"
......
......@@ -12,7 +12,7 @@
#include <libgnomeprint/gnome-print.h>
#include "gnumeric.h"
#include "sheet-control-gui.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "str.h"
#include "gnumeric-util.h"
#include "sheet-object-graphic.h"
......
......@@ -10,7 +10,7 @@
#include <bonobo/bonobo-ui-component.h>
#include "gnumeric.h"
#include "gnumeric-util.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "sheet-control-gui-priv.h"
#include "workbook-control-gui-priv.h"
#include "dialogs.h"
......
......@@ -27,7 +27,7 @@
#include "gnumeric.h"
#include "gnumeric-util.h"
#include "eval.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "sheet-control-gui.h"
#include "sheet-object-widget.h"
#include "sheet-object-impl.h"
......
......@@ -31,7 +31,7 @@
#include "sheet.h"
#include "sheet-private.h"
#include "sheet-control-gui-priv.h"
#include "gnumeric-sheet.h"
#include "gnumeric-canvas.h"
#include "sheet-object.h"
#include "dialogs.h"
#include "commands.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment