HoverRace  2.0
LocaleSelectScene.h
Go to the documentation of this file.
1 
2 // LocaleSelectScene.h
3 //
4 // Copyright (c) 2015 Michael Imamura.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 
22 #pragma once
23 
24 #include "../../engine/Display/PickList.h"
25 
26 #include "DialogScene.h"
27 
28 namespace HoverRace {
29  namespace Client {
30  class GameDirector;
31  }
32  namespace Display {
33  class Display;
34  }
35  namespace Util {
36  class Locale;
37  }
38 }
39 
40 namespace HoverRace {
41 namespace Client {
42 
48 {
49  using SUPER = DialogScene;
50 
51 public:
53  const std::string &parentTitle, const Util::Locale &locale,
54  const std::string &localeId);
55  virtual ~LocaleSelectScene() { }
56 
57 public:
58  std::string GetLocaleId() const;
59 
60 public:
61  void OnLocaleSelected();
62 
63 public:
64  using confirmSignal_t = boost::signals2::signal<void()>;
65  confirmSignal_t &GetConfirmSignal() { return confirmSignal; }
66 
67 private:
68  std::shared_ptr<Display::PickList<std::string>> localeList;
69 
71 };
72 
73 } // namespace Client
74 } // namespace HoverRace
std::shared_ptr< Display::PickList< std::string > > localeList
Definition: LocaleSelectScene.h:68
std::locale locale
Global reference to the current locale.
Definition: OS.cpp:98
boost::signals2::signal< void()> confirmSignal_t
Definition: LocaleSelectScene.h:64
Interface for game client shells.
Definition: GameDirector.h:57
GameDirector & director
Definition: TestLabScene.cpp:160
confirmSignal_t confirmSignal
Definition: LocaleSelectScene.h:70
confirmSignal_t & GetConfirmSignal()
Definition: LocaleSelectScene.h:65
Base class for scenes with a title and status area.
Definition: DialogScene.h:46
Base class for display managers.
Definition: Display.h:73
Base class for full-scene menus and the like.
Definition: FormScene.h:48
virtual ~LocaleSelectScene()
Definition: LocaleSelectScene.h:55
Selector for locale.
Definition: LocaleSelectScene.h:47
Definition: Announcement.h:24
A library of available locales.
Definition: Locale.h:54