Skip to content

Commit

Permalink
NxWM::CTaskbar: Add a method to redraw the task bar and the top appli…
Browse files Browse the repository at this point in the history
…cation. From Petteri Aimonen
  • Loading branch information
gregory-nutt committed Jun 4, 2013
1 parent eb9a60d commit 7525149
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
4 changes: 4 additions & 0 deletions NxWidgets/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -374,4 +374,8 @@
* NxWidgets::CNumericEdit: Delay before auto-incrementing now varies:
A longer delay is required to start auto-incrementing and speed increases
while pressed. From Petteri Aimonen (2013-6-4).
* NxWM::CTaskbar: Add a method to redraw the taskbar and the current
application. This should only be necessary if the display loses
state due to e.g. powerdown or other manual intervention. From
Petteri Aimonen (2013-6-4).

2 changes: 1 addition & 1 deletion NxWidgets/libnxwidgets/src/cnumericedit.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/****************************************************************************
* NxWidgets/libnxwidgets/include/cnumericedit.cxx
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <[email protected]>
* Petteri Aimonen <[email protected]>
*
Expand Down
24 changes: 16 additions & 8 deletions NxWidgets/nxwm/include/ctaskbar.hxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/****************************************************************************
* NxWidgets/nxwm/include/cnxtaskbar.hxx
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -89,7 +89,7 @@ namespace NxWM
/**
* This structure represents an application and its associated icon image
*/

struct STaskbarSlot
{
IApplication *app; /**< A reference to the icon */
Expand All @@ -108,7 +108,7 @@ namespace NxWM
bool m_started; /**< True if window manager has been started */

/**
* Create a raw window.
* Create a raw window.
*
* 1) Create a dumb NXWidgets::CWidgetControl instance (See not).
* 2) Pass the dumb NXWidgets::CWindowMessenger instance to the window constructor
Expand All @@ -134,7 +134,7 @@ namespace NxWM
*
* @return A partially initialized application window instance.
*/

NXWidgets::CNxTkWindow *openFramedWindow(void);

/**
Expand All @@ -155,15 +155,15 @@ namespace NxWM
virtual bool createTaskbarWindow(void);

/**
* Create the background window.
* Create the background window.
*
* @return true on success
*/

virtual bool createBackgroundWindow(void);

/**
* Create the background image.
* Create the background image.
*
* @return true on success
*/
Expand Down Expand Up @@ -247,7 +247,7 @@ namespace NxWM
/**
* Connect to the server
*/

bool connect(void);

/**
Expand Down Expand Up @@ -409,7 +409,15 @@ namespace NxWM
*/

void getDisplaySize(FAR struct nxgl_size_s &size);


/**
* Force a redraw of the taskbar and current application.
* This should only be necessary if the display loses state due to e.g. powerdown
* or other manual intervention.
*/

inline void redraw() { redrawTopApplication(); }

/**
* Simulate a mouse click or release on the icon at index. This method
* is only available during automated testing of NxWM.
Expand Down

0 comments on commit 7525149

Please sign in to comment.