MCPcopy Create free account
hub / github.com/KDE/kdevelop / back

Method back

plugins/filetemplates/templateclassassistant.cpp:498–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void TemplateClassAssistant::back()
499{
500 KAssistantDialog::back();
501 if (currentPage() == d->templateSelectionPage)
502 {
503 REMOVE_PAGE(classIdentifier)
504 REMOVE_PAGE(overrides)
505 REMOVE_PAGE(members)
506 REMOVE_PAGE(testCases)
507 REMOVE_PAGE(output)
508 REMOVE_PAGE(templateOptions)
509 REMOVE_PAGE(license)
510
511 delete d->helper;
512 d->helper = nullptr;
513
514 if (d->generator)
515 {
516 delete d->generator;
517 }
518 else
519 {
520 delete d->renderer;
521 }
522 d->generator = nullptr;
523 d->renderer = nullptr;
524
525 if (d->baseUrl.isValid())
526 {
527 setWindowTitle(xi18nc("@title:window", "Create Files from Template in <filename>%1</filename>", d->baseUrl.toDisplayString(QUrl::PreferLocalFile)));
528 }
529 else
530 {
531 setWindowTitle(i18nc("@title:window", "Create Files from Template"));
532 }
533 d->dummyPage = addPage(new QWidget(this), QStringLiteral("Dummy Page"));
534 }
535}
536
537void TemplateClassAssistant::accept()
538{

Callers 15

mapSourceToDestinationFunction · 0.45
processSwitchBlockMethod · 0.45
nextLineMethod · 0.45
getBraceTypeMethod · 0.45
isClassInitializerMethod · 0.45
isPointerOrReferenceMethod · 0.45
isOneLineBlockReachedMethod · 0.45
formatClosingBraceMethod · 0.45
formatRunInMethod · 0.45
formatArrayRunInMethod · 0.45

Calls 1

isValidMethod · 0.45