summaryrefslogtreecommitdiffstats
path: root/src/knemod/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knemod/interface.cpp')
-rw-r--r--src/knemod/interface.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/src/knemod/interface.cpp b/src/knemod/interface.cpp
index ed672a4..c2c09ee 100644
--- a/src/knemod/interface.cpp
+++ b/src/knemod/interface.cpp
@@ -51,20 +51,20 @@ Interface::Interface( TQString ifname,
mGeneralData( generalData ),
mPlotterSettings( plotterSettings )
{
- connect( &mMonitor, TQT_SIGNAL( statusChanged( int ) ),
- &mIcon, TQT_SLOT( updateStatus( int ) ) );
- connect( &mMonitor, TQT_SIGNAL( available( int ) ),
- &mIcon, TQT_SLOT( updateTrayStatus( int ) ) );
- connect( &mMonitor, TQT_SIGNAL( notAvailable( int ) ),
- &mIcon, TQT_SLOT( updateTrayStatus( int ) ) );
- connect( &mMonitor, TQT_SIGNAL( notExisting( int ) ),
- &mIcon, TQT_SLOT( updateTrayStatus( int ) ) );
- connect( &mMonitor, TQT_SIGNAL( available( int ) ),
- this, TQT_SLOT( setStartTime( int ) ) );
- connect( &mMonitor, TQT_SIGNAL( statusChanged( int ) ),
- this, TQT_SLOT( resetData( int ) ) );
- connect( &mIcon, TQT_SIGNAL( statisticsSelected() ),
- this, TQT_SLOT( showStatisticsDialog() ) );
+ connect( &mMonitor, TQ_SIGNAL( statusChanged( int ) ),
+ &mIcon, TQ_SLOT( updateStatus( int ) ) );
+ connect( &mMonitor, TQ_SIGNAL( available( int ) ),
+ &mIcon, TQ_SLOT( updateTrayStatus( int ) ) );
+ connect( &mMonitor, TQ_SIGNAL( notAvailable( int ) ),
+ &mIcon, TQ_SLOT( updateTrayStatus( int ) ) );
+ connect( &mMonitor, TQ_SIGNAL( notExisting( int ) ),
+ &mIcon, TQ_SLOT( updateTrayStatus( int ) ) );
+ connect( &mMonitor, TQ_SIGNAL( available( int ) ),
+ this, TQ_SLOT( setStartTime( int ) ) );
+ connect( &mMonitor, TQ_SIGNAL( statusChanged( int ) ),
+ this, TQ_SLOT( resetData( int ) ) );
+ connect( &mIcon, TQ_SIGNAL( statisticsSelected() ),
+ this, TQ_SLOT( showStatisticsDialog() ) );
}
Interface::~Interface()
@@ -143,16 +143,16 @@ void Interface::showStatusDialog()
if ( mStatusDialog == 0L )
{
mStatusDialog = new InterfaceStatusDialog( this );
- connect( &mMonitor, TQT_SIGNAL( available( int ) ),
- mStatusDialog, TQT_SLOT( enableNetworkGroups( int ) ) );
- connect( &mMonitor, TQT_SIGNAL( notAvailable( int ) ),
- mStatusDialog, TQT_SLOT( disableNetworkGroups( int ) ) );
- connect( &mMonitor, TQT_SIGNAL( notExisting( int ) ),
- mStatusDialog, TQT_SLOT( disableNetworkGroups( int ) ) );
+ connect( &mMonitor, TQ_SIGNAL( available( int ) ),
+ mStatusDialog, TQ_SLOT( enableNetworkGroups( int ) ) );
+ connect( &mMonitor, TQ_SIGNAL( notAvailable( int ) ),
+ mStatusDialog, TQ_SLOT( disableNetworkGroups( int ) ) );
+ connect( &mMonitor, TQ_SIGNAL( notExisting( int ) ),
+ mStatusDialog, TQ_SLOT( disableNetworkGroups( int ) ) );
if ( mStatistics != 0 )
{
- connect( mStatistics, TQT_SIGNAL( currentEntryChanged() ),
- mStatusDialog, TQT_SLOT( statisticsChanged() ) );
+ connect( mStatistics, TQ_SIGNAL( currentEntryChanged() ),
+ mStatusDialog, TQ_SLOT( statisticsChanged() ) );
mStatusDialog->statisticsChanged();
}
activateOrHide( mStatusDialog, true );
@@ -177,8 +177,8 @@ void Interface::showSignalPlotter( bool wasMiddleButton )
activateOrHide( mPlotter, true );
mPlotterTimer = new TQTimer();
- connect( mPlotterTimer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( updatePlotter() ) );
+ connect( mPlotterTimer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( updatePlotter() ) );
mPlotterTimer->start( 1000 );
}
else
@@ -206,20 +206,20 @@ void Interface::showStatisticsDialog()
// should never happen but you never know...
startStatistics();
}
- connect( mStatistics, TQT_SIGNAL( dayStatisticsChanged() ),
- mStatisticsDialog, TQT_SLOT( updateDays() ) );
- connect( mStatistics, TQT_SIGNAL( monthStatisticsChanged() ),
- mStatisticsDialog, TQT_SLOT( updateMonths() ) );
- connect( mStatistics, TQT_SIGNAL( yearStatisticsChanged() ),
- mStatisticsDialog, TQT_SLOT( updateYears() ) );
- connect( mStatistics, TQT_SIGNAL( currentEntryChanged() ),
- mStatisticsDialog, TQT_SLOT( updateCurrentEntry() ) );
- connect( mStatisticsDialog, TQT_SIGNAL( clearDailyStatisticsClicked() ),
- mStatistics, TQT_SLOT( clearDayStatistics() ) );
- connect( mStatisticsDialog, TQT_SIGNAL( clearMonthlyStatisticsClicked() ),
- mStatistics, TQT_SLOT( clearMonthStatistics() ) );
- connect( mStatisticsDialog, TQT_SIGNAL( clearYearlyStatisticsClicked() ),
- mStatistics, TQT_SLOT( clearYearStatistics() ) );
+ connect( mStatistics, TQ_SIGNAL( dayStatisticsChanged() ),
+ mStatisticsDialog, TQ_SLOT( updateDays() ) );
+ connect( mStatistics, TQ_SIGNAL( monthStatisticsChanged() ),
+ mStatisticsDialog, TQ_SLOT( updateMonths() ) );
+ connect( mStatistics, TQ_SIGNAL( yearStatisticsChanged() ),
+ mStatisticsDialog, TQ_SLOT( updateYears() ) );
+ connect( mStatistics, TQ_SIGNAL( currentEntryChanged() ),
+ mStatisticsDialog, TQ_SLOT( updateCurrentEntry() ) );
+ connect( mStatisticsDialog, TQ_SIGNAL( clearDailyStatisticsClicked() ),
+ mStatistics, TQ_SLOT( clearDayStatistics() ) );
+ connect( mStatisticsDialog, TQ_SIGNAL( clearMonthlyStatisticsClicked() ),
+ mStatistics, TQ_SLOT( clearMonthStatistics() ) );
+ connect( mStatisticsDialog, TQ_SIGNAL( clearYearlyStatisticsClicked() ),
+ mStatistics, TQ_SLOT( clearYearStatistics() ) );
mStatisticsDialog->updateDays();
mStatisticsDialog->updateMonths();
@@ -404,14 +404,14 @@ void Interface::configurePlotter()
void Interface::startStatistics()
{
mStatistics = new InterfaceStatistics( this );
- connect( &mMonitor, TQT_SIGNAL( incomingData( unsigned long ) ),
- mStatistics, TQT_SLOT( addIncomingData( unsigned long ) ) );
- connect( &mMonitor, TQT_SIGNAL( outgoingData( unsigned long ) ),
- mStatistics, TQT_SLOT( addOutgoingData( unsigned long ) ) );
+ connect( &mMonitor, TQ_SIGNAL( incomingData( unsigned long ) ),
+ mStatistics, TQ_SLOT( addIncomingData( unsigned long ) ) );
+ connect( &mMonitor, TQ_SIGNAL( outgoingData( unsigned long ) ),
+ mStatistics, TQ_SLOT( addOutgoingData( unsigned long ) ) );
if ( mStatusDialog != 0 )
{
- connect( mStatistics, TQT_SIGNAL( currentEntryChanged() ),
- mStatusDialog, TQT_SLOT( statisticsChanged() ) );
+ connect( mStatistics, TQ_SIGNAL( currentEntryChanged() ),
+ mStatusDialog, TQ_SLOT( statisticsChanged() ) );
mStatusDialog->statisticsChanged();
}