MGR: Add defines for EVENT_LOG_RULES and BASEVIEW_RULES to allow compile-type selection of rules and / or stripes in lists

svn path=/trunk/boinc/; revision=20872
This commit is contained in:
Charlie Fenton 2010-03-12 08:33:00 +00:00
parent c6f113638f
commit e59128fd45
3 changed files with 20 additions and 7 deletions

View File

@ -1867,3 +1867,14 @@ David 11 Mar 2010
ViewNotices.cpp
lib/
notice.cpp
Charlie 12 Mar 2010
- MGR: Allow separate compile-time choice of rules and / or alternating gray
and white background stripes in lists by defining EVENT_LOG_RULES and
EVENT_LOG_STRIPES (in DlgEventLog.h) and BASEVIEW_RULES and BASEVIEW_STRIPES
(in BOINCBaseView.h); set each to 1 to enable or 0 to disable; currently all
are set to 1 for both stripes and rules in both types of lists.
clientgui/
BOINCBaseView.h
DlgEventLog.h

View File

@ -23,15 +23,16 @@
#endif
#define BASEVIEW_STRIPES 1
#define BASEVIEW_RULES 1
#define DEFAULT_TASK_FLAGS wxTAB_TRAVERSAL | wxADJUST_MINSIZE | wxFULL_REPAINT_ON_RESIZE
#if BASEVIEW_STRIPES
#define DEFAULT_LIST_SINGLE_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL | wxLC_SINGLE_SEL
#define DEFAULT_LIST_MULTI_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL
#else
#if BASEVIEW_RULES
#define DEFAULT_LIST_SINGLE_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL | wxLC_HRULES | wxLC_SINGLE_SEL
#define DEFAULT_LIST_MULTI_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL | wxLC_HRULES
#else
#define DEFAULT_LIST_SINGLE_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL | wxLC_SINGLE_SEL
#define DEFAULT_LIST_MULTI_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL
#endif

View File

@ -24,11 +24,12 @@
#endif
#define EVENT_LOG_STRIPES 1
#define EVENT_LOG_RULES 1
#if EVENT_LOG_STRIPES
#define EVENT_LOG_DEFAULT_LIST_MULTI_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL
#else
#if EVENT_LOG_RULES
#define EVENT_LOG_DEFAULT_LIST_MULTI_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL | wxLC_HRULES
#else
#define EVENT_LOG_DEFAULT_LIST_MULTI_SEL_FLAGS wxLC_REPORT | wxLC_VIRTUAL
#endif