MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / SetCheckMarks

Method SetCheckMarks

Explore/AbstractClusterMap.cpp:140–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void AbstractMapCanvas::SetCheckMarks(wxMenu* menu)
141{
142 // Update the checkmarks and enable/disable state for the
143 // following menu items if they were specified for this particular
144 // view in the xrc file. Items that cannot be enable/disabled,
145 // or are not checkable do not appear.
146
147 MapCanvas::SetCheckMarks(menu);
148
149 int sig_filter = a_coord->GetSignificanceFilter();
150
151 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_05"),
152 sig_filter == 1);
153 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_01"),
154 sig_filter == 2);
155 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_001"),
156 sig_filter == 3);
157 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_0001"),
158 sig_filter == 4);
159 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_SETUP"),
160 sig_filter == -1);
161 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_USE_SPECIFIED_SEED"),
162 a_coord->IsReuseLastSeed());
163}
164
165void AbstractMapCanvas::TimeChange()
166{

Callers 2

MapMenusMethod · 0.45
UpdateOptionMenuItemsMethod · 0.45

Calls 2

GetSignificanceFilterMethod · 0.45
IsReuseLastSeedMethod · 0.45

Tested by

no test coverage detected