MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / startTutorial

Method startTutorial

packages/test-plugins/plugins/test/src/testplugin.cpp:140–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void TestPlugin::startTutorial()
141{
142
143 QWidget *window = Util::findContainingWindow(m_toolList[0]->tool());
144 gui::TutorialOverlay *tut = new gui::TutorialOverlay(window);
145
146 tut->addChapter({btn, lbl},
147 R"story(
148# First Button
149
150Two highlights with default **description** location.
151)story");
152 tut->addChapter(btn3, R"story(
153# Second Button translated
154
155One button, but tutorial *moved*
156)story");
157 tut->addChapter(pic, R"story(
158# Picture
159
160Text overlayed on picture
161
162You can even put a picture on top
163![ADALM2000 pic!](:/gui/icons/adalm.svg "svgg")
164)story");
165 tut->addChapter(lbl, R"story(
166# Cristi's Label
167
168This label is cool
169)story");
170
171 tut->addChapter(nullptr, R"story(
172# Link
173
174For more info, visit [wiki](https://wiki.analog.com/)
175![ADI](:/gui/icons/" + Style::getAttribute(json::theme::icon_theme_folder) + "/icons/logo.svg "ADI")
176)story");
177
178 tut->setTitle("Welcome to TestPlugin ! ");
179 tut->start();
180}
181
182bool TestPlugin::onConnect()
183{

Callers

nothing calls this directly

Calls 3

addChapterMethod · 0.80
setTitleMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected