summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-29 14:34:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-29 14:34:56 +0000
commit530e4e8173cbbdc299b7244ef5ba839f17b49556 (patch)
treea1b741f5bd64efb9dbae3d238b08072ebcc2883c /NxWidgets/libnxwidgets/include
parente35aa390b0d57483b82638952ad62f3a7f5373b5 (diff)
downloadpx4-nuttx-530e4e8173cbbdc299b7244ef5ba839f17b49556.tar.gz
px4-nuttx-530e4e8173cbbdc299b7244ef5ba839f17b49556.tar.bz2
px4-nuttx-530e4e8173cbbdc299b7244ef5ba839f17b49556.zip
Fix STM32 USART4/5 vs UART4/5 confusion
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4671 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/include')
-rw-r--r--NxWidgets/libnxwidgets/include/cbgwindow.hxx9
-rw-r--r--NxWidgets/libnxwidgets/include/cnxserver.hxx7
-rw-r--r--NxWidgets/libnxwidgets/include/cnxtkwindow.hxx11
-rw-r--r--NxWidgets/libnxwidgets/include/cnxtoolbar.hxx9
-rw-r--r--NxWidgets/libnxwidgets/include/cnxwindow.hxx9
-rw-r--r--NxWidgets/libnxwidgets/include/inxwindow.hxx10
6 files changed, 50 insertions, 5 deletions
diff --git a/NxWidgets/libnxwidgets/include/cbgwindow.hxx b/NxWidgets/libnxwidgets/include/cbgwindow.hxx
index 1f8e417af..435fdffbf 100644
--- a/NxWidgets/libnxwidgets/include/cbgwindow.hxx
+++ b/NxWidgets/libnxwidgets/include/cbgwindow.hxx
@@ -131,6 +131,15 @@ namespace NXWidgets
bool open(void);
/**
+ * Each implementation of INxWindow must provide a method to recover
+ * the contained CWidgetControl instance.
+ *
+ * @return The contained CWidgetControl instance
+ */
+
+ CWidgetControl *getWidgetControl(void) const;
+
+ /**
* Request the position and size information of the window. The values
* will be returned asynchronously through the client callback method.
* The GetPosition() method may than be called to obtain the positional
diff --git a/NxWidgets/libnxwidgets/include/cnxserver.hxx b/NxWidgets/libnxwidgets/include/cnxserver.hxx
index 2c79558a0..3043fd9e0 100644
--- a/NxWidgets/libnxwidgets/include/cnxserver.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxserver.hxx
@@ -48,6 +48,7 @@
#include <nuttx/nx/nx.h>
#include "cnxwindow.hxx"
+#include "cnxtkwindow.hxx"
#include "cbgwindow.hxx"
/****************************************************************************
@@ -176,12 +177,10 @@ namespace NXWidgets
* Get an instance of the framed NX window.
*/
-#if 0 // Not ready for prime time
- inline CFramedWindow *createFramedWindow(CWidgetControl *widgetControl)
+ inline CNxTkWindow *createFramedWindow(CWidgetControl *widgetControl)
{
- return new CFramedWindow(m_hNxServer, widgetControl);
+ return new CNxTkWindow(m_hNxServer, widgetControl);
}
-#endif
/**
* Get an instance of the background window.
diff --git a/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx b/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
index ed2ecdbd2..b6915a6c1 100644
--- a/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
@@ -102,7 +102,7 @@ namespace NXWidgets
* 3) The window constructor call CWidgetControl methods to "smarten"
* the CWidgetControl instance with window-specific knowledge.
* 4) Call the open() method on the window to display the window.
- * 5) After that, the fully smartend CWidgetControl instance can
+ * 5) After that, the fully smartened CWidgetControl instance can
* be used to generate additional widgets.
* 6) After that, the fully smartened CWidgetControl instance can
* be used to generate additional widgets by passing it to the
@@ -130,6 +130,15 @@ namespace NXWidgets
bool open(void);
/**
+ * Each implementation of INxWindow must provide a method to recover
+ * the contained CWidgetControl instance.
+ *
+ * @return The contained CWidgetControl instance
+ */
+
+ CWidgetControl *getWidgetControl(void) const;
+
+ /**
* Open a toolbar on the framed window. Toolbar creation is separate
* from object instantion so that errors can be reported
*
diff --git a/NxWidgets/libnxwidgets/include/cnxtoolbar.hxx b/NxWidgets/libnxwidgets/include/cnxtoolbar.hxx
index ff65cf1a9..8e016c15e 100644
--- a/NxWidgets/libnxwidgets/include/cnxtoolbar.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxtoolbar.hxx
@@ -121,6 +121,15 @@ namespace NXWidgets
bool open(void);
/**
+ * Each implementation of INxWindow must provide a method to recover
+ * the contained CWidgetControl instance.
+ *
+ * @return The contained CWidgetControl instance
+ */
+
+ CWidgetControl *getWidgetControl(void) const;
+
+ /**
* Request the position and size information of the toolbar. The values
* will be returned asynchronously through the client callback method.
* The GetPosition() method may than be called to obtain the positional
diff --git a/NxWidgets/libnxwidgets/include/cnxwindow.hxx b/NxWidgets/libnxwidgets/include/cnxwindow.hxx
index 4a371bb27..e39c3cc81 100644
--- a/NxWidgets/libnxwidgets/include/cnxwindow.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxwindow.hxx
@@ -131,6 +131,15 @@ namespace NXWidgets
bool open(void);
/**
+ * Each implementation of INxWindow must provide a method to recover
+ * the contained CWidgetControl instance.
+ *
+ * @return The contained CWidgetControl instance
+ */
+
+ CWidgetControl *getWidgetControl(void) const;
+
+ /**
* Request the position and size information of the window. The values
* will be returned asynchronously through the client callback method.
* The GetPosition() method may than be called to obtain the positional
diff --git a/NxWidgets/libnxwidgets/include/inxwindow.hxx b/NxWidgets/libnxwidgets/include/inxwindow.hxx
index 0c372ee0d..c38052de0 100644
--- a/NxWidgets/libnxwidgets/include/inxwindow.hxx
+++ b/NxWidgets/libnxwidgets/include/inxwindow.hxx
@@ -60,6 +60,7 @@
namespace NXWidgets
{
struct SBitmap;
+ class CWidgetControl;
/**
* This class defines common operations on a any NX window.
@@ -90,6 +91,15 @@ namespace NXWidgets
virtual bool open(void) = 0;
/**
+ * Each implementation of INxWindow must provide a method to recover
+ * the contained CWidgetControl instance.
+ *
+ * @return The contained CWidgetControl instance
+ */
+
+ virtual CWidgetControl *getWidgetControl(void) const = 0;
+
+ /**
* Request the position and size information of the window. The values
* will be returned asynchronously through the client callback method.
* The GetPosition() method may than be called to obtain the positional