[gtkmm] Gtk: Add CellArea, CellAreaBox and CellAreaContext
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk: Add CellArea, CellAreaBox and CellAreaContext
- Date: Mon, 20 Dec 2010 12:39:51 +0000 (UTC)
commit df61965787cc8d2efe8cbbe2770d2b8e9bdce8a1
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Dec 20 13:39:42 2010 +0100
Gtk: Add CellArea, CellAreaBox and CellAreaContext
* tools/extra_defs_gen/generate_defs_gtk.cc: Mention GtkCellArea,
GtkCellAreaBox and GtkCellAreaContext.
* gtk/src/filelist.am:
* gtk/src/cellarea.[hg|ccg]:
* gtk/src/cellareabox.[hg|ccg]:
* gtk/src/cellareacontext.[hg|ccg]: Added these classes, though no methods
are wrapped yet.
* gtk/gtkmm.h: Include the new headers.
ChangeLog | 13 +++++++
gtk/gtkmm.h | 3 ++
gtk/src/cellarea.ccg | 26 +++++++++++++
gtk/src/cellarea.hg | 48 +++++++++++++++++++++++++
gtk/src/cellareabox.ccg | 26 +++++++++++++
gtk/src/cellareabox.hg | 45 +++++++++++++++++++++++
gtk/src/cellareacontext.ccg | 23 ++++++++++++
gtk/src/cellareacontext.hg | 55 +++++++++++++++++++++++++++++
gtk/src/filelist.am | 3 ++
tools/extra_defs_gen/generate_defs_gtk.cc | 3 ++
10 files changed, 245 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1cfdc38..dd19a8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
2010-12-20 Murray Cumming <murrayc murrayc com>
+ Gtk: Add CellArea, CellAreaBox and CellAreaContext
+
+ * tools/extra_defs_gen/generate_defs_gtk.cc: Mention GtkCellArea,
+ GtkCellAreaBox and GtkCellAreaContext.
+ * gtk/src/filelist.am:
+ * gtk/src/cellarea.[hg|ccg]:
+ * gtk/src/cellareabox.[hg|ccg]:
+ * gtk/src/cellareacontext.[hg|ccg]: Added these classes, though no methods
+ are wrapped yet.
+ * gtk/gtkmm.h: Include the new headers.
+
+2010-12-20 Murray Cumming <murrayc murrayc com>
+
Fix the build with latest GTK+ from git master.
* gtk/src/gtk_methods.defs: Regenerated with h2defs.py.
diff --git a/gtk/gtkmm.h b/gtk/gtkmm.h
index e3ad3eb..76b22ef 100644
--- a/gtk/gtkmm.h
+++ b/gtk/gtkmm.h
@@ -109,6 +109,9 @@ extern const int gtkmm_micro_version;
#include <gtkmm/builder.h>
#include <gtkmm/button.h>
#include <gtkmm/buttonbox.h>
+#include <gtkmm/cellarea.h>
+#include <gtkmm/cellareabox.h>
+#include <gtkmm/cellareacontext.h>
#include <gtkmm/cellview.h>
#include <gtkmm/checkbutton.h>
#include <gtkmm/checkmenuitem.h>
diff --git a/gtk/src/cellarea.ccg b/gtk/src/cellarea.ccg
new file mode 100644
index 0000000..fd09ff7
--- /dev/null
+++ b/gtk/src/cellarea.ccg
@@ -0,0 +1,26 @@
+/* Copyright 2010 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gtk/gtk.h>
+
+
+namespace Gtk
+{
+
+} //namespace Gtk
+
+
diff --git a/gtk/src/cellarea.hg b/gtk/src/cellarea.hg
new file mode 100644
index 0000000..c694470
--- /dev/null
+++ b/gtk/src/cellarea.hg
@@ -0,0 +1,48 @@
+/* Copyright (C) 2010 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gtkmm/buildable.h>
+#include <gtkmm/celllayout.h>
+#include <gtkmm/object.h>
+_DEFS(gtkmm,gtk)
+_PINCLUDE(gtkmm/private/object_p.h)
+
+
+namespace Gtk
+{
+
+/** TODO
+ *
+ * @newin{3,0}
+ */
+class CellArea
+ : public Object,
+ public Buildable,
+ public CellLayout
+{
+ _CLASS_GTKOBJECT(CellArea, GtkCellArea, GTK_CELL_AREA, Object, GObject)
+ _IMPLEMENTS_INTERFACE(Buildable)
+ _IMPLEMENTS_INTERFACE(CellLayout)
+
+protected:
+ _CTOR_DEFAULT
+public:
+
+};
+
+} // namespace Gtk
+
diff --git a/gtk/src/cellareabox.ccg b/gtk/src/cellareabox.ccg
new file mode 100644
index 0000000..fd09ff7
--- /dev/null
+++ b/gtk/src/cellareabox.ccg
@@ -0,0 +1,26 @@
+/* Copyright 2010 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gtk/gtk.h>
+
+
+namespace Gtk
+{
+
+} //namespace Gtk
+
+
diff --git a/gtk/src/cellareabox.hg b/gtk/src/cellareabox.hg
new file mode 100644
index 0000000..c88356a
--- /dev/null
+++ b/gtk/src/cellareabox.hg
@@ -0,0 +1,45 @@
+/* Copyright (C) 2010 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gtkmm/cellarea.h>
+#include <gtkmm/orientable.h>
+_DEFS(gtkmm,gtk)
+_PINCLUDE(gtkmm/private/cellarea_p.h)
+
+
+namespace Gtk
+{
+
+/** TODO
+ *
+ * @newin{3,0}
+ */
+class CellAreaBox
+ : public Gtk::CellArea,
+ public Orientable
+{
+ _CLASS_GTKOBJECT(CellAreaBox, GtkCellAreaBox, GTK_CELL_AREA_BOX, CellArea, GtkCellArea)
+ _IMPLEMENTS_INTERFACE(Orientable)
+
+protected:
+ _CTOR_DEFAULT
+public:
+
+};
+
+} // namespace Gtk
+
diff --git a/gtk/src/cellareacontext.ccg b/gtk/src/cellareacontext.ccg
new file mode 100644
index 0000000..725407d
--- /dev/null
+++ b/gtk/src/cellareacontext.ccg
@@ -0,0 +1,23 @@
+/* Copyright (C) 2010 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gtk/gtk.h>
+
+namespace Gtk
+{
+
+} /* namespace Gtk */
diff --git a/gtk/src/cellareacontext.hg b/gtk/src/cellareacontext.hg
new file mode 100644
index 0000000..c925e97
--- /dev/null
+++ b/gtk/src/cellareacontext.hg
@@ -0,0 +1,55 @@
+/* Copyright (C) 2010 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <glibmm/object.h>
+_DEFS(gtkmm,gtk)
+_PINCLUDE(glibmm/private/object_p.h)
+
+
+namespace Gtk
+{
+
+/** A class representing an adjustable bounded value.
+ *
+ * The Gtk::CellAreaContext object represents a value which has an associated
+ * lower and upper bound, together with step and page increments, and a page
+ * size. It is used within several gtkmm widgets, including
+ * Gtk::SpinButton, Gtk::Viewport, and Gtk::Range (which is a base class for
+ * Gtk::HScrollbar, Gtk::VScrollbar, Gtk::HScale, and Gtk::VScale).
+ *
+ * The Gtk::CellAreaContext object does not update the value itself. Instead it
+ * is left up to the owner of the Gtk::CellAreaContext to control the value.
+ *
+ * The owner of the Gtk::CellAreaContext typically calls the value_changed() and
+ * changed() functions after changing the value and its bounds. This results
+ * in the emission of the "value_changed" or "changed" signal respectively.
+ *
+ */
+class CellAreaContext : public Glib::Object
+{
+ _CLASS_GOBJECT(CellAreaContext, GtkCellAreaContext, GTK_CELL_AREA_CONTEXT, Glib::Object, GObject)
+public:
+
+
+protected:
+
+public:
+
+
+};
+
+} /* namespace Gtk */
diff --git a/gtk/src/filelist.am b/gtk/src/filelist.am
index fd79ebc..47cb5b1 100644
--- a/gtk/src/filelist.am
+++ b/gtk/src/filelist.am
@@ -34,6 +34,9 @@ gtkmm_files_any_hg = \
button.hg \
buttonbox.hg \
calendar.hg \
+ cellarea.hg \
+ cellareabox.hg \
+ cellareacontext.hg \
celleditable.hg \
celllayout.hg \
cellrenderer.hg \
diff --git a/tools/extra_defs_gen/generate_defs_gtk.cc b/tools/extra_defs_gen/generate_defs_gtk.cc
index b5db7f3..46be1dd 100644
--- a/tools/extra_defs_gen/generate_defs_gtk.cc
+++ b/tools/extra_defs_gen/generate_defs_gtk.cc
@@ -70,6 +70,9 @@ int main(int argc, char** argv)
<< get_defs( GTK_TYPE_CALENDAR )
<< get_defs( GTK_TYPE_CHECK_BUTTON )
<< get_defs( GTK_TYPE_CHECK_MENU_ITEM )
+ << get_defs( GTK_TYPE_CELL_AREA )
+ << get_defs( GTK_TYPE_CELL_AREA_BOX )
+ << get_defs( GTK_TYPE_CELL_AREA_CONTEXT )
<< get_defs( GTK_TYPE_CELL_EDITABLE )
<< get_defs( GTK_TYPE_CELL_LAYOUT )
<< get_defs( GTK_TYPE_CELL_RENDERER )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]