Class: Watobo::Gui::TestGui

Inherits:
FXMainWindow
  • Object
show all
Defined in:
plugins/crawler/gui.rb,
plugins/sqlmap/bin/test.rb,
lib/watobo/gui/checkboxtree.rb

Defined Under Namespace

Classes: TreeDlg

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ TestGui

Returns a new instance of TestGui.


68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'plugins/crawler/gui.rb', line 68

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)
     
button = FXButton.new(frame, "Open Plugin",:opts => FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT,:padLeft => 10, :padRight => 10, :padTop => 5, :padBottom => 5)
button.connect(SEL_COMMAND) {

  dlg = Watobo::Plugin::Crawler::Gui.new(self)
  
  if dlg.execute != 0
    puts dlg.details.to_yaml
  end  
}
end

Instance Method Details

#createObject

Create and show the main window


84
85
86
87
88
89
90
91
92
93
94
95
# File 'plugins/crawler/gui.rb', line 84

def create
super                  # Create the windows
show(PLACEMENT_SCREEN) # Make the main window appear
dlg = Watobo::Plugin::Crawler::Gui.new(self)
dlg.set_tab_index 2
prefs = { :form_auth_url => "http://www.google.com" }
dlg.settings.auth.set prefs
  
if dlg.execute != 0
    puts dlg.details.to_yaml
end  
end

#leaveObject


313
314
315
316
317
318
# File 'lib/watobo/gui/checkboxtree.rb', line 313

def leave
  d = @cbtree.getCheckedData
  #puts d.class
  #puts d
  exit
end