From d97899b6e2c22b4f33f23a8333a03cd323bcd45e Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 9 May 2012 19:31:48 +0000 Subject: NxWidgets: Remove modal loops, Add CWindowEventHandler*. NxWM: Add support for full screen applications git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4716 42af7a65-404d-4744-a932-0658087f49c3 --- NxWidgets/UnitTests/CButton/cbuttontest.cxx | 2 +- NxWidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx | 2 +- NxWidgets/UnitTests/CCheckBox/ccheckboxtest.cxx | 2 +- NxWidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx | 2 +- NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx | 2 +- NxWidgets/UnitTests/CLatchButton/clatchbuttontest.cxx | 2 +- NxWidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx | 2 +- NxWidgets/UnitTests/CRadioButton/cradiobuttontest.cxx | 2 +- NxWidgets/UnitTests/CTextBox/ctextboxtest.cxx | 2 +- NxWidgets/UnitTests/nxwm/main.cxx | 1 - 10 files changed, 9 insertions(+), 10 deletions(-) (limited to 'NxWidgets/UnitTests') diff --git a/NxWidgets/UnitTests/CButton/cbuttontest.cxx b/NxWidgets/UnitTests/CButton/cbuttontest.cxx index 49f32f551..03411fd6e 100644 --- a/NxWidgets/UnitTests/CButton/cbuttontest.cxx +++ b/NxWidgets/UnitTests/CButton/cbuttontest.cxx @@ -307,7 +307,7 @@ void CButtonTest::release(void) (void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS); } -// Widget events are normally handled in a modal loop (by calling goModal()). +// Widget events are normally handled in a modal loop. // However, for this case we know when there should be press and release // events so we don't have to poll. We can just perform a one pass poll // then check if the event was processed corredly. diff --git a/NxWidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx b/NxWidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx index 4e4f4487f..c1ad0e7a4 100644 --- a/NxWidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx +++ b/NxWidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx @@ -287,7 +287,7 @@ void CButtonArrayTest::release(CButtonArray *buttonArray, int column, int row) (void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS); } -// Widget events are normally handled in a modal loop (by calling goModal()). +// Widget events are normally handled in a modal loop. // However, for this case we know when there should be press and release // events so we don't have to poll. We can just perform a one pass poll // then check if the event was processed corredly. diff --git a/NxWidgets/UnitTests/CCheckBox/ccheckboxtest.cxx b/NxWidgets/UnitTests/CCheckBox/ccheckboxtest.cxx index 90abf2e67..e9ccc7628 100644 --- a/NxWidgets/UnitTests/CCheckBox/ccheckboxtest.cxx +++ b/NxWidgets/UnitTests/CCheckBox/ccheckboxtest.cxx @@ -253,7 +253,7 @@ void CCheckBoxTest::clickCheckBox(void) // Poll for mouse events // - // Widget events are normally handled in a modal loop (by calling goModal()). + // Widget events are normally handled in a modal loop. // However, for this case we know that we just pressed the mouse button // so we don't have to poll. We can just perform a one pass poll then // then check if the mouse event was processed corredly. diff --git a/NxWidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx b/NxWidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx index d44238c78..801da7289 100644 --- a/NxWidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx +++ b/NxWidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx @@ -289,7 +289,7 @@ void CGlyphButtonTest::release(void) (void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS); } -// Widget events are normally handled in a modal loop (by calling goModal()). +// Widget events are normally handled in a modal loop. // However, for this case we know when there should be press and release // events so we don't have to poll. We can just perform a one pass poll // then check if the event was processed corredly. diff --git a/NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx b/NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx index 5d3eeda2a..300148cc3 100644 --- a/NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx +++ b/NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx @@ -401,7 +401,7 @@ void CKeypadTest::release(CKeypad *keypad, int column, int row) (void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS); } -// Widget events are normally handled in a modal loop (by calling goModal()). +// Widget events are normally handled in a modal loop. // However, for this case we know when there should be press and release // events so we don't have to poll. We can just perform a one pass poll // then check if the event was processed corredly. diff --git a/NxWidgets/UnitTests/CLatchButton/clatchbuttontest.cxx b/NxWidgets/UnitTests/CLatchButton/clatchbuttontest.cxx index 2b41eca63..c8e02938b 100644 --- a/NxWidgets/UnitTests/CLatchButton/clatchbuttontest.cxx +++ b/NxWidgets/UnitTests/CLatchButton/clatchbuttontest.cxx @@ -308,7 +308,7 @@ void CLatchButtonTest::release(void) (void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS); } -// Widget events are normally handled in a modal loop (by calling goModal()). +// Widget events are normally handled in a modal loop. // However, for this case we know when there should be press and release // events so we don't have to poll. We can just perform a one pass poll. diff --git a/NxWidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx b/NxWidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx index 5b1737e06..cf41c1608 100644 --- a/NxWidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx +++ b/NxWidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx @@ -287,7 +287,7 @@ void CLatchButtonArrayTest::release(CLatchButtonArray *buttonArray, int column, (void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS); } -// Widget events are normally handled in a modal loop (by calling goModal()). +// Widget events are normally handled in a modal loop. // However, for this case we know when there should be press and release // events so we don't have to poll. We can just perform a one pass poll // then check if the event was processed corredly. diff --git a/NxWidgets/UnitTests/CRadioButton/cradiobuttontest.cxx b/NxWidgets/UnitTests/CRadioButton/cradiobuttontest.cxx index f97089ce7..09b5af8c2 100644 --- a/NxWidgets/UnitTests/CRadioButton/cradiobuttontest.cxx +++ b/NxWidgets/UnitTests/CRadioButton/cradiobuttontest.cxx @@ -268,7 +268,7 @@ void CRadioButtonTest::pushButton(CRadioButton *button) // Poll for mouse events // - // Widget events are normally handled in a modal loop (by calling goModal()). + // Widget events are normally handled in a modal loop. // However, for this case we know that we just pressed the mouse button // so we don't have to poll. We can just perform a one pass poll then // then check if the mouse event was processed corredly. diff --git a/NxWidgets/UnitTests/CTextBox/ctextboxtest.cxx b/NxWidgets/UnitTests/CTextBox/ctextboxtest.cxx index e54bd4e6a..07a1f116d 100644 --- a/NxWidgets/UnitTests/CTextBox/ctextboxtest.cxx +++ b/NxWidgets/UnitTests/CTextBox/ctextboxtest.cxx @@ -272,7 +272,7 @@ void CTextBoxTest::injectChars(CTextBox *textbox, int nCh, FAR const uint8_t *st (void)nx_kbdchin(handle, string[i]); - // Widget events are normally handled in a modal loop (by calling goModal()). + // Widget events are normally handled in a modal loop. // However, for this case we know when there should be keyboard events pending, // events so we don't have to poll repeatedly. We can just perform a one pass // poll diff --git a/NxWidgets/UnitTests/nxwm/main.cxx b/NxWidgets/UnitTests/nxwm/main.cxx index 12c5dc513..8125cf9f0 100644 --- a/NxWidgets/UnitTests/nxwm/main.cxx +++ b/NxWidgets/UnitTests/nxwm/main.cxx @@ -434,7 +434,6 @@ nocalculator: showTestCaseMemory("After starting the start window application"); // Call CTaskBar::startWindowManager to start the display with applications in place. - // This method will not return but will enter the task bar's modal loop. printf(MAIN_STRING "Start the window manager\n"); if (!g_nxwmtest.taskbar->startWindowManager()) -- cgit v1.2.3