some more graph stuff
This commit is contained in:
parent
e5529d122f
commit
989b6ee52b
2 changed files with 46 additions and 0 deletions
|
@ -26,6 +26,27 @@
|
|||
|
||||
|
||||
/* Implementation *************************************************************/
|
||||
CHistoryGraph::CHistoryGraph() :
|
||||
iYAxisStart ( 0 ),
|
||||
iYAxisEnd ( 24 ),
|
||||
iNumTicksX ( 9 ),
|
||||
iNumTicksY ( 5 ),
|
||||
iPlotWidth ( 500 ),
|
||||
iPlotHeight ( 500 ),
|
||||
iGridFrameOffset ( 10 ),
|
||||
iTextOffsetToGrid ( 3 ),
|
||||
iYAxisTextHeight ( 20 ),
|
||||
AxisFont ( "Arial", 10 ),
|
||||
PlotBackgroundColor ( Qt::white ), // white background
|
||||
PlotFrameColor ( Qt::black ), // black frame
|
||||
PlotGridColor ( Qt::gray ), // gray grid
|
||||
PlotTextColor ( Qt::black ), // black text
|
||||
PlotMarkerNewColor ( Qt::blue ), // blue marker for new connection
|
||||
PlotMarkerStopColor ( Qt::red ) // red marker server stop
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
CServerLogging::CServerLogging() :
|
||||
bDoLogging ( false ), File ( DEFAULT_LOG_FILE_NAME )
|
||||
{
|
||||
|
|
|
@ -35,6 +35,31 @@
|
|||
|
||||
|
||||
/* Classes ********************************************************************/
|
||||
class CHistoryGraph
|
||||
{
|
||||
public:
|
||||
CHistoryGraph();
|
||||
|
||||
protected:
|
||||
int iYAxisStart;
|
||||
int iYAxisEnd;
|
||||
int iNumTicksX;
|
||||
int iNumTicksY;
|
||||
int iPlotWidth;
|
||||
int iPlotHeight;
|
||||
int iGridFrameOffset;
|
||||
int iTextOffsetToGrid;
|
||||
int iYAxisTextHeight;
|
||||
QFont AxisFont;
|
||||
QColor PlotBackgroundColor;
|
||||
QColor PlotFrameColor;
|
||||
QColor PlotGridColor;
|
||||
QColor PlotTextColor;
|
||||
QColor PlotMarkerNewColor;
|
||||
QColor PlotMarkerStopColor;
|
||||
};
|
||||
|
||||
|
||||
class CServerLogging
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue