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>
37 #include <kxmlguiwindow.h>
44 class ViewDockAreaPopup
;
49 KMixWindow
: public KXmlGuiWindow
60 void saveBaseConfig();
61 void saveViewConfig();
63 void loadBaseConfig();
69 //void setErrorMixerWidget();
71 void clearMixerWidgets();
73 virtual bool queryClose();
83 virtual void applyPrefs( KMixPrefDlg
*prefDlg
);
85 //void stopVisibilityUpdates();
86 //void showEvent( QShowEvent * );
87 //void hideEvent( QHideEvent * );
89 void newMixerShown(int tabIndex
);
93 KAction
* _actionShowMenubar
;
95 bool m_showDockWidget
;
103 bool m_visibilityUpdateAllowed
;
104 bool m_multiDriverMode
; // Not officially supported.
105 Qt::Orientation m_toplevelOrientation
;
107 KTabWidget
*m_wsMixers
;
108 KMixPrefDlg
*m_prefDlg
;
109 KMixDockWidget
*m_dockWidget
;
110 QString m_hwInfoString
;
111 QVBoxLayout
*m_widgetsLayout
;
112 QLabel
*m_errorLabel
;
113 ViewDockAreaPopup
*_dockAreaPopup
;
118 void slotConfigureCurrentView();
119 void addMixerWidget(const QString
&);
120 void plugged( const char* driverName
, const QString
& udi
, QString
& dev
);
121 void unplugged( const QString
& udi
);