Class: Idb::KeychainTabWidget
- Inherits:
-
Qt::TabWidget
- Object
- Qt::TabWidget
- Idb::KeychainTabWidget
- Defined in:
- lib/gui/keychain_tab_widget.rb
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize(*args) ⇒ KeychainTabWidget
constructor
A new instance of KeychainTabWidget.
- #set_data(text) ⇒ Object
- #set_vdata(text) ⇒ Object
Constructor Details
#initialize(*args) ⇒ KeychainTabWidget
Returns a new instance of KeychainTabWidget.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/gui/keychain_tab_widget.rb', line 8 def initialize *args super *args @tabs = Hash.new @text = KeychainTextWidget.new self @tabs[:text] = addTab(@text, "Text Data") @binary = KeychainBinaryWidget.new self @tabs[:binary] = addTab(@binary, "Binary VData") end |
Instance Method Details
#clear ⇒ Object
31 32 33 34 |
# File 'lib/gui/keychain_tab_widget.rb', line 31 def clear @text.clear @binary.clear end |
#set_data(text) ⇒ Object
21 22 23 24 |
# File 'lib/gui/keychain_tab_widget.rb', line 21 def set_data text @text.clear @text.set_data text end |
#set_vdata(text) ⇒ Object
26 27 28 29 |
# File 'lib/gui/keychain_tab_widget.rb', line 26 def set_vdata text @binary.clear @binary.set_data text end |