-
Notifications
You must be signed in to change notification settings - Fork 0
/
VartViewer.h
51 lines (34 loc) · 1005 Bytes
/
VartViewer.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
#pragma once
#include <gtkmm.h>
#include <string>
#include "OptionalViewer.h"
#include "VectorViewer.h"
#include "libInfinite/Item.h"
#include "libInfinite/tags/handles/vartHandle.h"
#include "libInfinite/tags/Tag.h"
#include "libInfinite/tags/TagManager.h"
class VartViewer : public OptionalViewer{
public:
VartViewer();
~VartViewer() override;
void setItem(Item* item);
std::string getName() { return std::string("Vector Viewer");};
private:
void updateStuff();
void updateMipmap();
vartHandle* tag;
Glib::RefPtr<Gtk::Builder> builder;
// Pointers to widgets that are needed multiple times
Gtk::SpinButton* frameNumberButton;
Gtk::ComboBoxText* mipmapComboBox;
Gtk::Label* dataTypeLabel;
Gtk::Label* maxSizeLabel;
Gtk::Label* currentSizeLabel;
VectorViewer* viewerDrawingArea;
Gtk::Button* exportSingleDDS;
Gtk::Button* exportAllDDS;
Gtk::Button* exportSinglePNG;
Gtk::ComboBoxText* formatComboBox;
std::string runExportDialog(std::string fileName);
Item* item;
};