HoverRace  2.0
PathSelector.h
Go to the documentation of this file.
1 #ifdef HR_LEGACY_BUILD
2 
3 // PathSelector.h
4 // Header for the directory selection dialog.
5 //
6 // Copyright (c) 2009-2010 Michael Imamura.
7 //
8 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
9 // you may not use this file except in compliance with the License.
10 //
11 // A copy of the license should have been attached to the package from which
12 // you have taken this file. If you can not find the license you can not use
13 // this file.
14 //
15 //
16 // The author makes no representations about the suitability of
17 // this software for any purpose. It is provided "as is" "AS IS",
18 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19 // implied.
20 //
21 // See the License for the specific language governing permissions
22 // and limitations under the License.
23 //
24 
25 #pragma once
26 
27 #include "../../engine/Util/OS.h"
28 
29 namespace HoverRace {
30 namespace Client {
31 
36 class PathSelector
37 {
38  public:
39  PathSelector(const std::string &title);
40  ~PathSelector();
41 
42  bool ShowModal(HWND parent, Util::OS::path_t &path);
43 
44  protected:
45  int DlgProc(HWND hwnd, UINT message, LPARAM lparam);
46  static int CALLBACK DlgFunc(HWND hwnd, UINT message, LPARAM lparam, LPARAM data);
47 
48  private:
49  std::wstring title;
50  std::wstring initialPath;
51 };
52 
53 } // namespace Client
54 } // namespace HoverRace
55 #endif
boost::filesystem::path path_t
Definition: OS.h:57
Definition: Announcement.h:24