#ifndef MAIN_WINDOW_H #define MAIN_WINDOW_H #include #include #include #include #include #include #include #include QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); std::vector validators; void setupUi(); void clear(); private slots: void onLoadLibrary(); void onLoadSchema(); void onValidateSchema(bool toggled); void onStoreScheme(); void onGenerateComdel(); private: display::Library *libraryDisplay; display::Schema *schemaDisplay; Ui::MainWindow *ui; static void formatErrors(std::vector& errors, std::ostream& output); }; #endif // MAIN_WINDOW_H