2015-10-24 12:44:33 +00:00
|
|
|
#ifndef NEUROUI_H
|
|
|
|
#define NEUROUI_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
2015-10-24 16:03:07 +00:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "netlearner.h"
|
|
|
|
|
2015-10-24 12:44:33 +00:00
|
|
|
namespace Ui {
|
2015-10-24 16:03:07 +00:00
|
|
|
class NeuroUI;
|
2015-10-24 12:44:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class NeuroUI : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2015-10-24 16:03:07 +00:00
|
|
|
private:
|
|
|
|
std::unique_ptr<NetLearner> m_netLearner;
|
|
|
|
|
2015-10-24 12:44:33 +00:00
|
|
|
public:
|
|
|
|
explicit NeuroUI(QWidget *parent = 0);
|
|
|
|
~NeuroUI();
|
|
|
|
|
2015-10-24 16:03:07 +00:00
|
|
|
private slots:
|
|
|
|
void on_runButton_clicked();
|
|
|
|
void logMessage(const QString &logMessage);
|
|
|
|
void netLearnerStarted();
|
|
|
|
void netLearnerFinished();
|
2015-10-25 08:51:09 +00:00
|
|
|
void progress(double progress);
|
2015-10-24 16:03:07 +00:00
|
|
|
|
2015-10-24 12:44:33 +00:00
|
|
|
private:
|
|
|
|
Ui::NeuroUI *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NEUROUI_H
|