mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Changed scroll size of PackageList;
Added 'collapse' option for card notes; Made variant of DECLARE_TYPEOF for maps (two template arguments). git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@202 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+18
-2
@@ -24,6 +24,8 @@
|
||||
#define DECLARE_TYPEOF_NO_REV(T)
|
||||
#define DECLARE_TYPEOF_CONST(T)
|
||||
#define DECLARE_TYPEOF_COLLECTION(T)
|
||||
#define DECLARE_TYPEOF2(A,B)
|
||||
#define DECLARE_TYPEOF_NO_REV2(A,B)
|
||||
|
||||
#define TYPEOF(Value) __typeof(Value)
|
||||
#define TYPEOF_IT(Value) __typeof(Value.begin())
|
||||
@@ -83,14 +85,28 @@
|
||||
typedef T::const_reference reference; \
|
||||
typedef T::const_reference const_reference; \
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// Declare typeof magic for a specific std::vector type
|
||||
#define DECLARE_TYPEOF_COLLECTION(T) DECLARE_TYPEOF(vector<T>); \
|
||||
DECLARE_TYPEOF_CONST(set<T>)
|
||||
|
||||
/// Declare typeof magic for a specific type, with two template arguments
|
||||
/** This is needed because the preprocessor sees MACRO(class<a,b>)
|
||||
* as a macro call with two arguments.
|
||||
*/
|
||||
#define DECLARE_TYPEOF2(A,B) \
|
||||
typedef A,B BOOST_PP_CAT(TypeOfTemp,__LINE__); \
|
||||
DECLARE_TYPEOF(BOOST_PP_CAT(TypeOfTemp,__LINE__))
|
||||
#define DECLARE_TYPEOF_NO_REV2(A,B) \
|
||||
typedef A,B BOOST_PP_CAT(TypeOfTemp,__LINE__); \
|
||||
DECLARE_TYPEOF_NO_REV(BOOST_PP_CAT(TypeOfTemp,__LINE__))
|
||||
#define DECLARE_TYPEOF_COLLECTION2(A,B) \
|
||||
typedef A,B BOOST_PP_CAT(TypeOfTemp,__LINE__); \
|
||||
DECLARE_TYPEOF_COLLECTION(BOOST_PP_CAT(TypeOfTemp,__LINE__))
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : Looping macros with iterators
|
||||
|
||||
/// Iterate over a collection, using an iterator it of type Type
|
||||
|
||||
@@ -56,6 +56,11 @@ enum MenuID {
|
||||
// Window menu (MainWindow)
|
||||
, ID_WINDOW_NEW = 201
|
||||
, ID_WINDOW_MIN = 202
|
||||
, ID_WINDOW_CARDS = ID_WINDOW_MIN + 4 // see SetWindow::SetWindow
|
||||
, ID_WINDOW_SET = ID_WINDOW_MIN + 0
|
||||
, ID_WINDOW_STYLE = ID_WINDOW_MIN + 1
|
||||
, ID_WINDOW_KEYWORDS = ID_WINDOW_MIN + 2
|
||||
, ID_WINDOW_STATS = ID_WINDOW_MIN + 3
|
||||
, ID_WINDOW_MAX = 220
|
||||
|
||||
// Help menu (MainWindow)
|
||||
@@ -95,6 +100,9 @@ enum ChildMenuID {
|
||||
, ID_CARD_ROTATE_180
|
||||
, ID_CARD_ROTATE_270
|
||||
|
||||
// On cards panel
|
||||
, ID_COLLAPSE_NOTES
|
||||
|
||||
// Keyword menu
|
||||
, ID_KEYWORD_ADD = 1101
|
||||
, ID_KEYWORD_REMOVE
|
||||
|
||||
Reference in New Issue
Block a user