class TestGui

Public Class Methods

new(app) click to toggle source
Calls superclass method
# File lib/watobo/gui/define_scope_frame.rb, line 360
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)
  
  pbButton = FXButton.new(frame, "create FXProgressBar",:opts => FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT,:padLeft => 10, :padRight => 10, :padTop => 5, :padBottom => 5)
  
  @scope_details = {
    :site => "127.0.0.1",
    :enabled => false,
    :root_path => '',
    :excluded_paths => [],
    #:exclude_pattern => []
  }
  pbButton.connect(SEL_COMMAND) {
    
    dlg = Watobo::Gui::EditScopeDetailsDialog.new(self,scope_details)
    
    if dlg.execute != 0
      puts dlg.details.to_yaml
    end  
  }
end

Public Instance Methods

create() click to toggle source

Create and show the main window

Calls superclass method
# File lib/watobo/gui/define_scope_frame.rb, line 384
def create
  super                  # Create the windows
  show(PLACEMENT_SCREEN) # Make the main window appear
  dlg = Watobo::Gui::EditScopeDetailsDialog.new(self, @scope_details)
  
  if dlg.execute != 0
    puts dlg.details.to_yaml
  end  
end
startDialog() click to toggle source
# 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