~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/playlist/playlistcontainer.h

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
class Ui_PlaylistContainer;
25
25
 
 
26
class DidYouMean;
26
27
class LineEditInterface;
27
28
class Playlist;
28
29
class PlaylistManager;
41
42
  static const char* kSettingsGroup;
42
43
 
43
44
  void SetActions(QAction* new_playlist, QAction* save_playlist,
44
 
                  QAction* load_playlist);
 
45
                  QAction* load_playlist, QAction* next_playlist, QAction*
 
46
                  previous_playlist);
45
47
  void SetManager(PlaylistManager* manager);
46
48
 
47
 
  QString PromptForPlaylistName();
48
 
 
 
49
  DidYouMean* did_you_mean() const { return did_you_mean_; }
49
50
  PlaylistView* view() const;
50
51
 
51
52
  bool eventFilter(QObject *objectWatched, QEvent *event);
67
68
  void LoadPlaylist();
68
69
  void SavePlaylist() { SavePlaylist(-1); }
69
70
  void SavePlaylist(int id);
 
71
  void GoToNextPlaylistTab();
 
72
  void GoToPreviousPlaylistTab();
70
73
 
71
74
  void SetViewModel(Playlist* playlist);
72
75
  void PlaylistAdded(int id, const QString& name);
86
89
  void UpdateFilter();
87
90
  void FocusOnFilter(QKeyEvent *event);
88
91
 
 
92
  void DidYouMeanAccepted(const QString& text);
 
93
  void UpdateNoMatchesLabel();
 
94
 
89
95
private:
90
96
  void UpdateActiveIcon(const QIcon& icon);
91
97
  void RepositionNoMatchesLabel(bool force = false);
96
102
  PlaylistManager* manager_;
97
103
  QAction* undo_;
98
104
  QAction* redo_;
 
105
  Playlist* playlist_;
99
106
 
100
107
  QSettings settings_;
101
108
  bool starting_up_;
105
112
 
106
113
  QLabel* no_matches_label_;
107
114
  LineEditInterface* filter_;
 
115
 
 
116
  DidYouMean* did_you_mean_;
108
117
};
109
118
 
110
119
#endif // PLAYLISTCONTAINER_H