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

Method AddTimeVariantOptionsToMenu

Explore/3DPlotView.cpp:169–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void C3DPlotCanvas::AddTimeVariantOptionsToMenu(wxMenu* menu)
170{
171 if (!is_any_time_variant) return;
172 wxMenu* menu1 = new wxMenu(wxEmptyString);
173 {
174 for (int i=0, iend=var_info.size(); i<iend; i++) {
175 if (!var_info[i].is_time_variant) continue;
176 wxString s;
177 s << "Synchronize " << var_info[i].name << " with Time Control";
178 wxMenuItem* mi =
179 menu1->AppendCheckItem(GdaConst::ID_TIME_SYNC_VAR1+i, s, s);
180 if (mi && mi->IsCheckable() && mi->GetMenu()) mi->Check(var_info[i].sync_with_global_time);
181 }
182 }
183
184 menu->AppendSeparator();
185 menu->Append(wxID_ANY, "Time Variable Options", menu1, "Time Variable Options");
186}
187
188void C3DPlotCanvas::SetCheckMarks(wxMenu* menu)
189{

Callers 1

MapMenusMethod · 0.45

Calls 3

AppendMethod · 0.80
sizeMethod · 0.45
CheckMethod · 0.45

Tested by

no test coverage detected