summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/src/capplicationwindow.cxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-12 13:50:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-12 13:50:21 +0000
commitfb8f25a3f43d6c5a10dfa5a99b9cec55feec97f6 (patch)
treece467469470404655e332c2ca8bc05d64283c85f /NxWidgets/nxwm/src/capplicationwindow.cxx
parente88d1ff1f09ba0ea6999ab2e5e2d55dc88434646 (diff)
downloadnuttx-fb8f25a3f43d6c5a10dfa5a99b9cec55feec97f6.tar.gz
nuttx-fb8f25a3f43d6c5a10dfa5a99b9cec55feec97f6.tar.bz2
nuttx-fb8f25a3f43d6c5a10dfa5a99b9cec55feec97f6.zip
Add NxWM::CWindowControl; task bar and start window icons now functional
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4725 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/src/capplicationwindow.cxx')
-rw-r--r--NxWidgets/nxwm/src/capplicationwindow.cxx78
1 files changed, 0 insertions, 78 deletions
diff --git a/NxWidgets/nxwm/src/capplicationwindow.cxx b/NxWidgets/nxwm/src/capplicationwindow.cxx
index ad57ba4b2..f57c04297 100644
--- a/NxWidgets/nxwm/src/capplicationwindow.cxx
+++ b/NxWidgets/nxwm/src/capplicationwindow.cxx
@@ -313,14 +313,6 @@ bool CApplicationWindow::open(void)
m_windowLabel->setTextAlignmentHoriz(NXWidgets::CLabel::TEXT_ALIGNMENT_HORIZ_LEFT);
m_windowLabel->setTextAlignmentVert(NXWidgets::CLabel::TEXT_ALIGNMENT_VERT_CENTER);
m_windowLabel->setRaisesEvents(false);
-
- // Get the window control
-
- NXWidgets::CWidgetControl *windowControl = m_window->getWidgetControl();
-
- // Register to receive callbacks on a few select window events
-
- windowControl->addWindowEventHandler(this);
return true;
}
@@ -463,76 +455,6 @@ void CApplicationWindow::clickStopIcon(int index)
#endif
/**
- * Handle an NX window mouse input event.
- *
- * @param e The event data.
- */
-
-#ifdef CONFIG_NX_MOUSE
-void CApplicationWindow::handleMouseEvent(void)
-{
- // The logic path here is tortuous but flexible:
- //
- // 1. A listener thread receives mouse input and injects that into NX
- // 2. In the multi-user mode, this will send a message to the NX server
- // 3. The NX server will determine which window gets the mouse input
- // and send a message to the listener.
- // 4. The listener will call the NX message dispatcher will will do the
- // message callback.
- // 5. The callback goes into an instance of NXWidgets::CCallback that is
- // part of the CWidget control.
- // 6. That callback will update mouse information then raise the
- // mouse event,
- // 7. Which will finally call this function -- still running deep on the
- // stack in the listener thread.
- // 8. This function will then call back into the wiget control to process
- // the mouse input.
-
- // Get the CWidgetControl associated with the window
-
- NXWidgets::CWidgetControl *control = m_window->getWidgetControl();
-
- // And perform a poll
-
- control->pollEvents();
-}
-#endif
-
-/**
- * Handle a NX window keyboard input event.
- */
-
-#ifdef CONFIG_NX_KBD
-void CApplicationWindow::handleKeyboardEvent(void)
-{
- // The logic path here is tortuous but flexible:
- //
- // 1. A listener thread receives keyboard input and injects that into NX
- // 2. In the multi-user mode, this will send a message to the NX server
- // 3. The NX server will determine which window gets the keyboard input
- // and send a message to the listener.
- // 4. The listener will call the NX message dispatcher will will do the
- // message callback.
- // 5. The callback goes into an instance of NXWidgets::CCallback that is
- // part of the CWidget control.
- // 6. That callback will update keyboard information then raise the
- // keyboard event,
- // 7. Which will finally call this function -- still running deep on the
- // stack in the listener thread.
- // 8. This function will then call back into the wiget control to process
- // the keyboard input.
-
- // Get the CWidgetControl associated with the window
-
- NXWidgets::CWidgetControl *control = m_window->getWidgetControl();
-
- // And perform a poll
-
- control->pollEvents();
-}
-#endif
-
-/**
* Handle a mouse button click event.
*
* @param e The event data.