blob: 044311e0d07468ee642933f70c3465c938160a61 (
plain) (
blame)
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
|
#ifndef DEFAULTDAMAGEPANEL_H
#define DEFAULTDAMAGEPANEL_H
#include <QtWidgets/QWidget>
#include <QtWidgets/QComboBox>
#include "BlastSceneTree.h"
namespace Ui {
class DefaultDamagePanel;
}
class DefaultDamagePanel : public QWidget, public ISceneObserver
{
Q_OBJECT
public:
explicit DefaultDamagePanel(QWidget *parent = 0);
~DefaultDamagePanel();
void updateValues();
static DefaultDamagePanel* ins();
QComboBox* getDamageProfile();
void setUpdateData(bool bUpdateData);
virtual void dataSelected(std::vector<BlastNode*> selections);
private slots:
void on_spinBoxDamageAmount_valueChanged(double arg1);
void on_spinBoxExplosiveImpulse_valueChanged(double arg1);
void on_spinBoxDamageRadius_valueChanged(double arg1);
void on_spinBoxStressDamageForce_valueChanged(double arg1);
void on_comboBoxDamageProfile_currentIndexChanged(int index);
void on_checkBoxDamageContinuously_stateChanged(int arg1);
private:
Ui::DefaultDamagePanel *ui;
bool _updateData;
std::vector<BPPAsset*> _selectedAssets;
};
#endif // DEFAULTDAMAGEPANEL_H
|