forked from cetcjinjian/StockKLine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshowdetail.h
66 lines (52 loc) · 1.76 KB
/
showdetail.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
#ifndef SHOWDETAIL_H
#define SHOWDETAIL_H
#include <QWidget>
#include <QDockWidget>
#include <QDialog>
#include "klinegrid.h"
//class ShowDetail : public QDockWidget
class ShowDetail : public QDialog
{
Q_OBJECT
public:
explicit ShowDetail(QWidget* parent);
void virtual paintEvent(QPaintEvent* event);
void virtual drawBK();
void drawStr();
private:
QString time = "";
double currentPrice = 0;
double openingPrice = 0;
double highestBid = 0;
double lowestBid =0;
double closeingPrice =0;
double amountOfIncrease=0;
double amountOfAmplitude =0;
QString totalVolume = "";
QString totalAmount = "";
double turnoverRate = 0;
QColor timeColor ;
QColor currentPriceColor ;
QColor openingPriceColor ;
QColor highestBidColor ;
QColor lowestBidColor ;
QColor closeingPriceColor ;
QColor amountOfIncreaseColor;
QColor amountOfAmplitudeColor ;
QColor totalVolumeColor ;
QColor totalAmountColor ;
QColor turnoverRateColor ;
public :
void receiveParams(QString time,QColor timeColor,
double currentPrice,QColor currentPriceColor,
double openingPrice,QColor openingPriceColor,
double highestBid,QColor highestBidColor,
double lowestBid,QColor lowestBidColor,
double closeingPrice,QColor closeingPriceColor,
double amountOfIncrease,QColor amountOfIncreaseColor,
double amountOfAmplitude,QColor amountOfAmplitudeColor,
QString totalVolume,QColor totalVolumeColor,
QString totalAmount,QColor totalAmountColor,
double turnoverRate,QColor turnoverRateColor);
};
#endif // SHOWDETAIL_H