diff options
Diffstat (limited to 'NxWidgets/nxwm/include/capplicationwindow.hxx')
-rw-r--r-- | NxWidgets/nxwm/include/capplicationwindow.hxx | 34 |
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 */ |