Class: QDA::GUI::ExportFileDialog
- Inherits:
-
Wx::FileDialog
- Object
- Wx::FileDialog
- QDA::GUI::ExportFileDialog
- Defined in:
- lib/weft/wxgui/dialogs.rb
Instance Method Summary collapse
- #filter ⇒ Object
-
#initialize(parent, export_obj) ⇒ ExportFileDialog
constructor
A new instance of ExportFileDialog.
Constructor Details
#initialize(parent, export_obj) ⇒ ExportFileDialog
Returns a new instance of ExportFileDialog.
193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/weft/wxgui/dialogs.rb', line 193 def initialize(parent, export_obj) @obj = export_obj exports = QDA::Filters::export_filters[@obj.class] wildcard = exports.map { | filt | '%s (*.%s)|*.%s' % [ filt::DESCRIPTION, filt::EXTENSION, filt::EXTENSION ] }.join('|') super(parent, Lang::EXPORT_DOC_DIALOGUE_TITLE, "", "", wildcard, Wx::SAVE|Wx::OVERWRITE_PROMPT) set_filename( exports[0].def_name(export_obj) ) end |
Instance Method Details
#filter ⇒ Object
205 206 207 |
# File 'lib/weft/wxgui/dialogs.rb', line 205 def filter() QDA::Filters::export_filters[@obj.class][filter_index] end |