Skip to content

Commit 7525149

Browse files
committed
NxWM::CTaskbar: Add a method to redraw the task bar and the top application. From Petteri Aimonen
1 parent eb9a60d commit 7525149

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

NxWidgets/ChangeLog.txt

+4
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,8 @@
374374
* NxWidgets::CNumericEdit: Delay before auto-incrementing now varies:
375375
A longer delay is required to start auto-incrementing and speed increases
376376
while pressed. From Petteri Aimonen (2013-6-4).
377+
* NxWM::CTaskbar: Add a method to redraw the taskbar and the current
378+
application. This should only be necessary if the display loses
379+
state due to e.g. powerdown or other manual intervention. From
380+
Petteri Aimonen (2013-6-4).
377381

NxWidgets/libnxwidgets/src/cnumericedit.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
* NxWidgets/libnxwidgets/include/cnumericedit.cxx
33
*
4-
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
4+
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
55
* Author: Gregory Nutt <[email protected]>
66
* Petteri Aimonen <[email protected]>
77
*

NxWidgets/nxwm/include/ctaskbar.hxx

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
* NxWidgets/nxwm/include/cnxtaskbar.hxx
33
*
4-
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
4+
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
55
* Author: Gregory Nutt <[email protected]>
66
*
77
* Redistribution and use in source and binary forms, with or without
@@ -89,7 +89,7 @@ namespace NxWM
8989
/**
9090
* This structure represents an application and its associated icon image
9191
*/
92-
92+
9393
struct STaskbarSlot
9494
{
9595
IApplication *app; /**< A reference to the icon */
@@ -108,7 +108,7 @@ namespace NxWM
108108
bool m_started; /**< True if window manager has been started */
109109

110110
/**
111-
* Create a raw window.
111+
* Create a raw window.
112112
*
113113
* 1) Create a dumb NXWidgets::CWidgetControl instance (See not).
114114
* 2) Pass the dumb NXWidgets::CWindowMessenger instance to the window constructor
@@ -134,7 +134,7 @@ namespace NxWM
134134
*
135135
* @return A partially initialized application window instance.
136136
*/
137-
137+
138138
NXWidgets::CNxTkWindow *openFramedWindow(void);
139139

140140
/**
@@ -155,15 +155,15 @@ namespace NxWM
155155
virtual bool createTaskbarWindow(void);
156156

157157
/**
158-
* Create the background window.
158+
* Create the background window.
159159
*
160160
* @return true on success
161161
*/
162162

163163
virtual bool createBackgroundWindow(void);
164164

165165
/**
166-
* Create the background image.
166+
* Create the background image.
167167
*
168168
* @return true on success
169169
*/
@@ -247,7 +247,7 @@ namespace NxWM
247247
/**
248248
* Connect to the server
249249
*/
250-
250+
251251
bool connect(void);
252252

253253
/**
@@ -409,7 +409,15 @@ namespace NxWM
409409
*/
410410

411411
void getDisplaySize(FAR struct nxgl_size_s &size);
412-
412+
413+
/**
414+
* Force a redraw of the taskbar and current application.
415+
* This should only be necessary if the display loses state due to e.g. powerdown
416+
* or other manual intervention.
417+
*/
418+
419+
inline void redraw() { redrawTopApplication(); }
420+
413421
/**
414422
* Simulate a mouse click or release on the icon at index. This method
415423
* is only available during automated testing of NxWM.

0 commit comments

Comments
 (0)