Class: Watobo::Gui::RewriteRulesDialog
- Inherits:
-
FXDialogBox
- Object
- FXDialogBox
- Watobo::Gui::RewriteRulesDialog
- Includes:
- Responder
- Defined in:
- lib/watobo/gui/rewrite_rules_dialog.rb
Instance Method Summary collapse
-
#initialize(owner, settings = {}) ⇒ RewriteRulesDialog
constructor
A new instance of RewriteRulesDialog.
- #request_rules ⇒ Object
- #response_rules ⇒ Object
Constructor Details
#initialize(owner, settings = {}) ⇒ RewriteRulesDialog
Returns a new instance of RewriteRulesDialog.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/watobo/gui/rewrite_rules_dialog.rb', line 346 def initialize(owner, settings = {} ) super(owner, "Rewrite Rules", DECOR_TITLE|DECOR_BORDER|DECOR_CLOSE, :width => 650, :height => 610) FXMAPFUNC(SEL_COMMAND, ID_ACCEPT, :onAccept) @main_frame = FXVerticalFrame.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0) init_request_rules(@main_frame) init_response_rules(@main_frame) = FXHorizontalFrame.new(@main_frame, :opts => LAYOUT_FILL_X|LAYOUT_BOTTOM) @finishButton = FXButton.new(, "Accept" , nil, nil, :opts => BUTTON_NORMAL|LAYOUT_RIGHT) @finishButton.enable @finishButton.connect(SEL_COMMAND) do |sender, sel, item| #self.handle(self, FXSEL(SEL_COMMAND, ID_CANCEL), nil) self.handle(self, FXSEL(SEL_COMMAND, ID_ACCEPT), nil) end @cancelButton = FXButton.new(, "Cancel" , :target => self, :selector => FXDialogBox::ID_CANCEL, :opts => BUTTON_NORMAL|LAYOUT_RIGHT) end |
Instance Method Details
#request_rules ⇒ Object
338 339 340 |
# File 'lib/watobo/gui/rewrite_rules_dialog.rb', line 338 def request_rules @request_rules_table.rules end |
#response_rules ⇒ Object
342 343 344 |
# File 'lib/watobo/gui/rewrite_rules_dialog.rb', line 342 def response_rules @response_rules_table.rules end |