#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include "path.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); void updatePathView(); void updateStepView(size_t num); void onTextChanged(); void loadPath(); void addNewPath(); void addNewStep(); void exportHTMLMap(int index); void loadAndExportPaths(); QString getCurrentFile() const; void setCurrentFile(const QString &newCurrentFile); QList getPath() const; void setPath(const QList &newPath); Path *getCurrentPath() const; void setCurrentPath(Path *newCurrentPath); int getIndexPath() const; void setIndexPath(int newIndexPath); private slots: void on_pushButton_clicked(); void on_actionOpen_triggered(); void on_toolButton_clicked(); private: Ui::MainWindow *ui; QString currentFile; static int indexPath; bool textChanged; QList path; Path* currentPath; void loadImage(QString fileName); }; #endif // MAINWINDOW_H