mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Added clone() function to Value.
Added support for per-card styling git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@430 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -114,10 +114,19 @@ class IndexMap : private vector<Value> {
|
||||
return end();
|
||||
}
|
||||
|
||||
inline void swap(IndexMap& b) {
|
||||
vector<Value>::swap(b);
|
||||
}
|
||||
|
||||
private:
|
||||
using vector<Value>::operator [];
|
||||
};
|
||||
|
||||
template <typename Key, typename Value>
|
||||
inline void swap(IndexMap<Key,Value>& a, IndexMap<Key,Value>& b) {
|
||||
a.swap(b);
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : DelayedIndexMaps
|
||||
|
||||
|
||||
@@ -92,6 +92,9 @@ String tr(const SymbolFont&, const String& key, const String& def);
|
||||
/// A localized string for tooltip text, with 1 argument (printf style)
|
||||
#define _TOOLTIP_1_(s,a) format_string(_TOOLTIP_(s), a)
|
||||
|
||||
/// A localized string for button text, with 1 argument (printf style)
|
||||
#define _BUTTON_1_(s,a) format_string(_BUTTON_(s), a)
|
||||
|
||||
/// A localized string for error messages, with 1 argument (printf style)
|
||||
#define _ERROR_1_(s,a) format_string(_ERROR_(s), a)
|
||||
/// A localized string for error messages, with 2 argument (printf style)
|
||||
|
||||
@@ -154,6 +154,7 @@ enum ChildMenuID {
|
||||
|
||||
// Style panel
|
||||
, ID_STYLE_USE_FOR_ALL = 3011
|
||||
, ID_STYLE_USE_CUSTOM
|
||||
|
||||
// Keywords panel
|
||||
, ID_KEYWORD_ADD_PARAM = 3021
|
||||
|
||||
Reference in New Issue
Block a user