Bring the validation-scope line (in-tree Jenkins CI copy, lcov coverage wiring, step-by-step release-scope README, TetraIF unit tests, the LogView runtime icon/resource fix, Dockerfile, rpmbuild and the new_docker_build.sh driver with the DEB output path) on top of the XmlPatterns branch pruned to the Release 2 scope. Conflict policy: - Out-of-scope targets/modules: keep the prune (deletion wins). - In-scope files that validation had deleted: restored from story/release-2-cleanup (the Release 2 closure, with the pruned-module guards). - In-scope sources carrying migration work: XmlPatterns versions (Qt XmlPatterns rework on QDomDocument, DDS member and logger fixes, first-build fixes). - Scope-aware CMakeLists (top level, PluginInterfaces, LtsWidgets) and .envrc: story/release-2-cleanup / ours versions.
48 lines
944 B
C++
48 lines
944 B
C++
/**
|
|
* @RDE_HEADER@
|
|
* Gui to edit grantlee templates
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
#pragma once
|
|
#include <QtWidgets/QMainWindow>
|
|
#include <QtCore/QObject>
|
|
|
|
namespace CodeGen
|
|
{
|
|
class XmlReader;
|
|
class StructBuilder;
|
|
class GeneratorGrantleeBase;
|
|
} // namespace CodeGen
|
|
|
|
namespace KTextTemplate
|
|
{
|
|
class Engine;
|
|
}
|
|
class Ui_MainGrantleeGui;
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MainWindow(QWidget* parent = nullptr);
|
|
~MainWindow();
|
|
private Q_SLOTS:
|
|
void onSelectDataSource();
|
|
void onOpenTemplate();
|
|
void onSaveTemplate();
|
|
void onRefreshOutput();
|
|
void onGeneratorDb();
|
|
void onGeneratorDds();
|
|
|
|
private:
|
|
CodeGen::XmlReader* m_xmlReader;
|
|
CodeGen::StructBuilder* m_structBuilder;
|
|
CodeGen::GeneratorGrantleeBase* m_generator;
|
|
KTextTemplate::Engine* m_engine;
|
|
QString m_idlServiceInfoFile;
|
|
QString m_templateFile;
|
|
Ui_MainGrantleeGui* m_ui;
|
|
};
|