summaryrefslogtreecommitdiffstats
path: root/src/idsuggestionswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/idsuggestionswidget.cpp')
-rw-r--r--src/idsuggestionswidget.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/idsuggestionswidget.cpp b/src/idsuggestionswidget.cpp
index ee7f123..0265933 100644
--- a/src/idsuggestionswidget.cpp
+++ b/src/idsuggestionswidget.cpp
@@ -63,9 +63,9 @@ namespace KBibTeX
layout->addWidget( m_pushButtonDown );
layout->addWidget( m_pushButtonDel );
layout->addStretch( 10 );
- connect( m_pushButtonUp, SIGNAL( clicked() ), this, SLOT( slotUp() ) );
- connect( m_pushButtonDown, SIGNAL( clicked() ), this, SLOT( slotDown() ) );
- connect( m_pushButtonDel, SIGNAL( clicked() ), this, SLOT( slotDelete() ) );
+ connect( m_pushButtonUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotUp() ) );
+ connect( m_pushButtonDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDown() ) );
+ connect( m_pushButtonDel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDelete() ) );
return container;
}
@@ -115,7 +115,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( m_title, this );
TQFont labelFont( label->font() );
- labelFont.setBold( TRUE );
+ labelFont.setBold( true );
label->setFont( labelFont );
label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
@@ -133,13 +133,13 @@ namespace KBibTeX
case 'z': m_comboBoxWhichAuthors->setCurrentItem( 2 ); break;
default: m_comboBoxWhichAuthors->setCurrentItem( 0 );
}
- connect( m_comboBoxWhichAuthors, SIGNAL( activated( const TQString& ) ), SIGNAL( modified() ) );
+ connect( m_comboBoxWhichAuthors, TQ_SIGNAL( activated( const TQString& ) ), TQ_SIGNAL( modified() ) );
struct IdSuggestionTokenInfo info = IdSuggestions::evalToken( text.mid( 1 ) );
label = new TQLabel( i18n( "Casing:" ), this );
layout->addWidget( label, 2, 0 );
- m_comboBoxCasing = new KComboBox( FALSE, this );
+ m_comboBoxCasing = new KComboBox( false, this );
label->setBuddy( m_comboBoxCasing );
layout->addWidget( m_comboBoxCasing, 2, 1 );
m_comboBoxCasing->insertItem( i18n( "No change" ) );
@@ -151,7 +151,7 @@ namespace KBibTeX
m_comboBoxCasing->setCurrentItem( 2 );
else
m_comboBoxCasing->setCurrentItem( 0 );
- connect( m_comboBoxCasing, SIGNAL( activated( const TQString& ) ), SIGNAL( modified() ) );
+ connect( m_comboBoxCasing, TQ_SIGNAL( activated( const TQString& ) ), TQ_SIGNAL( modified() ) );
label = new TQLabel( i18n( "Only first letters:" ), this );
layout->addWidget( label, 3, 0 );
@@ -163,7 +163,7 @@ namespace KBibTeX
m_spinBoxLen->setSpecialValueText( i18n( "Complete name" ) );
m_spinBoxLen->setValue( info.len > 9 ? 0 : info.len );
m_spinBoxLen->setMinimumWidth( m_spinBoxLen->fontMetrics().width( i18n( "Complete name" ) ) + 32 );
- connect( m_spinBoxLen, SIGNAL( valueChanged( int ) ), SIGNAL( modified() ) );
+ connect( m_spinBoxLen, TQ_SIGNAL( valueChanged( int ) ), TQ_SIGNAL( modified() ) );
label = new TQLabel( i18n( "Text between authors:" ), this );
layout->addWidget( label, 4, 0 );
@@ -171,7 +171,7 @@ namespace KBibTeX
label->setBuddy( m_lineEditInBetween );
layout->addWidget( m_lineEditInBetween, 4, 1 );
m_lineEditInBetween->setText( info.inBetween );
- connect( m_lineEditInBetween, SIGNAL( textChanged( const TQString& ) ), SIGNAL( modified() ) );
+ connect( m_lineEditInBetween, TQ_SIGNAL( textChanged( const TQString& ) ), TQ_SIGNAL( modified() ) );
layout->setRowStretch( 5, 1 );
layout->setColStretch( 1, 1 );
@@ -204,7 +204,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( m_title, this );
TQFont labelFont( label->font() );
- labelFont.setBold( TRUE );
+ labelFont.setBold( true );
label->setFont( labelFont );
label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
@@ -214,13 +214,13 @@ namespace KBibTeX
m_checkBoxRemoveSmallWords = new TQCheckBox( i18n( "Remove small words" ), this );
layout->addMultiCellWidget( m_checkBoxRemoveSmallWords, 1, 1, 0, 1 );
m_checkBoxRemoveSmallWords->setChecked( text[0] == 'T' );
- connect( m_checkBoxRemoveSmallWords, SIGNAL( toggled( bool ) ), SIGNAL( modified() ) );
+ connect( m_checkBoxRemoveSmallWords, TQ_SIGNAL( toggled( bool ) ), TQ_SIGNAL( modified() ) );
struct IdSuggestionTokenInfo info = IdSuggestions::evalToken( text.mid( 1 ) );
label = new TQLabel( i18n( "Casing:" ), this );
layout->addWidget( label, 2, 0 );
- m_comboBoxCasing = new KComboBox( FALSE, this );
+ m_comboBoxCasing = new KComboBox( false, this );
label->setBuddy( m_comboBoxCasing );
layout->addWidget( m_comboBoxCasing, 2, 1 );
m_comboBoxCasing->insertItem( i18n( "No change" ) );
@@ -232,7 +232,7 @@ namespace KBibTeX
m_comboBoxCasing->setCurrentItem( 2 );
else
m_comboBoxCasing->setCurrentItem( 0 );
- connect( m_comboBoxCasing, SIGNAL( textChanged( const TQString& ) ), SIGNAL( modified() ) );
+ connect( m_comboBoxCasing, TQ_SIGNAL( textChanged( const TQString& ) ), TQ_SIGNAL( modified() ) );
label = new TQLabel( i18n( "Only first letters:" ), this );
layout->addWidget( label, 3, 0 );
@@ -244,7 +244,7 @@ namespace KBibTeX
m_spinBoxLen->setSpecialValueText( i18n( "Complete title" ) );
m_spinBoxLen->setValue( info.len > 9 ? 0 : info.len );
m_spinBoxLen->setMinimumWidth( m_spinBoxLen->fontMetrics().width( i18n( "Complete title" ) ) + 32 );
- connect( m_spinBoxLen, SIGNAL( valueChanged( int ) ), SIGNAL( modified() ) );
+ connect( m_spinBoxLen, TQ_SIGNAL( valueChanged( int ) ), TQ_SIGNAL( modified() ) );
label = new TQLabel( i18n( "Text between words:" ), this );
layout->addWidget( label, 4, 0 );
@@ -252,7 +252,7 @@ namespace KBibTeX
label->setBuddy( m_lineEditInBetween );
layout->addWidget( m_lineEditInBetween, 4, 1 );
m_lineEditInBetween->setText( info.inBetween );
- connect( m_lineEditInBetween, SIGNAL( textChanged( const TQString& ) ), SIGNAL( modified() ) );
+ connect( m_lineEditInBetween, TQ_SIGNAL( textChanged( const TQString& ) ), TQ_SIGNAL( modified() ) );
layout->setRowStretch( 5, 1 );
layout->setColStretch( 1, 1 );
@@ -279,7 +279,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( m_title, this );
TQFont labelFont( label->font() );
- labelFont.setBold( TRUE );
+ labelFont.setBold( true );
label->setFont( labelFont );
label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
@@ -294,7 +294,7 @@ namespace KBibTeX
m_comboBoxDigits->insertItem( i18n( "2 digits" ) );
m_comboBoxDigits->insertItem( i18n( "4 digits" ) );
m_comboBoxDigits->setCurrentItem( text[0] == 'y' ? 0 : 1 );
- connect( m_comboBoxDigits, SIGNAL( activated( int ) ), SIGNAL( modified() ) );
+ connect( m_comboBoxDigits, TQ_SIGNAL( activated( int ) ), TQ_SIGNAL( modified() ) );
layout->setColStretch( 1, 1 );
layout->setRowStretch( 2, 1 );
@@ -314,7 +314,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( m_title, this );
TQFont labelFont( label->font() );
- labelFont.setBold( TRUE );
+ labelFont.setBold( true );
label->setFont( labelFont );
label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
@@ -327,7 +327,7 @@ namespace KBibTeX
label->setBuddy( m_lineEditInBetween );
layout->addWidget( m_lineEditInBetween, 1, 1 );
m_lineEditInBetween->setText( text.mid( 1 ) );
- connect( m_lineEditInBetween, SIGNAL( textChanged( const TQString& ) ), SIGNAL( modified() ) );
+ connect( m_lineEditInBetween, TQ_SIGNAL( textChanged( const TQString& ) ), TQ_SIGNAL( modified() ) );
layout->setColStretch( 1, 1 );
layout->setRowStretch( 2, 1 );
@@ -428,9 +428,9 @@ namespace KBibTeX
if ( component != NULL )
{
++m_componentCount;
- connect( component, SIGNAL( moved() ), this, SLOT( updateGUI() ) );
- connect( component, SIGNAL( deleted() ), this, SLOT( componentDeleted() ) );
- connect( component, SIGNAL( modified() ), this, SLOT( updateExample() ) );
+ connect( component, TQ_SIGNAL( moved() ), this, TQ_SLOT( updateGUI() ) );
+ connect( component, TQ_SIGNAL( deleted() ), this, TQ_SLOT( componentDeleted() ) );
+ connect( component, TQ_SIGNAL( modified() ), this, TQ_SLOT( updateExample() ) );
}
}
@@ -442,7 +442,7 @@ namespace KBibTeX
void IdSuggestionsWidget::apply( TQString& formatStr )
{
- bool first = TRUE;
+ bool first = true;
formatStr = "";
TQLayoutIterator it = m_listOfComponents->layout()->iterator();
TQLayoutItem *child;
@@ -452,7 +452,7 @@ namespace KBibTeX
TQString text = TQString::null;
if ( component != NULL && ( text = component->text() ) != TQString::null )
{
- if ( first ) first = FALSE; else formatStr.append( "|" );
+ if ( first ) first = false; else formatStr.append( "|" );
formatStr.append( text );
}
++it;
@@ -477,14 +477,14 @@ namespace KBibTeX
m_scrollViewComponents->addChild( m_listOfComponents );
gridLayout->addMultiCellWidget( m_scrollViewComponents, 2, 2, 0, 1 );
TQVBoxLayout *listLayout = new TQVBoxLayout( m_listOfComponents, 0, KDialog::spacingHint() );
- listLayout->setAutoAdd( TRUE );
+ listLayout->setAutoAdd( true );
TDEPopupMenu *addMenu = new TDEPopupMenu( m_pushButtonAdd );
addMenu->insertItem( i18n( "Author" ), 1 );
addMenu->insertItem( i18n( "Year" ), 2 );
addMenu->insertItem( i18n( "Title" ), 3 );
addMenu->insertItem( i18n( "Text" ), 4 );
- connect( addMenu, SIGNAL( activated( int ) ), this, SLOT( addMenuActivated( int ) ) );
+ connect( addMenu, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( addMenuActivated( int ) ) );
m_pushButtonAdd->setPopup( addMenu );
}
@@ -506,9 +506,9 @@ namespace KBibTeX
comp->show();
- connect( comp, SIGNAL( moved() ), this, SLOT( updateGUI() ) );
- connect( comp, SIGNAL( deleted() ), this, SLOT( componentDeleted() ) );
- connect( comp, SIGNAL( modified() ), this, SLOT( updateExample() ) );
+ connect( comp, TQ_SIGNAL( moved() ), this, TQ_SLOT( updateGUI() ) );
+ connect( comp, TQ_SIGNAL( deleted() ), this, TQ_SLOT( componentDeleted() ) );
+ connect( comp, TQ_SIGNAL( modified() ), this, TQ_SLOT( updateExample() ) );
m_listOfComponents->adjustSize();
m_scrollViewComponents->ensureVisible( 10, m_listOfComponents->height() - 2 );
updateGUI();
@@ -520,7 +520,7 @@ namespace KBibTeX
TQLayoutIterator it = m_listOfComponents->layout()->iterator();
TQLayoutItem *child = NULL;
IdSuggestionComponent *lastComponent = NULL;
- bool first = TRUE;
+ bool first = true;
int i = 0;
while (( child = it.current() ) != 0 )
{
@@ -530,11 +530,11 @@ namespace KBibTeX
{
if ( first )
{
- first = FALSE;
- component->setEnableUpDown( FALSE, m_componentCount > 1 );
+ first = false;
+ component->setEnableUpDown( false, m_componentCount > 1 );
}
else
- component->setEnableUpDown( TRUE, i < m_componentCount - 1 );
+ component->setEnableUpDown( true, i < m_componentCount - 1 );
++i;
lastComponent = component;
@@ -542,7 +542,7 @@ namespace KBibTeX
}
if ( lastComponent != NULL )
- lastComponent->setEnableUpDown( m_componentCount > 1, FALSE );
+ lastComponent->setEnableUpDown( m_componentCount > 1, false );
m_scrollViewComponents->updateGeometry();
m_parent->enableButtonOK( m_componentCount > 0 );