45 lines
793 B
C++
45 lines
793 B
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(QTextStream &in);
|
|
void addNewPath();
|
|
void addNewStep();
|
|
void exportHTMLMap();
|
|
|
|
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
|