summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/src/cnxtaskbar.cxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-29 22:10:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-29 22:10:52 +0000
commit45f021f2a88d9f76c7802aa31d3fc67827ff288d (patch)
tree4a7abb3a751f790f2ac18f842ee27f32c5941818 /NxWidgets/nxwm/src/cnxtaskbar.cxx
parentc38d91a6cda19491b56dfb2e298e28ea3de06086 (diff)
downloadpx4-nuttx-45f021f2a88d9f76c7802aa31d3fc67827ff288d.tar.gz
px4-nuttx-45f021f2a88d9f76c7802aa31d3fc67827ff288d.tar.bz2
px4-nuttx-45f021f2a88d9f76c7802aa31d3fc67827ff288d.zip
NxWM update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4676 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/src/cnxtaskbar.cxx')
-rw-r--r--NxWidgets/nxwm/src/cnxtaskbar.cxx33
1 files changed, 23 insertions, 10 deletions
diff --git a/NxWidgets/nxwm/src/cnxtaskbar.cxx b/NxWidgets/nxwm/src/cnxtaskbar.cxx
index b230c6785..6b93bc793 100644
--- a/NxWidgets/nxwm/src/cnxtaskbar.cxx
+++ b/NxWidgets/nxwm/src/cnxtaskbar.cxx
@@ -202,7 +202,7 @@ void CNxTaskBar::disconnect(void)
// Close the windows
- NxWidgets::CWidgetControl *control;
+ NXWidgets::CWidgetControl *control;
if (m_taskbar)
{
// Delete the contained widget control. We are responsible for it
@@ -273,12 +273,12 @@ NXWidgets::CNxWindow *CNxTaskBar::openRawWindow(void)
{
// Initialize the widget control using the default style
- NxWidgets::CWidgetControl *widgetControl = new CWidgetControl((CWidgetStyle *)NULL);
+ NXWidgets::CWidgetControl *widgetControl = new CWidgetControl((CWidgetStyle *)NULL);
// Get an (uninitialized) instance of the background window as a class
// that derives from INxWindow.
- NxWidgets::CNxWindow window = createRawWindow(widgetControl);
+ NXWidgets::CNxWindow window = createRawWindow(widgetControl);
if (!window)
{
message("CNxwm::createGraphics: Failed to create background window\n");
@@ -312,12 +312,12 @@ NXWidgets::CNxTkWindow *CNxTaskBar::openFramedWindow(void)
{
// Initialize the widget control using the default style
- NxWidgets::CWidgetControl *widgetControl = new CWidgetControl((CWidgetStyle *)NULL);
+ NXWidgets::CWidgetControl *widgetControl = new CWidgetControl((CWidgetStyle *)NULL);
// Get an (uninitialized) instance of the background window as a class
// that derives from INxWindow.
- NxWidgets:CNxTkWindow window = createRawWindow(widgetControl);
+ NXWidgets:CNxTkWindow window = createRawWindow(widgetControl);
if (!window)
{
message("CNxwm::createGraphics: Failed to create background window\n");
@@ -347,12 +347,12 @@ NXWidgets::CNxTkWindow *CNxTaskBar::openFramedWindow(void)
* @return true on success
*/
-bool CNxTaskBar::setApplicationGeometry(NxWidgets::INxWindow *window)
+bool CNxTaskBar::setApplicationGeometry(NXWidgets::INxWindow *window)
{
// Get the widget control from the toolbar window. The physical window geometry
// should be the same for all windows.
- NxWidgets::CWidgetControl *control = m_taskbar->getWidgetControl();
+ NXWidgets::CWidgetControl *control = m_taskbar->getWidgetControl();
// Now position and size the application. This will depend on the position and
// orientation of the toolbar.
@@ -415,7 +415,7 @@ bool CNxTaskBar::createToolbarWindow(void)
// Get the contained widget control
- NxWidgets::CWidgetControl *control = m_taskbar->getWidgetControl();
+ NXWidgets::CWidgetControl *control = m_taskbar->getWidgetControl();
// Get the size of the window from the widget control
@@ -490,7 +490,7 @@ bool CNxTaskBar::createBackgroundWindow(void)
// Set the geometry to fit in the application window space
- setApplicationGeometry(static_cast<NxWidgets::INxWidget>(m_background));
+ setApplicationGeometry(static_cast<NXWidgets::INxWidget>(m_background));
/* And lower the background window to the bottom of the display */
@@ -518,7 +518,7 @@ bool CNxTaskBar::createStartWindow(void)
// Set the geometry to fit in the application window space
- setApplicationGeometry(static_cast<NxWidgets::INxWidget>(m_start));
+ setApplicationGeometry(static_cast<NXWidgets::INxWidget>(m_start));
/* And lower the background window to the top of the display */
@@ -530,3 +530,16 @@ bool CNxTaskBar::createStartWindow(void)
// m_start
return true;
}
+
+/**
+ * Handle a mouse button click event.
+ *
+ * @param e The event data.
+ */
+
+void CNxApplicationWindow::handleClickEvent(const NXWidgets::CWidgetEventArgs &e)
+{
+#warning "Missing logic"
+}
+
+