-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecondwindow.h
70 lines (57 loc) · 1.57 KB
/
secondwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef SECONDWINDOW_H
#define SECONDWINDOW_H
#include <QApplication>
#include <QDialog>
#include <QPushButton>
#include <QTextStream>
#include <QWidget>
#include <iostream>
#include <string.h>
#include "version.h"
#include "lampbutton.h"
#include "filehandling.h"
using namespace std;
namespace Ui {
class secondwindow;
}
class secondwindow : public QDialog
{
Q_OBJECT
private:
QString _QsHeight = "Height: ";
QString _QsWidth = "Width: ";
QString _QsNumberLayers = "Layers: ";
LampButton** _matrixButtonLamps;
int _currentLayer=1;
int _numberLayers=1;
int _height=1;
int _width=1;
Ui::secondwindow *ui;
public:
explicit secondwindow(QWidget *parent = nullptr);
~secondwindow();
void SetHeight(QString);
int GetHeight();
void SetWidth(QString);
int GetWidth();
void SetNumberLayers(QString);
int GetNumberLayers();
void ChangeCellCodedState();
void CreateMatrixLamps();
void CreateMatrixLamps(LampButton**);
void SetWindowDimensions();
void ClearLayer(int);
void Refresh();
void DeleteLastLayer();
void AddLastLayer();
void RehashCurrentLayer();
void ChangeLayerView(int);
private slots:
//void on_number_of_layers_Slider_valueChanged(int value);
void on_pushButton_of_save_clicked();
void on_pushButton_of_clear_clicked();
void on_pushButton_of_delete_clicked();
void on_pushButton_of_add_clicked();
void on_number_of_layers_Slider_valueChanged(int value);
};
#endif // SECONDWINDOW_H