From acabf89e015ed0931b5534af54a27c2a575d0bc2 Mon Sep 17 00:00:00 2001 From: mio Date: Mon, 21 Apr 2025 13:38:39 +1000 Subject: Rework media information dialog Currently, the info dialog (shortcut I) can exceed the screen bounds as it requests all information and displays it in a single vertical list. This commit changes it so less information is requested and cleans up the dialog. Signed-off-by: mio --- src/app/theStream.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'src/app/theStream.h') diff --git a/src/app/theStream.h b/src/app/theStream.h index 7679a10..f616862 100644 --- a/src/app/theStream.h +++ b/src/app/theStream.h @@ -20,11 +20,37 @@ namespace Codeine { + enum class MetaData + { + Title = 0, + Comment, + Artist, + Genre, + Album, + Year, + VideoCodec, + AudioCodec, + }; + + enum class StreamInfo + { + VideoWidth = 0, + VideoHeight, + VideoBitRate, + AudioBits, + AudioSampleRate, + AudioBitRate + }; + class TheStream { CODEINE_NO_EXPORT( TheStream ) public: + + static TQMap metaData(); + static TQMap info(); + static const KURL &url(); static bool canSeek(); @@ -38,7 +64,6 @@ namespace Codeine static int audioChannel(); static TQString prettyTitle(); - static TQString information(); static inline bool hasProfile() { return TDEGlobal::config()->hasGroup( url().prettyURL() ); } -- cgit v1.2.3