-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
guipanel.h
118 lines (91 loc) · 2.74 KB
/
guipanel.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* OpenBRF -- by marco tarini. Provided under GNU General Public License */
#ifndef GUIPANEL_H
#define GUIPANEL_H
#include <QWidget>
#include <QModelIndexList>
#include <map>
#include "ddsData.h"
class BrfData;
class IniData;
class BrfAnimation;
class QLineEdit;
class BrfSkeleton;
namespace Ui {
class GuiPanel;
}
typedef std::map< std::string, std::string > MapSS;
class GuiPanel : public QWidget {
Q_OBJECT
public:
GuiPanel(QWidget *parent, IniData &inidata);
~GuiPanel();
BrfData* data;
BrfData* reference;
BrfData* hitBoxes;
IniData &inidata;
void setReference(BrfData*);
void setAnimation(const BrfAnimation* a);
void setMeasuringTool(int toolNo); // -1:none, 0:ruler, 1:floating probe
int getCurrentSubpieceIndex(int brfObjectType) const;
int getCurrentSkeletonIndex() const;
void setEditingVertexData(bool mode);
void setIniData(const IniData &inidata);
enum{DIFFUSEA, DIFFUSEB, BUMP, ENVIRO, SPECULAR, SHADERNAME } curMaterialFocus;
QLineEdit* materialLeFocus();
protected:
//MapSS *mapMT;
void changeEvent(QEvent *e);
//enum{MAXSEL=500};
int _selectedIndex;
// bool collisionBodyHasMesh;
bool collisionBodyHasSkel;
BrfSkeleton *skel; // for the names
public:
Ui::GuiPanel *ui;
int displaying;
int frameTime[10000]; // how elegant is that? ;)
QAction *textureAccessDup;
QAction *textureAccessDel;
QAction *textureAccessAdd;
QAction *bodyPartDup;
QAction *bodyPartDel;
QAction *bodyPartAdd;
QAction *quickToggleHideSkinAct;
signals:
void followLink();
void selectedSubPiece(int);
//void dataMaterialChanged();
void editHitbox(int whichAttr, int dir);
void notifyFloatingProbePos(float x, float y, float z);
private slots:
void on_lvBodyPart_customContextMenuRequested(QPoint pos);
void on_lvTextAcc_customContextMenuRequested(QPoint pos);
void updateVisibility();
void setRulerLength(int l);
void setTextureData(DdsData d);
void onEditHitbox(int);
void onEditFloatingProbePos();
public slots:
void quickToggleHideSkin();
void updateHighlight();
void updateShaderTextaccSize();
void updateBodyPartSize();
void updateShaderTextaccData();
void updateBodyPartData();
void updateSelectedBone();
void setSelection(const QModelIndexList &, int k);
void updateFrameNumber(int i);
void updateSingleMaterial(QString st);
void updateRefAnimation();
void setRefAnimation(int i);
void setHbEditVisible(bool);
void showMaterialDiffuseA();
void showMaterialDiffuseB();
void showMaterialBump();
void showMaterialEnviro();
void showMaterialSpecular();
void showMaterialShader();
void setNavigationStackDepth(int k);
void setFloatingProbePos(float x, float y, float z);
};
#endif // GUIPANEL_H