Class: Watobo::Gui::CreateFilterDlg
- Inherits:
-
FXDialogBox
- Object
- FXDialogBox
- Watobo::Gui::CreateFilterDlg
- Defined in:
- lib/watobo/gui/fuzzer_gui.rb
Instance Method Summary collapse
- #filter ⇒ Object
-
#initialize(owner, project) ⇒ CreateFilterDlg
constructor
A new instance of CreateFilterDlg.
Constructor Details
#initialize(owner, project) ⇒ CreateFilterDlg
Returns a new instance of CreateFilterDlg.
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'lib/watobo/gui/fuzzer_gui.rb', line 217 def initialize(owner, project) super(owner, "Create Filter", DECOR_TITLE|DECOR_BORDER) main = FXVerticalFrame.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_NONE, :padding => 0) @filterFrame = FilterFrame.new(main, project.getSidPatterns, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_NONE, :padding => 0) = FXHorizontalFrame.new(main, :opts => LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH, :padLeft => 40, :padRight => 40, :padTop => 20, :padBottom => 20) # Accept accept = FXButton.new(, "&Accept", nil, self, ID_ACCEPT, FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_CENTER_Y) # Cancel FXButton.new(, "&Cancel", nil, self, ID_CANCEL, FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_CENTER_Y) end |
Instance Method Details
#filter ⇒ Object
213 214 215 |
# File 'lib/watobo/gui/fuzzer_gui.rb', line 213 def filter() return @filterFrame.selection() end |