summaryrefslogtreecommitdiffstats
path: root/kmix/kmixerwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/kmixerwidget.cpp')
-rw-r--r--kmix/kmixerwidget.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/kmix/kmixerwidget.cpp b/kmix/kmixerwidget.cpp
index 94965122..cc12c7dd 100644
--- a/kmix/kmixerwidget.cpp
+++ b/kmix/kmixerwidget.cpp
@@ -18,6 +18,7 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#include "../config.h"
// TQt
#include <tqlabel.h>
@@ -42,9 +43,10 @@
#include "viewinput.h"
#include "viewoutput.h"
#include "viewswitches.h"
-// KMix experimental
-#include "viewgrid.h"
+
+#ifdef WITH_KMIX_EXPERIMENTAL
#include "viewsurround.h"
+#endif
/**
@@ -119,21 +121,22 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags)
* 2c) Add Views to Tab
********************************************************************/
//KMixGUIProfile* prof = MixerToolbox::selectProfile(_mixer);
-
-
+
+
possiblyAddView(new ViewOutput ( m_ioTab, "output", i18n("Output"), _mixer, vflags ) );
- possiblyAddView(new ViewInput( m_ioTab, "input", i18n("Input"), _mixer, vflags ) );
+ possiblyAddView(new ViewInput ( m_ioTab, "input", i18n("Input"), _mixer, vflags ) );
possiblyAddView(new ViewSwitches( m_ioTab, "switches", i18n("Switches"), _mixer, vflags ) );
+
+#ifdef WITH_KMIX_EXPERIMENTAL
if ( vflags & ViewBase::Experimental_SurroundView )
possiblyAddView( new ViewSurround( m_ioTab, "surround", i18n("Surround"), _mixer, vflags ) );
- if ( vflags & ViewBase::Experimental_GridView )
- possiblyAddView( new ViewGrid( m_ioTab, "grid", i18n("Grid"), _mixer, vflags ) );
+#endif
// *** Lower part: Slider and Mixer Name ************************************************
TQHBoxLayout *balanceAndDetail = new TQHBoxLayout( m_topLayout, 8, "balanceAndDetail");
// Create the left-right-slider
- m_balanceSlider = new TQSlider( -100, 100, 25, 0, Qt::Horizontal, this, "RightLeft" );
+ m_balanceSlider = new TQSlider( -100, 100, 25, 0, TQt::Horizontal, this, "RightLeft" );
m_balanceSlider->setTickmarks( TQSlider::Below );
m_balanceSlider->setTickInterval( 25 );
m_balanceSlider->setMinimumSize( m_balanceSlider->sizeHint() );
@@ -148,7 +151,7 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags)
balanceAndDetail->addWidget( mixerName );
balanceAndDetail->addSpacing( 10 );
- connect( m_balanceSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(balanceChanged(int)) );
+ connect( m_balanceSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(balanceChanged(int)) );
TQToolTip::add( m_balanceSlider, i18n("Left/Right balancing") );
// --- "MenuBar" toggling from the various View's ---
@@ -167,7 +170,7 @@ void KMixerWidget::possiblyAddView(ViewBase* vbase)
_views.push_back(vbase);
vbase ->createDeviceWidgets();
m_ioTab->addTab( vbase , vbase->caption() );
- connect( vbase, TQT_SIGNAL(toggleMenuBar()), parentWidget(), TQT_SLOT(toggleMenuBar()) );
+ connect( vbase, TQ_SIGNAL(toggleMenuBar()), parentWidget(), TQ_SLOT(toggleMenuBar()) );
}
}