From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmix/kmix.h | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 kmix/kmix.h (limited to 'kmix/kmix.h') diff --git a/kmix/kmix.h b/kmix/kmix.h new file mode 100644 index 00000000..4805d4d1 --- /dev/null +++ b/kmix/kmix.h @@ -0,0 +1,135 @@ +/* + * KMix -- KDE's full featured mini mixer + * + * + * Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this program; if not, write to the Free + * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef KMIX_H +#define KMIX_H + + +#ifdef HAVE_CONFIG_H +#include +#endif + +// include files for Qt +#include +#include + +class QHBox; +class QWidgetStack; + +// include files for KDE +#include + +class KAccel; +class KGlobalAccel; +class KComboBox; +class KMixerWidget; +class KMixerPrefWidget; +class KMixPrefDlg; +class KMixDockWidget; +class KMixWindow; +class Mixer; + +#include "mixer.h" +#include "mixdevicewidget.h" + + +class +KMixWindow : public KMainWindow +{ + Q_OBJECT + + public: + KMixWindow(); + ~KMixWindow(); + + protected slots: + void saveSettings(); + + protected: + void saveConfig(); + void loadConfig(); + + void initPrefDlg(); + void initActions(); + void initWidgets(); + void initMixerWidgets(); + + void updateDocking(); + + bool queryClose(); + void showEvent( QShowEvent * ); + void hideEvent( QHideEvent * ); + + public slots: + void quit(); + void showSettings(); + void showHelp(); + void showAbout(); + void toggleMenuBar(); + //void loadVolumes(); + void saveVolumes(); + virtual void applyPrefs( KMixPrefDlg *prefDlg ); + void stopVisibilityUpdates(); + + private: + KAccel *m_keyAccel; + KGlobalAccel *m_globalAccel; + QPopupMenu *m_fileMenu; + QPopupMenu *m_viewMenu; + QPopupMenu *m_helpMenu; + + bool m_showDockWidget; + bool m_volumeWidget; + bool m_hideOnClose; + bool m_showTicks; + bool m_showLabels; + MixDeviceWidget::ValueStyle m_valueStyle; // No numbers by default + bool m_onLogin; + bool m_startVisible; + bool m_showMenubar; + bool m_isVisible; + bool m_visibilityUpdateAllowed; + bool m_multiDriverMode; // Not officially supported. + bool m_surroundView; // Experimental. Off by defualt + bool m_gridView; // Experimental. Off by default + Qt::Orientation m_toplevelOrientation; + + QPtrList m_mixerWidgets; + + QHBox* mixerNameLayout; + KComboBox *m_cMixer; + QWidgetStack *m_wsMixers; + KMixPrefDlg *m_prefDlg; + KMixDockWidget *m_dockWidget; + QString m_hwInfoString; + QVBoxLayout *widgetsLayout; + + private slots: + //void removeMixerWidget( KMixerWidget *mw ); + void slotHWInfo(); + void showSelectedMixer( int mixer ); + void configureGlobalShortcuts(); + void toggleMuted(); + void increaseVolume(); + void decreaseVolume(); +}; + +#endif // KMIX_H -- cgit v1.2.1