Commit 55224144 authored by Murray Cumming's avatar Murray Cumming

gtkmm: Added remaining missing properties.

* tools/extra_defs_gen/generate_defs_gtk.cc: Added GtkTreeModelSort.
* gtk/src/gtk_signals.defs: Added the new section for this object.
* gtk/src/scalebutton.hg: Added icons property.
* gtk/src/scrolledwindow.hg: Added window_placement_set property.
* gtk/src/separatortoolitem.hg: Added draw property.
* gtk/src/statusicon.hg: Added tooltips, icon-size and icon-size-set
properties.
* gtk/src/toolbutton.hg: Added icon_name property.
* gtk/src/treemodelfilter.hg: Added child_model and virtual_root properties.
* gtk/src/treemodelsort.hg: Added model property.
* gtk/src/treeview.hg: Added tooltip-column property.
* gtk/src/treeviewcolumn.hg: Added resizable, spacing and sort-column-id
properties.
* gtk/src/widget.hg: Added is_focus and double_buffered properties.
* gtk/src/window.hg: Added type, startup_id and opacity properties.
parent 2bd0897e
2010-09-25 Murray Cumming <murrayc@murrayc.com>
gtkmm: Added remaining missing properties.
* tools/extra_defs_gen/generate_defs_gtk.cc: Added GtkTreeModelSort.
* gtk/src/gtk_signals.defs: Added the new section for this object.
* gtk/src/scalebutton.hg: Added icons property.
* gtk/src/scrolledwindow.hg: Added window_placement_set property.
* gtk/src/separatortoolitem.hg: Added draw property.
* gtk/src/statusicon.hg: Added tooltips, icon-size and icon-size-set
properties.
* gtk/src/toolbutton.hg: Added icon_name property.
* gtk/src/treemodelfilter.hg: Added child_model and virtual_root properties.
* gtk/src/treemodelsort.hg: Added model property.
* gtk/src/treeview.hg: Added tooltip-column property.
* gtk/src/treeviewcolumn.hg: Added resizable, spacing and sort-column-id
properties.
* gtk/src/widget.hg: Added is_focus and double_buffered properties.
* gtk/src/window.hg: Added type, startup_id and opacity properties.
2010-09-25 Murray Cumming <murrayc@murrayc.com>
gtkmm: Added yet more missing properties.
......
......@@ -43153,6 +43153,18 @@
(construct-only #t)
)
;; From GtkTreeModelSort
(define-property model
(of-object "GtkTreeModelSort")
(prop-type "GParamObject")
(docs "The model for the TreeModelSort to sort")
(readable #t)
(writable #t)
(construct-only #t)
)
;; From GtkTreeStore
;; From GtkTreeView
......
......@@ -79,6 +79,7 @@ public:
_WRAP_PROPERTY("value", double)
_WRAP_PROPERTY("size", IconSize)
_WRAP_PROPERTY("adjustment", Adjustment*)
_WRAP_PROPERTY("icons", Glib::StringArrayHandle)
_WRAP_PROPERTY("orientation", Orientation)
};
......
......@@ -115,6 +115,7 @@ _DEPRECATE_IFDEF_END
_WRAP_PROPERTY("hscrollbar-policy", PolicyType)
_WRAP_PROPERTY("vscrollbar-policy", PolicyType)
_WRAP_PROPERTY("window-placement", CornerType)
_WRAP_PROPERTY("window-placement-set", bool)
_WRAP_PROPERTY("shadow-type", ShadowType)
};
......
......@@ -41,7 +41,9 @@ class SeparatorToolItem : public ToolItem
{
_CLASS_GTKOBJECT(SeparatorToolItem, GtkSeparatorToolItem, GTK_SEPARATOR_TOOL_ITEM, Gtk::ToolItem, GtkToolItem)
public:
_CTOR_DEFAULT()
_CTOR_DEFAULT()
_WRAP_PROPERTY("draw", bool)
};
} // namespace Gtk
......
......@@ -180,6 +180,11 @@ public:
_WRAP_PROPERTY("screen", Glib::RefPtr<Gdk::Screen>)
_WRAP_PROPERTY("blinking", bool)
_WRAP_PROPERTY("visible", bool)
_WRAP_PROPERTY("embedded", bool)
_WRAP_PROPERTY("orientation", Orientation)
_WRAP_PROPERTY("has-tooltip", bool)
_WRAP_PROPERTY("tooltip-text", Glib::ustring)
_WRAP_PROPERTY("tooltip-markup", Glib::ustring)
_WRAP_PROPERTY("title", Glib::ustring)
_WRAP_SIGNAL(bool size_changed(int size), size_changed)
......
......@@ -197,6 +197,7 @@ _DEPRECATE_IFDEF_END
_WRAP_PROPERTY("n-columns", guint)
_WRAP_PROPERTY("column-spacing", guint)
_WRAP_PROPERTY("row-spacing", guint)
_WRAP_PROPERTY("homogeneous", bool)
protected:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
......
......@@ -578,6 +578,7 @@ _CONVERSION(`const char*',`const Glib::ustring&',`Glib::ustring(p1, p1 + p2)')
#m4 _CONVERSION(`GtkClipboard*',`const Glib::RefPtr<Gtk::Clipboard>&', Glib::wrap($3, true))
_WRAP_SIGNAL(void paste_done(const Glib::RefPtr<Gtk::Clipboard>& clipboard), "paste_done", no_default_handler)
_WRAP_PROPERTY("tag-table", Glib::RefPtr<TextBuffer::TagTable>)
_WRAP_PROPERTY("text", Glib::ustring)
_WRAP_PROPERTY("has-selection", bool)
_WRAP_PROPERTY("cursor-position", int)
......
......@@ -137,6 +137,9 @@ public:
//TODO: Add a const overload, if we have a ConstTextIter.
TextIter get_iter();
_WRAP_PROPERTY("name", Glib::ustring)
_WRAP_PROPERTY("left-gravity", bool)
};
} /* namespace Gtk */
......
......@@ -120,6 +120,7 @@ public:
_WRAP_SIGNAL(void toggled(), "toggled")
_WRAP_PROPERTY("draw_as_radio", bool)
_WRAP_PROPERTY("active", bool)
};
} // namespace Gtk
......
......@@ -74,6 +74,8 @@ public:
_WRAP_METHOD(bool get_active() const, gtk_toggle_tool_button_get_active)
_WRAP_SIGNAL(void toggled(), toggled)
_WRAP_PROPERTY("active", bool)
};
} // namespace Gtk
......
......@@ -140,6 +140,9 @@ public:
_WRAP_PROPERTY("orientation", Orientation)
_WRAP_PROPERTY("toolbar_style", ToolbarStyle)
_WRAP_PROPERTY("show_arrow", bool)
_WRAP_PROPERTY("tooltips", bool)
_WRAP_PROPERTY("icon-size", IconSize)
_WRAP_PROPERTY("icon-size-set", bool)
};
} // namespace Gtk
......
......@@ -89,6 +89,7 @@ public:
_WRAP_PROPERTY("use_underline", bool)
_WRAP_PROPERTY("label_widget", Gtk::Widget*)
_WRAP_PROPERTY("stock_id", Glib::ustring)
_WRAP_PROPERTY("icon_name", Glib::ustring)
_WRAP_PROPERTY("icon_widget", Gtk::Widget)
};
......
......@@ -127,6 +127,9 @@ public:
_WRAP_METHOD(void refilter(), gtk_tree_model_filter_refilter)
_WRAP_METHOD(void clear_cache(), gtk_tree_model_filter_clear_cache)
_WRAP_PROPERTY("child-model", Glib::RefPtr<TreeModel>)
_WRAP_PROPERTY("virtual-root", TreeModel::Path)
protected:
virtual void set_value_impl(const iterator& row, int column, const Glib::ValueBase& value);
......
......@@ -88,6 +88,8 @@ public:
_WRAP_METHOD(void clear_cache(), gtk_tree_model_sort_clear_cache)
_WRAP_METHOD(bool iter_is_valid(const iterator& iter) const, gtk_tree_model_sort_iter_is_valid)
_WRAP_PROPERTY("model", Glib::RefPtr<TreeModel>)
protected:
virtual void set_value_impl(const iterator& row, int column, const Glib::ValueBase& value);
......
......@@ -829,6 +829,7 @@ _CONVERSION(`GtkTreeIter*',`const TreeModel::iterator&',`TreeModel::iterator(gtk
_WRAP_PROPERTY("rubber-banding", bool)
_WRAP_PROPERTY("enable-grid-lines", bool)
_WRAP_PROPERTY("enable-tree-lines", bool)
_WRAP_PROPERTY("tooltip-column", int)
/// Get the treeview's model, but actually get the child model if it's a TreeModelFilter.
Glib::RefPtr<Gtk::TreeModel> _get_base_model();
......
......@@ -235,7 +235,9 @@ public:
_WRAP_SIGNAL(void clicked(), "clicked")
_WRAP_PROPERTY("visible", bool)
_WRAP_PROPERTY("resizable", bool)
_WRAP_PROPERTY("width", int)
_WRAP_PROPERTY("spacing", int)
_WRAP_PROPERTY("sizing", TreeViewColumnSizing)
_WRAP_PROPERTY("fixed-width", int)
_WRAP_PROPERTY("min-width", int)
......@@ -248,6 +250,7 @@ public:
_WRAP_PROPERTY("reorderable", bool)
_WRAP_PROPERTY("sort-indicator", bool)
_WRAP_PROPERTY("sort-order", SortType)
_WRAP_PROPERTY("sort-column-id", int)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
......
......@@ -1008,6 +1008,7 @@ dnl
_WRAP_PROPERTY("app_paintable", bool)
_WRAP_PROPERTY("can_focus", bool)
_WRAP_PROPERTY("has_focus", bool)
_WRAP_PROPERTY("is_focus", bool)
_WRAP_PROPERTY("can_default", bool)
_WRAP_PROPERTY("has_default", bool)
_WRAP_PROPERTY("receives_default", bool)
......@@ -1020,6 +1021,7 @@ dnl
_WRAP_PROPERTY("tooltip_text", Glib::ustring)
_WRAP_PROPERTY("window", Glib::RefPtr<Gdk::Window>)
_WRAP_PROPERTY("no-show-all", bool)
_WRAP_PROPERTY("double-buffered", bool)
protected:
//comment in GTK+ header: "seldomly overidden"
......
......@@ -72,7 +72,9 @@ class Window : public Bin
public:
_WRAP_CTOR(Window(WindowType type = WINDOW_TOPLEVEL), gtk_window_new)
_WRAP_PROPERTY("type", WindowType)
_WRAP_PROPERTY("title", Glib::ustring)
_WRAP_PROPERTY("startup-id", Glib::ustring)
_WRAP_PROPERTY("allow_shrink", bool)
_WRAP_PROPERTY("allow_grow", bool)
_WRAP_PROPERTY("resizable", bool)
......@@ -94,6 +96,7 @@ public:
_WRAP_PROPERTY("decorated", bool)
_WRAP_PROPERTY("gravity", Gdk::Gravity)
_WRAP_PROPERTY("transient_for", Window*)
_WRAP_PROPERTY("opacity", double)
_WRAP_PROPERTY("urgency_hint", bool)
_WRAP_PROPERTY("accept-focus", bool)
_WRAP_PROPERTY("focus-on-map", bool)
......
......@@ -211,6 +211,7 @@ int main(int argc, char** argv)
<< get_defs( GTK_TYPE_TREE_SELECTION )
<< get_defs( GTK_TYPE_TREE_SORTABLE )
<< get_defs( GTK_TYPE_TREE_MODEL_FILTER )
<< get_defs( GTK_TYPE_TREE_MODEL_SORT )
<< get_defs( GTK_TYPE_TREE_STORE )
<< get_defs( GTK_TYPE_TREE_VIEW )
<< get_defs( GTK_TYPE_TREE_VIEW_COLUMN )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment