| 572 | } |
| 573 | |
| 574 | std::string genGuiInt(const std::string& name) |
| 575 | { |
| 576 | using namespace fmt::literals; |
| 577 | |
| 578 | return fmt::format(R"(#ifndef {nameUpper}GUIINT_H |
| 579 | #define {nameUpper}GUIINT_H |
| 580 | |
| 581 | #include <Qt> |
| 582 | #include <functional> |
| 583 | |
| 584 | class QWidget; |
| 585 | |
| 586 | struct {name}GuiInt {{ |
| 587 | virtual ~{name}GuiInt() {{}} |
| 588 | virtual QWidget* mainWidget() = 0; |
| 589 | }}; |
| 590 | |
| 591 | #endif // {nameUpper}GUIINT_H |
| 592 | )", |
| 593 | "name"_a = name, "nameUpper"_a = str_toupper(name)); |
| 594 | } |
| 595 | |
| 596 | std::string genGuiImpl(const std::string& name) |
| 597 | { |