Newer
Older
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtWidgets/qlabel.h>
#include <memory>
#include <machine.h>
#include <QWidget>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QWidget>
#include <qtmaterialflatbutton.h>
namespace Ui {
class MainWindow;
}
class OE_interfaceDisplay;
class OE_ui_stitchList;
explicit MainWindow(QWidget *parent = nullptr);
raoul
committed
void addTab();
OE_ui_stitchList *stitchesList;
QtMaterialIconButton* setIconButton(QString iconFile, const char * method);
QtMaterialFlatButton* setButton(QString name, const char * method);
void keyPressEvent(QKeyEvent* event);
void keyReleaseEvent(QKeyEvent* event);
raoul
committed
OE_root* getCurrentRoot();
raoul
committed
private:
void sendKeyPulse(Qt::Key key, Qt::KeyboardModifiers modifiers);
raoul
committed
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
void on_tabWidget_tabCloseRequested(int index);
void on_actionNew_triggered();
void on_actionClose_triggered();
void on_actionOpen_triggered();
void on_actionSave_triggered();
void on_actionLine_triggered();
void on_actionUndo_triggered();
void on_actionRedo_triggered();
void on_actionBirail_triggered();
void on_actionPattern1_triggered();
void on_actionPattern2_triggered();
void on_actionPattern3_triggered();
void on_actionPattern4_triggered();
void on_actionPattern5_triggered();
void on_actionPattern6_triggered();
void on_actionPattern7_triggered();
void on_actionPattern8_triggered();
void on_actionPattern9_triggered();
void on_tabWidget_currentChanged(int index);
void on_actionCloseCurve_triggered();
void on_actionReverse_curve_R_triggered();
void on_actionFill_triggered();
void on_actionConnectToMachine_triggered(bool checked);
void on_machineConnectionChanged(bool connected);
void on_machineStateChanged(Machine::SlaveInfo info);
void on_actionMachineRun_triggered();
void on_actionMachineLoad_triggered();
signals:
void machineConnectionChanged(bool connected);
raoul
committed
private:
QLabel status;
std::unique_ptr<Machine> machine;