MCPcopy Create free account
hub / github.com/Kitware/CMake / initialize

Method initialize

Source/QtDialog/CMakeSetupDialog.cxx:255–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void CMakeSetupDialog::initialize()
256{
257 // now the cmake worker thread is running, lets make our connections to it
258 QObject::connect(this->CMakeThread->cmakeInstance(),
259 &QCMake::propertiesChanged, this->CacheValues->cacheModel(),
260 &QCMakeCacheModel::setProperties);
261
262 QObject::connect(this->ConfigureButton, &QAbstractButton::clicked, this,
263 &CMakeSetupDialog::doConfigure);
264
265 QObject::connect(this->CMakeThread->cmakeInstance(), &QCMake::configureDone,
266 this, &CMakeSetupDialog::exitLoop);
267 QObject::connect(this->CMakeThread->cmakeInstance(), &QCMake::generateDone,
268 this, &CMakeSetupDialog::exitLoop);
269
270 QObject::connect(this->GenerateButton, &QAbstractButton::clicked, this,
271 &CMakeSetupDialog::doGenerate);
272 QObject::connect(this->OpenProjectButton, &QAbstractButton::clicked, this,
273 &CMakeSetupDialog::doOpenProject);
274
275 QObject::connect(this->BrowseSourceDirectoryButton,
276 &QAbstractButton::clicked, this,
277 &CMakeSetupDialog::doSourceBrowse);
278 QObject::connect(this->ReloadPresetsButton, &QAbstractButton::clicked,
279 this->CMakeThread->cmakeInstance(), &QCMake::loadPresets);
280 QObject::connect(this->BrowseBinaryDirectoryButton,
281 &QAbstractButton::clicked, this,
282 &CMakeSetupDialog::doBinaryBrowse);
283
284 QObject::connect(this->BinaryDirectory, &QComboBox::editTextChanged, this,
285 &CMakeSetupDialog::onBinaryDirectoryChanged);
286 QObject::connect(this->SourceDirectory, &QLineEdit::textChanged, this,
287 &CMakeSetupDialog::onSourceDirectoryChanged);
288 QObject::connect(this->Preset, &QCMakePresetComboBox::presetChanged, this,
289 &CMakeSetupDialog::onBuildPresetChanged);
290
291 QObject::connect(this->CMakeThread->cmakeInstance(),
292 &QCMake::sourceDirChanged, this,
293 &CMakeSetupDialog::updateSourceDirectory);
294 QObject::connect(this->CMakeThread->cmakeInstance(),
295 &QCMake::binaryDirChanged, this,
296 &CMakeSetupDialog::updateBinaryDirectory);
297 QObject::connect(this->CMakeThread->cmakeInstance(), &QCMake::presetsChanged,
298 this, &CMakeSetupDialog::updatePresets);
299 QObject::connect(this->CMakeThread->cmakeInstance(), &QCMake::presetChanged,
300 this, &CMakeSetupDialog::updatePreset);
301 QObject::connect(this->CMakeThread->cmakeInstance(),
302 &QCMake::presetLoadError, this,
303 &CMakeSetupDialog::showPresetLoadError);
304
305 QObject::connect(this->CMakeThread->cmakeInstance(),
306 &QCMake::progressChanged, this,
307 &CMakeSetupDialog::showProgress);
308
309 QObject::connect(this->CMakeThread->cmakeInstance(), &QCMake::errorMessage,
310 this, &CMakeSetupDialog::error);
311
312 QObject::connect(this->CMakeThread->cmakeInstance(), &QCMake::outputMessage,

Callers

nothing calls this directly

Calls 8

updateGeneratorLabelMethod · 0.95
connectFunction · 0.85
QStringClass · 0.85
cmakeInstanceMethod · 0.80
isNullMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected