~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to kmix/mdwenum.h

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//-*-C++-*-
2
 
/*
3
 
 * KMix -- KDE's full featured mini mixer
4
 
 *
5
 
 *
6
 
 * Copyright (C) 2004 Chrisitan Esken <esken@kde.org>
7
 
 *
8
 
 * This program is free software; you can redistribute it and/or
9
 
 * modify it under the terms of the GNU Library General Public
10
 
 * License as published by the Free Software Foundation; either
11
 
 * version 2 of the License, or (at your option) any later version.
12
 
 *
13
 
 * This program is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 
 * Library General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU Library General Public
19
 
 * License along with this program; if not, write to the Free
20
 
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21
 
 */
22
 
 
23
 
#ifndef MDWENUM_H
24
 
#define MDWENUM_H
25
 
 
26
 
#include <QWidget>
27
 
#include "volume.h"
28
 
 
29
 
// KMix
30
 
class MixDevice;
31
 
class Mixer;
32
 
class ViewBase;
33
 
 
34
 
// KDE
35
 
class KAction;
36
 
class KComboBox;
37
 
 
38
 
// Qt
39
 
class QBoxLayout;
40
 
class QLabel;
41
 
 
42
 
#include "mixdevicewidget.h"
43
 
 
44
 
class MDWEnum : public MixDeviceWidget
45
 
{
46
 
    Q_OBJECT
47
 
 
48
 
public:
49
 
    MDWEnum( MixDevice* md,
50
 
               Qt::Orientation orientation,
51
 
               QWidget* parent = 0, ViewBase* mw = 0);
52
 
    ~MDWEnum();
53
 
 
54
 
    void addActionToPopup( KAction *action );
55
 
    QSizePolicy sizePolicy() const;
56
 
    bool eventFilter( QObject* obj, QEvent* e );
57
 
 
58
 
public slots:
59
 
    // GUI hide and show
60
 
    void setDisabled();
61
 
    void setDisabled(bool);
62
 
 
63
 
    // Enum handling: next and selecting
64
 
    void nextEnumId();
65
 
    int  enumId();
66
 
    void setEnumId(int value);
67
 
 
68
 
    void update();
69
 
    virtual void showContextMenu();
70
 
 
71
 
private:
72
 
    void createWidgets();
73
 
 
74
 
    QLabel        *_label;
75
 
    KComboBox     *_enumCombo;
76
 
    QBoxLayout    *_layout;
77
 
};
78
 
 
79
 
#endif