diff base/RealTime.h @ 247:21b9b25bff48

* More useful status bar text -- show the current play time and the extents of the visible area * Add update-i18n.sh to update the i18n/ts and qm files -- I can't get qmake to do the right thing now that the project file has been split up into several project files * Fix missing Q_OBJECTs, etc, reported by lupdate * Update Russian translation from AlexandrE
author Chris Cannam
date Wed, 07 Mar 2007 17:07:02 +0000
parents 146eb9e35baa
children d7c41483af8f 94fc0591ea43
line wrap: on
line diff
--- a/base/RealTime.h	Mon Mar 05 15:32:55 2007 +0000
+++ b/base/RealTime.h	Wed Mar 07 17:07:02 2007 +0000
@@ -111,6 +111,11 @@
     //
     std::string toText(bool fixedDp = false) const;
 
+    // Return a user-readable string to the nearest second in a form
+    // like "6s" (for less than a minute) or "2:21" (for more).
+    //
+    std::string toSecText() const;
+
     // Convenience functions for handling sample frames
     //
     static long realTime2Frame(const RealTime &r, unsigned int sampleRate);