summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include/capplicationwindow.hxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-29 19:18:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-29 19:18:24 +0000
commitc38d91a6cda19491b56dfb2e298e28ea3de06086 (patch)
tree77b8442939f538486aaeaa6fd51c43c849a618ca /NxWidgets/nxwm/include/capplicationwindow.hxx
parent3906314011646470ede38d0c96157378d89c7568 (diff)
downloadpx4-nuttx-c38d91a6cda19491b56dfb2e298e28ea3de06086.tar.gz
px4-nuttx-c38d91a6cda19491b56dfb2e298e28ea3de06086.tar.bz2
px4-nuttx-c38d91a6cda19491b56dfb2e298e28ea3de06086.zip
NxWM update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4675 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/include/capplicationwindow.hxx')
-rw-r--r--NxWidgets/nxwm/include/capplicationwindow.hxx34
1 files changed, 29 insertions, 5 deletions
diff --git a/NxWidgets/nxwm/include/capplicationwindow.hxx b/NxWidgets/nxwm/include/capplicationwindow.hxx
index 6f802ebe5..607538e12 100644
--- a/NxWidgets/nxwm/include/capplicationwindow.hxx
+++ b/NxWidgets/nxwm/include/capplicationwindow.hxx
@@ -88,11 +88,24 @@ namespace NxWM
class CApplicationWindow : public INxApplication
{
protected:
- NxWidgets::CNxTkWindow *m_window; /**< The framed window used by the application */
- NxWidgets::CNxToolbar *m_toolbar; /**< The toolbar */
- NxWidgets::CImage *m_minimize; /**< The minimize icon */
- NxWidgets::CImage *m_close; /**< The close icon */
- IApplicationCallback *m_callback; /**< Toolbar action callbacks */
+ NxWidgets::CNxTkWindow *m_window; /**< The framed window used by the application */
+ NxWidgets::CNxToolbar *m_toolbar; /**< The toolbar */
+ NxWidgets::CImage *m_minimizeImage; /**< The minimize icon */
+ NxWidgets::CImage *m_stopImage; /**< The close icon */
+ NxWidgets::CLabel *m_windowLabel; /**< The window title */
+ NxWidgets::CRlePaletteBitmap *m_minimizeBitmap; /**< The minimize icon bitmap */
+ NxWidgets::CRlePaletteBitmap *m_stopBitmap; /**< The stop icon bitmap */
+ NxWidgets::CRlePaletteBitmap *m_minimizeBitmap; /**< The minimize icon bitmap */
+ NxWidgets::CNxFont *m_windowFont; /**< The font used to rend the window label */
+ IApplicationCallback *m_callback; /**< Toolbar action callbacks */
+
+ /**
+ * Configure the standard application toolbar
+ *
+ * @return True if the toolcar was successfully initialized.
+ */
+
+ bool configureToolbar(void);
/**
* CNxApplicationWindow Destructor
@@ -132,6 +145,17 @@ namespace NxWM
}
/**
+ * Set the window label
+ *
+ * @param appname. The name of the application to place on the window
+ */
+
+ inline void setWindowLabel(NxWidgets::CNxString &appname)
+ {
+ m_windowLabel->setText(appname);
+ }
+
+ /**
* Register to receive callbacks when toolbar icons are selected
*/