|
|
|
@ -111,94 +111,94 @@ ConfigDialog::ConfigDialog( TQWidget *parent, const char *name, const TQStringLi
|
|
|
|
|
mSettingsDict.setAutoDelete( true );
|
|
|
|
|
setButtons( TDECModule::Default | TDECModule::Apply | TDECModule::Help );
|
|
|
|
|
|
|
|
|
|
connect( mDlg->pushButtonNew, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonNewSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonDelete, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonDeleteSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonAddCommand, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonAddCommandSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonRemoveCommand, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonRemoveCommandSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonUp, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonCommandUpSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonDown, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonCommandDownSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonAddToolTip, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonAddToolTipSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonRemoveToolTip, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonRemoveToolTipSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonNotifications, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonNotificationsSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonStatisticsDir, TQT_SIGNAL( clicked() ),
|
|
|
|
|
this, TQT_SLOT( buttonStatisticsDirSelected() ) );
|
|
|
|
|
connect( mDlg->lineEditAlias, TQT_SIGNAL( textChanged( const TQString& ) ),
|
|
|
|
|
this, TQT_SLOT( aliasChanged( const TQString& ) ) );
|
|
|
|
|
connect( mDlg->comboBoxIconSet, TQT_SIGNAL( activated( int ) ),
|
|
|
|
|
this, TQT_SLOT( iconSetChanged( int ) ) );
|
|
|
|
|
connect( mDlg->comboBoxBackends, TQT_SIGNAL( activated( int ) ),
|
|
|
|
|
this, TQT_SLOT( backendChanged( int ) ) );
|
|
|
|
|
connect( mDlg->checkBoxNotConnected, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxNotConnectedToggled ( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxNotExisting, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxNotExistingToggled ( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxStatistics, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxStatisticsToggled ( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxStartKNemo, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxStartKNemoToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->spinBoxTrafficThreshold, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxTrafficValueChanged ( int ) ) );
|
|
|
|
|
connect( mDlg->checkBoxCustom, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxCustomToggled ( bool ) ) );
|
|
|
|
|
connect( mDlg->listBoxInterfaces, TQT_SIGNAL( highlighted( const TQString& ) ),
|
|
|
|
|
this, TQT_SLOT( interfaceSelected( const TQString& ) ) );
|
|
|
|
|
connect( mDlg->listViewCommands, TQT_SIGNAL( selectionChanged() ),
|
|
|
|
|
this, TQT_SLOT( listViewCommandsSelectionChanged() ) );
|
|
|
|
|
connect( mDlg->listViewCommands, TQT_SIGNAL( itemRenamed( TQListViewItem*, int, const TQString& ) ),
|
|
|
|
|
this, TQT_SLOT( listViewCommandsRenamed( TQListViewItem*, int, const TQString& ) ) );
|
|
|
|
|
connect( mDlg->pushButtonNew, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonNewSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonDelete, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonDeleteSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonAddCommand, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonAddCommandSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonRemoveCommand, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonRemoveCommandSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonUp, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonCommandUpSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonDown, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonCommandDownSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonAddToolTip, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonAddToolTipSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonRemoveToolTip, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonRemoveToolTipSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonNotifications, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonNotificationsSelected() ) );
|
|
|
|
|
connect( mDlg->pushButtonStatisticsDir, TQ_SIGNAL( clicked() ),
|
|
|
|
|
this, TQ_SLOT( buttonStatisticsDirSelected() ) );
|
|
|
|
|
connect( mDlg->lineEditAlias, TQ_SIGNAL( textChanged( const TQString& ) ),
|
|
|
|
|
this, TQ_SLOT( aliasChanged( const TQString& ) ) );
|
|
|
|
|
connect( mDlg->comboBoxIconSet, TQ_SIGNAL( activated( int ) ),
|
|
|
|
|
this, TQ_SLOT( iconSetChanged( int ) ) );
|
|
|
|
|
connect( mDlg->comboBoxBackends, TQ_SIGNAL( activated( int ) ),
|
|
|
|
|
this, TQ_SLOT( backendChanged( int ) ) );
|
|
|
|
|
connect( mDlg->checkBoxNotConnected, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxNotConnectedToggled ( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxNotExisting, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxNotExistingToggled ( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxStatistics, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxStatisticsToggled ( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxStartKNemo, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxStartKNemoToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->spinBoxTrafficThreshold, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxTrafficValueChanged ( int ) ) );
|
|
|
|
|
connect( mDlg->checkBoxCustom, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxCustomToggled ( bool ) ) );
|
|
|
|
|
connect( mDlg->listBoxInterfaces, TQ_SIGNAL( highlighted( const TQString& ) ),
|
|
|
|
|
this, TQ_SLOT( interfaceSelected( const TQString& ) ) );
|
|
|
|
|
connect( mDlg->listViewCommands, TQ_SIGNAL( selectionChanged() ),
|
|
|
|
|
this, TQ_SLOT( listViewCommandsSelectionChanged() ) );
|
|
|
|
|
connect( mDlg->listViewCommands, TQ_SIGNAL( itemRenamed( TQListViewItem*, int, const TQString& ) ),
|
|
|
|
|
this, TQ_SLOT( listViewCommandsRenamed( TQListViewItem*, int, const TQString& ) ) );
|
|
|
|
|
|
|
|
|
|
// connect the plotter widgets
|
|
|
|
|
connect( mDlg->checkBoxTopBar, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxLabels, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxVLines, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxHLines, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxIncoming, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxOutgoing, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxVLinesScroll, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxAutoDetection, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQT_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->spinBoxCount, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxPixel, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxDistance, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxFontSize, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxMinValue, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxMaxValue, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->numInputPollInterval, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->numInputSaveInterval, TQT_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQT_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonVLines, TQT_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonHLines, TQT_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonIncoming, TQT_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonOutgoing, TQT_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonBackground, TQT_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->checkBoxTopBar, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxLabels, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxVLines, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxHLines, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxIncoming, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxOutgoing, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxVLinesScroll, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->checkBoxAutoDetection, TQ_SIGNAL( toggled( bool ) ),
|
|
|
|
|
this, TQ_SLOT( checkBoxToggled( bool ) ) );
|
|
|
|
|
connect( mDlg->spinBoxCount, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxPixel, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxDistance, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxFontSize, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxMinValue, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->spinBoxMaxValue, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->numInputPollInterval, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->numInputSaveInterval, TQ_SIGNAL( valueChanged( int ) ),
|
|
|
|
|
this, TQ_SLOT( spinBoxValueChanged( int ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonVLines, TQ_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonHLines, TQ_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonIncoming, TQ_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonOutgoing, TQ_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
connect( mDlg->kColorButtonBackground, TQ_SIGNAL( changed( const TQColor& ) ),
|
|
|
|
|
this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) );
|
|
|
|
|
|
|
|
|
|
// No dcop call if KNemo is not activated by the user. Otherwise
|
|
|
|
|
// load-on-demand will start KNemo.
|
|
|
|
@ -583,8 +583,8 @@ void ConfigDialog::buttonAddCommandSelected()
|
|
|
|
|
KNemoCheckListItem* item = new KNemoCheckListItem( mDlg->listViewCommands );
|
|
|
|
|
item->setRenameEnabled( 1, true );
|
|
|
|
|
item->setRenameEnabled( 2, true );
|
|
|
|
|
connect( item, TQT_SIGNAL( stateChanged( KNemoCheckListItem*, bool ) ),
|
|
|
|
|
this, TQT_SLOT( listViewCommandsCheckListItemChanged( KNemoCheckListItem*, bool ) ) );
|
|
|
|
|
connect( item, TQ_SIGNAL( stateChanged( KNemoCheckListItem*, bool ) ),
|
|
|
|
|
this, TQ_SLOT( listViewCommandsCheckListItemChanged( KNemoCheckListItem*, bool ) ) );
|
|
|
|
|
InterfaceSettings* settings = mSettingsDict[selected->text()];
|
|
|
|
|
|
|
|
|
|
TQValueVector<InterfaceCommand> cmds;
|
|
|
|
@ -877,8 +877,8 @@ void ConfigDialog::interfaceSelected( const TQString& interface )
|
|
|
|
|
item->setRenameEnabled( 1, true );
|
|
|
|
|
item->setText( 2, settings->commands[i].command );
|
|
|
|
|
item->setRenameEnabled( 2, true );
|
|
|
|
|
connect( item, TQT_SIGNAL( stateChanged( KNemoCheckListItem*, bool ) ),
|
|
|
|
|
this, TQT_SLOT( listViewCommandsCheckListItemChanged( KNemoCheckListItem*, bool ) ) );
|
|
|
|
|
connect( item, TQ_SIGNAL( stateChanged( KNemoCheckListItem*, bool ) ),
|
|
|
|
|
this, TQ_SLOT( listViewCommandsCheckListItemChanged( KNemoCheckListItem*, bool ) ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
iconSetChanged( settings->iconSet ); // to update iconset preview
|
|
|
|
|