Files
SAE-terra-aventura/mainwindow.h
T
2025-06-20 10:58:40 +02:00

52 lines
1.0 KiB
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#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();
QString getCurrentFile() const;
void setCurrentFile(const QString &newCurrentFile);
QList<Path *> getPath() const;
void setPath(const QList<Path *> &newPath);
Path *getCurrentPath() const;
void setCurrentPath(Path *newCurrentPath);
private slots:
void on_pushButton_clicked();
void on_actionOpen_triggered();
void on_toolButton_clicked();
private:
Ui::MainWindow *ui;
QString currentFile;
bool textChanged;
QList<Path*> path;
Path* currentPath;
void loadImage(QString fileName);
};
#endif // MAINWINDOW_H