-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbufferpopup.h
60 lines (51 loc) · 1.3 KB
/
bufferpopup.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
#ifndef BUFFERPOPUP_H
#define BUFFERPOPUP_H
#include <QWidget>
#include <QDialog>
#include <QGridLayout>
#include <QLabel>
#include <QSpinBox>
#include <QComboBox>
#include <QLineEdit>
#include <QCheckBox>
#include <QDialogButtonBox>
#include <QEvent>
#include <QFileDialog>
#include <QtGui/qopengl.h>
#include "cuglbuffer.h"
class BufferPopup : public QDialog
{
Q_OBJECT
public:
BufferPopup(QWidget* parent);
BufferPopup(QWidget* parent, CUGLBuffer *b);
~BufferPopup();
private:
void ImageGUI(bool b);
void CustomDataClicked();
void DisableBufferBoxes(bool b);
bool Validation();
QWidget* parentWidget;
QGridLayout* mainLayout;
QHBoxLayout* checkboxLayout;
QLabel *nameLabel, *targetLabel,
*capacityLabel, *dataLabel,
*usageLabel, *attribNameLabel,
*attribCapacityLabel, *typeLabel,
*normalisedLabel, *perInstanceLabel;
//*handledLabel;
QLineEdit *nameBox, *dataBox, *attribNameBox;
QSpinBox *capacityBox, *attribCapacityBox;
QComboBox *targetBox, *dataPickerBox, *textureBox, *usageBox, *typeBox;
QCheckBox* normalisedBox, *perInstanceBox;
QDialogButtonBox* buttons;
bool append;
CUGLBuffer *appBuf;
private slots:
bool eventFilter(QObject* object, QEvent* event);
void TargetChanged(int i);
void DataChanged(int i);
void TextureChanged(int i);
void Save();
};
#endif // BUFFERPOPUP_H