/*
- 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 <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
+LIBDCP_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