summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include/iapplication.hxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-30 20:38:44 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-30 20:38:44 +0000
commit9384da7066d128ab6a0fb7616a671047c374cd4a (patch)
tree4f4f27a4c48bebaa41673da9518e25f6afc3ad2a /NxWidgets/nxwm/include/iapplication.hxx
parent284cd6923b521898c0927992fab77593ad797b4a (diff)
downloadnuttx-9384da7066d128ab6a0fb7616a671047c374cd4a.tar.gz
nuttx-9384da7066d128ab6a0fb7616a671047c374cd4a.tar.bz2
nuttx-9384da7066d128ab6a0fb7616a671047c374cd4a.zip
Completes first cut at task bar
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4678 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/include/iapplication.hxx')
-rw-r--r--NxWidgets/nxwm/include/iapplication.hxx61
1 files changed, 60 insertions, 1 deletions
diff --git a/NxWidgets/nxwm/include/iapplication.hxx b/NxWidgets/nxwm/include/iapplication.hxx
index 1056e18c0..88583d4c5 100644
--- a/NxWidgets/nxwm/include/iapplication.hxx
+++ b/NxWidgets/nxwm/include/iapplication.hxx
@@ -64,6 +64,14 @@ namespace NxWM
class IApplication
{
+ protected:
+ // These values (and the accessors that go with them) violate the "purity"
+ // of the base class. These are really part of the task bar implementation:
+ // Each application provides this state information needed by the taskbar.
+
+ bool m_minimized; /**< True if the application is minimized */
+ bool m_topapp; /**< True if this application is at the top in the hiearchy */
+
public:
/**
* Each implementation of IApplication must provide a method to recover
@@ -91,7 +99,7 @@ namespace NxWM
virtual NXWidgets::CNxString getName(void) = 0;
/**
- * Start the application.
+ * Start the application (pehaps in the minimized state).
*/
virtual void run(void) = 0;
@@ -101,6 +109,57 @@ namespace NxWM
*/
virtual void stop(void) = 0;
+
+ /**
+ * Re-draw the application window. This method is call from CTaskbar
+ * when the application window must be displayed
+ */
+
+ virtual void redraw(void) = 0;
+
+ /**
+ * Set the application's minimized state
+ *
+ * @param minimized. True if the application is minimized
+ */
+
+ inline void setMinimized(bool minimized)
+ {
+ m_minimized = minimized;
+ }
+
+ /**
+ * Set the application's top state
+ *
+ * @param topapp. True if the application is the new top application
+ */
+
+ inline void setTopApplication(bool topapp)
+ {
+ m_topapp = topapp;
+ }
+
+ /**
+ * Get the application's minimized state
+ *
+ * @return True if the application is minimized
+ */
+
+ inline bool isMinimized(void) const
+ {
+ return m_minimized;
+ }
+
+ /**
+ * Return true if this is the top application
+ *
+ * @return True if the application is the new top application
+ */
+
+ inline bool isTopApplication(void) const
+ {
+ return m_topapp;
+ }
};
}