cleanup ui code
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
#ifndef MAIN_WINDOW_H
|
||||
#define MAIN_WINDOW_H
|
||||
|
||||
#include "mesh_viewer.h"
|
||||
#include "my_mesh.h"
|
||||
#include "double_input.h"
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QToolBar>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "mesh_viewer.h"
|
||||
#include "my_mesh.h"
|
||||
#include <QDoubleSpinBox>
|
||||
|
||||
|
||||
class MainWindow : public QMainWindow {
|
||||
@ -15,6 +17,8 @@ class MainWindow : public QMainWindow {
|
||||
QToolBar toolbar;
|
||||
QAction *open_action;
|
||||
QAction *save_action;
|
||||
DoubleInput *fill_holes_implicit_scale;
|
||||
DoubleInput *fill_holes_implicit_discr;
|
||||
|
||||
signals:
|
||||
void open(const QString &path);
|
||||
@ -30,6 +34,12 @@ public:
|
||||
MeshViewer mesh_viewer;
|
||||
|
||||
MainWindow(QWidget *parent=nullptr);
|
||||
double fillHolesImplicitScale() const {
|
||||
return fill_holes_implicit_scale->value();
|
||||
}
|
||||
double fillHolesImplicitDiscr() const {
|
||||
return fill_holes_implicit_discr->value();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user