This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Neuro/gui/NeuroUI/neuroui.h

39 lines
633 B
C
Raw Normal View History

2015-10-24 12:44:33 +00:00
#ifndef NEUROUI_H
#define NEUROUI_H
#include <QMainWindow>
#include <memory>
#include "netlearner.h"
2015-10-24 12:44:33 +00:00
namespace Ui {
class NeuroUI;
2015-10-24 12:44:33 +00:00
}
class NeuroUI : public QMainWindow
{
Q_OBJECT
private:
std::unique_ptr<NetLearner> m_netLearner;
2015-11-16 16:49:40 +00:00
size_t m_logSize = 128;
2015-10-24 12:44:33 +00:00
public:
explicit NeuroUI(QWidget *parent = 0);
~NeuroUI();
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);
void setImage(const QImage &image);
2015-10-24 12:44:33 +00:00
private:
Ui::NeuroUI *ui;
};
#endif // NEUROUI_H