Class: Idb::LocalStorageTabWidget
- Inherits:
-
Qt::TabWidget
- Object
- Qt::TabWidget
- Idb::LocalStorageTabWidget
- Defined in:
- lib/gui/local_storage_tab_widget.rb
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize(*args) ⇒ LocalStorageTabWidget
constructor
A new instance of LocalStorageTabWidget.
- #refresh_current_tab ⇒ Object
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
#clear ⇒ Object
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_tab ⇒ Object
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 |