schema_editor/mainwindow.h

45 lines
882 B
C
Raw Normal View History

2022-03-29 19:31:45 +00:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
2022-04-07 22:21:23 +00:00
#include <QListWidget>
2022-03-29 19:31:45 +00:00
#include <QMainWindow>
2022-04-07 22:21:23 +00:00
#include <comdel/display/library_display.h>
#include <comdel/display/schema_display.h>
#include <comdel/domain/library.h>
#include <comdel/domain/schema.h>
2022-03-29 19:31:45 +00:00
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
2022-04-07 22:21:23 +00:00
display::Library *libraryDisplay;
display::Schema *schemaDisplay;
std::optional<domain::Library> library = std::nullopt;
std::optional<domain::Schema> schema = std::nullopt;
std::vector<domain::FunctionSignature> signatures;
void setupUi();
void clear();
private slots:
void onLoadLibrary();
void onLoadSchema();
void onTestModal();
2022-03-29 19:31:45 +00:00
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H