Class: Watobo::Gui::TestGui
- Inherits:
-
FXMainWindow
- Object
- FXMainWindow
- Watobo::Gui::TestGui
- Defined in:
- plugins/crawler/gui.rb,
plugins/sqlmap/bin/test.rb
Instance Method Summary collapse
-
#create ⇒ Object
Create and show the main window.
-
#initialize(app) ⇒ TestGui
constructor
A new instance of TestGui.
Constructor Details
#initialize(app) ⇒ TestGui
Returns a new instance of TestGui.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'plugins/crawler/gui.rb', line 67 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) = 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) .connect(SEL_COMMAND) { dlg = Watobo::Plugin::Crawler::Gui.new(self) if dlg.execute != 0 puts dlg.details.to_yaml end } end |
Instance Method Details
#create ⇒ Object
Create and show the main window
83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'plugins/crawler/gui.rb', line 83 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 |