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

« back to all changes in this revision

Viewing changes to kmix/kmix.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
 
/*
2
 
 * KMix -- KDE's full featured mini mixer
3
 
 *
4
 
 * Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or
7
 
 * modify it under the terms of the GNU Library General Public
8
 
 * License as published by the Free Software Foundation; either
9
 
 * version 2 of the License, or (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
 * Library General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU Library General Public
17
 
 * License along with this program; if not, write to the Free
18
 
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
 
 */
20
 
 
21
 
#ifndef KMIX_H
22
 
#define KMIX_H
23
 
 
24
 
 
25
 
#include <config.h>
26
 
 
27
 
// Qt
28
 
#include <QString>
29
 
class QLabel;
30
 
#include <qlist.h>
31
 
#include <QVBoxLayout>
32
 
#include <QProgressBar>
33
 
#include <QTimer>
34
 
class KTabWidget;
35
 
 
36
 
// KDE
37
 
class KAccel;
38
 
class KAction;
39
 
#include <kxmlguiwindow.h>
40
 
 
41
 
// KMix
42
 
class KMixPrefDlg;
43
 
class KMixDockWidget;
44
 
class KMixWindow;
45
 
class Mixer;
46
 
class ViewDockAreaPopup;
47
 
#include "mixer.h"
48
 
 
49
 
class OSDWidget;
50
 
 
51
 
class
52
 
KMixWindow : public KXmlGuiWindow
53
 
{
54
 
   Q_OBJECT
55
 
 
56
 
  public:
57
 
   KMixWindow(bool invisible);
58
 
   ~KMixWindow();
59
 
 
60
 
   bool updateDocking();
61
 
 
62
 
  private:
63
 
   void saveBaseConfig();
64
 
   void saveViewConfig();
65
 
   void loadConfig();
66
 
   void loadBaseConfig();
67
 
 
68
 
   void initPrefDlg();
69
 
   void initActions();
70
 
   void recreateGUI();
71
 
   void initWidgets();
72
 
   //void setErrorMixerWidget();
73
 
 
74
 
   void clearMixerWidgets();
75
 
   void fixConfigAfterRead();
76
 
 
77
 
   virtual bool queryClose();
78
 
 
79
 
  public slots:
80
 
   void quit();
81
 
   void showSettings();
82
 
   void showHelp();
83
 
   void showAbout();
84
 
   void toggleMenuBar();
85
 
   //void loadVolumes();
86
 
   void saveVolumes();
87
 
   virtual void applyPrefs( KMixPrefDlg *prefDlg );
88
 
   void recreateGUI(bool saveView);
89
 
   void recreateGUIwithoutSavingView();
90
 
      
91
 
      
92
 
   //void stopVisibilityUpdates();
93
 
   //void showEvent( QShowEvent * );
94
 
   //void hideEvent( QHideEvent * );
95
 
 
96
 
   void newMixerShown(int tabIndex);
97
 
 
98
 
  private:
99
 
   KAccel *m_keyAccel;
100
 
   KAction* _actionShowMenubar;
101
 
 
102
 
   bool m_showDockWidget;
103
 
   bool m_volumeWidget;
104
 
   bool m_showTicks;
105
 
   bool m_showLabels;
106
 
   bool m_onLogin;
107
 
   bool m_startVisible;
108
 
//   bool m_isVisible;
109
 
   bool m_visibilityUpdateAllowed;
110
 
   bool m_multiDriverMode;         // Not officially supported.
111
 
   Qt::Orientation m_toplevelOrientation;
112
 
 
113
 
   KTabWidget *m_wsMixers;
114
 
   KMixPrefDlg *m_prefDlg;
115
 
   KMixDockWidget *m_dockWidget;
116
 
   QString m_hwInfoString;
117
 
   QString m_defaultCardOnStart;
118
 
   bool m_dontSetDefaultCardOnStart;
119
 
   QVBoxLayout *m_widgetsLayout;
120
 
   QLabel      *m_errorLabel;
121
 
   ViewDockAreaPopup *_dockAreaPopup;
122
 
   unsigned int m_configVersion;
123
 
   void showVolumeDisplay();
124
 
   void increaseOrDecreaseVolume(bool increase);
125
 
 
126
 
   OSDWidget* osdWidget;
127
 
   
128
 
  private slots:
129
 
   void saveConfig();
130
 
   void slotHWInfo();
131
 
   void slotConfigureCurrentView();
132
 
   void slotSelectMaster();
133
 
   void addMixerWidget(const QString&);
134
 
   void plugged( const char* driverName, const QString& udi, QString& dev);
135
 
   void unplugged( const QString& udi);
136
 
   void hideOrClose();
137
 
   void slotIncreaseVolume();
138
 
   void slotDecreaseVolume();
139
 
   void slotMute();
140
 
};
141
 
 
142
 
#endif // KMIX_H