forked from ofZach/projectGeneratorSimple
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestApp.h
More file actions
89 lines (61 loc) · 1.9 KB
/
testApp.h
File metadata and controls
89 lines (61 loc) · 1.9 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#pragma once
//#define COMMAND_LINE_ONLY
#include "ofMain.h"
#include "CBLinuxProject.h"
#include "CBWinProject.h"
#include "visualStudioProject.h"
#include "xcodeProject.h"
#include <Poco/Path.h>
#include "ofxGui.h"
#include "ofAddon.h"
#include "ofxXmlSettings.h"
#include "textButton.h"
class testApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed (int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
string sketchName;
string sketchPath;
string addons;
string platform;
ofxPanel panelCoreAddons;
ofxPanel panelOtherAddons;
bool bHaveNonCoreAddons;
ofxPanel panelPlatforms;
ofxToggle osxToggle, iosToggle, wincbToggle, winvsToggle, linuxcbToggle, linux64cbToggle;
ofTrueTypeFont font;
ofTrueTypeFont titleFont;
ofTrueTypeFont secondFont;
int mode;
enum { MODE_NORMAL, MODE_ADDON, MODE_PLATFORM };
baseProject * project;
string setupForTarget(int targ);
void generateProject();
string addonsPath;
string status;
ofxXmlSettings XML;
string appToRoot;
string defaultLoc;
float uiLeftX;
textButton button;
textButton generateButton;
textButton addonButton;
vector < textButton > buttons;
bool isAddonCore(string addon);
bool bInited;
vector < string > coreAddons;
float statusSetTime;
float statusEnergy;
void setStatus(string newStatus);
ofImage logo;
};