-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBitmapViewer.h
49 lines (32 loc) · 932 Bytes
/
BitmapViewer.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
#pragma once
#include <gtkmm.h>
#include <string>
#include "OptionalViewer.h"
#include "TextureViewer.h"
#include "libInfinite/Item.h"
#include "libInfinite/BitmapHandle.h"
class BitmapViewer : public OptionalViewer{
public:
BitmapViewer();
~BitmapViewer() override;
void setItem(Item* item);
std::string getName() { return std::string("Bitmap Viewer");};
private:
void updateStuff();
void updateMipmap();
BitmapHandle* handle;
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;
TextureViewer* viewerDrawingArea;
Gtk::Button* exportSingleDDS;
Gtk::Button* exportAllDDS;
Gtk::Button* exportSinglePNG;
Gtk::ComboBoxText* formatComboBox;
std::string runExportDialog(std::string fileName);
Item* item;
};