Class: Idb::KeychainTabWidget

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

Instance Method Summary collapse

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

#clearObject



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