diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-12-14 15:12:20 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-12-14 15:12:20 +0000 |
| commit | 92f1159a134f4d9dbd93176107afc48e4f77cb81 (patch) | |
| tree | 4aa971c42e00d36cc8d588273f3ad0ff6b46fb16 /src/qmmpui/playlistmodel.h | |
| parent | 8351bd6fbf8b9b6b3360a0cfd6546127794d0b89 (diff) | |
| download | qmmp-92f1159a134f4d9dbd93176107afc48e4f77cb81.tar.gz qmmp-92f1159a134f4d9dbd93176107afc48e4f77cb81.tar.bz2 qmmp-92f1159a134f4d9dbd93176107afc48e4f77cb81.zip | |
fixed saving of the playlist settings (Fixes issue 622)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3960 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.h')
| -rw-r--r-- | src/qmmpui/playlistmodel.h | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index 31841387b..d73f5f441 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -36,6 +36,7 @@ class PlayState; class PlayListFormat; class PlayListModel; class PlayListContainer; +class QmmpUiSettings; /*! @brief Helper class that keeps track of a view's selected items. * @@ -246,14 +247,6 @@ public: */ void savePlaylist(const QString& f_name); /*! - * Returns state of "Repeat All" option. - */ - bool isRepeatableList() const; - /*! - * Returns state of "Shuffle" option. - */ - bool isShuffle() const; - /*! * Returns \b true if the file loader thread is active; otherwise returns \b false. */ bool isLoaderRunning() const; @@ -407,19 +400,6 @@ public slots: */ void reverseList(); /*! - * Prepares model for shuffle playing. \b yes parameter is \b true - model iterates in shuffle mode. - */ - void prepareForShufflePlaying(bool yes); - /*! - * Prepares model for shuffle playing. \b yes parameter is true - model iterates in repeat mode. - */ - void prepareForRepeatablePlaying(bool); - /*! - * Enabled/Disabled groped mode - * @param enabled State of the groups (\b true - enabled, \b false - disabled) - */ - void prepareGroups(bool enabled); - /*! * Sorts selected items in \b mode sort mode. */ void sortSelection(int mode); @@ -451,6 +431,10 @@ public slots: * Toggles 'stop after selected' feature. */ void stopAfterSelected(); + /*! + * Rebuilds groups + */ + void updateGroups(); private: /*! @@ -468,7 +452,19 @@ private: void removeSelection(bool inverted = false); private slots: + /*! + * Prepares play state object + */ void preparePlayState(); + /*! + * Prepares model for shuffle playing. \b yes parameter is \b true - model iterates in shuffle mode. + */ + void prepareForShufflePlaying(bool yes); + /*! + * Enabled/Disabled groped mode + * @param enabled State of the groups (\b true - enabled, \b false - disabled) + */ + void prepareGroups(bool enabled); private: PlayListTrack* m_current_track; @@ -476,14 +472,12 @@ private: int m_current; SimpleSelection m_selection; /*!< This flyweight object represents current selection. */ QQueue <PlayListTrack*> m_queued_songs; /*!< Songs in play queue. */ - bool m_is_repeatable_list; /*!< Is playlist repeatable? */ PlayState* m_play_state; /*!< Current playing state (Normal or Shuffle) */ int m_total_length; FileLoader *m_loader; - bool m_shuffle; - bool m_groups_enabled; QString m_name; PlayListContainer *m_container; + QmmpUiSettings *m_ui_settings; }; #endif |
