Private Types | |
enum | answer { AN_Debug, AN_Ignore, AN_IgnoreAll, AN_Abort } |
Private Member Functions | |
UT_Win32AssertDlg (const char *pCond, const char *pFile, int iLine, int iCount) | |
~UT_Win32AssertDlg () | |
BOOL | _onInitDialog (HWND hWnd, WPARAM wParam, LPARAM lParam) |
BOOL | _onCommand (HWND hWnd, WPARAM wParam, LPARAM lParam) |
answer | runModal () |
void | enableWindows () |
Static Private Member Functions | |
static BOOL CALLBACK | s_dlgProc (HWND, UINT, WPARAM, LPARAM) |
static BOOL CALLBACK | s_DisableWindows (HWND hwnd, LPARAM lParam) |
Private Attributes | |
int | m_iLine |
const char * | m_pCond |
const char * | m_pFile |
int | m_iCount |
answer | m_answer |
HWND | m_myHWND |
UT_GenericVector< HWND > | m_vecDisabledWnds |
bool | m_bTimersPaused |
Friends | |
int ABI_EXPORT | UT_Win32ThrowAssert (const char *, const char *, int, int) |
Class that implements an assert dialogue; this is a private class, we only access it through UT_Win32ThrowAssert() function
enum UT_Win32AssertDlg::answer [private] |
UT_Win32AssertDlg::UT_Win32AssertDlg | ( | const char * | pCond, | |
const char * | pFile, | |||
int | iLine, | |||
int | iCount | |||
) | [inline, private] |
UT_Win32AssertDlg::~UT_Win32AssertDlg | ( | ) | [inline, private] |
BOOL UT_Win32AssertDlg::_onCommand | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [private] |
References enableWindows(), m_answer, m_bTimersPaused, and UT_Win32Timer::pauseAllTimers().
Referenced by s_dlgProc().
BOOL UT_Win32AssertDlg::_onInitDialog | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [private] |
References m_bTimersPaused, m_iCount, m_iLine, m_myHWND, m_pCond, m_pFile, UT_Win32Timer::pauseAllTimers(), s_DisableWindows(), and UT_Win32Timer::timersPaused().
Referenced by s_dlgProc().
void UT_Win32AssertDlg::enableWindows | ( | ) | [private] |
References UT_GenericVector< T >::clear(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecDisabledWnds.
Referenced by _onCommand().
UT_Win32AssertDlg::answer UT_Win32AssertDlg::runModal | ( | ) | [private] |
References m_answer, s_dlgProc(), and UT_ASSERT_HARMLESS.
Referenced by UT_Win32ThrowAssert().
BOOL CALLBACK UT_Win32AssertDlg::s_DisableWindows | ( | HWND | hwnd, | |
LPARAM | lParam | |||
) | [static, private] |
References UT_GenericVector< T >::addItem(), m_myHWND, and m_vecDisabledWnds.
Referenced by _onInitDialog().
BOOL CALLBACK UT_Win32AssertDlg::s_dlgProc | ( | HWND | hWnd, | |
UINT | msg, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static, private] |
References _onCommand(), and _onInitDialog().
Referenced by runModal().
int ABI_EXPORT UT_Win32ThrowAssert | ( | const char * | pCond, | |
const char * | pFile, | |||
int | iLine, | |||
int | iCount | |||
) | [friend] |
This function wraps arround the Assert dialog class and handles the returned responses; it will abort application if the user chose Abort.
answer UT_Win32AssertDlg::m_answer [private] |
Referenced by _onCommand(), and runModal().
bool UT_Win32AssertDlg::m_bTimersPaused [private] |
Referenced by _onCommand(), and _onInitDialog().
int UT_Win32AssertDlg::m_iCount [private] |
Referenced by _onInitDialog().
int UT_Win32AssertDlg::m_iLine [private] |
Referenced by _onInitDialog().
HWND UT_Win32AssertDlg::m_myHWND [private] |
Referenced by _onInitDialog(), and s_DisableWindows().
const char* UT_Win32AssertDlg::m_pCond [private] |
Referenced by _onInitDialog().
const char* UT_Win32AssertDlg::m_pFile [private] |
Referenced by _onInitDialog().
UT_GenericVector<HWND> UT_Win32AssertDlg::m_vecDisabledWnds [private] |
Referenced by enableWindows(), and s_DisableWindows().