aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-11-22 14:03:05 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-11-22 14:03:05 +0800
commit34bf395023e2886dd67e7cdab368c37a7bb2d727 (patch)
treecc4b8152598f6b201bbf1e916e0e6fe922a8ee16 /widgets
parentc75604cac3dc935f89bc1a229e089caf20ef6582 (diff)
downloadgsoc2013-evolution-34bf395023e2886dd67e7cdab368c37a7bb2d727.tar
gsoc2013-evolution-34bf395023e2886dd67e7cdab368c37a7bb2d727.tar.gz
gsoc2013-evolution-34bf395023e2886dd67e7cdab368c37a7bb2d727.tar.bz2
gsoc2013-evolution-34bf395023e2886dd67e7cdab368c37a7bb2d727.tar.lz
gsoc2013-evolution-34bf395023e2886dd67e7cdab368c37a7bb2d727.tar.xz
gsoc2013-evolution-34bf395023e2886dd67e7cdab368c37a7bb2d727.tar.zst
gsoc2013-evolution-34bf395023e2886dd67e7cdab368c37a7bb2d727.zip
More stuff
svn path=/trunk/; revision=1428
Diffstat (limited to 'widgets')
-rw-r--r--widgets/Makefile.am4
-rw-r--r--widgets/e-cell-string.c9
-rw-r--r--widgets/e-cell-text.c48
-rw-r--r--widgets/e-cell-text.h24
-rw-r--r--widgets/e-cell.c48
-rw-r--r--widgets/e-cell.h27
-rw-r--r--widgets/e-table/Makefile.am4
-rw-r--r--widgets/e-table/e-cell-string.c9
-rw-r--r--widgets/e-table/e-cell-text.c48
-rw-r--r--widgets/e-table/e-cell-text.h24
-rw-r--r--widgets/e-table/e-cell.c48
-rw-r--r--widgets/e-table/e-cell.h27
-rw-r--r--widgets/table/e-cell-string.c9
-rw-r--r--widgets/table/e-cell-text.c48
-rw-r--r--widgets/table/e-cell-text.h24
-rw-r--r--widgets/table/e-cell.c48
-rw-r--r--widgets/table/e-cell.h27
17 files changed, 476 insertions, 0 deletions
diff --git a/widgets/Makefile.am b/widgets/Makefile.am
index c5d1bc51bf..ac2858025c 100644
--- a/widgets/Makefile.am
+++ b/widgets/Makefile.am
@@ -7,6 +7,10 @@ noinst_LIBRARIES = \
libevolutionwidgets.a
libevolutionwidgets_a_SOURCES = \
+ e-cell.c \
+ e-cell.h \
+ e-cell-text.c \
+ e-cell-text.h \
e-cursors.c \
e-cursors.h \
e-table-col.c \
diff --git a/widgets/e-cell-string.c b/widgets/e-cell-string.c
new file mode 100644
index 0000000000..992b1bd10e
--- /dev/null
+++ b/widgets/e-cell-string.c
@@ -0,0 +1,9 @@
+ECell *
+e_cell_string_new (void)
+{
+ ECell *ecell;
+
+ ecell = gtk_type_new (ecell);
+
+ return ecell;
+}
diff --git a/widgets/e-cell-text.c b/widgets/e-cell-text.c
new file mode 100644
index 0000000000..c30e42cfd3
--- /dev/null
+++ b/widgets/e-cell-text.c
@@ -0,0 +1,48 @@
+/*
+ * e-cell-text.c: Text cell renderer
+ *
+ * Author:
+ * Miguel de Icaza (miguel@kernel.org)
+ *
+ * (C) 1999 Helix Code, Inc
+ */
+#include <config.h>
+#include "e-cell-text.h"
+#include "e-util.h"
+
+#define PARENT_TYPE gtk_object_get_type()
+
+static void
+ec_realize (ECell *e_cell, GnomeCanvas *canvas)
+{
+}
+
+static void
+ec_unrealize (ECell *e_cell)
+{
+}
+
+static void
+ec_draw (ECell *ecell, int x1, int y1, int x2, int y2)
+{
+}
+
+static gint
+ec_event (ECell *ecell, GdkEvent *event)
+{
+}
+
+static void
+e_cell_class_init (GtkObjectClass *object_class)
+{
+ ECellClass *ecc = (ECellClass *) object_class;
+
+ ecc->realize = ec_realize;
+ ecc->unrealize = ec_unrealize;
+ ecc->draw = ec_draw;
+ ecc->event = ec_event;
+}
+
+E_MAKE_TYPE(e_cell, "ECell", ECell, e_cell_class_init, NULL, PARENT_TYPE);
+
+
diff --git a/widgets/e-cell-text.h b/widgets/e-cell-text.h
new file mode 100644
index 0000000000..19d913a678
--- /dev/null
+++ b/widgets/e-cell-text.h
@@ -0,0 +1,24 @@
+#ifndef _E_CELL_TEXT_H_
+#define _E_CELL_TEXT_H_
+
+#include <libgnomeui/gnome-canvas.h>
+#include "e-cell.h"
+
+#define E_CELL_TEXT_TYPE (e_cell_text_get_type ())
+#define E_CELL_TEXT(o) (GTK_CHECK_CAST ((o), E_CELL_TEXT_TYPE, ECellText))
+#define E_CELL_TEXT_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CELL_TEXT_TYPE, ECellTextClass))
+#define E_IS_CELL_TEXT(o) (GTK_CHECK_TYPE ((o), E_CELL_TEXT_TYPE))
+#define E_IS_CELL_TEXT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_TEXT_TYPE))
+
+typedef struct {
+ ECell parent;
+} ECellText;
+
+typedef struct {
+ ECellClass parent_class;
+} ECellTextClass;
+
+GtkType e_cell_text_get_type (void);
+ECell *e_cell_text_new (void);
+
+#endif /* _E_CELL_TEXT_H_ */
diff --git a/widgets/e-cell.c b/widgets/e-cell.c
new file mode 100644
index 0000000000..e5ceb0fe8a
--- /dev/null
+++ b/widgets/e-cell.c
@@ -0,0 +1,48 @@
+/*
+ * e-cell.c: base class for cell renderers in e-table
+ *
+ * Author:
+ * Miguel de Icaza (miguel@kernel.org)
+ *
+ * (C) 1999 Helix Code, Inc
+ */
+#include <config.h>
+#include "e-cell.h"
+#include "e-util.h"
+
+#define PARENT_TYPE gtk_object_get_type()
+
+static void
+ec_realize (ECell *e_cell, GnomeCanvas *canvas)
+{
+}
+
+static void
+ec_unrealize (ECell *e_cell)
+{
+}
+
+static void
+ec_draw (ECell *ecell, int x1, int y1, int x2, int y2)
+{
+}
+
+static gint
+ec_event (ECell *ecell, GdkEvent *event)
+{
+}
+
+static void
+e_cell_class_init (GtkObjectClass *object_class)
+{
+ ECellClass *ecc = (ECellClass *) object_class;
+
+ ecc->realize = ec_realize;
+ ecc->unrealize = ec_unrealize;
+ ecc->draw = ec_draw;
+ ecc->event = ec_event;
+}
+
+E_MAKE_TYPE(e_cell, "ECell", ECell, e_cell_class_init, NULL, PARENT_TYPE);
+
+
diff --git a/widgets/e-cell.h b/widgets/e-cell.h
new file mode 100644
index 0000000000..8395d3e290
--- /dev/null
+++ b/widgets/e-cell.h
@@ -0,0 +1,27 @@
+#ifndef _E_CELL_H_
+#define _E_CELL_H_
+
+#include <libgnomeui/gnome-canvas.h>
+
+#define E_CELL_TYPE (e_cell_get_type ())
+#define E_CELL(o) (GTK_CHECK_CAST ((o), E_CELL_TYPE, ECell))
+#define E_CELL_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CELL_TYPE, ECellClass))
+#define E_IS_CELL(o) (GTK_CHECK_TYPE ((o), E_CELL_TYPE))
+#define E_IS_CELL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_TYPE))
+
+typedef struct {
+ GtkObject object;
+} ECell;
+
+typedef struct {
+ GtkObjectClass parent_class;
+
+ void (*realize) (ECell *, GnomeCanvas *canvas);
+ void (*unrealize) (ECell *);
+ void (*draw) (ECell *ecell, int x1, int y1, int x2, int y2);
+ gint (*event) (ECell *ecell, GdkEvent *event);
+} ECellClass;
+
+GtkType e_cell_get_type (void);
+
+#endif /* _E_CELL_H_ */
diff --git a/widgets/e-table/Makefile.am b/widgets/e-table/Makefile.am
index c5d1bc51bf..ac2858025c 100644
--- a/widgets/e-table/Makefile.am
+++ b/widgets/e-table/Makefile.am
@@ -7,6 +7,10 @@ noinst_LIBRARIES = \
libevolutionwidgets.a
libevolutionwidgets_a_SOURCES = \
+ e-cell.c \
+ e-cell.h \
+ e-cell-text.c \
+ e-cell-text.h \
e-cursors.c \
e-cursors.h \
e-table-col.c \
diff --git a/widgets/e-table/e-cell-string.c b/widgets/e-table/e-cell-string.c
new file mode 100644
index 0000000000..992b1bd10e
--- /dev/null
+++ b/widgets/e-table/e-cell-string.c
@@ -0,0 +1,9 @@
+ECell *
+e_cell_string_new (void)
+{
+ ECell *ecell;
+
+ ecell = gtk_type_new (ecell);
+
+ return ecell;
+}
diff --git a/widgets/e-table/e-cell-text.c b/widgets/e-table/e-cell-text.c
new file mode 100644
index 0000000000..c30e42cfd3
--- /dev/null
+++ b/widgets/e-table/e-cell-text.c
@@ -0,0 +1,48 @@
+/*
+ * e-cell-text.c: Text cell renderer
+ *
+ * Author:
+ * Miguel de Icaza (miguel@kernel.org)
+ *
+ * (C) 1999 Helix Code, Inc
+ */
+#include <config.h>
+#include "e-cell-text.h"
+#include "e-util.h"
+
+#define PARENT_TYPE gtk_object_get_type()
+
+static void
+ec_realize (ECell *e_cell, GnomeCanvas *canvas)
+{
+}
+
+static void
+ec_unrealize (ECell *e_cell)
+{
+}
+
+static void
+ec_draw (ECell *ecell, int x1, int y1, int x2, int y2)
+{
+}
+
+static gint
+ec_event (ECell *ecell, GdkEvent *event)
+{
+}
+
+static void
+e_cell_class_init (GtkObjectClass *object_class)
+{
+ ECellClass *ecc = (ECellClass *) object_class;
+
+ ecc->realize = ec_realize;
+ ecc->unrealize = ec_unrealize;
+ ecc->draw = ec_draw;
+ ecc->event = ec_event;
+}
+
+E_MAKE_TYPE(e_cell, "ECell", ECell, e_cell_class_init, NULL, PARENT_TYPE);
+
+
diff --git a/widgets/e-table/e-cell-text.h b/widgets/e-table/e-cell-text.h
new file mode 100644
index 0000000000..19d913a678
--- /dev/null
+++ b/widgets/e-table/e-cell-text.h
@@ -0,0 +1,24 @@
+#ifndef _E_CELL_TEXT_H_
+#define _E_CELL_TEXT_H_
+
+#include <libgnomeui/gnome-canvas.h>
+#include "e-cell.h"
+
+#define E_CELL_TEXT_TYPE (e_cell_text_get_type ())
+#define E_CELL_TEXT(o) (GTK_CHECK_CAST ((o), E_CELL_TEXT_TYPE, ECellText))
+#define E_CELL_TEXT_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CELL_TEXT_TYPE, ECellTextClass))
+#define E_IS_CELL_TEXT(o) (GTK_CHECK_TYPE ((o), E_CELL_TEXT_TYPE))
+#define E_IS_CELL_TEXT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_TEXT_TYPE))
+
+typedef struct {
+ ECell parent;
+} ECellText;
+
+typedef struct {
+ ECellClass parent_class;
+} ECellTextClass;
+
+GtkType e_cell_text_get_type (void);
+ECell *e_cell_text_new (void);
+
+#endif /* _E_CELL_TEXT_H_ */
diff --git a/widgets/e-table/e-cell.c b/widgets/e-table/e-cell.c
new file mode 100644
index 0000000000..e5ceb0fe8a
--- /dev/null
+++ b/widgets/e-table/e-cell.c
@@ -0,0 +1,48 @@
+/*
+ * e-cell.c: base class for cell renderers in e-table
+ *
+ * Author:
+ * Miguel de Icaza (miguel@kernel.org)
+ *
+ * (C) 1999 Helix Code, Inc
+ */
+#include <config.h>
+#include "e-cell.h"
+#include "e-util.h"
+
+#define PARENT_TYPE gtk_object_get_type()
+
+static void
+ec_realize (ECell *e_cell, GnomeCanvas *canvas)
+{
+}
+
+static void
+ec_unrealize (ECell *e_cell)
+{
+}
+
+static void
+ec_draw (ECell *ecell, int x1, int y1, int x2, int y2)
+{
+}
+
+static gint
+ec_event (ECell *ecell, GdkEvent *event)
+{
+}
+
+static void
+e_cell_class_init (GtkObjectClass *object_class)
+{
+ ECellClass *ecc = (ECellClass *) object_class;
+
+ ecc->realize = ec_realize;
+ ecc->unrealize = ec_unrealize;
+ ecc->draw = ec_draw;
+ ecc->event = ec_event;
+}
+
+E_MAKE_TYPE(e_cell, "ECell", ECell, e_cell_class_init, NULL, PARENT_TYPE);
+
+
diff --git a/widgets/e-table/e-cell.h b/widgets/e-table/e-cell.h
new file mode 100644
index 0000000000..8395d3e290
--- /dev/null
+++ b/widgets/e-table/e-cell.h
@@ -0,0 +1,27 @@
+#ifndef _E_CELL_H_
+#define _E_CELL_H_
+
+#include <libgnomeui/gnome-canvas.h>
+
+#define E_CELL_TYPE (e_cell_get_type ())
+#define E_CELL(o) (GTK_CHECK_CAST ((o), E_CELL_TYPE, ECell))
+#define E_CELL_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CELL_TYPE, ECellClass))
+#define E_IS_CELL(o) (GTK_CHECK_TYPE ((o), E_CELL_TYPE))
+#define E_IS_CELL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_TYPE))
+
+typedef struct {
+ GtkObject object;
+} ECell;
+
+typedef struct {
+ GtkObjectClass parent_class;
+
+ void (*realize) (ECell *, GnomeCanvas *canvas);
+ void (*unrealize) (ECell *);
+ void (*draw) (ECell *ecell, int x1, int y1, int x2, int y2);
+ gint (*event) (ECell *ecell, GdkEvent *event);
+} ECellClass;
+
+GtkType e_cell_get_type (void);
+
+#endif /* _E_CELL_H_ */
diff --git a/widgets/table/e-cell-string.c b/widgets/table/e-cell-string.c
new file mode 100644
index 0000000000..992b1bd10e
--- /dev/null
+++ b/widgets/table/e-cell-string.c
@@ -0,0 +1,9 @@
+ECell *
+e_cell_string_new (void)
+{
+ ECell *ecell;
+
+ ecell = gtk_type_new (ecell);
+
+ return ecell;
+}
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
new file mode 100644
index 0000000000..c30e42cfd3
--- /dev/null
+++ b/widgets/table/e-cell-text.c
@@ -0,0 +1,48 @@
+/*
+ * e-cell-text.c: Text cell renderer
+ *
+ * Author:
+ * Miguel de Icaza (miguel@kernel.org)
+ *
+ * (C) 1999 Helix Code, Inc
+ */
+#include <config.h>
+#include "e-cell-text.h"
+#include "e-util.h"
+
+#define PARENT_TYPE gtk_object_get_type()
+
+static void
+ec_realize (ECell *e_cell, GnomeCanvas *canvas)
+{
+}
+
+static void
+ec_unrealize (ECell *e_cell)
+{
+}
+
+static void
+ec_draw (ECell *ecell, int x1, int y1, int x2, int y2)
+{
+}
+
+static gint
+ec_event (ECell *ecell, GdkEvent *event)
+{
+}
+
+static void
+e_cell_class_init (GtkObjectClass *object_class)
+{
+ ECellClass *ecc = (ECellClass *) object_class;
+
+ ecc->realize = ec_realize;
+ ecc->unrealize = ec_unrealize;
+ ecc->draw = ec_draw;
+ ecc->event = ec_event;
+}
+
+E_MAKE_TYPE(e_cell, "ECell", ECell, e_cell_class_init, NULL, PARENT_TYPE);
+
+
diff --git a/widgets/table/e-cell-text.h b/widgets/table/e-cell-text.h
new file mode 100644
index 0000000000..19d913a678
--- /dev/null
+++ b/widgets/table/e-cell-text.h
@@ -0,0 +1,24 @@
+#ifndef _E_CELL_TEXT_H_
+#define _E_CELL_TEXT_H_
+
+#include <libgnomeui/gnome-canvas.h>
+#include "e-cell.h"
+
+#define E_CELL_TEXT_TYPE (e_cell_text_get_type ())
+#define E_CELL_TEXT(o) (GTK_CHECK_CAST ((o), E_CELL_TEXT_TYPE, ECellText))
+#define E_CELL_TEXT_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CELL_TEXT_TYPE, ECellTextClass))
+#define E_IS_CELL_TEXT(o) (GTK_CHECK_TYPE ((o), E_CELL_TEXT_TYPE))
+#define E_IS_CELL_TEXT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_TEXT_TYPE))
+
+typedef struct {
+ ECell parent;
+} ECellText;
+
+typedef struct {
+ ECellClass parent_class;
+} ECellTextClass;
+
+GtkType e_cell_text_get_type (void);
+ECell *e_cell_text_new (void);
+
+#endif /* _E_CELL_TEXT_H_ */
diff --git a/widgets/table/e-cell.c b/widgets/table/e-cell.c
new file mode 100644
index 0000000000..e5ceb0fe8a
--- /dev/null
+++ b/widgets/table/e-cell.c
@@ -0,0 +1,48 @@
+/*
+ * e-cell.c: base class for cell renderers in e-table
+ *
+ * Author:
+ * Miguel de Icaza (miguel@kernel.org)
+ *
+ * (C) 1999 Helix Code, Inc
+ */
+#include <config.h>
+#include "e-cell.h"
+#include "e-util.h"
+
+#define PARENT_TYPE gtk_object_get_type()
+
+static void
+ec_realize (ECell *e_cell, GnomeCanvas *canvas)
+{
+}
+
+static void
+ec_unrealize (ECell *e_cell)
+{
+}
+
+static void
+ec_draw (ECell *ecell, int x1, int y1, int x2, int y2)
+{
+}
+
+static gint
+ec_event (ECell *ecell, GdkEvent *event)
+{
+}
+
+static void
+e_cell_class_init (GtkObjectClass *object_class)
+{
+ ECellClass *ecc = (ECellClass *) object_class;
+
+ ecc->realize = ec_realize;
+ ecc->unrealize = ec_unrealize;
+ ecc->draw = ec_draw;
+ ecc->event = ec_event;
+}
+
+E_MAKE_TYPE(e_cell, "ECell", ECell, e_cell_class_init, NULL, PARENT_TYPE);
+
+
diff --git a/widgets/table/e-cell.h b/widgets/table/e-cell.h
new file mode 100644
index 0000000000..8395d3e290
--- /dev/null
+++ b/widgets/table/e-cell.h
@@ -0,0 +1,27 @@
+#ifndef _E_CELL_H_
+#define _E_CELL_H_
+
+#include <libgnomeui/gnome-canvas.h>
+
+#define E_CELL_TYPE (e_cell_get_type ())
+#define E_CELL(o) (GTK_CHECK_CAST ((o), E_CELL_TYPE, ECell))
+#define E_CELL_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CELL_TYPE, ECellClass))
+#define E_IS_CELL(o) (GTK_CHECK_TYPE ((o), E_CELL_TYPE))
+#define E_IS_CELL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_TYPE))
+
+typedef struct {
+ GtkObject object;
+} ECell;
+
+typedef struct {
+ GtkObjectClass parent_class;
+
+ void (*realize) (ECell *, GnomeCanvas *canvas);
+ void (*unrealize) (ECell *);
+ void (*draw) (ECell *ecell, int x1, int y1, int x2, int y2);
+ gint (*event) (ECell *ecell, GdkEvent *event);
+} ECellClass;
+
+GtkType e_cell_get_type (void);
+
+#endif /* _E_CELL_H_ */