Class: Idb::LocalStorageTabWidget

Inherits:
Qt::TabWidget
  • Object
show all
Defined in:
lib/gui/local_storage_tab_widget.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ LocalStorageTabWidget

Returns a new instance of LocalStorageTabWidget.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/gui/local_storage_tab_widget.rb', line 8

def initialize *args
  super *args

  @tabs = Hash.new

  @plist = PlistFileWidget.new self
  @tabs[:plist] = addTab(@plist, "plists")

  @sqlite = SqliteWidget.new self
  @tabs[:sqlite] = addTab(@sqlite, "sqlite dbs")

  @cachedb = CacheDbWidget.new self
  @tabs[:cachedb] = addTab(@cachedb, "Cache.dbs")

end

Instance Method Details

#clearObject



24
25
26
27
28
# File 'lib/gui/local_storage_tab_widget.rb', line 24

def clear
  @tabs.each { |tab|
    tab.clear
  }
end

#refresh_current_tabObject



30
31
32
33
# File 'lib/gui/local_storage_tab_widget.rb', line 30

def refresh_current_tab
  puts "refresh local storage tab"
  currentWidget.refresh
end