| 138 | } |
| 139 | |
| 140 | void 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 | |
| 165 | void AbstractMapCanvas::TimeChange() |
| 166 | { |
no test coverage detected