#include <XABSL2ProfilerDlgBar.h>
Inheritance diagram for CXABSL2ProfilerDlgBar:
Public Types | |
normal | |
bold | |
italic | |
IDD = IDD_DIALOG_BAR_XABSL2PROFILER | |
enum | FontType { normal, bold, italic } |
enum | { IDD = IDD_DIALOG_BAR_XABSL2PROFILER } |
Public Member Functions | |
CXABSL2ProfilerDlgBar (CWnd *pParent=NULL) | |
~CXABSL2ProfilerDlgBar () | |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
afx_msg void | OnXabsl2profilerLoadlogButton () |
afx_msg void | OnXabsl2profilerExportxmlButton () |
afx_msg void | OnChangeXabsl2profilerFramenumberEdit () |
afx_msg void | OnPaint () |
afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnContextMenu (CWnd *pWnd, CPoint point) |
Protected Attributes | |
UINT | m_showParams |
COLORREF | changedOptionColor |
COLORREF | changedStateColor |
COLORREF | changedParametersColor |
COLORREF | changedParameterTextColor |
COLORREF | standardTextColor |
COLORREF | standardBackgroundColor |
Private Member Functions | |
void | drawText (COLORREF color, FontType fontType, int line, int column, CString string) |
void | drawRectangle (COLORREF color, int line, int column) |
void | drawHorizontalLines () |
void | drawVerticalLines () |
void | changeColor (COLORREF *colorToChange) |
void | createFonts () |
void | deleteFonts () |
void | OnSize (UINT nType, int cx, int cy) |
void | calcLeftOfColumnPosition () |
void | calcLeftOfColumnWidth () |
void | updateLeftOfColumnWidth (int, int) |
void | updateLeftOfColumnWidth () |
void | setSliders () |
void | setNrOfColumns (int size) |
Private Attributes | |
CEdit | m_ParamFramenumberEdit |
CSliderCtrl | m_SliderFrameNumber |
CSliderCtrl | m_SliderColumns |
CMenu | m_menuPopup |
GTXabsl2Profiler | profiler |
int | currentlogentryindex |
CRect | paintRect |
CRect | currentRect |
CDC | dcOffScreen |
CBitmap * | bmpOffScreen |
CBitmap * | oldBitmap |
int | admOffset |
BOOL | m_LeftButtonDown |
int | m_LeftDownPos |
int | m_SelectedColumn |
CArray< int, int > | horizontalLineList |
CArray< VerticalLine, VerticalLine > | verticalLineList |
CFont * | oldFont |
CFont | normalFont |
int | numberOfColumns |
int * | leftOfColumnWidth |
int * | leftOfColumnPosition |
int | showParamsForEntry |
int | minDistanceBetweenColumns |
int | numberOfLines |
int | nrofdispayableOptionGraphs |
int | linesInGrid |
int | lineHeight |
int | horizontalTextOffset |
int | horizontalSpacing |
int | columnsOffset |
Classes | |
struct | VerticalLine |
Definition at line 22 of file XABSL2ProfilerDlgBar.h.
anonymous enum |
CXABSL2ProfilerDlgBar::CXABSL2ProfilerDlgBar | ( | CWnd * | pParent = NULL |
) |
Definition at line 17 of file XABSL2ProfilerDlgBar.cpp.
References bmpOffScreen, changedOptionColor, changedParametersColor, changedParameterTextColor, changedStateColor, horizontalSpacing, lineHeight, oldBitmap, setNrOfColumns(), standardBackgroundColor, and standardTextColor.
CXABSL2ProfilerDlgBar::~CXABSL2ProfilerDlgBar | ( | ) |
Definition at line 41 of file XABSL2ProfilerDlgBar.cpp.
References bmpOffScreen, leftOfColumnPosition, and leftOfColumnWidth.
void CXABSL2ProfilerDlgBar::calcLeftOfColumnPosition | ( | ) | [private] |
helper
Definition at line 643 of file XABSL2ProfilerDlgBar.cpp.
References ASSERT, currentRect, leftOfColumnPosition, leftOfColumnWidth, and numberOfColumns.
Referenced by OnSize(), and setNrOfColumns().
void CXABSL2ProfilerDlgBar::calcLeftOfColumnWidth | ( | ) | [private] |
Definition at line 654 of file XABSL2ProfilerDlgBar.cpp.
References ASSERT, currentRect, leftOfColumnWidth, and numberOfColumns.
Referenced by setNrOfColumns().
void CXABSL2ProfilerDlgBar::changeColor | ( | COLORREF * | colorToChange | ) | [private] |
void CXABSL2ProfilerDlgBar::createFonts | ( | ) | [private] |
creates some Fonts
Definition at line 587 of file XABSL2ProfilerDlgBar.cpp.
References dcOffScreen, FALSE, normalFont, and oldFont.
Referenced by OnPaint().
void CXABSL2ProfilerDlgBar::deleteFonts | ( | ) | [private] |
deletes the fonts
Definition at line 604 of file XABSL2ProfilerDlgBar.cpp.
References dcOffScreen, normalFont, and oldFont.
Referenced by OnPaint().
void CXABSL2ProfilerDlgBar::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 53 of file XABSL2ProfilerDlgBar.cpp.
References IDC_XABSL2PROFILER_FRAMENUMBER_EDIT, IDC_XABSL2PROFILER_SLIDER, IDC_XABSL2PROFILER_SLIDER2, m_ParamFramenumberEdit, m_SliderColumns, and m_SliderFrameNumber.
void CXABSL2ProfilerDlgBar::drawHorizontalLines | ( | ) | [private] |
Definition at line 542 of file XABSL2ProfilerDlgBar.cpp.
References currentRect, dcOffScreen, horizontalLineList, and lineHeight.
Referenced by OnPaint().
void CXABSL2ProfilerDlgBar::drawRectangle | ( | COLORREF | color, | |
int | line, | |||
int | column | |||
) | [private] |
Definition at line 576 of file XABSL2ProfilerDlgBar.cpp.
References currentRect, dcOffScreen, leftOfColumnPosition, lineHeight, linesInGrid, and numberOfColumns.
Referenced by OnPaint().
void CXABSL2ProfilerDlgBar::drawText | ( | COLORREF | color, | |
FontType | fontType, | |||
int | line, | |||
int | column, | |||
CString | string | |||
) | [private] |
Draws a text to dcOffScreen.
color | The color the text is drawn with. | |
fontType | The type of the font. (normal, bold, italic) | |
line | The line to paint to. | |
column | The column to paint to. | |
string | The text to paint. |
Definition at line 527 of file XABSL2ProfilerDlgBar.cpp.
Referenced by OnPaint().
void CXABSL2ProfilerDlgBar::drawVerticalLines | ( | ) | [private] |
Definition at line 555 of file XABSL2ProfilerDlgBar.cpp.
References dcOffScreen, leftOfColumnPosition, lineHeight, and verticalLineList.
Referenced by OnPaint().
void CXABSL2ProfilerDlgBar::OnChangeXabsl2profilerFramenumberEdit | ( | ) | [protected] |
Definition at line 185 of file XABSL2ProfilerDlgBar.cpp.
References currentlogentryindex, GTXabsl2Profiler::getIndex(), m_ParamFramenumberEdit, and profiler.
void CXABSL2ProfilerDlgBar::OnContextMenu | ( | CWnd * | pWnd, | |
CPoint | point | |||
) | [protected] |
Definition at line 462 of file XABSL2ProfilerDlgBar.cpp.
References changeColor(), changedOptionColor, changedParametersColor, changedParameterTextColor, changedStateColor, IDC_XABSL2PROFILER_CHANGECOLORS_CHANGEDOPTIONS, IDC_XABSL2PROFILER_CHANGECOLORS_CHANGEDPARAMETERS, IDC_XABSL2PROFILER_CHANGECOLORS_CHANGEDPARAMETERTEXT, IDC_XABSL2PROFILER_CHANGECOLORS_CHANGEDSTATES, IDC_XABSL2PROFILER_CHANGECOLORS_STANDARDBACKGROUNDCOLOR, IDC_XABSL2PROFILER_CHANGECOLORS_STANDARDTEXTCOLOR, IDC_XABSL2PROFILER_SHOWPARAMETERS_ALL, IDC_XABSL2PROFILER_SHOWPARAMETERS_NONE, IDC_XABSL2PROFILER_SHOWPARAMETERS_ONLYSELECTED, m_menuPopup, m_showParams, standardBackgroundColor, and standardTextColor.
void CXABSL2ProfilerDlgBar::OnHScroll | ( | UINT | nSBCode, | |
UINT | nPos, | |||
CScrollBar * | pScrollBar | |||
) | [protected] |
Definition at line 444 of file XABSL2ProfilerDlgBar.cpp.
References columnsOffset, currentlogentryindex, FALSE, GTXabsl2Profiler::getMaxDepth(), m_SliderColumns, m_SliderFrameNumber, profiler, setNrOfColumns(), and setSliders().
BOOL CXABSL2ProfilerDlgBar::OnInitDialog | ( | ) | [protected, virtual] |
Reimplemented from CDynamicDialog.
Definition at line 80 of file XABSL2ProfilerDlgBar.cpp.
References IDP_XABSL2PROFILER, CDynamicDialog::OnInitDialog(), and TRUE.
void CXABSL2ProfilerDlgBar::OnLButtonDown | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 320 of file XABSL2ProfilerDlgBar.cpp.
References int(), leftOfColumnPosition, leftOfColumnWidth, m_LeftButtonDown, m_LeftDownPos, m_SelectedColumn, and numberOfColumns.
void CXABSL2ProfilerDlgBar::OnLButtonUp | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
void CXABSL2ProfilerDlgBar::OnMouseMove | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 349 of file XABSL2ProfilerDlgBar.cpp.
References admOffset, currentRect, leftOfColumnPosition, lineHeight, linesInGrid, m_LeftButtonDown, m_LeftDownPos, m_SelectedColumn, minDistanceBetweenColumns, numberOfColumns, paintRect, showParamsForEntry, and updateLeftOfColumnWidth().
void CXABSL2ProfilerDlgBar::OnPaint | ( | ) | [protected] |
Definition at line 199 of file XABSL2ProfilerDlgBar.cpp.
References changedOptionColor, changedParametersColor, changedParameterTextColor, changedStateColor, columnsOffset, createFonts(), currentlogentryindex, currentRect, dcOffScreen, deleteFonts(), drawHorizontalLines(), drawRectangle(), drawText(), drawVerticalLines(), GTXabsl2LogEntry::framenumber, GTXabsl2Profiler::getActiveOption(), GTXabsl2Profiler::getNameTableEntry(), horizontalLineList, IDC_XABSL2PROFILER_SHOWPARAMETERS_ALL, IDC_XABSL2PROFILER_SHOWPARAMETERS_ONLYSELECTED, int(), m_showParams, normal, nrofdispayableOptionGraphs, numberOfColumns, GTXabsl2ProfilerNameTableEntry::optionName, GTXabsl2ActiveOption::optionNumber, paintRect, GTXabsl2ProfilerNameTableEntry::parameters, GTXabsl2ActiveOption::parameters, profiler, showParamsForEntry, GTXabsl2Profiler::size(), standardBackgroundColor, standardTextColor, GTXabsl2ActiveOption::stateNumber, GTXabsl2ProfilerNameTableEntry::states, and verticalLineList.
void CXABSL2ProfilerDlgBar::OnSize | ( | UINT | nType, | |
int | cx, | |||
int | cy | |||
) | [private] |
Reimplemented from CDynamicDialog.
Definition at line 403 of file XABSL2ProfilerDlgBar.cpp.
References admOffset, bmpOffScreen, calcLeftOfColumnPosition(), currentRect, dcOffScreen, int(), lineHeight, linesInGrid, nrofdispayableOptionGraphs, numberOfLines, oldBitmap, CDynamicDialog::OnSize(), paintRect, and updateLeftOfColumnWidth().
void CXABSL2ProfilerDlgBar::OnXabsl2profilerExportxmlButton | ( | ) | [protected] |
Definition at line 157 of file XABSL2ProfilerDlgBar.cpp.
References GTXabsl2Profiler::exportXMLFile(), File::getGTDir(), and profiler.
void CXABSL2ProfilerDlgBar::OnXabsl2profilerLoadlogButton | ( | ) | [protected] |
Definition at line 90 of file XABSL2ProfilerDlgBar.cpp.
References currentlogentryindex, File::getGTDir(), GTXabsl2Profiler::getMaxDepth(), GTXabsl2Profiler::importLogFile(), m_ParamFramenumberEdit, m_SliderColumns, m_SliderFrameNumber, profiler, setNrOfColumns(), and GTXabsl2Profiler::size().
void CXABSL2ProfilerDlgBar::setNrOfColumns | ( | int | size | ) | [private] |
Definition at line 627 of file XABSL2ProfilerDlgBar.cpp.
References calcLeftOfColumnPosition(), calcLeftOfColumnWidth(), leftOfColumnPosition, leftOfColumnWidth, and numberOfColumns.
Referenced by CXABSL2ProfilerDlgBar(), OnHScroll(), and OnXabsl2profilerLoadlogButton().
void CXABSL2ProfilerDlgBar::setSliders | ( | ) | [private] |
Definition at line 614 of file XABSL2ProfilerDlgBar.cpp.
References currentlogentryindex, m_ParamFramenumberEdit, and profiler.
Referenced by OnHScroll().
void CXABSL2ProfilerDlgBar::updateLeftOfColumnWidth | ( | ) | [private] |
Definition at line 690 of file XABSL2ProfilerDlgBar.cpp.
References currentRect, leftOfColumnPosition, leftOfColumnWidth, and numberOfColumns.
Referenced by OnMouseMove(), and OnSize().
void CXABSL2ProfilerDlgBar::updateLeftOfColumnWidth | ( | int | , | |
int | ||||
) | [private] |
Definition at line 661 of file XABSL2ProfilerDlgBar.cpp.
References ASSERT, leftOfColumnWidth, minDistanceBetweenColumns, and numberOfColumns.
int CXABSL2ProfilerDlgBar::admOffset [private] |
CBitmap* CXABSL2ProfilerDlgBar::bmpOffScreen [private] |
A bitmap that is selected by dcOffScreen
Definition at line 91 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), OnSize(), and ~CXABSL2ProfilerDlgBar().
COLORREF CXABSL2ProfilerDlgBar::changedOptionColor [protected] |
Definition at line 74 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), OnContextMenu(), and OnPaint().
COLORREF CXABSL2ProfilerDlgBar::changedParametersColor [protected] |
Definition at line 76 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), OnContextMenu(), and OnPaint().
COLORREF CXABSL2ProfilerDlgBar::changedParameterTextColor [protected] |
Definition at line 77 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), OnContextMenu(), and OnPaint().
COLORREF CXABSL2ProfilerDlgBar::changedStateColor [protected] |
Definition at line 75 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), OnContextMenu(), and OnPaint().
int CXABSL2ProfilerDlgBar::columnsOffset [private] |
int CXABSL2ProfilerDlgBar::currentlogentryindex [private] |
Definition at line 32 of file XABSL2ProfilerDlgBar.h.
Referenced by OnChangeXabsl2profilerFramenumberEdit(), OnHScroll(), OnPaint(), OnXabsl2profilerLoadlogButton(), and setSliders().
CRect CXABSL2ProfilerDlgBar::currentRect [private] |
the rectangle in the bitmap for painting
Definition at line 85 of file XABSL2ProfilerDlgBar.h.
Referenced by calcLeftOfColumnPosition(), calcLeftOfColumnWidth(), drawHorizontalLines(), drawRectangle(), OnMouseMove(), OnPaint(), OnSize(), and updateLeftOfColumnWidth().
CDC CXABSL2ProfilerDlgBar::dcOffScreen [private] |
An off screen device context for painting
Definition at line 88 of file XABSL2ProfilerDlgBar.h.
Referenced by createFonts(), deleteFonts(), drawHorizontalLines(), drawRectangle(), drawVerticalLines(), OnPaint(), and OnSize().
CArray<int,int> CXABSL2ProfilerDlgBar::horizontalLineList [private] |
Definition at line 118 of file XABSL2ProfilerDlgBar.h.
Referenced by drawHorizontalLines(), and OnPaint().
int CXABSL2ProfilerDlgBar::horizontalSpacing [private] |
The horizontal spacing of the drawing area.
Definition at line 180 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar().
int CXABSL2ProfilerDlgBar::horizontalTextOffset [private] |
Definition at line 177 of file XABSL2ProfilerDlgBar.h.
int* CXABSL2ProfilerDlgBar::leftOfColumnPosition [private] |
The position of the columns calculated by OnSize
Definition at line 162 of file XABSL2ProfilerDlgBar.h.
Referenced by calcLeftOfColumnPosition(), drawRectangle(), drawVerticalLines(), OnLButtonDown(), OnMouseMove(), setNrOfColumns(), updateLeftOfColumnWidth(), and ~CXABSL2ProfilerDlgBar().
int* CXABSL2ProfilerDlgBar::leftOfColumnWidth [private] |
The relative postion of the columns
Definition at line 159 of file XABSL2ProfilerDlgBar.h.
Referenced by calcLeftOfColumnPosition(), calcLeftOfColumnWidth(), OnLButtonDown(), setNrOfColumns(), updateLeftOfColumnWidth(), and ~CXABSL2ProfilerDlgBar().
int CXABSL2ProfilerDlgBar::lineHeight [private] |
The heiht of a single line
Definition at line 175 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), drawHorizontalLines(), drawRectangle(), drawVerticalLines(), OnMouseMove(), and OnSize().
int CXABSL2ProfilerDlgBar::linesInGrid [private] |
Definition at line 172 of file XABSL2ProfilerDlgBar.h.
Referenced by drawRectangle(), OnMouseMove(), and OnSize().
BOOL CXABSL2ProfilerDlgBar::m_LeftButtonDown [private] |
Definition at line 101 of file XABSL2ProfilerDlgBar.h.
Referenced by OnLButtonDown(), OnLButtonUp(), and OnMouseMove().
int CXABSL2ProfilerDlgBar::m_LeftDownPos [private] |
Definition at line 102 of file XABSL2ProfilerDlgBar.h.
Referenced by OnLButtonDown(), and OnMouseMove().
CMenu CXABSL2ProfilerDlgBar::m_menuPopup [private] |
CEdit CXABSL2ProfilerDlgBar::m_ParamFramenumberEdit [private] |
Definition at line 26 of file XABSL2ProfilerDlgBar.h.
Referenced by DoDataExchange(), OnChangeXabsl2profilerFramenumberEdit(), OnXabsl2profilerLoadlogButton(), and setSliders().
int CXABSL2ProfilerDlgBar::m_SelectedColumn [private] |
Definition at line 103 of file XABSL2ProfilerDlgBar.h.
Referenced by OnLButtonDown(), and OnMouseMove().
UINT CXABSL2ProfilerDlgBar::m_showParams [protected] |
CSliderCtrl CXABSL2ProfilerDlgBar::m_SliderColumns [private] |
Definition at line 28 of file XABSL2ProfilerDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and OnXabsl2profilerLoadlogButton().
CSliderCtrl CXABSL2ProfilerDlgBar::m_SliderFrameNumber [private] |
Definition at line 27 of file XABSL2ProfilerDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and OnXabsl2profilerLoadlogButton().
int CXABSL2ProfilerDlgBar::minDistanceBetweenColumns [private] |
Definition at line 166 of file XABSL2ProfilerDlgBar.h.
Referenced by OnMouseMove(), and updateLeftOfColumnWidth().
CFont CXABSL2ProfilerDlgBar::normalFont [private] |
Definition at line 145 of file XABSL2ProfilerDlgBar.h.
Referenced by createFonts(), and deleteFonts().
int CXABSL2ProfilerDlgBar::nrofdispayableOptionGraphs [private] |
int CXABSL2ProfilerDlgBar::numberOfColumns [private] |
Definition at line 154 of file XABSL2ProfilerDlgBar.h.
Referenced by calcLeftOfColumnPosition(), calcLeftOfColumnWidth(), drawRectangle(), OnLButtonDown(), OnMouseMove(), OnPaint(), setNrOfColumns(), and updateLeftOfColumnWidth().
int CXABSL2ProfilerDlgBar::numberOfLines [private] |
The number of lines (calculated in OnSize)
Definition at line 169 of file XABSL2ProfilerDlgBar.h.
Referenced by OnSize().
CBitmap* CXABSL2ProfilerDlgBar::oldBitmap [private] |
The old bitmap that is selected by dcOffScreen at the end to enable the destruction of bmpOffScreen.
Definition at line 96 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), and OnSize().
CFont* CXABSL2ProfilerDlgBar::oldFont [private] |
The old font is selected to the dcOffScreen at the end to enable the destruction of the fonts created by create fonts.
Definition at line 142 of file XABSL2ProfilerDlgBar.h.
Referenced by createFonts(), and deleteFonts().
CRect CXABSL2ProfilerDlgBar::paintRect [private] |
the rectangle in the dialog for painting
Definition at line 82 of file XABSL2ProfilerDlgBar.h.
Referenced by OnMouseMove(), OnPaint(), and OnSize().
Definition at line 31 of file XABSL2ProfilerDlgBar.h.
Referenced by OnChangeXabsl2profilerFramenumberEdit(), OnHScroll(), OnPaint(), OnXabsl2profilerExportxmlButton(), OnXabsl2profilerLoadlogButton(), and setSliders().
int CXABSL2ProfilerDlgBar::showParamsForEntry [private] |
COLORREF CXABSL2ProfilerDlgBar::standardBackgroundColor [protected] |
Definition at line 79 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), OnContextMenu(), and OnPaint().
COLORREF CXABSL2ProfilerDlgBar::standardTextColor [protected] |
Definition at line 78 of file XABSL2ProfilerDlgBar.h.
Referenced by CXABSL2ProfilerDlgBar(), OnContextMenu(), and OnPaint().
CArray<VerticalLine,VerticalLine> CXABSL2ProfilerDlgBar::verticalLineList [private] |
Definition at line 129 of file XABSL2ProfilerDlgBar.h.
Referenced by drawVerticalLines(), and OnPaint().