Class: RDI::Views::LocationSelectors::SimpleWxGUI::Directory
- Inherits:
-
Model::LocationSelector
- Object
- Model::LocationSelector
- RDI::Views::LocationSelectors::SimpleWxGUI::Directory
- Defined in:
- lib/rdi/Plugins/Views/SimpleWxGUI/LocationSelectors/Directory.rb
Instance Method Summary collapse
-
#getNewLocation ⇒ Object
Give user the choice of a new location.
Instance Method Details
#getNewLocation ⇒ Object
Give user the choice of a new location
Return:
-
Object: A location, or nil if none selected
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/rdi/Plugins/Views/SimpleWxGUI/LocationSelectors/Directory.rb', line 22 def getNewLocation rLocation = nil require 'rdi/Plugins/WxCommon' RDI::Views::RDIWx.ensureWxApp do showModal(Wx::DirDialog, nil) do |iModalResult, iDialog| if (iModalResult == Wx::ID_OK) rLocation = iDialog.path end end end return rLocation end |