Class: ActiveWindow::ActiveTreeStore
- Inherits:
-
Gtk::TreeStore
- Object
- Gtk::TreeStore
- ActiveWindow::ActiveTreeStore
- Includes:
- TreeStoreExtentions
- Defined in:
- lib/active_window/active_tree_store.rb
Direct Known Subclasses
Instance Method Summary collapse
- #initial_add_in_progress? ⇒ Boolean
-
#initial_adding ⇒ Object
disables some heavy calculations.
-
#initialize(opts = {}) ⇒ ActiveTreeStore
constructor
A new instance of ActiveTreeStore.
Methods included from TreeStoreExtentions
#add, #apply_to_tree, #get_object, included, #populate, #refresh
Constructor Details
#initialize(opts = {}) ⇒ ActiveTreeStore
Returns a new instance of ActiveTreeStore.
8 9 10 11 |
# File 'lib/active_window/active_tree_store.rb', line 8 def initialize(opts={}) @initial_add_in_progress = false super(*self.class.column_classes) end |
Instance Method Details
#initial_add_in_progress? ⇒ Boolean
21 22 23 |
# File 'lib/active_window/active_tree_store.rb', line 21 def initial_add_in_progress? @initial_add_in_progress end |
#initial_adding ⇒ Object
disables some heavy calculations
14 15 16 17 18 19 |
# File 'lib/active_window/active_tree_store.rb', line 14 def initial_adding old_progress = initial_add_in_progress? @initial_add_in_progress = true yield @initial_add_in_progress = old_progress end |