summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-28 12:48:05 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-28 12:48:05 -0600
commite0e9403c485f542f7f0b40ddd3bf2c9b256fa55f (patch)
treee478778f6071ab5cb9618031ec131d1128c9de8b /NxWidgets/nxwm/include
parentf73e309d512f3740b683fd2fe680b894c8515262 (diff)
downloadnuttx-e0e9403c485f542f7f0b40ddd3bf2c9b256fa55f.tar.gz
nuttx-e0e9403c485f542f7f0b40ddd3bf2c9b256fa55f.tar.bz2
nuttx-e0e9403c485f542f7f0b40ddd3bf2c9b256fa55f.zip
NxWM::CMediaPlayer: Add a CLabel that show the current fast forward/rewind speed
Diffstat (limited to 'NxWidgets/nxwm/include')
-rw-r--r--NxWidgets/nxwm/include/cmediaplayer.hxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/NxWidgets/nxwm/include/cmediaplayer.hxx b/NxWidgets/nxwm/include/cmediaplayer.hxx
index 35a1630f0..f36036a2a 100644
--- a/NxWidgets/nxwm/include/cmediaplayer.hxx
+++ b/NxWidgets/nxwm/include/cmediaplayer.hxx
@@ -51,6 +51,7 @@
#include "cnxfont.hxx"
#include "cimage.hxx"
#include "cstickyimage.hxx"
+#include "clabel.hxx"
#include "clistbox.hxx"
#include "clistboxdataitem.hxx"
#include "cglyphsliderhorizontal.hxx"
@@ -159,7 +160,7 @@ namespace NxWM
#ifndef CONFIG_AUDIO_EXCLUDE_VOLUME
uint8_t m_level; /**< Current volume level, range 0-100 */
#endif
-#ifndef CONFIG_AUDIO_EXCLUDE_FFORWARD
+#if !defined(CONFIG_AUDIO_EXCLUDE_FFORWARD) || !defined(CONFIG_AUDIO_EXCLUDE_REWIND)
uint8_t m_subSample; /**< Current FFFORWARD subsampling index */
#endif
@@ -187,6 +188,9 @@ namespace NxWM
NXWidgets::CStickyImage *m_rewind; /**< Rewind control */
NXWidgets::CStickyImage *m_fforward; /**< Fast forward control */
NXWidgets::CGlyphSliderHorizontal *m_volume; /**< Volume control */
+#if !defined(CONFIG_AUDIO_EXCLUDE_FFORWARD) || !defined(CONFIG_AUDIO_EXCLUDE_REWIND)
+ NXWidgets::CLabel *m_speed; /**< FForward/rewind speed */
+#endif
/**
* Bitmaps
@@ -300,6 +304,15 @@ namespace NxWM
inline void checkFileSelection(void);
+#if !defined(CONFIG_AUDIO_EXCLUDE_FFORWARD) || !defined(CONFIG_AUDIO_EXCLUDE_REWIND)
+ /**
+ * Update fast forward/rewind speed indicator. Called on each state
+ * change and after each change in the speed of motion.
+ */
+
+ void updateMotionIndicator(void);
+#endif
+
/**
* Handle a widget action event. For this application, that means image
* pre-release events.