Class: QDA::GUI::ScriptFileDialog
- Inherits:
-
Wx::FileDialog
- Object
- Wx::FileDialog
- QDA::GUI::ScriptFileDialog
- Defined in:
- lib/weft/wxgui/dialogs.rb
Instance Method Summary collapse
-
#initialize(parent, saving = false) ⇒ ScriptFileDialog
constructor
A new instance of ScriptFileDialog.
Constructor Details
#initialize(parent, saving = false) ⇒ ScriptFileDialog
Returns a new instance of ScriptFileDialog.
212 213 214 215 216 217 218 219 220 221 |
# File 'lib/weft/wxgui/dialogs.rb', line 212 def initialize(parent, saving = false) if saving style = Wx::SAVE|Wx::OVERWRITE_PROMPT title = 'Save a Script to a Ruby File' else style = Wx::OPEN title = 'Import a Script from a Ruby File' end super(parent, title, "", "", 'Ruby files (*.rb)|*.rb', style) end |