[gtkmm] Added missing files.



commit c6e77985a22a43f5d7ba75a58f9ddd7bfe24bf59
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jun 15 10:53:15 2011 +0200

    Added missing files.

 gtk/src/hvscrollbar.ccg |   61 ++++++++++++++++++++++++++++++++
 gtk/src/hvscrollbar.hg  |   88 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 149 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/hvscrollbar.ccg b/gtk/src/hvscrollbar.ccg
new file mode 100644
index 0000000..adf88ae
--- /dev/null
+++ b/gtk/src/hvscrollbar.ccg
@@ -0,0 +1,61 @@
+// -*- c++ -*-
+/* $Id: scrollbar.ccg,v 1.1 2003/01/21 13:40:36 murrayc Exp $ */
+
+/*
+ *
+ * Copyright 1998-2002 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/adjustment.h>
+
+#include <gtk/gtk.h>
+
+namespace Gtk
+{
+
+VScrollbar::VScrollbar(const Glib::RefPtr<Adjustment>& adjustment)
+:
+  _CONSTRUCT_SPECIFIC(Scrollbar, VScrollbar)
+{
+  set_adjustment(adjustment);
+}
+
+VScrollbar::VScrollbar()
+:
+  _CONSTRUCT_SPECIFIC(Scrollbar, VScrollbar)
+{
+  Glib::RefPtr<Adjustment> adjustment = Adjustment::create(0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
+  set_adjustment(adjustment);
+}
+
+
+HScrollbar::HScrollbar()
+:
+  _CONSTRUCT_SPECIFIC(Scrollbar, HScrollbar)
+{
+  Glib::RefPtr<Adjustment> adjustment = Adjustment::create(0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
+  set_adjustment(adjustment);
+}
+
+HScrollbar::HScrollbar(const Glib::RefPtr<Adjustment>& adjustment)
+:
+  _CONSTRUCT_SPECIFIC(Scrollbar, HScrollbar)
+{
+  set_adjustment(adjustment);
+}
+
+} // namespace Gtk
diff --git a/gtk/src/hvscrollbar.hg b/gtk/src/hvscrollbar.hg
new file mode 100644
index 0000000..f5f6673
--- /dev/null
+++ b/gtk/src/hvscrollbar.hg
@@ -0,0 +1,88 @@
+/* $Id: scrollbar.hg,v 1.1 2003/01/21 13:40:36 murrayc Exp $ */
+
+/* scrollbar.h
+ * 
+ * Copyright (C) 1998-2002 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/scrollbar.h>
+
+_DEFS(gtkmm,gtk)
+_PINCLUDE(gtkmm/private/scrollbar_p.h)
+
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#undef GTK_DISABLE_DEPRECATED
+#m4 _POP()
+
+namespace Gtk
+{
+
+/** A vertical scrollbar.
+ *
+ * The Gtk::VScrollbar widget is a widget arranged vertically creating a
+ * scrollbar. See Gtk::Scrollbar for details on scrollbars.
+ *
+ * A Gtk::Adjustment may may be passed to the constructor  to handle the
+ * adjustment of the scrollbar. If not specified, one will be created for
+ * you. See Gtk::Adjustment for details.
+ *
+ * A VScrollbar widget looks like this:
+ * @image html vscrollbar1.png
+ *
+ * @ingroup Widgets
+ *
+ * @deprecated Use Scrollbar instead.
+ */
+class VScrollbar : public Scrollbar
+{
+  _CLASS_GTKOBJECT(VScrollbar,GtkVScrollbar,GTK_VSCROLLBAR,Gtk::Scrollbar,GtkScrollbar)
+  _IS_DEPRECATED
+public:
+  VScrollbar();
+  explicit VScrollbar(const Glib::RefPtr<Adjustment>& gtkadjustment);
+  
+};
+
+/** A horizontal scrollbar.
+ *
+ * The Gtk::HScrollbar widget is a widget arranged horizontally creating a
+ * scrollbar. See Gtk::Scrollbar for details on scrollbars.
+ *
+ * A Gtk::Adjustment may may be passed to the constructor  to handle the
+ * adjustment of the scrollbar. If not specified, one will be created for
+ * you. See Gtk::Adjustment for details.
+ *
+ * The HScrollbar widget looks like this:
+ * @image html hscrollbar1.png
+ *
+ * @ingroup Widgets
+ *
+ * @deprecated Use Scrollbar instead.
+ */
+class HScrollbar : public Scrollbar
+{
+  _CLASS_GTKOBJECT(HScrollbar,GtkHScrollbar,GTK_HSCROLLBAR,Gtk::Scrollbar,GtkScrollbar)
+  _IS_DEPRECATED
+public:
+  HScrollbar();
+  explicit HScrollbar(const Glib::RefPtr<Adjustment>& gtkadjustment);
+  
+};
+
+
+} /* namespace Gtk */
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]