From 51f31d588dc227b06bd94b9a109592bcb0d3d239 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 17 Aug 2013 16:21:22 +0000 Subject: added group enum git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3622 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmodel.h | 4 ++-- src/qmmpui/qmmpuisettings.h | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index 0eb6ab09f..eff44313f 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -255,11 +255,11 @@ public: */ bool contains(const QString &url); /*! - * Enum of available sort modes + * Enum of the available sort modes */ enum SortMode { - TITLE, /*!< by title */ + TITLE = 0, /*!< by title */ ALBUM, /*!< by album */ DISCNUMBER, /*!< by discnumber */ ARTIST, /*!< by artist */ diff --git a/src/qmmpui/qmmpuisettings.h b/src/qmmpui/qmmpuisettings.h index 45e36feea..1e87e6702 100644 --- a/src/qmmpui/qmmpuisettings.h +++ b/src/qmmpui/qmmpuisettings.h @@ -41,6 +41,17 @@ public: * Destructor. */ virtual ~QmmpUiSettings(); + /*! + * Enum of the available group formats + */ + enum GroupFormat + { + NONE = 0, /*!< disable groups */ + ARTIST_ALBUM, /*!< by artist/album */ + ARTIST_DATE_ALBUM, /*!< by artist/date/album */ + ARTIST, /*!< by artist */ + CUSTOM /*!< by user defined formar */ + }; /*! * Returns state of the "Convert underscores to blanks" option (\b true - enabled, \b false - disabled). */ -- cgit v1.2.3-13-gbd6f