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.



1035
1036
1037
1038
1039
1040
# File 'lib/watobo/gui/interceptor_gui.rb', line 1035

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



1043
1044
1045
1046
1047
# File 'lib/watobo/gui/interceptor_gui.rb', line 1043

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

end

#startDialogObject



237
238
239
240
241
242
243
244
245
# File 'lib/watobo/gui/full_scan_dialog.rb', line 237

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