| 138 | } |
| 139 | |
| 140 | void 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 | |
| 150 | Two highlights with default **description** location. |
| 151 | )story"); |
| 152 | tut->addChapter(btn3, R"story( |
| 153 | # Second Button translated |
| 154 | |
| 155 | One button, but tutorial *moved* |
| 156 | )story"); |
| 157 | tut->addChapter(pic, R"story( |
| 158 | # Picture |
| 159 | |
| 160 | Text overlayed on picture |
| 161 | |
| 162 | You can even put a picture on top |
| 163 |  |
| 164 | )story"); |
| 165 | tut->addChapter(lbl, R"story( |
| 166 | # Cristi's Label |
| 167 | |
| 168 | This label is cool |
| 169 | )story"); |
| 170 | |
| 171 | tut->addChapter(nullptr, R"story( |
| 172 | # Link |
| 173 | |
| 174 | For more info, visit [wiki](https://wiki.analog.com/) |
| 175 |  + "/icons/logo.svg "ADI") |
| 176 | )story"); |
| 177 | |
| 178 | tut->setTitle("Welcome to TestPlugin ! "); |
| 179 | tut->start(); |
| 180 | } |
| 181 | |
| 182 | bool TestPlugin::onConnect() |
| 183 | { |
nothing calls this directly
no test coverage detected