Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gnumeric
Commits
8ffc6306
Commit
8ffc6306
authored
Jul 02, 1998
by
Arturo Espinosa
Browse files
Copy files trough CVS from laptop
parent
01e1cef6
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/gnumeric-canvas.c
View file @
8ffc6306
...
...
@@ -5,3 +5,62 @@
#include
<gnome.h>
#include
"gnumeric.h"
#include
"gnumeric-sheet.h"
/* Signals emited by the Gnumeric Sheet widget */
enum
{
GNUMERIC_SHEET_LAST_SIGNAL
};
static
guint
sheet_signals
[
GNUMERIC_SHEET_LAST_SIGNAL
]
=
{
0
};
static
GnomeCanvasClass
*
sheet_parent_class
;
static
void
gnumeric_sheet_destroy
(
GtkObject
*
object
)
{
GnumericSheet
*
gsheet
;
/* Add shutdown code here */
if
(
GTK_OBJECT_CLASS
(
sheet_parent_class
)
->
destroy
)
(
*
GTK_OBJECT_CLASS
(
sheet_parent_class
)
->
destroy
)(
object
);
}
GtkType
gnumeric_sheet_get_type
(
void
)
{
static
GtkType
gnumeric_sheet_type
=
0
;
if
(
!
gnumeric_sheet_type
){
GtkTypeInfo
gnumeric_sheet_info
=
{
"GnumericSheet"
,
sizeof
(
GnumericSheet
),
sizeof
(
GnumericSheetClass
),
(
GtkClassInitFunc
)
gnumeric_sheet_class_init
,
(
GtkObjectInitFunc
)
NULL
,
NULL
,
/* reserved 1 */
NULL
,
/* reserved 2 */
(
GtkClassInitFunc
)
NULL
};
gnumeric_sheet_type
=
gtk_type_unique
(
gtk_object_get_type
(),
&
gnumeric_sheet_info
);
}
return
gnumeric_sheet_type
;
}
static
void
gnumeric_sheet_class_init
(
GnumericSheetClass
*
class
)
{
GtkObjectClass
*
object_class
;
GtkWidgetClass
*
widget_class
;
GnomeCanvasClass
*
canvas_class
;
object_class
=
(
GtkObjectClass
*
)
class
;
widget_class
=
(
GtkWidgetClass
*
)
class
;
sheet_parent_class
=
gtk_type_class
(
gnome_canvas_get_type
());
/* Method override */
object_class
->
destroy
=
gnumeric_sheet_destroy
;
}
src/gnumeric-canvas.h
0 → 100644
View file @
8ffc6306
#ifndef GNUMERIC_SHEET_H
#define GNUMERIC_SHEET_H
#define GNUMERIC_TYPE_SHEET (gnumeric_sheet_get_type ())
#define GNUMERIC_SHEET(obj) (GTK_CHECK_CAST((obj), GNUMERIC_TYPE_SHEET, GnumericSheet))
#define GNUMERIC_SHEET_CLASS(k) (GTK_CHECK_CLASS_CAST (k), GNUMERIC_TYPE_SHEET)
#define GNUMERIC_IS_SHEET(o) (GTK_CHECK_TYPE((o), GNUMERIC_TYPE_SHEET))
typedef
struct
{
GnomeCanvas
canvas
;
Sheet
*
sheet
;
ColType
top_col
;
RowType
top_row
;
/* Font used for the labels in the columns and rows */
GdkFont
*
label_font
;
}
GnumericSheet
;
GtkType
gnumeric_sheet_get_type
(
void
);
GnumericSheet
*
gnumeric_sheet_new
(
Sheet
*
sheet
);
typedef
struct
{
GnomeCanvasClass
parent_class
;
}
GnumericSheetClass
;
#endif
src/gnumeric-sheet.c
View file @
8ffc6306
...
...
@@ -5,3 +5,62 @@
#include
<gnome.h>
#include
"gnumeric.h"
#include
"gnumeric-sheet.h"
/* Signals emited by the Gnumeric Sheet widget */
enum
{
GNUMERIC_SHEET_LAST_SIGNAL
};
static
guint
sheet_signals
[
GNUMERIC_SHEET_LAST_SIGNAL
]
=
{
0
};
static
GnomeCanvasClass
*
sheet_parent_class
;
static
void
gnumeric_sheet_destroy
(
GtkObject
*
object
)
{
GnumericSheet
*
gsheet
;
/* Add shutdown code here */
if
(
GTK_OBJECT_CLASS
(
sheet_parent_class
)
->
destroy
)
(
*
GTK_OBJECT_CLASS
(
sheet_parent_class
)
->
destroy
)(
object
);
}
GtkType
gnumeric_sheet_get_type
(
void
)
{
static
GtkType
gnumeric_sheet_type
=
0
;
if
(
!
gnumeric_sheet_type
){
GtkTypeInfo
gnumeric_sheet_info
=
{
"GnumericSheet"
,
sizeof
(
GnumericSheet
),
sizeof
(
GnumericSheetClass
),
(
GtkClassInitFunc
)
gnumeric_sheet_class_init
,
(
GtkObjectInitFunc
)
NULL
,
NULL
,
/* reserved 1 */
NULL
,
/* reserved 2 */
(
GtkClassInitFunc
)
NULL
};
gnumeric_sheet_type
=
gtk_type_unique
(
gtk_object_get_type
(),
&
gnumeric_sheet_info
);
}
return
gnumeric_sheet_type
;
}
static
void
gnumeric_sheet_class_init
(
GnumericSheetClass
*
class
)
{
GtkObjectClass
*
object_class
;
GtkWidgetClass
*
widget_class
;
GnomeCanvasClass
*
canvas_class
;
object_class
=
(
GtkObjectClass
*
)
class
;
widget_class
=
(
GtkWidgetClass
*
)
class
;
sheet_parent_class
=
gtk_type_class
(
gnome_canvas_get_type
());
/* Method override */
object_class
->
destroy
=
gnumeric_sheet_destroy
;
}
src/gnumeric-sheet.h
0 → 100644
View file @
8ffc6306
#ifndef GNUMERIC_SHEET_H
#define GNUMERIC_SHEET_H
#define GNUMERIC_TYPE_SHEET (gnumeric_sheet_get_type ())
#define GNUMERIC_SHEET(obj) (GTK_CHECK_CAST((obj), GNUMERIC_TYPE_SHEET, GnumericSheet))
#define GNUMERIC_SHEET_CLASS(k) (GTK_CHECK_CLASS_CAST (k), GNUMERIC_TYPE_SHEET)
#define GNUMERIC_IS_SHEET(o) (GTK_CHECK_TYPE((o), GNUMERIC_TYPE_SHEET))
typedef
struct
{
GnomeCanvas
canvas
;
Sheet
*
sheet
;
ColType
top_col
;
RowType
top_row
;
/* Font used for the labels in the columns and rows */
GdkFont
*
label_font
;
}
GnumericSheet
;
GtkType
gnumeric_sheet_get_type
(
void
);
GnumericSheet
*
gnumeric_sheet_new
(
Sheet
*
sheet
);
typedef
struct
{
GnomeCanvasClass
parent_class
;
}
GnumericSheetClass
;
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment