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

Method SetCheckMarks

Explore/MLJCMapNewView.cpp:165–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void MLJCMapCanvas::SetCheckMarks(wxMenu* menu)
166{
167 // Update the checkmarks and enable/disable state for the
168 // following menu items if they were specified for this particular
169 // view in the xrc file. Items that cannot be enable/disabled,
170 // or are not checkable do not appear.
171 MapCanvas::SetCheckMarks(menu);
172
173 int sig_filter = ((MLJCMapFrame*) template_frame)->GetJCCoordinator()->GetSignificanceFilter();
174
175 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_05"),
176 sig_filter == 1);
177 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_01"),
178 sig_filter == 2);
179 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_001"),
180 sig_filter == 3);
181 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_0001"),
182 sig_filter == 4);
183 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_SIGNIFICANCE_FILTER_SETUP"),
184 sig_filter == -1);
185
186 GeneralWxUtils::CheckMenuItem(menu, XRCID("ID_USE_SPECIFIED_SEED"),
187 gs_coord->IsReuseLastSeed());
188}
189
190void MLJCMapCanvas::TimeChange()
191{

Callers 2

MapMenusMethod · 0.45
UpdateOptionMenuItemsMethod · 0.45

Calls 2

GetSignificanceFilterMethod · 0.45
IsReuseLastSeedMethod · 0.45

Tested by

no test coverage detected