Class: ConsoleDialog

Inherits:
Qt::Dialog
  • Object
show all
Defined in:
lib/tmis/interface/forms/console.rb

Overview

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil) ⇒ ConsoleDialog

Returns a new instance of ConsoleDialog.



16
17
18
19
20
21
# File 'lib/tmis/interface/forms/console.rb', line 16

def initialize(parent = nil)
  super parent
  @ui = Ui::ConsoleDialog.new
  @ui.setup_ui self
  @browser = @ui.textBrowser
end

Instance Attribute Details

#browserObject

Returns the value of attribute browser.



14
15
16
# File 'lib/tmis/interface/forms/console.rb', line 14

def browser
  @browser
end

Instance Method Details

#closeEvent(event) ⇒ Object



23
24
25
26
# File 'lib/tmis/interface/forms/console.rb', line 23

def closeEvent(event)
  emit dialogClosed
  event.accept
end