MCPcopy Create free account
hub / github.com/Gecode/gecode / preferences

Method preferences

gecode/gist/mainwindow.cpp:280–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 void
281 GistMainWindow::preferences(bool setup) {
282 PreferencesDialog pd(opt, this);
283 if (setup) {
284 c->setAutoZoom(pd.zoom);
285 }
286 if (setup || pd.exec() == QDialog::Accepted) {
287 c->setAutoHideFailed(pd.hideFailed);
288 c->setRefresh(pd.refresh);
289 c->setRefreshPause(pd.refreshPause);
290 c->setSmoothScrollAndZoom(pd.smoothScrollAndZoom);
291 c->setMoveDuringSearch(pd.moveDuringSearch);
292 c->setRecompDistances(pd.c_d,pd.a_d);
293 opt.c_d = pd.c_d;
294 opt.a_d = pd.a_d;
295 c->setShowCopies(pd.copies);
296 }
297 }
298
299 void
300 GistMainWindow::populateInspectorSelection(void) {

Callers

nothing calls this directly

Calls 9

execMethod · 0.80
setAutoZoomMethod · 0.45
setAutoHideFailedMethod · 0.45
setRefreshMethod · 0.45
setRefreshPauseMethod · 0.45
setMoveDuringSearchMethod · 0.45
setRecompDistancesMethod · 0.45
setShowCopiesMethod · 0.45

Tested by

no test coverage detected