diff --git a/src/serverlogging.cpp b/src/serverlogging.cpp index c2ae0547..4b8d08e4 100755 --- a/src/serverlogging.cpp +++ b/src/serverlogging.cpp @@ -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 ) { diff --git a/src/serverlogging.h b/src/serverlogging.h index 940b35ea..9bc6b4ec 100755 --- a/src/serverlogging.h +++ b/src/serverlogging.h @@ -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: