C++11 tidying.
[dcpomatic.git] / src / wx / i18n_hook.h
index 9462e3f7f40fe0a4b2338e3a1f36089073c6c5e2..bb1bc822799f124f09fe2971ea42efbb705fadee 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2018-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #ifndef DCPOMATIC_I18N_HOOK_H
 #define DCPOMATIC_I18N_HOOK_H
 
+
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
+#include <map>
+
 
 class I18NHook
 {
 public:
-       I18NHook (wxWindow* window);
+       I18NHook (wxWindow* window, wxString original);
 
        virtual void set_text (wxString text) = 0;
        virtual wxString get_text () const = 0;
 
+       static std::map<std::string, std::string> translations () {
+               return _translations;
+       }
+
 private:
        void handle (wxMouseEvent &);
 
        wxWindow* _window;
+       wxString _original;
+
+       static std::map<std::string, std::string> _translations;
 };
 
+
 #endif