Module: Editor

Module | Editor
In: |

### Methods

data2model error_dialog fetch_icon model2data question_dialog

### Public Class methods

data2model(data, model = nil, parent = nil) {|model| ...}

Convert the Ruby data structure data into tree model data for Gtk and returns the whole model. If the parameter model wasn‘t given a new Gtk::TreeStore is created as the model. The parent parameter specifies the parent node (iter, Gtk:TreeIter instance) to which the data is appended, alternativeley the result of the yielded block is used as iter.

error_dialog(window, text)

Opens an error dialog on top of window showing the error message text.

fetch_icon(name)

Returns the Gdk::Pixbuf of the icon named name from the icon cache.

model2data(iter)

Convert the tree model starting from Gtk::TreeIter iter into a Ruby data structure and return it.

question_dialog(window, text)

Opens a yes/no question dialog on top of window showing the error message text. If yes was answered true is returned, otherwise false.

[Validate]