Class: ActiveWindow::ActiveTreeStore

Inherits:
Gtk::TreeStore
  • Object
show all
Includes:
TreeStoreExtentions
Defined in:
lib/active_window/active_tree_store.rb

Direct Known Subclasses

FileTreeStore

Instance Method Summary collapse

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

Returns:

  • (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_addingObject

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