projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move Film::make_kdms to the call sites.
[dcpomatic.git]
/
src
/
wx
/
i18n_hook.h
diff --git
a/src/wx/i18n_hook.h
b/src/wx/i18n_hook.h
index 9462e3f7f40fe0a4b2338e3a1f36089073c6c5e2..40fd89a2c66cce72ecaed2701c7a47afbbad450d 100644
(file)
--- a/
src/wx/i18n_hook.h
+++ b/
src/wx/i18n_hook.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2018
-2019
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-22,19
+22,27
@@
#define DCPOMATIC_I18N_HOOK_H
#include <wx/wx.h>
#define DCPOMATIC_I18N_HOOK_H
#include <wx/wx.h>
+#include <map>
class I18NHook
{
public:
class I18NHook
{
public:
- I18NHook (wxWindow* window);
+ I18NHook (wxWindow* window
, wxString original
);
virtual void set_text (wxString text) = 0;
virtual wxString get_text () const = 0;
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;
private:
void handle (wxMouseEvent &);
wxWindow* _window;
+ wxString _original;
+
+ static std::map<std::string, std::string> _translations;
};
#endif
};
#endif