~ubuntu-branches/ubuntu/lucid/ktorrent/lucid

« back to all changes in this revision

Viewing changes to plugins/mediaplayer/mediaview.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-12-08 19:17:41 UTC
  • mfrom: (1.2.1 upstream) (0.7.12 sid)
  • Revision ID: james.westby@ubuntu.com-20091208191741-lqlq0xvnlv8ki19u
Tags: 3.3.1+dfsg.1-1ubuntu1
* Merge with Debian Testing remaining changes:
  - Build-depend directly on libboost-serialization1.40-dev since
    libboost-serialization-dev from boost-defaults is not in Main
  - Add in rules: include /usr/lib/kubuntu-desktop-i18n/debhelper/kubuntu.mk
  - Don't use dpkg-source 3.0 format
  - Add quilt to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef KTMEDIAVIEW_H
22
22
#define KTMEDIAVIEW_H
23
23
 
24
 
#include <QLabel>
 
24
 
25
25
#include <QTreeView>
26
 
#include <QToolBar>
27
 
#include <QComboBox>
28
 
#include <QCheckBox>
29
 
#include <Phonon/SeekSlider>
30
 
#include <Phonon/VolumeSlider>
31
26
 
32
 
class QItemSelection;
33
27
 
34
28
namespace kt
35
29
{
36
30
        class MediaModel;
37
 
        class MediaPlayer;
38
31
 
39
32
        /**
40
33
                @author
43
36
        {
44
37
                Q_OBJECT
45
38
        public:
46
 
                MediaView(MediaPlayer* player,MediaModel* model,QWidget* parent);
 
39
                MediaView(MediaModel* model,QWidget* parent);
47
40
                virtual ~MediaView();
48
41
                
49
 
                /// Get the media tool bar
50
 
                QToolBar* mediaToolBar() {return tool_bar;}
51
 
                
52
42
                /// Get the current selected item
53
43
                QModelIndex selectedItem() const;
54
44
                
55
 
        public slots:
56
 
                void playing(const QString & file);
57
 
                void stopped();
58
 
                
59
 
        private slots:
60
 
                void onSelectionChanged(const QItemSelection & s, const QItemSelection & d);
61
 
                void metaDataChanged();
62
 
                void skipIncompleteChecked(bool on);
63
 
                void modeActivated(int idx);
64
 
                
65
45
        signals:
66
 
                void selectionChanged(const QModelIndex & idx);
67
46
                void doubleClicked(const QModelIndex & idx);
68
 
                void randomModeActivated();
69
47
 
70
48
        private:
71
 
                MediaPlayer* player;
72
49
                MediaModel* model;
73
 
                QToolBar* tool_bar;
74
50
                QTreeView* media_tree;
75
 
                Phonon::VolumeSlider* volume;
76
 
                Phonon::SeekSlider* play_slider;
77
 
                QComboBox* queue_mode;
78
 
                QCheckBox* skip_incomplete;
79
 
                QLabel* info_label;
80
 
                QString current_file;
81
51
        };
82
52
 
83
53
}