-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloadingframe.hpp
More file actions
51 lines (40 loc) · 1.03 KB
/
loadingframe.hpp
File metadata and controls
51 lines (40 loc) · 1.03 KB
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
#ifndef LOADINGFRAME_HPP
#define LOADINGFRAME_HPP
#include <wx/wx.h>
#include <wx/animate.h>
#include <vector>
#include "loadingfunction.hpp"
#include "mainframe.hpp"
#include <wx/zipstrm.h>
#include <wx/wfstream.h>
class LoadingFrame : public wxFrame {
public:
LoadingFrame(MainFrame* mainframe);
~LoadingFrame();
void receiveTokens(unsigned int number);
//void triggerNext();
wxZipInputStream* getZip();
bool openZipEntry(wxString name);
private:
void onPaint(wxPaintEvent& event);
void onTimer(wxTimerEvent& event);
void onClose(wxCloseEvent& event);
void startLoading();
///Call this in Constructor
void connectLoadingFunction(LoadingFunction* func);
wxTimer timer;
unsigned int totalTokens;
unsigned int currentTokens;
std::vector<LoadingFunction*> functions;
wxBitmap background;
wxBitmap loadingBar;
wxAnimation animation;
bool loading;
int aniCounter;
int numAniBmps;
MainFrame* mainframe;
wxFileInputStream* input;
wxZipInputStream* zip;
std::vector<wxZipEntry*> zipEntries;
};
#endif