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

« back to all changes in this revision

Viewing changes to src/playlist/playlistheader.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:
20
20
 
21
21
#include "widgets/stretchheaderview.h"
22
22
 
 
23
class PlaylistView;
 
24
 
23
25
class QMenu;
24
26
class QSignalMapper;
25
27
 
27
29
  Q_OBJECT
28
30
 
29
31
 public:
30
 
  PlaylistHeader(Qt::Orientation orientation, QWidget* parent = 0);
 
32
  PlaylistHeader(Qt::Orientation orientation, PlaylistView* view,
 
33
                 QWidget* parent = 0);
31
34
 
32
35
  // QWidget
33
36
  void contextMenuEvent(QContextMenuEvent* e);
35
38
 
36
39
 signals:
37
40
  void SectionVisibilityChanged(int logical, bool visible);
38
 
  void ColumnAlignmentChanged();
39
41
  void MouseEntered();
40
42
 
41
43
 private slots:
42
44
  void HideCurrent();
43
 
  void AlignCurrentLeft();
44
 
  void AlignCurrentCenter();
45
 
  void AlignCurrentRight();
46
45
  void ToggleVisible(int section);
 
46
  void SetColumnAlignment(QAction* action);
47
47
 
48
48
 private:
49
49
  void AddColumnAction(int index);
50
50
 
51
51
 private:
 
52
  PlaylistView* view_;
 
53
 
52
54
  int menu_section_;
53
55
  QMenu* menu_;
54
56
  QAction* hide_action_;