- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
43 lines
822 B
C++
43 lines
822 B
C++
|
|
|
|
#pragma once
|
|
#include <QMainWindow>
|
|
#include <QObject>
|
|
|
|
namespace CodeGen
|
|
{
|
|
class XmlReader;
|
|
class StructBuilder;
|
|
class GeneratorGrantleeBase;
|
|
} // namespace CodeGen
|
|
|
|
namespace Grantlee
|
|
{
|
|
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;
|
|
Grantlee::Engine* m_engine;
|
|
QString m_idlServiceInfoFile;
|
|
QString m_templateFile;
|
|
Ui_MainGrantleeGui* m_ui;
|
|
};
|