forked from pioneerspacesim/pioneer
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SystemInfoView.h
47 lines (43 loc) · 1.23 KB
/
SystemInfoView.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
#ifndef _SYSTEMINFOVIEW_H
#define _SYSTEMINFOVIEW_H
#include "libs.h"
#include "gui/Gui.h"
#include "View.h"
#include "View.h"
#include <vector>
class StarSystem;
class SBody;
class SystemInfoView: public View {
public:
SystemInfoView();
virtual void Update();
virtual void Draw3D();
virtual void OnSwitchTo();
void NextPage();
private:
class BodyIcon : public Gui::ImageRadioButton {
public:
BodyIcon(const char* img);
virtual void Draw();
virtual void OnActivate();
};
void SystemChanged(StarSystem *s);
void UpdateEconomyTab();
void OnBodyViewed(SBody *b);
void OnBodySelected(SBody *b);
void OnClickBackground(Gui::MouseButtonEvent *e);
void PutBodies(SBody *body, Gui::Fixed *container, int dir, float pos[2], int &majorBodies, int &starports, float &prevSize);
void UpdateIconSelections();
Gui::VBox *m_infoBox;
Gui::Label *m_econInfo;
Gui::Label *m_econMajImport, *m_econMinImport;
Gui::Label *m_econMajExport, *m_econMinExport;
Gui::Label *m_econIllegal;
Gui::Fixed *m_sbodyInfoTab, *m_econInfoTab;
Gui::Tabbed *m_tabs;
StarSystem *m_system;
bool m_refresh;
//map is not enough to associate icons as each tab has their own
std::vector<std::pair<std::string, BodyIcon*> > m_bodyIcons;
};
#endif /* _SYSTEMINFOVIEW_H */