| 163 | } |
| 164 | |
| 165 | void 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 | |
| 190 | void MLJCMapCanvas::TimeChange() |
| 191 | { |
no test coverage detected