-
Notifications
You must be signed in to change notification settings - Fork 0
/
YSImpactParameterSetter.h
62 lines (51 loc) · 1.81 KB
/
YSImpactParameterSetter.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
//
// YSImpactParameterSetter.h
// Widget for setting the collision mpact parameter
//
// Created by Yves Schutz on 26/02/14.
// Copyright (c) 2013 Yves Schutz. All rights reserved.
//
#ifndef YSIMPACTPARAMETERSETTER_H
#define YSIMPACTPARAMETERSETTER_H
#include <QObject>
#include <QWidget>
class QAction;
class QGroupBox;
class QLabel;
class QLineEdit;
class QMenu;
class QMenuBar;
class QPushButton;
class QSlider;
class YSCollision;
class YSMenu;
class YSOverlappingCircles;
class YSImpactParameterSetter : public QWidget
{
Q_OBJECT
public:
YSImpactParameterSetter(YSMenu * parent, YSCollision *);
virtual ~YSImpactParameterSetter();
private:
void CreateSBox();
void Draw();
void SetColl(YSCollision *coll) { mColl = coll; }
public slots:
void ReadSlider(int);
void SetSliderPos(const QString);
private:
qreal mbMin, mbMax; // min and max value of b
QSlider *mbSlider; // b slider
YSCollision *mColl; // colliding sytem
QLabel *mLCentral, *mLPeripheral; // Labels
QLabel *mLFermi; // Labels
YSMenu *mParent; // parent menu
YSOverlappingCircles *mOC; // 2 overlapping circles to illustrate b
QPushButton *mOk; // OK push button
QGroupBox *mSBox; // box with slider
QLineEdit *mSBoxValue; // box containing b value
qreal mScaleLow, mScaleHigh; // lower and upper limit for b
bool mSliderFlag; // flag to inhibit ReadSlider
qreal mSliderPos; // slider position
};
#endif // YSIMPACTPARAMETERSETTER_H