summaryrefslogtreecommitdiffstats
path: root/kmix/kmix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/kmix.cpp')
-rw-r--r--kmix/kmix.cpp94
1 files changed, 47 insertions, 47 deletions
diff --git a/kmix/kmix.cpp b/kmix/kmix.cpp
index cc603aed..85a3d39e 100644
--- a/kmix/kmix.cpp
+++ b/kmix/kmix.cpp
@@ -20,13 +20,13 @@
*/
// include files for QT
-#include <qmap.h>
-#include <qhbox.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qwidgetstack.h>
-#include <qlayout.h>
-#include <qtooltip.h>
+#include <tqmap.h>
+#include <tqhbox.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqwidgetstack.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
// include files for KDE
#include <kcombobox.h>
@@ -93,7 +93,7 @@ KMixWindow::KMixWindow()
{
hide();
}
- connect( kapp, SIGNAL( aboutToQuit()), SLOT( saveSettings()) );
+ connect( kapp, TQT_SIGNAL( aboutToQuit()), TQT_SLOT( saveSettings()) );
}
@@ -107,25 +107,25 @@ void
KMixWindow::initActions()
{
// file menu
- KStdAction::quit( this, SLOT(quit()), actionCollection());
+ KStdAction::quit( this, TQT_SLOT(quit()), actionCollection());
// settings menu
- KStdAction::showMenubar( this, SLOT(toggleMenuBar()), actionCollection());
- KStdAction::preferences( this, SLOT(showSettings()), actionCollection());
+ KStdAction::showMenubar( this, TQT_SLOT(toggleMenuBar()), actionCollection());
+ KStdAction::preferences( this, TQT_SLOT(showSettings()), actionCollection());
new KAction( i18n( "Configure &Global Shortcuts..." ), "configure_shortcuts", 0, this,
- SLOT( configureGlobalShortcuts() ), actionCollection(), "settings_global" );
- KStdAction::keyBindings( guiFactory(), SLOT(configureShortcuts()), actionCollection());
+ TQT_SLOT( configureGlobalShortcuts() ), actionCollection(), "settings_global" );
+ KStdAction::keyBindings( guiFactory(), TQT_SLOT(configureShortcuts()), actionCollection());
- (void) new KAction( i18n( "Hardware &Information" ), 0, this, SLOT( slotHWInfo() ), actionCollection(), "hwinfo" );
- (void) new KAction( i18n( "Hide Mixer Window" ), Key_Escape, this, SLOT(hide()), actionCollection(), "hide_kmixwindow" );
+ (void) new KAction( i18n( "Hardware &Information" ), 0, this, TQT_SLOT( slotHWInfo() ), actionCollection(), "hwinfo" );
+ (void) new KAction( i18n( "Hide Mixer Window" ), Key_Escape, this, TQT_SLOT(hide()), actionCollection(), "hide_kmixwindow" );
m_globalAccel = new KGlobalAccel( this );
- m_globalAccel->insert( "Increase volume", i18n( "Increase Volume of Master Channel"), QString::null,
- KShortcut(), KShortcut(), this, SLOT( increaseVolume() ) );
- m_globalAccel->insert( "Decrease volume", i18n( "Decrease Volume of Master Channel"), QString::null,
- KShortcut(), KShortcut(), this, SLOT( decreaseVolume() ) );
- m_globalAccel->insert( "Toggle mute", i18n( "Toggle Mute of Master Channel"), QString::null,
- KShortcut(), KShortcut(), this, SLOT( toggleMuted() ) );
+ m_globalAccel->insert( "Increase volume", i18n( "Increase Volume of Master Channel"), TQString::null,
+ KShortcut(), KShortcut(), this, TQT_SLOT( increaseVolume() ) );
+ m_globalAccel->insert( "Decrease volume", i18n( "Decrease Volume of Master Channel"), TQString::null,
+ KShortcut(), KShortcut(), this, TQT_SLOT( decreaseVolume() ) );
+ m_globalAccel->insert( "Toggle mute", i18n( "Toggle Mute of Master Channel"), TQString::null,
+ KShortcut(), KShortcut(), this, TQT_SLOT( toggleMuted() ) );
m_globalAccel->readSettings();
m_globalAccel->updateConnections();
@@ -137,8 +137,8 @@ void
KMixWindow::initPrefDlg()
{
m_prefDlg = new KMixPrefDlg( this );
- connect( m_prefDlg, SIGNAL(signalApplied(KMixPrefDlg *)),
- this, SLOT(applyPrefs(KMixPrefDlg *)) );
+ connect( m_prefDlg, TQT_SIGNAL(signalApplied(KMixPrefDlg *)),
+ this, TQT_SLOT(applyPrefs(KMixPrefDlg *)) );
}
@@ -146,30 +146,30 @@ void
KMixWindow::initWidgets()
{
// Main widget and layout
- setCentralWidget( new QWidget( this, "qt_central_widget" ) );
+ setCentralWidget( new TQWidget( this, "qt_central_widget" ) );
// Widgets layout
- widgetsLayout = new QVBoxLayout( centralWidget(), 0, 0, "widgetsLayout" );
- widgetsLayout->setResizeMode(QLayout::Minimum); // works fine
+ widgetsLayout = new TQVBoxLayout( centralWidget(), 0, 0, "widgetsLayout" );
+ widgetsLayout->setResizeMode(TQLayout::Minimum); // works fine
// Mixer widget line
- mixerNameLayout = new QHBox( centralWidget(), "mixerNameLayout" );
+ mixerNameLayout = new TQHBox( centralWidget(), "mixerNameLayout" );
widgetsLayout->setStretchFactor( mixerNameLayout, 0 );
- QSizePolicy qsp( QSizePolicy::Ignored, QSizePolicy::Maximum);
+ TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum);
mixerNameLayout->setSizePolicy(qsp);
mixerNameLayout->setSpacing(KDialog::spacingHint());
- QLabel *qlbl = new QLabel( i18n("Current mixer:"), mixerNameLayout );
+ TQLabel *qlbl = new TQLabel( i18n("Current mixer:"), mixerNameLayout );
qlbl->setFixedHeight(qlbl->sizeHint().height());
m_cMixer = new KComboBox( FALSE, mixerNameLayout, "mixerCombo" );
m_cMixer->setFixedHeight(m_cMixer->sizeHint().height());
- connect( m_cMixer, SIGNAL( activated( int ) ), this, SLOT( showSelectedMixer( int ) ) );
- QToolTip::add( m_cMixer, i18n("Current mixer" ) );
+ connect( m_cMixer, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( showSelectedMixer( int ) ) );
+ TQToolTip::add( m_cMixer, i18n("Current mixer" ) );
// Add first layout to widgets
widgetsLayout->addWidget( mixerNameLayout );
- m_wsMixers = new QWidgetStack( centralWidget(), "MixerWidgetStack" );
+ m_wsMixers = new TQWidgetStack( centralWidget(), "MixerWidgetStack" );
widgetsLayout->setStretchFactor( m_wsMixers, 10 );
widgetsLayout->addWidget( m_wsMixers );
@@ -213,7 +213,7 @@ KMixWindow::updateDocking()
* Preparation for fixing Bug #55078 - scheduled for KDE3.4.1 .
* This text will be plugged into the dock-icon popup menu.
*/
- QString selectChannel = i18n("Select Channel"); // This text will be used in KDE3.4.1 !!!
+ TQString selectChannel = i18n("Select Channel"); // This text will be used in KDE3.4.1 !!!
m_dockWidget->show();
}
@@ -276,7 +276,7 @@ KMixWindow::saveConfig()
{
if ( mw->mixer()->isOpen() )
{ // protect from unplugged devices (better do *not* save them)
- QString grp;
+ TQString grp;
grp.sprintf( "%i", mw->id() );
mw->saveConfig( config, grp );
}
@@ -297,17 +297,17 @@ KMixWindow::loadConfig()
m_hideOnClose = config->readBoolEntry("HideOnClose", true);
m_showTicks = config->readBoolEntry("Tickmarks", true);
m_showLabels = config->readBoolEntry("Labels", true);
- const QString& valueStyleString = config->readEntry("ValueStyle", "None");
+ const TQString& valueStyleString = config->readEntry("ValueStyle", "None");
m_onLogin = config->readBoolEntry("startkdeRestore", true );
m_dockIconMuting = config->readBoolEntry( "DockIconMuting", false);
m_startVisible = config->readBoolEntry("Visible", true);
m_multiDriverMode = config->readBoolEntry("MultiDriver", false);
m_surroundView = config->readBoolEntry("Experimental-ViewSurround", false );
m_gridView = config->readBoolEntry("Experimental-ViewGrid", false );
- const QString& orientationString = config->readEntry("Orientation", "Horizontal");
- QString mixerMasterCard = config->readEntry( "MasterMixer", "" );
+ const TQString& orientationString = config->readEntry("Orientation", "Horizontal");
+ TQString mixerMasterCard = config->readEntry( "MasterMixer", "" );
Mixer::setMasterCard(mixerMasterCard);
- QString masterDev = config->readEntry( "MasterMixerDevice", "" );
+ TQString masterDev = config->readEntry( "MasterMixerDevice", "" );
Mixer::setMasterCardDevice(masterDev);
if ( valueStyleString == "Absolute" )
@@ -331,12 +331,12 @@ KMixWindow::loadConfig()
// restore window size and position
if ( !kapp->isRestored() ) // done by the session manager otherwise
{
- QSize defSize( minimumWidth(), height() );
- QSize size = config->readSizeEntry("Size", &defSize );
+ TQSize defSize( minimumWidth(), height() );
+ TQSize size = config->readSizeEntry("Size", &defSize );
if(!size.isEmpty()) resize(size);
- QPoint defPos = pos();
- QPoint pos = config->readPointEntry("Position", &defPos);
+ TQPoint defPos = pos();
+ TQPoint pos = config->readPointEntry("Position", &defPos);
move(pos);
}
}
@@ -381,7 +381,7 @@ KMixWindow::initMixerWidgets()
m_cMixer->insertItem( mixer->mixerName() );
m_wsMixers->addWidget( mw, id );
- QString grp;
+ TQString grp;
grp.sprintf( "%i", mw->id() );
mw->loadConfig( kapp->config(), grp );
@@ -514,11 +514,11 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
( prefDlg->_rbVertical->isChecked() && m_toplevelOrientation == Qt::Horizontal )
|| ( prefDlg->_rbHorizontal->isChecked() && m_toplevelOrientation == Qt::Vertical );
if ( toplevelOrientationHasChanged ) {
- QString msg = i18n("The change of orientation will be adopted on the next start of KMix.");
+ TQString msg = i18n("The change of orientation will be adopted on the next start of KMix.");
KMessageBox::information(0,msg);
}
if ( prefDlg->_rbVertical->isChecked() ) {
- //QString "For a change of language to take place, quit and restart KDiff3.";
+ //TQString "For a change of language to take place, quit and restart KDiff3.";
//kdDebug(67100) << "KMix should change to Vertical layout\n";
m_toplevelOrientation = Qt::Vertical;
}
@@ -568,7 +568,7 @@ KMixWindow::toggleMenuBar()
}
void
-KMixWindow::showEvent( QShowEvent * )
+KMixWindow::showEvent( TQShowEvent * )
{
if ( m_visibilityUpdateAllowed )
m_isVisible = isVisible();
@@ -576,7 +576,7 @@ KMixWindow::showEvent( QShowEvent * )
}
void
-KMixWindow::hideEvent( QHideEvent * )
+KMixWindow::hideEvent( TQHideEvent * )
{
if ( m_visibilityUpdateAllowed )
{