Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/9/head
Michele Calgaro 5 months ago
parent d2a4cb9394
commit c7dcbcecef
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -68,9 +68,9 @@ void ProgressInterface::listenOn( RecipeDB *db )
database->disconnect(slot_obj);
if ( db ) {
slot_obj->connect( db, SIGNAL(progressBegin(int,const TQString&,const TQString&,int)), slot_obj, SLOT(progressBegin(int,const TQString&,const TQString&,int)) );
slot_obj->connect( db, SIGNAL(progressDone()), slot_obj, SLOT(progressDone()) );
slot_obj->connect( db, SIGNAL(progress()), slot_obj, SLOT(progress()) );
slot_obj->connect( db, TQ_SIGNAL(progressBegin(int,const TQString&,const TQString&,int)), slot_obj, TQ_SLOT(progressBegin(int,const TQString&,const TQString&,int)) );
slot_obj->connect( db, TQ_SIGNAL(progressDone()), slot_obj, TQ_SLOT(progressDone()) );
slot_obj->connect( db, TQ_SIGNAL(progress()), slot_obj, TQ_SLOT(progress()) );
}
database = db;

@ -295,8 +295,8 @@ bool RecipeDB::backup( const TQString &backup_file, TQString *errMsg )
kdDebug()<<"Running '"<<command.first()<<"' to create backup file"<<endl;
*p << command /*<< ">" << backup_file*/;
TQApplication::connect( p, SIGNAL(receivedStdout(TDEProcess*,char*,int)), this, SLOT(processDumpOutput(TDEProcess*,char*,int)) );
TQApplication::connect( p, SIGNAL(receivedStderr(TDEProcess*,char*,int)), this, SLOT(processDumpOutput(TDEProcess*,char*,int)) );
TQApplication::connect( p, TQ_SIGNAL(receivedStdout(TDEProcess*,char*,int)), this, TQ_SLOT(processDumpOutput(TDEProcess*,char*,int)) );
TQApplication::connect( p, TQ_SIGNAL(receivedStderr(TDEProcess*,char*,int)), this, TQ_SLOT(processDumpOutput(TDEProcess*,char*,int)) );
emit progressBegin(0,TQString::null,
TQString("<center><b>%1</b></center>%2")

@ -37,7 +37,7 @@ ConvertSQLite3::ConvertSQLite3( const TQString &db_file ) : TQObject(), error(fa
*p << "sqlite" << file << ".dump" <<
"|" << "sqlite3" << file+".new";
TQApplication::connect( p, SIGNAL(readReady(KProcIO*)), this, SLOT(processOutput(KProcIO*)) );
TQApplication::connect( p, TQ_SIGNAL(readReady(KProcIO*)), this, TQ_SLOT(processOutput(KProcIO*)) );
bool success = p->start( TDEProcess::Block, true );
if ( !success ) {

@ -467,50 +467,50 @@ AdvancedSearchDialog::AdvancedSearchDialog( TQWidget *parent, RecipeDB *db ) : T
actionHandler = new RecipeActionsHandler( resultsListView, database, RecipeActionsHandler::Open | RecipeActionsHandler::Edit | RecipeActionsHandler::Export | RecipeActionsHandler::CopyToClipboard | RecipeActionsHandler::Remove );
connect( titleEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( ingredientsAllEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( ingredientsAnyEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( ingredientsWithoutEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( authorsAnyEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( authorsAllEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( authorsWithoutEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( categoriesNotEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( categoriesAnyEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( categoriesAllEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( ingredientsWithoutEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( instructionsEdit, SIGNAL( returnPressed() ), SLOT( search() ) );
connect( findButton, SIGNAL( clicked() ), SLOT( search() ) );
connect( clearButton, SIGNAL( clicked() ), SLOT( clear() ) );
connect( enableServingsCheckBox, SIGNAL( toggled( bool ) ), servingsSpinBox, SLOT( setEnabled( bool ) ) );
connect( enableServingsCheckBox, SIGNAL( toggled( bool ) ), servingsComboBox, SLOT( setEnabled( bool ) ) );
connect( enablePrepTimeCheckBox, SIGNAL( toggled( bool ) ), prepTimeEdit, SLOT( setEnabled( bool ) ) );
connect( enablePrepTimeCheckBox, SIGNAL( toggled( bool ) ), prepTimeComboBox, SLOT( setEnabled( bool ) ) );
connect( titleButton, SIGNAL( toggled( bool ) ), titleFrame, SLOT( setShown( bool ) ) );
connect( ingredientButton, SIGNAL( toggled( bool ) ), ingredientFrame, SLOT( setShown( bool ) ) );
connect( authorsButton, SIGNAL( toggled( bool ) ), authorsFrame, SLOT( setShown( bool ) ) );
connect( categoriesButton, SIGNAL( toggled( bool ) ), categoryFrame, SLOT( setShown( bool ) ) );
connect( servingsButton, SIGNAL( toggled( bool ) ), servingsFrame, SLOT( setShown( bool ) ) );
connect( prepTimeButton, SIGNAL( toggled( bool ) ), prepTimeFrame, SLOT( setShown( bool ) ) );
connect( instructionsButton, SIGNAL( toggled( bool ) ), instructionsFrame, SLOT( setShown( bool ) ) );
connect( metaDataButton, SIGNAL( toggled( bool ) ), metaDataFrame, SLOT( setShown( bool ) ) );
connect( ratingsButton, SIGNAL( toggled( bool ) ), ratingButtonGroup, SLOT( setShown( bool ) ) );
connect( titleButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( ingredientButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( authorsButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( categoriesButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( servingsButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( prepTimeButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( instructionsButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( metaDataButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( ratingsButton, SIGNAL( toggled( bool ) ), SLOT( buttonSwitched() ) );
connect( ratingButtonGroup, SIGNAL( clicked( int ) ), this, SLOT( activateRatingOption( int ) ) );
connect( addCriteriaButton, SIGNAL( clicked() ), this, SLOT( slotAddRatingCriteria() ) );
connect( titleEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( ingredientsAllEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( ingredientsAnyEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( ingredientsWithoutEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( authorsAnyEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( authorsAllEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( authorsWithoutEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( categoriesNotEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( categoriesAnyEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( categoriesAllEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( ingredientsWithoutEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( instructionsEdit, TQ_SIGNAL( returnPressed() ), TQ_SLOT( search() ) );
connect( findButton, TQ_SIGNAL( clicked() ), TQ_SLOT( search() ) );
connect( clearButton, TQ_SIGNAL( clicked() ), TQ_SLOT( clear() ) );
connect( enableServingsCheckBox, TQ_SIGNAL( toggled( bool ) ), servingsSpinBox, TQ_SLOT( setEnabled( bool ) ) );
connect( enableServingsCheckBox, TQ_SIGNAL( toggled( bool ) ), servingsComboBox, TQ_SLOT( setEnabled( bool ) ) );
connect( enablePrepTimeCheckBox, TQ_SIGNAL( toggled( bool ) ), prepTimeEdit, TQ_SLOT( setEnabled( bool ) ) );
connect( enablePrepTimeCheckBox, TQ_SIGNAL( toggled( bool ) ), prepTimeComboBox, TQ_SLOT( setEnabled( bool ) ) );
connect( titleButton, TQ_SIGNAL( toggled( bool ) ), titleFrame, TQ_SLOT( setShown( bool ) ) );
connect( ingredientButton, TQ_SIGNAL( toggled( bool ) ), ingredientFrame, TQ_SLOT( setShown( bool ) ) );
connect( authorsButton, TQ_SIGNAL( toggled( bool ) ), authorsFrame, TQ_SLOT( setShown( bool ) ) );
connect( categoriesButton, TQ_SIGNAL( toggled( bool ) ), categoryFrame, TQ_SLOT( setShown( bool ) ) );
connect( servingsButton, TQ_SIGNAL( toggled( bool ) ), servingsFrame, TQ_SLOT( setShown( bool ) ) );
connect( prepTimeButton, TQ_SIGNAL( toggled( bool ) ), prepTimeFrame, TQ_SLOT( setShown( bool ) ) );
connect( instructionsButton, TQ_SIGNAL( toggled( bool ) ), instructionsFrame, TQ_SLOT( setShown( bool ) ) );
connect( metaDataButton, TQ_SIGNAL( toggled( bool ) ), metaDataFrame, TQ_SLOT( setShown( bool ) ) );
connect( ratingsButton, TQ_SIGNAL( toggled( bool ) ), ratingButtonGroup, TQ_SLOT( setShown( bool ) ) );
connect( titleButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( ingredientButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( authorsButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( categoriesButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( servingsButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( prepTimeButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( instructionsButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( metaDataButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( ratingsButton, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( buttonSwitched() ) );
connect( ratingButtonGroup, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( activateRatingOption( int ) ) );
connect( addCriteriaButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddRatingCriteria() ) );
titleFrame->setShown(false);
ingredientFrame->setShown(false);
@ -522,15 +522,15 @@ AdvancedSearchDialog::AdvancedSearchDialog( TQWidget *parent, RecipeDB *db ) : T
metaDataFrame->setShown(false);
ratingButtonGroup->setShown(false);
connect( actionHandler, SIGNAL( recipeSelected( int, int ) ), SIGNAL( recipeSelected( int, int ) ) );
connect( actionHandler, SIGNAL( recipesSelected( const TQValueList<int> &, int ) ), SIGNAL( recipesSelected( const TQValueList<int> &, int ) ) );
connect( actionHandler, TQ_SIGNAL( recipeSelected( int, int ) ), TQ_SIGNAL( recipeSelected( int, int ) ) );
connect( actionHandler, TQ_SIGNAL( recipesSelected( const TQValueList<int> &, int ) ), TQ_SIGNAL( recipesSelected( const TQValueList<int> &, int ) ) );
connect( database, SIGNAL( recipeRemoved( int ) ), SLOT( removeRecipe( int ) ) );
connect( database, TQ_SIGNAL( recipeRemoved( int ) ), TQ_SLOT( removeRecipe( int ) ) );
clear();
TDEPopupMenu *kpop = new TDEPopupMenu( criteriaListView );
kpop->insertItem( i18n( "&Delete" ), this, SLOT( slotRemoveRatingCriteria() ), Key_Delete );
kpop->insertItem( i18n( "&Delete" ), this, TQ_SLOT( slotRemoveRatingCriteria() ), Key_Delete );
}
AdvancedSearchDialog::~AdvancedSearchDialog()

@ -49,8 +49,8 @@ AuthorsDialog::AuthorsDialog( TQWidget* parent, RecipeDB *db ) : TQWidget( paren
//Connect Signals & Slots
connect ( newAuthorButton, SIGNAL( clicked() ), authorListView, SLOT( createNew() ) );
connect ( removeAuthorButton, SIGNAL( clicked() ), authorListView, SLOT( remove
connect ( newAuthorButton, TQ_SIGNAL( clicked() ), authorListView, TQ_SLOT( createNew() ) );
connect ( removeAuthorButton, TQ_SIGNAL( clicked() ), authorListView, TQ_SLOT( remove
() ) );
}

@ -60,11 +60,11 @@ BorderDialog::BorderDialog( const KreBorder &border, TQWidget* parent, const cha
color_hbox->setSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding );
hsSelector = new KHSSelector( color_hbox );
hsSelector->setMinimumSize( 140, 70 );
connect( hsSelector, SIGNAL( valueChanged( int, int ) ), SLOT( slotHSChanged( int, int ) ) );
connect( hsSelector, TQ_SIGNAL( valueChanged( int, int ) ), TQ_SLOT( slotHSChanged( int, int ) ) );
valuePal = new KValueSelector( color_hbox );
valuePal->setMinimumSize( 26, 70 );
connect( valuePal, SIGNAL( valueChanged( int ) ), SLOT( slotVChanged( int ) ) );
connect( valuePal, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotVChanged( int ) ) );
layout2->addWidget( color_hbox );
layout4->addLayout( layout2 );
@ -89,9 +89,9 @@ BorderDialog::BorderDialog( const KreBorder &border, TQWidget* parent, const cha
languageChange();
connect( widthSpinBox, SIGNAL( valueChanged( int ) ), SLOT( updatePreview() ) );
connect( widthListBox, SIGNAL( highlighted( int ) ), SLOT( updateSpinBox( int ) ) );
connect( styleListBox, SIGNAL( highlighted( int ) ), SLOT( updatePreview() ) );
connect( widthSpinBox, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( updatePreview() ) );
connect( widthListBox, TQ_SIGNAL( highlighted( int ) ), TQ_SLOT( updateSpinBox( int ) ) );
connect( styleListBox, TQ_SIGNAL( highlighted( int ) ), TQ_SLOT( updatePreview() ) );
initListBoxs();
loadBorder( border );

@ -51,8 +51,8 @@ CategoriesEditorDialog::CategoriesEditorDialog( TQWidget* parent, RecipeDB *db )
//Connect Signals & Slots
connect ( newCategoryButton, SIGNAL( clicked() ), categoryListView, SLOT( createNew() ) );
connect ( removeCategoryButton, SIGNAL( clicked() ), categoryListView, SLOT( remove
connect ( newCategoryButton, TQ_SIGNAL( clicked() ), categoryListView, TQ_SLOT( createNew() ) );
connect ( removeCategoryButton, TQ_SIGNAL( clicked() ), categoryListView, TQ_SLOT( remove
() ) );
}

@ -82,7 +82,7 @@ ConversionDialog::ConversionDialog( TQWidget* parent, RecipeDB *db, const char*
setInitialSize( TQSize(300, 200).expandedTo(minimumSizeHint()) );
// signals and slots connections
connect ( this, SIGNAL( closeClicked() ), this, SLOT( accept() ) );
connect ( this, TQ_SIGNAL( closeClicked() ), this, TQ_SLOT( accept() ) );
}
ConversionDialog::~ConversionDialog()

@ -69,7 +69,7 @@ CreateUnitDialog::CreateUnitDialog( TQWidget *parent, const TQString &name, cons
adjustSize();
setFixedSize( size() ); //we've got all the widgets put in, now let's keep it this size
connect( nameAbbrevEdit, SIGNAL(textChanged(const TQString&)), SLOT(nameAbbrevTextChanged(const TQString &)) );
connect( nameAbbrevEdit, TQ_SIGNAL(textChanged(const TQString&)), TQ_SLOT(nameAbbrevTextChanged(const TQString &)) );
if ( name.isEmpty() )
nameEdit->setFocus();

@ -144,7 +144,7 @@ DBImportDialog::DBImportDialog( TQWidget *parent, const char *name )
#endif
// signals and slots connections
connect( dbButtonGroup, SIGNAL( clicked( int ) ), this, SLOT( switchDBPage( int ) ) );
connect( dbButtonGroup, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( switchDBPage( int ) ) );
}
void DBImportDialog::languageChange()

@ -32,9 +32,9 @@ DietViewDialog::DietViewDialog( TQWidget *parent, const RecipeList &recipeList,
setSizeGripEnabled( true );
connect ( this, SIGNAL( user2Clicked() ), this, SLOT( slotOk() ) );
connect ( this, SIGNAL( closeClicked() ), this, SLOT( close() ) );
connect ( this, SIGNAL( user1Clicked() ), this, SLOT( print() ) );
connect ( this, TQ_SIGNAL( user2Clicked() ), this, TQ_SLOT( slotOk() ) );
connect ( this, TQ_SIGNAL( closeClicked() ), this, TQ_SLOT( close() ) );
connect ( this, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT( print() ) );
// Show the diet
showDiet( recipeList, dayNumber, mealNumber, dishNumbers );

@ -97,10 +97,10 @@ DietWizardDialog::DietWizardDialog( TQWidget *parent, RecipeDB *db ) : TQVBox( p
mealTabs->setCurrentPage( mealTabs->indexOf( mealTab ) );
// Signals & Slots
connect( mealNumberSelector, SIGNAL( valueChanged( int ) ), this, SLOT( changeMealNumber( int ) ) );
connect( dayNumberSelector, SIGNAL( valueChanged( int ) ), this, SLOT( changeDayNumber( int ) ) );
connect( okButton, SIGNAL( clicked() ), this, SLOT( createDiet() ) );
connect( clearButton, SIGNAL( clicked() ), this, SLOT( clear() ) );
connect( mealNumberSelector, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( changeMealNumber( int ) ) );
connect( dayNumberSelector, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( changeDayNumber( int ) ) );
connect( okButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( createDiet() ) );
connect( clearButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( clear() ) );
}
@ -246,7 +246,7 @@ void DietWizardDialog::createDiet( void )
// display the list
DietViewDialog dietDisplay( this, *dietRList, dayNumber, mealNumber, dishNumbers );
connect( &dietDisplay, SIGNAL( signalOk() ), this, SLOT( createShoppingList() ) );
connect( &dietDisplay, TQ_SIGNAL( signalOk() ), this, TQ_SLOT( createShoppingList() ) );
dietDisplay.exec();
}
@ -366,9 +366,9 @@ MealInput::MealInput( TQWidget *parent, RecipeDB *db ) : TQWidget( parent ),
dishNumberInput->setValue( dishNumber );
// Signals & Slots
connect( dishNumberInput, SIGNAL( valueChanged( int ) ), this, SLOT( changeDishNumber( int ) ) );
connect( buttonPrev, SIGNAL( clicked() ), this, SLOT( prevDish() ) );
connect( buttonNext, SIGNAL( clicked() ), this, SLOT( nextDish() ) );
connect( dishNumberInput, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( changeDishNumber( int ) ) );
connect( buttonPrev, TQ_SIGNAL( clicked() ), this, TQ_SLOT( prevDish() ) );
connect( buttonNext, TQ_SIGNAL( clicked() ), this, TQ_SLOT( nextDish() ) );
}
@ -494,11 +494,11 @@ DishInput::DishInput( TQWidget* parent, RecipeDB *db, const TQString &title ) :
// Connect Signals & Slots
connect( constraintsView, SIGNAL( executed( TQListViewItem* ) ), this, SLOT( insertConstraintsEditBoxes( TQListViewItem* ) ) );
connect( constraintsView, SIGNAL( selectionChanged() ), this, SLOT( hideConstraintInputs() ) );
connect( constraintsEditBox1, SIGNAL( valueChanged( double ) ), this, SLOT( setMinValue( double ) ) );
connect( constraintsEditBox2, SIGNAL( valueChanged( double ) ), this, SLOT( setMaxValue( double ) ) );
connect( categoriesEnabledBox, SIGNAL( toggled( bool ) ), this, SLOT( enableCategories( bool ) ) );
connect( constraintsView, TQ_SIGNAL( executed( TQListViewItem* ) ), this, TQ_SLOT( insertConstraintsEditBoxes( TQListViewItem* ) ) );
connect( constraintsView, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( hideConstraintInputs() ) );
connect( constraintsEditBox1, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SLOT( setMinValue( double ) ) );
connect( constraintsEditBox2, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SLOT( setMaxValue( double ) ) );
connect( categoriesEnabledBox, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( enableCategories( bool ) ) );
}
DishInput::~DishInput()

@ -115,13 +115,13 @@ void EditRatingDialog::init( const ElementList &criteriaList )
resize( TQSize(358, 331).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
connect( criteriaListView, SIGNAL(itemRenamed(TQListViewItem*,const TQString &,int)), this, SLOT(itemRenamed(TQListViewItem*,const TQString &,int)) );
connect( addButton, SIGNAL(clicked()), this, SLOT(slotAddRatingCriteria()) );
connect( removeButton, SIGNAL(clicked()), this, SLOT(slotRemoveRatingCriteria()) );
connect( criteriaListView, TQ_SIGNAL(itemRenamed(TQListViewItem*,const TQString &,int)), this, TQ_SLOT(itemRenamed(TQListViewItem*,const TQString &,int)) );
connect( addButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAddRatingCriteria()) );
connect( removeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemoveRatingCriteria()) );
TDEIconLoader il;
TDEPopupMenu *kpop = new TDEPopupMenu( criteriaListView );
kpop->insertItem( il.loadIcon( "editshred", TDEIcon::NoGroup, 16 ), i18n( "&Delete" ), this, SLOT( slotRemoveRatingCriteria() ), Key_Delete );
kpop->insertItem( il.loadIcon( "editshred", TDEIcon::NoGroup, 16 ), i18n( "&Delete" ), this, TQ_SLOT( slotRemoveRatingCriteria() ), Key_Delete );
for ( ElementList::const_iterator criteria_it = criteriaList.begin(); criteria_it != criteriaList.end(); ++criteria_it ) {
criteriaComboBox->insertItem( ( *criteria_it ).name );

@ -55,8 +55,8 @@ IngredientGroupsDialog::IngredientGroupsDialog( RecipeDB *db, TQWidget *parent,
layout->addLayout(buttonLayout);
connect( addHeaderButton, SIGNAL( clicked() ), list_view, SLOT( createNew() ) );
connect( removeHeaderButton, SIGNAL( clicked() ), list_view, SLOT( remove() ) );
connect( addHeaderButton, TQ_SIGNAL( clicked() ), list_view, TQ_SLOT( createNew() ) );
connect( removeHeaderButton, TQ_SIGNAL( clicked() ), list_view, TQ_SLOT( remove() ) );
}
void IngredientGroupsDialog::reload( ReloadFlags flag )

@ -122,13 +122,13 @@ IngredientMatcherDialog::IngredientMatcherDialog( TQWidget *parent, RecipeDB *db
dialogLayout->addWidget(buttonBox);
// Connect signals & slots
connect ( okButton, SIGNAL( clicked() ), this, SLOT( findRecipes() ) );
connect ( clearButton, SIGNAL( clicked() ), recipeListView->listView(), SLOT( clear() ) );
connect ( clearButton, SIGNAL( clicked() ), this, SLOT( unselectIngredients() ) );
connect ( actionHandler, SIGNAL( recipeSelected( int, int ) ), SIGNAL( recipeSelected( int, int ) ) );
connect( addButton, SIGNAL( clicked() ), this, SLOT( addIngredient() ) );
connect( removeButton, SIGNAL( clicked() ), this, SLOT( removeIngredient() ) );
connect( ingListView->listView(), SIGNAL( doubleClicked( TQListViewItem*, const TQPoint &, int ) ), SLOT( itemRenamed( TQListViewItem*, const TQPoint &, int ) ) );
connect ( okButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( findRecipes() ) );
connect ( clearButton, TQ_SIGNAL( clicked() ), recipeListView->listView(), TQ_SLOT( clear() ) );
connect ( clearButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( unselectIngredients() ) );
connect ( actionHandler, TQ_SIGNAL( recipeSelected( int, int ) ), TQ_SIGNAL( recipeSelected( int, int ) ) );
connect( addButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addIngredient() ) );
connect( removeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeIngredient() ) );
connect( ingListView->listView(), TQ_SIGNAL( doubleClicked( TQListViewItem*, const TQPoint &, int ) ), TQ_SLOT( itemRenamed( TQListViewItem*, const TQPoint &, int ) ) );
}
IngredientMatcherDialog::~IngredientMatcherDialog()

@ -83,11 +83,11 @@ IngredientParserDialog::IngredientParserDialog( const UnitList &units, TQWidget*
buttonBox->addItem( horizontalSpacing );
TDEPopupMenu *kpop = new TDEPopupMenu( previewIngView );
kpop->insertItem( i18n( "&Delete" ), this, SLOT( removeIngredient() ), Key_Delete );
kpop->insertItem( i18n("Set &Header") , this, SLOT( convertToHeader() ) );
kpop->insertItem( i18n( "&Delete" ), this, TQ_SLOT( removeIngredient() ), Key_Delete );
kpop->insertItem( i18n("Set &Header") , this, TQ_SLOT( convertToHeader() ) );
connect( parseButton, SIGNAL(clicked()), this, SLOT(parseText()) );
connect( buttonGroup, SIGNAL(clicked()), this, SLOT(convertToHeader()) );
connect( parseButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(parseText()) );
connect( buttonGroup, TQ_SIGNAL(clicked()), this, TQ_SLOT(convertToHeader()) );
}
IngredientParserDialog::~IngredientParserDialog()

@ -272,23 +272,23 @@ IngredientsDialog::IngredientsDialog( TQWidget* parent, RecipeDB *db ) : TQWidge
unitList = new UnitList;
// Signals & Slots
connect( ingredientListView->listView(), SIGNAL( selectionChanged() ), this, SLOT( updateLists() ) );
connect( addIngredientButton, SIGNAL( clicked() ), list_view, SLOT( createNew() ) );
connect( addUnitButton, SIGNAL( clicked() ), this, SLOT( addUnitToIngredient() ) );
connect( removeUnitButton, SIGNAL( clicked() ), this, SLOT( removeUnitFromIngredient() ) );
connect( addWeightButton, SIGNAL( clicked() ), this, SLOT( addWeight() ) );
connect( removeWeightButton, SIGNAL( clicked() ), this, SLOT( removeWeight() ) );
connect( removeIngredientButton, SIGNAL( clicked() ), list_view, SLOT( remove
connect( ingredientListView->listView(), TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( updateLists() ) );
connect( addIngredientButton, TQ_SIGNAL( clicked() ), list_view, TQ_SLOT( createNew() ) );
connect( addUnitButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addUnitToIngredient() ) );
connect( removeUnitButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeUnitFromIngredient() ) );
connect( addWeightButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addWeight() ) );
connect( removeWeightButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeWeight() ) );
connect( removeIngredientButton, TQ_SIGNAL( clicked() ), list_view, TQ_SLOT( remove
() ) );
connect( addPropertyButton, SIGNAL( clicked() ), this, SLOT( addPropertyToIngredient() ) );
connect( removePropertyButton, SIGNAL( clicked() ), this, SLOT( removePropertyFromIngredient() ) );
connect( propertiesListView->listView(), SIGNAL( executed( TQListViewItem* ) ), this, SLOT( insertPropertyEditBox( TQListViewItem* ) ) );
connect( propertiesListView->listView(), SIGNAL( selectionChanged() ), inputBox, SLOT( hide() ) );
connect( inputBox, SIGNAL( valueChanged( double ) ), this, SLOT( setPropertyAmount( double ) ) );
connect( addPropertyButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addPropertyToIngredient() ) );
connect( removePropertyButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removePropertyFromIngredient() ) );
connect( propertiesListView->listView(), TQ_SIGNAL( executed( TQListViewItem* ) ), this, TQ_SLOT( insertPropertyEditBox( TQListViewItem* ) ) );
connect( propertiesListView->listView(), TQ_SIGNAL( selectionChanged() ), inputBox, TQ_SLOT( hide() ) );
connect( inputBox, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SLOT( setPropertyAmount( double ) ) );
connect( weightsListView->listView(), SIGNAL( doubleClicked( TQListViewItem*, const TQPoint &, int ) ), SLOT( itemRenamed( TQListViewItem*, const TQPoint &, int ) ) );
connect( weightsListView->listView(), TQ_SIGNAL( doubleClicked( TQListViewItem*, const TQPoint &, int ) ), TQ_SLOT( itemRenamed( TQListViewItem*, const TQPoint &, int ) ) );
connect( loadUsdaButton, SIGNAL( clicked() ), this, SLOT( openUSDADialog() ) );
connect( loadUsdaButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( openUSDADialog() ) );
}

@ -46,29 +46,29 @@ PageSetupDialog::PageSetupDialog( TQWidget *parent, const Recipe &sample, const
TDEActionCollection *actionCollection = new TDEActionCollection( this );
TDEAction *std_open = KStdAction::open( 0, 0, 0 ); //use this to create a custom open action
TDEToolBarPopupAction *custom_open = new TDEToolBarPopupAction( std_open->text(), std_open->icon(), std_open->shortcut(), this, SLOT( loadFile() ), actionCollection, "open_popup" );
TDEToolBarPopupAction *custom_open = new TDEToolBarPopupAction( std_open->text(), std_open->icon(), std_open->shortcut(), this, TQ_SLOT( loadFile() ), actionCollection, "open_popup" );
TDEPopupMenu *open_popup = custom_open->popupMenu();
open_popup->insertTitle( i18n( "Styles" ) );
TQDir included_layouts( getIncludedLayoutDir(), "*.klo", TQDir::Name | TQDir::IgnoreCase, TQDir::Files );
for ( unsigned int i = 0; i < included_layouts.count(); i++ ) {
int id = open_popup->insertItem( included_layouts[ i ].left(included_layouts[ i ].find(".")), this, SLOT( loadLayout( int ) ) );
int id = open_popup->insertItem( included_layouts[ i ].left(included_layouts[ i ].find(".")), this, TQ_SLOT( loadLayout( int ) ) );
included_layouts_map.insert( id, included_layouts[ i ] );
}
open_popup->insertTitle( i18n( "Templates" ) );
TQDir included_templates( getIncludedLayoutDir(), "*.template", TQDir::Name | TQDir::IgnoreCase, TQDir::Files );
for ( unsigned int i = 0; i < included_templates.count(); i++ ) {
int id = open_popup->insertItem( included_templates[ i ].left(included_templates[ i ].find(".")).replace("_"," "), this, SLOT( loadTemplate( int ) ) );
int id = open_popup->insertItem( included_templates[ i ].left(included_templates[ i ].find(".")).replace("_"," "), this, TQ_SLOT( loadTemplate( int ) ) );
included_layouts_map.insert( id, included_templates[ i ] );
}
custom_open->plug( toolbar );
KStdAction::save( this, SLOT( saveLayout() ), actionCollection ) ->plug( toolbar );
KStdAction::saveAs( this, SLOT( saveAsLayout() ), actionCollection ) ->plug( toolbar );
KStdAction::redisplay( this, SLOT( reloadLayout() ), actionCollection ) ->plug( toolbar );
KStdAction::save( this, TQ_SLOT( saveLayout() ), actionCollection ) ->plug( toolbar );
KStdAction::saveAs( this, TQ_SLOT( saveAsLayout() ), actionCollection ) ->plug( toolbar );
KStdAction::redisplay( this, TQ_SLOT( reloadLayout() ), actionCollection ) ->plug( toolbar );
TDEToolBarPopupAction *shown_items = new TDEToolBarPopupAction( i18n( "Items Shown" ), "frame_edit" );
shown_items->setDelayed( false );
@ -88,9 +88,9 @@ PageSetupDialog::PageSetupDialog( TQWidget *parent, const Recipe &sample, const
TQPushButton *cancelButton = new TQPushButton( il.loadIconSet( "cancel", TDEIcon::Small ), i18n( "&Cancel" ), buttonsBox );
layout->addWidget( buttonsBox );
connect( m_htmlPart, SIGNAL(itemVisibilityChanged(KreDisplayItem*,bool)), this, SLOT(updateItemVisibility(KreDisplayItem*,bool)) );
connect( okButton, SIGNAL( clicked() ), SLOT( accept() ) );
connect( cancelButton, SIGNAL( clicked() ), SLOT( reject() ) );
connect( m_htmlPart, TQ_SIGNAL(itemVisibilityChanged(KreDisplayItem*,bool)), this, TQ_SLOT(updateItemVisibility(KreDisplayItem*,bool)) );
connect( okButton, TQ_SIGNAL( clicked() ), TQ_SLOT( accept() ) );
connect( cancelButton, TQ_SIGNAL( clicked() ), TQ_SLOT( reject() ) );
TDEConfig *config = TDEGlobal::config();
config->setGroup( "Page Setup" );
@ -178,7 +178,7 @@ void PageSetupDialog::initShownItems()
if ( properties[item] & SetupDisplay::Visibility ) {
int new_id = shown_items_popup->insertItem ( *it );
shown_items_popup->setItemChecked( new_id, item->show );
shown_items_popup->connectItem( new_id, this, SLOT( setItemShown( int ) ) );
shown_items_popup->connectItem( new_id, this, TQ_SLOT( setItemShown( int ) ) );
popup_widget_map.insert( new_id, item );
widget_popup_map.insert( item, new_id );

@ -50,8 +50,8 @@ PrepMethodsDialog::PrepMethodsDialog( TQWidget* parent, RecipeDB *db ) : TQWidge
//Connect Signals & Slots
connect ( newPrepMethodButton, SIGNAL( clicked() ), prepMethodListView, SLOT( createNew() ) );
connect ( removePrepMethodButton, SIGNAL( clicked() ), prepMethodListView, SLOT( remove
connect ( newPrepMethodButton, TQ_SIGNAL( clicked() ), prepMethodListView, TQ_SLOT( createNew() ) );
connect ( removePrepMethodButton, TQ_SIGNAL( clicked() ), prepMethodListView, TQ_SLOT( remove
() ) );
}

@ -56,8 +56,8 @@ PropertiesDialog::PropertiesDialog( TQWidget *parent, RecipeDB *db ) : TQWidget(
layout->addLayout( vboxl );
// Connect signals & slots
connect( addPropertyButton, SIGNAL( clicked() ), propertyListView, SLOT( createNew() ) );
connect( removePropertyButton, SIGNAL( clicked() ), propertyListView, SLOT( remove
connect( addPropertyButton, TQ_SIGNAL( clicked() ), propertyListView, TQ_SLOT( createNew() ) );
connect( removePropertyButton, TQ_SIGNAL( clicked() ), propertyListView, TQ_SLOT( remove
() ) );
//FIXME: We've got some sort of build issue... we get undefined references to CreatePropertyDialog without this dummy code here

@ -417,7 +417,7 @@ RecipeInputDialog::RecipeInputDialog( TQWidget* parent, RecipeDB *db ) : TQVBox(
ratingListDisplayWidget = new KWidgetListbox(ratingsTab);
TQPushButton *addRatingButton = new TQPushButton(i18n("Add Rating..."),ratingsTab);
connect( addRatingButton, SIGNAL(clicked()), this, SLOT(slotAddRating()) );
connect( addRatingButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAddRating()) );
// ------- END OF Recipe Ratings Tab -----------
@ -464,41 +464,41 @@ RecipeInputDialog::RecipeInputDialog( TQWidget* parent, RecipeDB *db ) : TQVBox(
enableChangedSignal(); // Enables the signal "changed()"
// Connect signals & Slots
connect( changePhotoButton, SIGNAL( clicked() ), this, SLOT( changePhoto() ) );
connect( clearPhotoButton, SIGNAL( clicked() ), SLOT( clearPhoto() ) );
connect( upButton, SIGNAL( clicked() ), this, SLOT( moveIngredientUp() ) );
connect( downButton, SIGNAL( clicked() ), this, SLOT( moveIngredientDown() ) );
connect( removeButton, SIGNAL( clicked() ), this, SLOT( removeIngredient() ) );
connect( addButton, SIGNAL( clicked() ), ingInput, SLOT( addIngredient() ) );
connect( ingParserButton, SIGNAL( clicked() ), this, SLOT( slotIngredientParser() ) );
connect( photoLabel, SIGNAL( changed() ), this, SIGNAL( changed() ) );
connect( this, SIGNAL( changed() ), this, SLOT( recipeChanged() ) );
connect( yieldNumInput, SIGNAL( textChanged( const TQString & ) ), this, SLOT( recipeChanged() ) );
connect( yieldTypeEdit, SIGNAL( textChanged( const TQString & ) ), this, SLOT( recipeChanged() ) );
connect( prepTimeEdit, SIGNAL( valueChanged( const TQTime & ) ), SLOT( recipeChanged() ) );
connect( titleEdit, SIGNAL( textChanged( const TQString& ) ), this, SLOT( recipeChanged( const TQString& ) ) );
connect( instructionsEdit, SIGNAL( textChanged() ), this, SLOT( recipeChanged() ) );
connect( addCategoryButton, SIGNAL( clicked() ), this, SLOT( addCategory() ) );
connect( addAuthorButton, SIGNAL( clicked() ), this, SLOT( addAuthor() ) );
connect( titleEdit, SIGNAL( textChanged( const TQString& ) ), this, SLOT( prepTitleChanged( const TQString& ) ) );
connect( ingredientList, SIGNAL( itemRenamed( TQListViewItem*, const TQString &, int ) ), SLOT( syncListView( TQListViewItem*, const TQString &, int ) ) );
connect ( ingInput, SIGNAL( ingredientEntered(const Ingredient&) ), this, SLOT( addIngredient(const Ingredient&) ) );
connect ( ingInput, SIGNAL( headerEntered(const Element&) ), this, SLOT( addIngredientHeader(const Element&) ) );
connect( propertyStatusLed, SIGNAL(clicked()), SLOT(updatePropertyStatus()) );
connect( propertyStatusDialog, SIGNAL(user1Clicked()), SLOT(updatePropertyStatus()) );
connect( propertyStatusButton, SIGNAL(clicked()), propertyStatusDialog, SLOT(show()) );
connect( changePhotoButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( changePhoto() ) );
connect( clearPhotoButton, TQ_SIGNAL( clicked() ), TQ_SLOT( clearPhoto() ) );
connect( upButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( moveIngredientUp() ) );
connect( downButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( moveIngredientDown() ) );
connect( removeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeIngredient() ) );
connect( addButton, TQ_SIGNAL( clicked() ), ingInput, TQ_SLOT( addIngredient() ) );
connect( ingParserButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotIngredientParser() ) );
connect( photoLabel, TQ_SIGNAL( changed() ), this, TQ_SIGNAL( changed() ) );
connect( this, TQ_SIGNAL( changed() ), this, TQ_SLOT( recipeChanged() ) );
connect( yieldNumInput, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( recipeChanged() ) );
connect( yieldTypeEdit, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( recipeChanged() ) );
connect( prepTimeEdit, TQ_SIGNAL( valueChanged( const TQTime & ) ), TQ_SLOT( recipeChanged() ) );
connect( titleEdit, TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( recipeChanged( const TQString& ) ) );
connect( instructionsEdit, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( recipeChanged() ) );
connect( addCategoryButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addCategory() ) );
connect( addAuthorButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addAuthor() ) );
connect( titleEdit, TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( prepTitleChanged( const TQString& ) ) );
connect( ingredientList, TQ_SIGNAL( itemRenamed( TQListViewItem*, const TQString &, int ) ), TQ_SLOT( syncListView( TQListViewItem*, const TQString &, int ) ) );
connect ( ingInput, TQ_SIGNAL( ingredientEntered(const Ingredient&) ), this, TQ_SLOT( addIngredient(const Ingredient&) ) );
connect ( ingInput, TQ_SIGNAL( headerEntered(const Element&) ), this, TQ_SLOT( addIngredientHeader(const Element&) ) );
connect( propertyStatusLed, TQ_SIGNAL(clicked()), TQ_SLOT(updatePropertyStatus()) );
connect( propertyStatusDialog, TQ_SIGNAL(user1Clicked()), TQ_SLOT(updatePropertyStatus()) );
connect( propertyStatusButton, TQ_SIGNAL(clicked()), propertyStatusDialog, TQ_SLOT(show()) );
// Function buttons
connect ( saveButton, SIGNAL( clicked() ), this, SLOT( save() ) );
connect ( closeButton, SIGNAL( clicked() ), this, SLOT( closeOptions() ) );
connect ( showButton, SIGNAL( clicked() ), this, SLOT( showRecipe() ) );
connect ( resizeButton, SIGNAL( clicked() ), this, SLOT( resizeRecipe() ) );
connect ( spellCheckButton, SIGNAL( clicked() ), this, SLOT( spellCheck() ) );
connect ( this, SIGNAL( enableSaveOption( bool ) ), this, SLOT( enableSaveButton( bool ) ) );
connect ( saveButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( save() ) );
connect ( closeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( closeOptions() ) );
connect ( showButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( showRecipe() ) );
connect ( resizeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( resizeRecipe() ) );
connect ( spellCheckButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( spellCheck() ) );
connect ( this, TQ_SIGNAL( enableSaveOption( bool ) ), this, TQ_SLOT( enableSaveButton( bool ) ) );
connect ( database, SIGNAL( recipeRemoved(int) ), this, SLOT( recipeRemoved(int) ) );
connect ( database, TQ_SIGNAL( recipeRemoved(int) ), this, TQ_SLOT( recipeRemoved(int) ) );
delete il;
@ -1373,10 +1373,10 @@ void RecipeInputDialog::addRating( const Rating &rating, RatingDisplayWidget *it
item->buttonEdit->disconnect();
item->buttonRemove->disconnect();
connect(item->buttonEdit, SIGNAL(clicked()),
this, SLOT(slotEditRating()));
connect(item->buttonRemove, SIGNAL(clicked()),
this, SLOT(slotRemoveRating()));
connect(item->buttonEdit, TQ_SIGNAL(clicked()),
this, TQ_SLOT(slotEditRating()));
connect(item->buttonRemove, TQ_SIGNAL(clicked()),
this, TQ_SLOT(slotRemoveRating()));
}
void RecipeInputDialog::slotEditRating()

@ -40,7 +40,7 @@ RecipeViewDialog::RecipeViewDialog( TQWidget *parent, RecipeDB *db, int recipeID
// Initialize UI Elements
recipeView = new TDEHTMLPart( this );
connect( database, SIGNAL(recipeRemoved(int)), SLOT(recipeRemoved(int)) );
connect( database, TQ_SIGNAL(recipeRemoved(int)), TQ_SLOT(recipeRemoved(int)) );
tmp_filename = locateLocal( "tmp", "krecipes_recipe_view" );

@ -84,9 +84,9 @@ RefineShoppingListDialog::RefineShoppingListDialog( TQWidget* parent, RecipeDB *
clearWState( WState_Polished );
connect( addButton, SIGNAL( clicked() ), this, SLOT( addIngredient() ) );
connect( removeButton, SIGNAL( clicked() ), this, SLOT( removeIngredient() ) );
connect( ingListView->listView(), SIGNAL( itemRenamed( TQListViewItem*, const TQString &, int ) ), SLOT( itemRenamed( TQListViewItem*, const TQString &, int ) ) );
connect( addButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addIngredient() ) );
connect( removeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeIngredient() ) );
connect( ingListView->listView(), TQ_SIGNAL( itemRenamed( TQListViewItem*, const TQString &, int ) ), TQ_SLOT( itemRenamed( TQListViewItem*, const TQString &, int ) ) );
TDEApplication::setOverrideCursor( KCursor::waitCursor() );
calculateShopping( recipeList, &ingredientList, database );

@ -118,7 +118,7 @@ ResizeRecipeDialog::ResizeRecipeDialog( TQWidget *parent, Recipe *recipe )
}
// signals and slots connections
connect( buttonGroup, SIGNAL( clicked( int ) ), this, SLOT( activateCurrentOption( int ) ) );
connect( buttonGroup, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( activateCurrentOption( int ) ) );
}
void ResizeRecipeDialog::languageChange()

@ -71,8 +71,8 @@ SelectAuthorsDialog::SelectAuthorsDialog( TQWidget *parent, const ElementList &c
resize(450, height());
// Connect signals & Slots
connect ( addAuthorButton, SIGNAL( clicked() ), this, SLOT( addAuthor() ) );
connect ( removeAuthorButton, SIGNAL( clicked() ), this, SLOT( removeAuthor() ) );
connect ( addAuthorButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addAuthor() ) );
connect ( removeAuthorButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeAuthor() ) );
authorsCombo->setEditText(TQString::null);
authorsCombo->lineEdit()->setFocus();

@ -48,7 +48,7 @@ SelectCategoriesDialog::SelectCategoriesDialog( TQWidget *parent, const ElementL
setSizeGripEnabled( true );
// Connect signals & Slots
connect ( newCatButton, SIGNAL( clicked() ), SLOT( createNewCategory() ) );
connect ( newCatButton, TQ_SIGNAL( clicked() ), TQ_SLOT( createNewCategory() ) );
}
SelectCategoriesDialog::~SelectCategoriesDialog()

@ -125,41 +125,41 @@ SelectRecipeDialog::SelectRecipeDialog( TQWidget *parent, RecipeDB* db )
// Signals & Slots
connect( openButton, SIGNAL( clicked() ), actionHandler, SLOT( open() ) );
connect( this, SIGNAL( recipeSelected( bool ) ), openButton, SLOT( setEnabled( bool ) ) );
connect( editButton, SIGNAL( clicked() ), actionHandler, SLOT( edit() ) );
connect( this, SIGNAL( recipeSelected( bool ) ), editButton, SLOT( setEnabled( bool ) ) );
connect( removeButton, SIGNAL( clicked() ), actionHandler, SLOT( remove() ) );
connect( this, SIGNAL( recipeSelected( bool ) ), removeButton, SLOT( setEnabled( bool ) ) );
connect( openButton, TQ_SIGNAL( clicked() ), actionHandler, TQ_SLOT( open() ) );
connect( this, TQ_SIGNAL( recipeSelected( bool ) ), openButton, TQ_SLOT( setEnabled( bool ) ) );
connect( editButton, TQ_SIGNAL( clicked() ), actionHandler, TQ_SLOT( edit() ) );
connect( this, TQ_SIGNAL( recipeSelected( bool ) ), editButton, TQ_SLOT( setEnabled( bool ) ) );
connect( removeButton, TQ_SIGNAL( clicked() ), actionHandler, TQ_SLOT( remove() ) );
connect( this, TQ_SIGNAL( recipeSelected( bool ) ), removeButton, TQ_SLOT( setEnabled( bool ) ) );
connect( clearSearchButton, SIGNAL( clicked() ), this, SLOT( clearSearch() ) );
connect( clearSearchButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( clearSearch() ) );
TDEConfig * config = kapp->config();
config->setGroup( "Performance" );
if ( config->readBoolEntry("SearchAsYouType",true) ) {
connect( searchBox, SIGNAL( returnPressed( const TQString& ) ), recipeFilter, SLOT( filter( const TQString& ) ) );
connect( searchBox, SIGNAL( textChanged( const TQString& ) ), this, SLOT( ensurePopulated() ) );
connect( searchBox, SIGNAL( textChanged( const TQString& ) ), recipeFilter, SLOT( filter( const TQString& ) ) );
connect( searchBox, TQ_SIGNAL( returnPressed( const TQString& ) ), recipeFilter, TQ_SLOT( filter( const TQString& ) ) );
connect( searchBox, TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( ensurePopulated() ) );
connect( searchBox, TQ_SIGNAL( textChanged( const TQString& ) ), recipeFilter, TQ_SLOT( filter( const TQString& ) ) );
}
else {
connect( searchBox, SIGNAL( returnPressed( const TQString& ) ), this, SLOT( ensurePopulated() ) );
connect( searchBox, SIGNAL( returnPressed( const TQString& ) ), recipeFilter, SLOT( filter( const TQString& ) ) );
connect( searchBox, TQ_SIGNAL( returnPressed( const TQString& ) ), this, TQ_SLOT( ensurePopulated() ) );
connect( searchBox, TQ_SIGNAL( returnPressed( const TQString& ) ), recipeFilter, TQ_SLOT( filter( const TQString& ) ) );
}
connect( recipeListView, SIGNAL( selectionChanged() ), this, SLOT( haveSelectedItems() ) );
connect( recipeListView, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( haveSelectedItems() ) );
#ifdef ENABLE_SLOW
connect( recipeListView, SIGNAL( nextGroupLoaded() ), categoryBox, SLOT( loadNextGroup() ) );
connect( recipeListView, SIGNAL( prevGroupLoaded() ), categoryBox, SLOT( loadPrevGroup() ) );
connect( categoryBox, SIGNAL( activated( int ) ), this, SLOT( filterComboCategory( int ) ) );
connect( recipeListView, TQ_SIGNAL( nextGroupLoaded() ), categoryBox, TQ_SLOT( loadNextGroup() ) );
connect( recipeListView, TQ_SIGNAL( prevGroupLoaded() ), categoryBox, TQ_SLOT( loadPrevGroup() ) );
connect( categoryBox, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( filterComboCategory( int ) ) );
#endif
connect( recipeListView, SIGNAL( nextGroupLoaded() ), SLOT( refilter() ) );
connect( recipeListView, SIGNAL( prevGroupLoaded() ), SLOT( refilter() ) );
connect( recipeListView, TQ_SIGNAL( nextGroupLoaded() ), TQ_SLOT( refilter() ) );
connect( recipeListView, TQ_SIGNAL( prevGroupLoaded() ), TQ_SLOT( refilter() ) );
connect( advancedSearch, SIGNAL( recipeSelected( int, int ) ), SIGNAL( recipeSelected( int, int ) ) );
connect( advancedSearch, SIGNAL( recipesSelected( const TQValueList<int> &, int ) ), SIGNAL( recipesSelected( const TQValueList<int> &, int ) ) );
connect( advancedSearch, TQ_SIGNAL( recipeSelected( int, int ) ), TQ_SIGNAL( recipeSelected( int, int ) ) );
connect( advancedSearch, TQ_SIGNAL( recipesSelected( const TQValueList<int> &, int ) ), TQ_SIGNAL( recipesSelected( const TQValueList<int> &, int ) ) );
connect( actionHandler, SIGNAL( recipeSelected( int, int ) ), SIGNAL( recipeSelected( int, int ) ) );
connect( actionHandler, SIGNAL( recipesSelected( const TQValueList<int> &, int ) ), SIGNAL( recipesSelected( const TQValueList<int> &, int ) ) );
connect( actionHandler, TQ_SIGNAL( recipeSelected( int, int ) ), TQ_SIGNAL( recipeSelected( int, int ) ) );
connect( actionHandler, TQ_SIGNAL( recipesSelected( const TQValueList<int> &, int ) ), TQ_SIGNAL( recipesSelected( const TQValueList<int> &, int ) ) );
delete il;
}

@ -62,7 +62,7 @@ SetupDisplay::SetupDisplay( const Recipe &sample, TQWidget *parent ) : TDEHTMLPa
has_changes( false ),
popup(0)
{
connect( this, SIGNAL( popupMenu(const TQString &,const TQPoint &) ), SLOT( nodeClicked(const TQString &,const TQPoint &) ) );
connect( this, TQ_SIGNAL( popupMenu(const TQString &,const TQPoint &) ), TQ_SLOT( nodeClicked(const TQString &,const TQPoint &) ) );
if ( sample.recipeID != -1 )
m_sample = sample;
@ -420,16 +420,16 @@ void SetupDisplay::nodeClicked(const TQString &/*url*/,const TQPoint &point)
TDEIconLoader il;
if ( properties & BackgroundColor )
popup->insertItem( i18n( "Background Color..." ), this, SLOT( setBackgroundColor() ) );
popup->insertItem( i18n( "Background Color..." ), this, TQ_SLOT( setBackgroundColor() ) );
if ( properties & TextColor )
popup->insertItem( i18n( "Text Color..." ), this, SLOT( setTextColor() ) );
popup->insertItem( i18n( "Text Color..." ), this, TQ_SLOT( setTextColor() ) );
if ( properties & Font )
popup->insertItem( il.loadIconSet( "text", TDEIcon::Small, 16 ), i18n( "Font..." ), this, SLOT( setFont() ) );
popup->insertItem( il.loadIconSet( "text", TDEIcon::Small, 16 ), i18n( "Font..." ), this, TQ_SLOT( setFont() ) );
if ( properties & Visibility ) {
int id = popup->insertItem( i18n( "Show" ), this, SLOT( setShown( int ) ) );
int id = popup->insertItem( i18n( "Show" ), this, TQ_SLOT( setShown( int ) ) );
popup->setItemChecked( id, item->show );
}
@ -451,7 +451,7 @@ void SetupDisplay::nodeClicked(const TQString &/*url*/,const TQPoint &point)
if ( align & TQt::AlignRight )
r_action->setOn(true);
connect( alignment_actions, SIGNAL( selected( TQAction* ) ), SLOT( setAlignment( TQAction* ) ) );
connect( alignment_actions, TQ_SIGNAL( selected( TQAction* ) ), TQ_SLOT( setAlignment( TQAction* ) ) );
popup->insertItem( i18n( "Alignment" ), sub_popup );
@ -459,10 +459,10 @@ void SetupDisplay::nodeClicked(const TQString &/*url*/,const TQPoint &point)
}
if ( properties & Border )
popup->insertItem( i18n( "Border..." ), this, SLOT( setBorder() ) );
popup->insertItem( i18n( "Border..." ), this, TQ_SLOT( setBorder() ) );
if ( properties & Columns )
popup->insertItem( i18n( "Columns..." ), this, SLOT( setColumns() ) );
popup->insertItem( i18n( "Columns..." ), this, TQ_SLOT( setColumns() ) );
popup->popup( point );
}

@ -70,11 +70,11 @@ ShoppingListDialog::ShoppingListDialog( TQWidget *parent, RecipeDB *db ) : TQWid
listview->setDragEnabled( true );
listview->setAcceptDrops( true );
listview->setDropVisualizer( false );
connect( recipeListView, SIGNAL( textChanged(const TQString&) ), SLOT( ensurePopulated() ) );
connect( listview, SIGNAL( dropped( TDEListView*, TQDropEvent*, TQListViewItem* ) ),
this, SLOT( slotDropped( TDEListView*, TQDropEvent*, TQListViewItem* ) ) );
connect( recipeListView, TQ_SIGNAL( textChanged(const TQString&) ), TQ_SLOT( ensurePopulated() ) );
connect( listview, TQ_SIGNAL( dropped( TDEListView*, TQDropEvent*, TQListViewItem* ) ),
this, TQ_SLOT( slotDropped( TDEListView*, TQDropEvent*, TQListViewItem* ) ) );
recipeListView->setListView( listview );
recipeListView->setCustomFilter( new RecipeFilter( recipeListView->listView() ), SLOT( filter( const TQString & ) ) );
recipeListView->setCustomFilter( new RecipeFilter( recipeListView->listView() ), TQ_SLOT( filter( const TQString & ) ) );
recipeListView->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
TQBoxLayout* vboxl = new TQVBoxLayout( KDialog::spacingHint() );
@ -100,8 +100,8 @@ ShoppingListDialog::ShoppingListDialog( TQWidget *parent, RecipeDB *db ) : TQWid
slistview->setDragEnabled( true );
slistview->setAcceptDrops( true );
slistview->setDropVisualizer( false );
connect( slistview, SIGNAL( dropped( TDEListView*, TQDropEvent*, TQListViewItem* ) ),
this, SLOT( slotDropped( TDEListView*, TQDropEvent*, TQListViewItem* ) ) );
connect( slistview, TQ_SIGNAL( dropped( TDEListView*, TQDropEvent*, TQListViewItem* ) ),
this, TQ_SLOT( slotDropped( TDEListView*, TQDropEvent*, TQListViewItem* ) ) );
shopRecipeListView->setListView( slistview );
layout->addWidget( shopRecipeListView, 0, 2 );
@ -139,10 +139,10 @@ ShoppingListDialog::ShoppingListDialog( TQWidget *parent, RecipeDB *db ) : TQWid
actionHandler = new RecipeActionsHandler( recipeListView->listView(), database, RecipeActionsHandler::ExpandAll | RecipeActionsHandler::CollapseAll );
// Connect signals & slots
connect( addRecipeButton, SIGNAL( clicked() ), this, SLOT( addRecipe() ) );
connect( removeRecipeButton, SIGNAL( clicked() ), this, SLOT( removeRecipe() ) );
connect( okButton, SIGNAL( clicked() ), this, SLOT( showShoppingList() ) );
connect( clearButton, SIGNAL( clicked() ), this, SLOT( clear() ) );
connect( addRecipeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addRecipe() ) );
connect( removeRecipeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeRecipe() ) );
connect( okButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( showShoppingList() ) );
connect( clearButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( clear() ) );
}
ShoppingListDialog::~ShoppingListDialog()

@ -33,8 +33,8 @@ ShoppingListViewDialog::ShoppingListViewDialog( TQWidget *parent, const Ingredie
setInitialSize( TQSize(350, 450) );
connect ( this, SIGNAL( user1Clicked() ), this, SLOT( print() ) );
connect ( this, SIGNAL( closeClicked() ), this, SLOT( accept() ) );
connect ( this, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT( print() ) );
connect ( this, TQ_SIGNAL( closeClicked() ), this, TQ_SLOT( accept() ) );
//---------- Sort the list --------
IngredientList list_copy = ingredientList;

@ -113,11 +113,11 @@ SimilarCategoriesDialog::SimilarCategoriesDialog( ElementList &list, TQWidget* p
resize( TQSize(573, 429).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
connect( searchButton, SIGNAL(clicked()), this, SLOT(findMatches()) );
connect( mergeButton, SIGNAL(clicked()), this, SLOT(mergeMatches()) );
connect( cancelButton, SIGNAL(clicked()), this, SLOT(reject()) );
connect( addButton, SIGNAL(clicked()), this, SLOT(addCategory()) );
connect( removeButton, SIGNAL(clicked()), this, SLOT(removeCategory()) );
connect( searchButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(findMatches()) );
connect( mergeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(mergeMatches()) );
connect( cancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()) );
connect( addButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(addCategory()) );
connect( removeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(removeCategory()) );
}
/*

@ -68,20 +68,20 @@ UnitsDialog::UnitsDialog( TQWidget *parent, RecipeDB *db ) : TQWidget( parent )
page_layout->addWidget( tabWidget );
// Connect signals & slots
connect( newUnitButton, SIGNAL( clicked() ), unitListView, SLOT( createNew() ) );
connect( removeUnitButton, SIGNAL( clicked() ), unitListView, SLOT( remove() ) );
connect( massConversionTable, SIGNAL( ratioChanged( int, int, double ) ), this, SLOT( saveRatio( int, int, double ) ) );
connect( massConversionTable, SIGNAL( ratioRemoved( int, int ) ), this, SLOT( removeRatio( int, int ) ) );
connect( volumeConversionTable, SIGNAL( ratioChanged( int, int, double ) ), this, SLOT( saveRatio( int, int, double ) ) );
connect( volumeConversionTable, SIGNAL( ratioRemoved( int, int ) ), this, SLOT( removeRatio( int, int ) ) );
connect( newUnitButton, TQ_SIGNAL( clicked() ), unitListView, TQ_SLOT( createNew() ) );
connect( removeUnitButton, TQ_SIGNAL( clicked() ), unitListView, TQ_SLOT( remove() ) );
connect( massConversionTable, TQ_SIGNAL( ratioChanged( int, int, double ) ), this, TQ_SLOT( saveRatio( int, int, double ) ) );
connect( massConversionTable, TQ_SIGNAL( ratioRemoved( int, int ) ), this, TQ_SLOT( removeRatio( int, int ) ) );
connect( volumeConversionTable, TQ_SIGNAL( ratioChanged( int, int, double ) ), this, TQ_SLOT( saveRatio( int, int, double ) ) );
connect( volumeConversionTable, TQ_SIGNAL( ratioRemoved( int, int ) ), this, TQ_SLOT( removeRatio( int, int ) ) );
//TODO: I'm too lazy right now, so do a complete reload to keep in sync with db
connect( database, SIGNAL( unitCreated( const Unit& ) ), this, SLOT( loadConversionTables() ) );
connect( database, SIGNAL( unitRemoved( int ) ), this, SLOT( loadConversionTables() ) );
connect( database, TQ_SIGNAL( unitCreated( const Unit& ) ), this, TQ_SLOT( loadConversionTables() ) );
connect( database, TQ_SIGNAL( unitRemoved( int ) ), this, TQ_SLOT( loadConversionTables() ) );
//this is for the above TODO, but it still has some bugs to be worked out
//connect(database,SIGNAL(unitCreated(const Element&)),conversionTable,SLOT(unitCreated(const Element&)));
//connect(database,SIGNAL(unitRemoved(int)),conversionTable,SLOT(unitRemoved(int)));
//connect(database,TQ_SIGNAL(unitCreated(const Element&)),conversionTable,TQ_SLOT(unitCreated(const Element&)));
//connect(database,TQ_SIGNAL(unitRemoved(int)),conversionTable,TQ_SLOT(unitRemoved(int)));
//Populate data into the table
loadConversionTables();

@ -51,7 +51,7 @@ USDADataDialog::USDADataDialog( const Element &ing, RecipeDB *db, TQWidget *pare
loadDataFromFile();
connect( listView, SIGNAL( doubleClicked( TQListViewItem*, const TQPoint &, int ) ), this, SLOT( slotOk() ) );
connect( listView, TQ_SIGNAL( doubleClicked( TQListViewItem*, const TQPoint &, int ) ), this, TQ_SLOT( slotOk() ) );
}
USDADataDialog::~USDADataDialog()

@ -95,20 +95,20 @@ Krecipes::Krecipes()
// allow the view to change the statusbar and caption
connect( m_view, SIGNAL( signalChangeStatusbar( const TQString& ) ),
this, SLOT( changeStatusbar( const TQString& ) ) );
connect( m_view, SIGNAL( signalChangeCaption( const TQString& ) ),
this, SLOT( changeCaption( const TQString& ) ) );
connect( m_view, TQ_SIGNAL( signalChangeStatusbar( const TQString& ) ),
this, TQ_SLOT( changeStatusbar( const TQString& ) ) );
connect( m_view, TQ_SIGNAL( signalChangeCaption( const TQString& ) ),
this, TQ_SLOT( changeCaption( const TQString& ) ) );
connect( m_view, SIGNAL( panelShown( KrePanel, bool ) ), SLOT( updateActions( KrePanel, bool ) ) );
connect( m_view, SIGNAL( panelShown( KrePanel, bool ) ), SLOT( updateActions( KrePanel, bool ) ) );
connect( m_view, TQ_SIGNAL( panelShown( KrePanel, bool ) ), TQ_SLOT( updateActions( KrePanel, bool ) ) );
connect( m_view, TQ_SIGNAL( panelShown( KrePanel, bool ) ), TQ_SLOT( updateActions( KrePanel, bool ) ) );
connect( m_view, SIGNAL( recipeSelected(bool) ), SLOT( recipeSelected(bool) ) );
connect( m_view, TQ_SIGNAL( recipeSelected(bool) ), TQ_SLOT( recipeSelected(bool) ) );
// Enable/Disable the Save Button (Initialize disabled, and connect signal)
connect( m_view, SIGNAL( enableSaveOption( bool ) ), this, SLOT( enableSaveOption( bool ) ) );
connect( m_view, TQ_SIGNAL( enableSaveOption( bool ) ), this, TQ_SLOT( enableSaveOption( bool ) ) );
enableSaveOption( false ); // Disables saving initially
recipeSelected( false ); //nothing is selected initially
@ -163,74 +163,74 @@ void Krecipes::recipeSelected( bool selected )
void Krecipes::setupActions()
{
printAction = KStdAction::print( this, SLOT( filePrint() ), actionCollection() );
reloadAction = new TDEAction( i18n( "Reloa&d" ), "reload", Key_F5, m_view, SLOT( reloadDisplay() ), actionCollection(), "reload_action" );
printAction = KStdAction::print( this, TQ_SLOT( filePrint() ), actionCollection() );
reloadAction = new TDEAction( i18n( "Reloa&d" ), "reload", Key_F5, m_view, TQ_SLOT( reloadDisplay() ), actionCollection(), "reload_action" );
editAction = new TDEAction( i18n( "&Edit Recipe" ), "edit", CTRL + Key_E,
m_view, SLOT( editRecipe() ),
m_view, TQ_SLOT( editRecipe() ),
actionCollection(), "edit_action" );
(void) new TDEAction( i18n( "&Measurement Converter" ), "", CTRL + Key_M,
this, SLOT( conversionToolSlot() ),
this, TQ_SLOT( conversionToolSlot() ),
actionCollection(), "converter_action" );
TDEConfig *config = TDEGlobal::config();
config->setGroup("Advanced");
if ( config->readBoolEntry("Unhi