Class: TestGui

Inherits:
FXMainWindow
  • Object
show all
Defined in:
lib/watobo/gui/interceptor_gui.rb,
lib/watobo/gui/full_scan_dialog.rb,
lib/watobo/gui/xml_viewer_frame.rb,
lib/watobo/gui/define_scope_frame.rb

Defined Under Namespace

Classes: DummyProject

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ TestGui

Returns a new instance of TestGui.



1030
1031
1032
1033
1034
1035
# File 'lib/watobo/gui/interceptor_gui.rb', line 1030

def initialize(app)
  # Call base class initializer first
  super(app, "Test Application", :width => 800, :height => 600)
  frame = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_GROOVE)
  Watobo::Gui::InterceptorUI.new(frame, nil, nil)
end

Instance Method Details

#createObject

Create and show the main window



1038
1039
1040
1041
1042
# File 'lib/watobo/gui/interceptor_gui.rb', line 1038

def create
  super # Create the windows
  show(PLACEMENT_SCREEN) # Make the main window appear

end

#startDialogObject



216
217
218
219
220
221
222
223
224
# File 'lib/watobo/gui/full_scan_dialog.rb', line 216

def startDialog
  project = DummyProject.new()
  
  dlg = Watobo::Gui::FullScanDialog.new(self,project,DECOR_TITLE|DECOR_BORDER)
  
  if dlg.execute != 0
    puts dlg.details.to_yaml
  end
end