[gtkmm] Add missing files
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Add missing files
- Date: Thu, 19 Sep 2013 11:30:40 +0000 (UTC)
commit 671949a57fcf13ed93295a4bdb7b373296ee44cf
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Sep 19 13:28:16 2013 +0200
Add missing files
gtk/src/stack.ccg | 24 ++++++++++++++
gtk/src/stack.hg | 74 +++++++++++++++++++++++++++++++++++++++++++++
gtk/src/stackswitcher.ccg | 24 ++++++++++++++
gtk/src/stackswitcher.hg | 61 +++++++++++++++++++++++++++++++++++++
4 files changed, 183 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/stack.ccg b/gtk/src/stack.ccg
new file mode 100644
index 0000000..acb379f
--- /dev/null
+++ b/gtk/src/stack.ccg
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2013 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <gtk/gtk.h>
+
+namespace Gtk
+{
+
+} //namespace Gtk
diff --git a/gtk/src/stack.hg b/gtk/src/stack.hg
new file mode 100644
index 0000000..67b50ec
--- /dev/null
+++ b/gtk/src/stack.hg
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2013 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <gtkmm/container.h>
+#include <gtkmm/enums.h>
+
+_DEFS(gtkmm,gtk)
+_PINCLUDE(gtkmm/private/container_p.h)
+
+namespace Gtk
+{
+_CC_INCLUDE(gtk/gtk.h)
+
+/** A container that shows only one child at a time.
+ *
+ * Gtk::Stack does not provide a means for users to change the visible
+ * child. Instead, the Gtk::StackSwitcher widget can be used with
+ * Gtk::Stack to provide this functionality.
+ *
+ * @ingroup Widgets
+ * @newin{3,10}
+ */
+class Stack
+ : public Container
+{
+ _CLASS_GTKOBJECT(Stack,GtkStack,GTK_STACK,Gtk::Container,GtkContainer)
+public:
+ _CTOR_DEFAULT
+
+ _WRAP_METHOD(void add(Widget& child, const Glib::ustring& name), gtk_stack_add_named)
+
+ _WRAP_METHOD(void add(Widget& child, const Glib::ustring& name, const Glib::ustring& title),
gtk_stack_add_titled)
+
+ _WRAP_METHOD(void set_visible_child(Widget& child), gtk_stack_set_visible_child)
+
+ _WRAP_METHOD(Widget* get_visible_child(), gtk_stack_get_visible_child)
+ _WRAP_METHOD(const Widget* get_visible_child() const, gtk_stack_get_visible_child, constversion)
+
+ _WRAP_METHOD(void set_visible_child(const Glib::ustring& name), gtk_stack_set_visible_child_name)
+ _WRAP_METHOD(void set_visible_child(const Glib::ustring& name, StackTransitionType transition),
gtk_stack_set_visible_child_full)
+ _WRAP_METHOD(Glib::ustring get_visible_child_name() const, gtk_stack_get_visible_child_name)
+
+ _WRAP_METHOD(void set_homogeneous(bool homogeneous = true), gtk_stack_set_homogeneous)
+ _WRAP_METHOD(bool get_homogeneous() const, gtk_stack_get_homogeneous)
+
+ _WRAP_METHOD(void set_transition_duration(guint duration), gtk_stack_set_transition_duration)
+ _WRAP_METHOD(guint get_transition_duration() const, gtk_stack_get_transition_duration)
+
+ _WRAP_METHOD(void set_transition_type(StackTransitionType transition), gtk_stack_set_transition_type)
+ _WRAP_METHOD(StackTransitionType get_transition_type(), gtk_stack_get_transition_type)
+
+ _WRAP_PROPERTY("homogeneous", bool)
+ _WRAP_PROPERTY("transition-duration", unsigned int)
+ _WRAP_PROPERTY("transition-type", StackTransitionType)
+ _WRAP_PROPERTY("visible-child", Widget*)
+ _WRAP_PROPERTY("visible-child-name", Glib::ustring)
+};
+
+} //namespace Gtk
diff --git a/gtk/src/stackswitcher.ccg b/gtk/src/stackswitcher.ccg
new file mode 100644
index 0000000..acb379f
--- /dev/null
+++ b/gtk/src/stackswitcher.ccg
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2013 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <gtk/gtk.h>
+
+namespace Gtk
+{
+
+} //namespace Gtk
diff --git a/gtk/src/stackswitcher.hg b/gtk/src/stackswitcher.hg
new file mode 100644
index 0000000..8eeb69d
--- /dev/null
+++ b/gtk/src/stackswitcher.hg
@@ -0,0 +1,61 @@
+/*
+ * Copyright (C) 2013 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <gtkmm/box.h>
+#include <gtkmm/stack.h>
+
+_DEFS(gtkmm,gtk)
+_PINCLUDE(gtkmm/private/box_p.h)
+
+namespace Gtk
+{
+_CC_INCLUDE(gtk/gtk.h)
+
+/** A controller for a Gtk::Stack.
+ *
+ * It shows a row of buttons to switch between the various pages of
+ * the associated stack widget.
+ *
+ * All the content for the buttons comes from the child properties of
+ * the Gtk::Stack.
+ *
+ * It is possible to associate multiple StackSwitcher widgets with
+ * the same stack widget.
+ *
+ * @ingroup Widgets
+ * @newin{3,10}
+ */
+class StackSwitcher
+ : public Box
+{
+ _CLASS_GTKOBJECT(StackSwitcher, GtkStackSwitcher, GTK_STACK_SWITCHER, Gtk::Box, GtkBox)
+public:
+ _CTOR_DEFAULT
+
+ _WRAP_METHOD(void set_stack(Stack& stack), gtk_stack_switcher_set_stack)
+
+ _WRAP_METHOD(Stack* get_stack(), gtk_stack_switcher_get_stack)
+ _WRAP_METHOD(const Stack* get_stack() const, gtk_stack_switcher_get_stack, constversion)
+
+ _WRAP_PROPERTY("stack", Stack*)
+};
+
+} // namespace Gtk
+
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]