2
* KMix -- KDE's full featured mini mixer
4
* Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
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.
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.
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.
31
#include <QVBoxLayout>
32
#include <QProgressBar>
39
#include <kxmlguiwindow.h>
46
class ViewDockAreaPopup;
52
KMixWindow : public KXmlGuiWindow
57
KMixWindow(bool invisible);
63
void saveBaseConfig();
64
void saveViewConfig();
66
void loadBaseConfig();
72
//void setErrorMixerWidget();
74
void clearMixerWidgets();
75
void fixConfigAfterRead();
77
virtual bool queryClose();
87
virtual void applyPrefs( KMixPrefDlg *prefDlg );
88
void recreateGUI(bool saveView);
89
void recreateGUIwithoutSavingView();
92
//void stopVisibilityUpdates();
93
//void showEvent( QShowEvent * );
94
//void hideEvent( QHideEvent * );
96
void newMixerShown(int tabIndex);
100
KAction* _actionShowMenubar;
102
bool m_showDockWidget;
109
bool m_visibilityUpdateAllowed;
110
bool m_multiDriverMode; // Not officially supported.
111
Qt::Orientation m_toplevelOrientation;
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);
126
OSDWidget* osdWidget;
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);
137
void slotIncreaseVolume();
138
void slotDecreaseVolume();