Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7e9d8ea452)
r14.1.x
Michele Calgaro 10 months ago
parent be3456c5d9
commit e234565531
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -122,11 +122,11 @@ LotsaEdits::LotsaEdits(bool editable, TQStringList defaults, TQWidget *parent, c
{ {
KPushButton *more = new KPushButton(i18n("&Add Name"), this); KPushButton *more = new KPushButton(i18n("&Add Name"), this);
hlayout->addWidget(more); hlayout->addWidget(more);
connect(more, TQT_SIGNAL(clicked()), this, TQT_SLOT(more())); connect(more, TQ_SIGNAL(clicked()), this, TQ_SLOT(more()));
hlayout->addStretch(); hlayout->addStretch();
KPushButton *less= new KPushButton(i18n("&Delete Name"), this); KPushButton *less= new KPushButton(i18n("&Delete Name"), this);
hlayout->addWidget(less); hlayout->addWidget(less);
connect(less, TQT_SIGNAL(clicked()), this, TQT_SLOT(less())); connect(less, TQ_SIGNAL(clicked()), this, TQ_SLOT(less()));
} }
layout->addStretch(); layout->addStretch();

@ -48,29 +48,29 @@ AtlanticDesigner::AtlanticDesigner(TQWidget *parent, const char *name)
board = 0; board = 0;
layout = 0; layout = 0;
(void) KStdAction::quit(this, TQT_SLOT(close()), actionCollection()); (void) KStdAction::quit(this, TQ_SLOT(close()), actionCollection());
(void) KStdAction::open(this, TQT_SLOT(open()), actionCollection()); (void) KStdAction::open(this, TQ_SLOT(open()), actionCollection());
(void) KStdAction::openNew(this, TQT_SLOT(openNew()), actionCollection()); (void) KStdAction::openNew(this, TQ_SLOT(openNew()), actionCollection());
(void) KStdAction::save(this, TQT_SLOT(save()), actionCollection()); (void) KStdAction::save(this, TQ_SLOT(save()), actionCollection());
(void) KStdAction::saveAs(this, TQT_SLOT(saveAs()), actionCollection()); (void) KStdAction::saveAs(this, TQ_SLOT(saveAs()), actionCollection());
(void) new TDEAction(i18n("&Edit Gameboard Info..."), CTRL+Key_I, this, TQT_SLOT(info()), actionCollection(), "boardinfo"); (void) new TDEAction(i18n("&Edit Gameboard Info..."), CTRL+Key_I, this, TQ_SLOT(info()), actionCollection(), "boardinfo");
(void) new TDEAction(i18n("&Edit Groups..."), CTRL+Key_G, this, TQT_SLOT(editGroups()), actionCollection(), "groupeditor"); (void) new TDEAction(i18n("&Edit Groups..."), CTRL+Key_G, this, TQ_SLOT(editGroups()), actionCollection(), "groupeditor");
(void) new TDEAction(i18n("&Add 4 Squares"), "zoom-in", 0, this, TQT_SLOT(larger()), actionCollection(), "larger"); (void) new TDEAction(i18n("&Add 4 Squares"), "zoom-in", 0, this, TQ_SLOT(larger()), actionCollection(), "larger");
(void) new TDEAction(i18n("&Remove 4 Squares"), "zoom-out", 0, this, TQT_SLOT(smaller()), actionCollection(), "smaller"); (void) new TDEAction(i18n("&Remove 4 Squares"), "zoom-out", 0, this, TQ_SLOT(smaller()), actionCollection(), "smaller");
(void) KStdAction::copy(this, TQT_SLOT(copy()), actionCollection()); (void) KStdAction::copy(this, TQ_SLOT(copy()), actionCollection());
(void) KStdAction::paste(this, TQT_SLOT(paste()), actionCollection()); (void) KStdAction::paste(this, TQ_SLOT(paste()), actionCollection());
(void) new TDEAction(i18n("&Up"), Key_Up, this, TQT_SLOT(up()), actionCollection(), "up"); (void) new TDEAction(i18n("&Up"), Key_Up, this, TQ_SLOT(up()), actionCollection(), "up");
(void) new TDEAction(i18n("&Down"), Key_Down, this, TQT_SLOT(down()), actionCollection(), "down"); (void) new TDEAction(i18n("&Down"), Key_Down, this, TQ_SLOT(down()), actionCollection(), "down");
(void) new TDEAction(i18n("&Left"), Key_Left, this, TQT_SLOT(left()), actionCollection(), "left"); (void) new TDEAction(i18n("&Left"), Key_Left, this, TQ_SLOT(left()), actionCollection(), "left");
(void) new TDEAction(i18n("&Right"), Key_Right, this, TQT_SLOT(right()), actionCollection(), "right"); (void) new TDEAction(i18n("&Right"), Key_Right, this, TQ_SLOT(right()), actionCollection(), "right");
recentAct = KStdAction::openRecent(0, 0, actionCollection()); recentAct = KStdAction::openRecent(0, 0, actionCollection());
connect(recentAct, TQT_SIGNAL(urlSelected(const KURL &)), this, TQT_SLOT(openRecent(const KURL &))); connect(recentAct, TQ_SIGNAL(urlSelected(const KURL &)), this, TQ_SLOT(openRecent(const KURL &)));
recentAct->loadEntries(TDEGlobal::config(), "Designer recent files"); recentAct->loadEntries(TDEGlobal::config(), "Designer recent files");
estateAct = new TDEListAction(i18n("Change Estate"), 0, 0, 0, actionCollection(), "estate_num"); estateAct = new TDEListAction(i18n("Change Estate"), 0, 0, 0, actionCollection(), "estate_num");
connect(estateAct, TQT_SIGNAL(activated(int)), TQT_SLOT(changeEstate(int))); connect(estateAct, TQ_SIGNAL(activated(int)), TQ_SLOT(changeEstate(int)));
createGUI("atlantikdesignerui.rc"); createGUI("atlantikdesignerui.rc");
@ -137,9 +137,9 @@ void AtlanticDesigner::initBoard()
setCentralWidget(board); setCentralWidget(board);
layout = new TQVBoxLayout(board->centerWidget()); layout = new TQVBoxLayout(board->centerWidget());
editor = new EstateEdit(&groups, &estates, &cards, board->centerWidget(), "Estate Editor"); editor = new EstateEdit(&groups, &estates, &cards, board->centerWidget(), "Estate Editor");
connect(editor, TQT_SIGNAL(goChecked(int)), this, TQT_SLOT(goChanged(int))); connect(editor, TQ_SIGNAL(goChecked(int)), this, TQ_SLOT(goChanged(int)));
connect(editor, TQT_SIGNAL(updateBackground()), this, TQT_SLOT(updateBackground())); connect(editor, TQ_SIGNAL(updateBackground()), this, TQ_SLOT(updateBackground()));
connect(editor, TQT_SIGNAL(resized()), board, TQT_SLOT(slotResizeAftermath())); connect(editor, TQ_SIGNAL(resized()), board, TQ_SLOT(slotResizeAftermath()));
layout->addWidget(editor); layout->addWidget(editor);
editor->setReady(false); editor->setReady(false);
@ -159,7 +159,7 @@ void AtlanticDesigner::initToken()
board->addToken(m_player); board->addToken(m_player);
connect(m_player, TQT_SIGNAL(changed(Player *)), board, TQT_SLOT(playerChanged(Player *))); connect(m_player, TQ_SIGNAL(changed(Player *)), board, TQ_SLOT(playerChanged(Player *)));
} }
void AtlanticDesigner::openNew() void AtlanticDesigner::openNew()
@ -184,7 +184,7 @@ void AtlanticDesigner::openNew()
groupsChanged(); groupsChanged();
updateBackground(); updateBackground();
TQTimer::singleShot(500, this, TQT_SLOT(setPlayerAtBeginning())); TQTimer::singleShot(500, this, TQ_SLOT(setPlayerAtBeginning()));
doCaption(false); doCaption(false);
} }
@ -198,8 +198,8 @@ ConfigEstate *AtlanticDesigner::newEstate(int i)
estate->setChanged(false); estate->setChanged(false);
estates.insert(i, estate); estates.insert(i, estate);
connect(estate, TQT_SIGNAL(LMBClicked(Estate *)), this, TQT_SLOT(changeEstate(Estate *))); connect(estate, TQ_SIGNAL(LMBClicked(Estate *)), this, TQ_SLOT(changeEstate(Estate *)));
connect(estate, TQT_SIGNAL(changed()), this, TQT_SLOT(modified())); connect(estate, TQ_SIGNAL(changed()), this, TQ_SLOT(modified()));
board->addEstateView(estate); board->addEstateView(estate);
@ -486,8 +486,8 @@ void AtlanticDesigner::openFile(const TQString &filename)
estate->setPassMoney(passMoney); estate->setPassMoney(passMoney);
estates.append(estate); estates.append(estate);
connect(estate, TQT_SIGNAL(LMBClicked(Estate *)), this, TQT_SLOT(changeEstate(Estate *))); connect(estate, TQ_SIGNAL(LMBClicked(Estate *)), this, TQ_SLOT(changeEstate(Estate *)));
connect(estate, TQT_SIGNAL(changed()), this, TQT_SLOT(modified())); connect(estate, TQ_SIGNAL(changed()), this, TQ_SLOT(modified()));
i++; i++;
} }
else if (parseMode == Parse_Cards) else if (parseMode == Parse_Cards)
@ -545,7 +545,7 @@ void AtlanticDesigner::openFile(const TQString &filename)
updateBackground(); updateBackground();
updateJumpMenu(); updateJumpMenu();
TQTimer::singleShot(500, this, TQT_SLOT(setPlayerAtBeginning())); TQTimer::singleShot(500, this, TQ_SLOT(setPlayerAtBeginning()));
doCaption(false); doCaption(false);
} }
@ -895,7 +895,7 @@ void AtlanticDesigner::larger()
groupsChanged(); groupsChanged();
updateBackground(); updateBackground();
TQTimer::singleShot(500, this, TQT_SLOT(setPlayerAtBeginning())); TQTimer::singleShot(500, this, TQ_SLOT(setPlayerAtBeginning()));
doCaption(true); doCaption(true);
} }
@ -934,7 +934,7 @@ void AtlanticDesigner::smaller()
updateJumpMenu(); updateJumpMenu();
groupsChanged(); groupsChanged();
updateBackground(); updateBackground();
TQTimer::singleShot(500, this, TQT_SLOT(setPlayerAtBeginning())); TQTimer::singleShot(500, this, TQ_SLOT(setPlayerAtBeginning()));
doCaption(true); doCaption(true);
} }
@ -957,9 +957,9 @@ void AtlanticDesigner::editGroups()
groupEditor = new GroupEditor(&groups, this); groupEditor = new GroupEditor(&groups, this);
groupEditor->show(); groupEditor->show();
connect(groupEditor, TQT_SIGNAL(changed()), this, TQT_SLOT(modified())); connect(groupEditor, TQ_SIGNAL(changed()), this, TQ_SLOT(modified()));
connect(groupEditor, TQT_SIGNAL(update()), this, TQT_SLOT(groupsChanged())); connect(groupEditor, TQ_SIGNAL(update()), this, TQ_SLOT(groupsChanged()));
connect(groupEditor, TQT_SIGNAL(update()), editor, TQT_SLOT(groupsChanged())); connect(groupEditor, TQ_SIGNAL(update()), editor, TQ_SLOT(groupsChanged()));
} }
else else
groupEditor->raise(); groupEditor->raise();
@ -1019,8 +1019,8 @@ void AtlanticDesigner::info()
boardInfoDlg = new BoardInfoDlg(true, &boardInfo, this, "Board Information", false); boardInfoDlg = new BoardInfoDlg(true, &boardInfo, this, "Board Information", false);
boardInfoDlg->show(); boardInfoDlg->show();
connect(boardInfoDlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(updateBackground())); connect(boardInfoDlg, TQ_SIGNAL(okClicked()), this, TQ_SLOT(updateBackground()));
connect(boardInfoDlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(modified())); connect(boardInfoDlg, TQ_SIGNAL(okClicked()), this, TQ_SLOT(modified()));
} }
else else
boardInfoDlg->raise(); boardInfoDlg->raise();

@ -170,12 +170,12 @@ EstateEdit::EstateEdit(ConfigEstateGroupList *newGroups, EstateList *estates, TQ
ready = false; ready = false;
locked = false; locked = false;
connect(this, TQT_SIGNAL(somethingChanged()), this, TQT_SLOT(saveEstate())); connect(this, TQ_SIGNAL(somethingChanged()), this, TQ_SLOT(saveEstate()));
layout = new TQGridLayout(this, 7, 1, KDialog::marginHint(), KDialog::spacingHint()); layout = new TQGridLayout(this, 7, 1, KDialog::marginHint(), KDialog::spacingHint());
nameEdit = new TQLineEdit(this, "Name Edit"); nameEdit = new TQLineEdit(this, "Name Edit");
layout->addWidget(nameEdit, 0, 0); layout->addWidget(nameEdit, 0, 0);
connect(nameEdit, TQT_SIGNAL(returnPressed()), this, TQT_SIGNAL(somethingChanged())); connect(nameEdit, TQ_SIGNAL(returnPressed()), this, TQ_SIGNAL(somethingChanged()));
confDlg = 0; confDlg = 0;
@ -190,12 +190,12 @@ EstateEdit::EstateEdit(ConfigEstateGroupList *newGroups, EstateList *estates, TQ
typeLayout->addWidget(typeLabel); typeLayout->addWidget(typeLabel);
typeCombo = new KComboBox(false, this, "Type Combo"); typeCombo = new KComboBox(false, this, "Type Combo");
typeLayout->addWidget(typeCombo); typeLayout->addWidget(typeCombo);
connect(typeCombo, TQT_SIGNAL(activated(int)), this, TQT_SIGNAL(somethingChanged())); connect(typeCombo, TQ_SIGNAL(activated(int)), this, TQ_SIGNAL(somethingChanged()));
connect(typeCombo, TQT_SIGNAL(activated(int)), this, TQT_SIGNAL(updateBackground())); connect(typeCombo, TQ_SIGNAL(activated(int)), this, TQ_SIGNAL(updateBackground()));
goCheck = new TQCheckBox(i18n("This estate is 'Go'"), this); goCheck = new TQCheckBox(i18n("This estate is 'Go'"), this);
connect(goCheck, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(somethingChanged())); connect(goCheck, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(somethingChanged()));
connect(goCheck, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(goToggled(bool))); connect(goCheck, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(goToggled(bool)));
layout->addWidget(goCheck, 5, 0); layout->addWidget(goCheck, 5, 0);
TQHBoxLayout *passMoneyLayout = new TQHBoxLayout(KDialog::spacingHint()); TQHBoxLayout *passMoneyLayout = new TQHBoxLayout(KDialog::spacingHint());
@ -325,7 +325,7 @@ void EstateEdit::configure()
confDlg->slotUpdate(estate); confDlg->slotUpdate(estate);
connect(confDlg, TQT_SIGNAL(updateBackground()), this, TQT_SIGNAL(updateBackground())); connect(confDlg, TQ_SIGNAL(updateBackground()), this, TQ_SIGNAL(updateBackground()));
layout->addWidget(confDlg, 1, 0); layout->addWidget(confDlg, 1, 0);
confDlg->show(); confDlg->show();
@ -442,7 +442,7 @@ CardsDlg::CardsDlg(EstateList *newEstates, TQValueList<CardStack> *newCards, TQW
TQHBoxLayout *layout = new TQHBoxLayout(vlayout, KDialog::spacingHint()); TQHBoxLayout *layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
KPushButton *addB = new KPushButton(i18n("&New Stack"), this); KPushButton *addB = new KPushButton(i18n("&New Stack"), this);
connect(addB, TQT_SIGNAL(clicked()), this, TQT_SLOT(addStack())); connect(addB, TQ_SIGNAL(clicked()), this, TQ_SLOT(addStack()));
layout->addWidget(addB); layout->addWidget(addB);
layout->addStretch(); layout->addStretch();
@ -454,7 +454,7 @@ CardsDlg::CardsDlg(EstateList *newEstates, TQValueList<CardStack> *newCards, TQW
cards = new TQComboBox(this); cards = new TQComboBox(this);
cards->insertStringList(cardNames); cards->insertStringList(cardNames);
layout->addWidget(cards); layout->addWidget(cards);
connect(cards, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(updateView(const TQString &))); connect(cards, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(updateView(const TQString &)));
vlayout->addWidget(new KSeparator(this)); vlayout->addWidget(new KSeparator(this));
} }
@ -547,7 +547,7 @@ ChooseWidget::ChooseWidget(EstateList *estates, int id, Card *card, TQWidget *pa
_types.append(i18n("Pay for Each Hotel")); _types.append(i18n("Pay for Each Hotel"));
typeCombo->insertStringList(_types); typeCombo->insertStringList(_types);
hlayout->addWidget(typeCombo); hlayout->addWidget(typeCombo);
connect(typeCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(typeChanged(int))); connect(typeCombo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(typeChanged(int)));
hlayout->addStretch(); hlayout->addStretch();
} }
@ -589,7 +589,7 @@ void ChooseWidget::typeChanged(int i)
value = new TQSpinBox(0, 2000, (key == "advance" || key == "goback")? 1 : 5, this); value = new TQSpinBox(0, 2000, (key == "advance" || key == "goback")? 1 : 5, this);
hlayout->addWidget(value); hlayout->addWidget(value);
connect(value, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int))); connect(value, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(valueChanged(int)));
value->show(); value->show();
} }
@ -603,7 +603,7 @@ void ChooseWidget::typeChanged(int i)
for (curestate = estates->first(); curestate; curestate = estates->next()) for (curestate = estates->first(); curestate; curestate = estates->next())
estateStrings.append(curestate->name()); estateStrings.append(curestate->name());
estate->insertStringList(estateStrings); estate->insertStringList(estateStrings);
connect(estate, TQT_SIGNAL(activated(int)), this, TQT_SLOT(estateChanged(int))); connect(estate, TQ_SIGNAL(activated(int)), this, TQ_SLOT(estateChanged(int)));
hlayout->addWidget(estate); hlayout->addWidget(estate);
estate->show(); estate->show();
@ -653,31 +653,31 @@ CardView::CardView(EstateList *estates, CardStack *stack, TQWidget *parent, char
TQHBoxLayout *hlayout = new TQHBoxLayout(layout, KDialog::spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(layout, KDialog::spacingHint());
addButton = new KPushButton(i18n("&Add Card..."), this); addButton = new KPushButton(i18n("&Add Card..."), this);
connect(addButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(add())); connect(addButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(add()));
hlayout->addWidget(addButton); hlayout->addWidget(addButton);
hlayout->addStretch(); hlayout->addStretch();
renameButton = new KPushButton(i18n("&Rename..."), this); renameButton = new KPushButton(i18n("&Rename..."), this);
connect(renameButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(rename())); connect(renameButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(rename()));
hlayout->addWidget(renameButton); hlayout->addWidget(renameButton);
hlayout->addStretch(); hlayout->addStretch();
delButton = new KPushButton(i18n("&Delete"), this); delButton = new KPushButton(i18n("&Delete"), this);
connect(delButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(del())); connect(delButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(del()));
hlayout->addWidget(delButton); hlayout->addWidget(delButton);
List = new TDEListBox(this); List = new TDEListBox(this);
layout->addWidget(List); layout->addWidget(List);
connect(List, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(selected(int))); connect(List, TQ_SIGNAL(highlighted(int)), this, TQ_SLOT(selected(int)));
// it gets very big (and won't shrink) otherwise // it gets very big (and won't shrink) otherwise
List->setMaximumHeight(90); List->setMaximumHeight(90);
hlayout = new TQHBoxLayout(layout, KDialog::spacingHint()); hlayout = new TQHBoxLayout(layout, KDialog::spacingHint());
moreButton = new KPushButton(i18n("&More Properties"), this); moreButton = new KPushButton(i18n("&More Properties"), this);
connect(moreButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(more())); connect(moreButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(more()));
hlayout->addWidget(moreButton); hlayout->addWidget(moreButton);
hlayout->addStretch(); hlayout->addStretch();
lessButton = new KPushButton(i18n("&Fewer Properties"), this); lessButton = new KPushButton(i18n("&Fewer Properties"), this);
connect(lessButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(less())); connect(lessButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(less()));
hlayout->addWidget(lessButton); hlayout->addWidget(lessButton);
for (CardStack::Iterator it = stack->begin(); it != stack->end(); ++it) for (CardStack::Iterator it = stack->begin(); it != stack->end(); ++it)
@ -861,7 +861,7 @@ StreetDlg::StreetDlg(ConfigEstateGroupList *newGroups, TQWidget *parent, char *n
pricesBox->addWidget(groupLabel, 1, 0); pricesBox->addWidget(groupLabel, 1, 0);
groupCombo = new KComboBox(this, "Group Combo"); groupCombo = new KComboBox(this, "Group Combo");
groupUpdate(); groupUpdate();
connect(groupCombo, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(groupChanged(const TQString &))); connect(groupCombo, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(groupChanged(const TQString &)));
pricesBox->addWidget(groupCombo, 1, 1); pricesBox->addWidget(groupCombo, 1, 1);
} }

@ -30,12 +30,12 @@ GroupEditor::GroupEditor(ConfigEstateGroupList *newList, TQWidget *parent)
groups = new TDEListBox(page); groups = new TDEListBox(page);
hlayout->addWidget(groups); hlayout->addWidget(groups);
connect(groups, TQT_SIGNAL(highlighted(TQListBoxItem *)), this, TQT_SLOT(updateSettings(TQListBoxItem *))); connect(groups, TQ_SIGNAL(highlighted(TQListBoxItem *)), this, TQ_SLOT(updateSettings(TQListBoxItem *)));
TQStringList newgroups; TQStringList newgroups;
for (ConfigEstateGroupList::Iterator it = list->begin(); it != list->end(); ++it) for (ConfigEstateGroupList::Iterator it = list->begin(); it != list->end(); ++it)
newgroups.append((*it).name()); newgroups.append((*it).name());
groups->insertStringList(newgroups); groups->insertStringList(newgroups);
connect(groups, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged())); connect(groups, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(selectionChanged()));
TQVBoxLayout *vlayout = new TQVBoxLayout(hlayout, spacingHint()); TQVBoxLayout *vlayout = new TQVBoxLayout(hlayout, spacingHint());
colorGroupBox = new TQVGroupBox(i18n("&Colors"), page); colorGroupBox = new TQVGroupBox(i18n("&Colors"), page);
@ -43,13 +43,13 @@ GroupEditor::GroupEditor(ConfigEstateGroupList *newList, TQWidget *parent)
(void) new TQLabel(i18n("Foreground:"), colorGroupBox); (void) new TQLabel(i18n("Foreground:"), colorGroupBox);
fgButton = new KColorButton(colorGroupBox, "Foreground Button"); fgButton = new KColorButton(colorGroupBox, "Foreground Button");
connect(fgButton, TQT_SIGNAL(changed(const TQColor &)), this, TQT_SLOT(fgChanged(const TQColor &))); connect(fgButton, TQ_SIGNAL(changed(const TQColor &)), this, TQ_SLOT(fgChanged(const TQColor &)));
connect(fgButton, TQT_SIGNAL(changed(const TQColor &)), this, TQT_SIGNAL(changed())); connect(fgButton, TQ_SIGNAL(changed(const TQColor &)), this, TQ_SIGNAL(changed()));
(void) new TQLabel(i18n("Background:"), colorGroupBox); (void) new TQLabel(i18n("Background:"), colorGroupBox);
bgButton = new KColorButton(colorGroupBox, "Background Button"); bgButton = new KColorButton(colorGroupBox, "Background Button");
connect(bgButton, TQT_SIGNAL(changed(const TQColor &)), this, TQT_SLOT(bgChanged(const TQColor &))); connect(bgButton, TQ_SIGNAL(changed(const TQColor &)), this, TQ_SLOT(bgChanged(const TQColor &)));
connect(bgButton, TQT_SIGNAL(changed(const TQColor &)), this, TQT_SIGNAL(changed())); connect(bgButton, TQ_SIGNAL(changed(const TQColor &)), this, TQ_SIGNAL(changed()));
pricesGroupBox = new TQVGroupBox(i18n("&Prices"), page); pricesGroupBox = new TQVGroupBox(i18n("&Prices"), page);
vlayout->addWidget(pricesGroupBox); vlayout->addWidget(pricesGroupBox);
@ -60,13 +60,13 @@ GroupEditor::GroupEditor(ConfigEstateGroupList *newList, TQWidget *parent)
pricesLayout->addWidget(housePrice = new TQSpinBox(0, 3000, 25, pricesWidget), 0, 1); pricesLayout->addWidget(housePrice = new TQSpinBox(0, 3000, 25, pricesWidget), 0, 1);
housePrice->setSpecialValueText(i18n("None")); housePrice->setSpecialValueText(i18n("None"));
housePrice->setSuffix(i18n("$")); housePrice->setSuffix(i18n("$"));
connect(housePrice, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(housePriceChanged(int))); connect(housePrice, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(housePriceChanged(int)));
pricesLayout->addWidget(new TQLabel(i18n("Global price:"), pricesWidget), 1, 0); pricesLayout->addWidget(new TQLabel(i18n("Global price:"), pricesWidget), 1, 0);
pricesLayout->addWidget(globalPrice = new TQSpinBox(0, 3000, 25, pricesWidget), 1, 1); pricesLayout->addWidget(globalPrice = new TQSpinBox(0, 3000, 25, pricesWidget), 1, 1);
globalPrice->setSpecialValueText(i18n("None")); globalPrice->setSpecialValueText(i18n("None"));
globalPrice->setSuffix(i18n("$")); globalPrice->setSuffix(i18n("$"));
connect(globalPrice, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(globalPriceChanged(int))); connect(globalPrice, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(globalPriceChanged(int)));
dynamicGroupBox = new TQVGroupBox(i18n("&Dynamic Rent"), page); dynamicGroupBox = new TQVGroupBox(i18n("&Dynamic Rent"), page);
vlayout->addWidget(dynamicGroupBox); vlayout->addWidget(dynamicGroupBox);
@ -85,18 +85,18 @@ GroupEditor::GroupEditor(ConfigEstateGroupList *newList, TQWidget *parent)
mathLayout->addWidget(rentVarCombo, 0, 1); mathLayout->addWidget(rentVarCombo, 0, 1);
rentMathEdit = new KLineEdit(mathWidget); rentMathEdit = new KLineEdit(mathWidget);
connect(rentMathEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(rentMathChanged(const TQString &))); connect(rentMathEdit, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(rentMathChanged(const TQString &)));
connect(rentVarCombo, TQT_SIGNAL(activated(const TQString &)), rentMathEdit, TQT_SLOT(insert(const TQString &))); connect(rentVarCombo, TQ_SIGNAL(activated(const TQString &)), rentMathEdit, TQ_SLOT(insert(const TQString &)));
mathLayout->addWidget(rentMathEdit, 1, 1); mathLayout->addWidget(rentMathEdit, 1, 1);
TQHBoxLayout *buttonlayout = new TQHBoxLayout(vlayout, spacingHint()); TQHBoxLayout *buttonlayout = new TQHBoxLayout(vlayout, spacingHint());
KPushButton *addB = new KPushButton(i18n("&Add..."), page); KPushButton *addB = new KPushButton(i18n("&Add..."), page);
buttonlayout->addWidget(addB); buttonlayout->addWidget(addB);
connect(addB, TQT_SIGNAL(clicked()), this, TQT_SLOT(add())); connect(addB, TQ_SIGNAL(clicked()), this, TQ_SLOT(add()));
removeB = new KPushButton(i18n("&Remove"), page); removeB = new KPushButton(i18n("&Remove"), page);
buttonlayout->addWidget(removeB); buttonlayout->addWidget(removeB);
connect(removeB, TQT_SIGNAL(clicked()), this, TQT_SLOT(remove())); connect(removeB, TQ_SIGNAL(clicked()), this, TQ_SLOT(remove()));
selectionChanged(); selectionChanged();
} }

@ -55,7 +55,7 @@ K_EXPORT_COMPONENT_FACTORY( katecppsymbolviewerplugin, KGenericFactory<KatePlugi
KatePluginSymbolViewerView::KatePluginSymbolViewerView(Kate::MainWindow *w) KatePluginSymbolViewerView::KatePluginSymbolViewerView(Kate::MainWindow *w)
{ {
TDEGlobal::locale()->insertCatalogue("katecppsymbolviewer"); TDEGlobal::locale()->insertCatalogue("katecppsymbolviewer");
TDEToggleAction* act = new TDEToggleAction ( i18n("Hide Symbols"), 0, this, TQT_SLOT( slotInsertSymbol() ), actionCollection(), "view_insert_symbolviewer" ); TDEToggleAction* act = new TDEToggleAction ( i18n("Hide Symbols"), 0, this, TQ_SLOT( slotInsertSymbol() ), actionCollection(), "view_insert_symbolviewer" );
act->setCheckedState(i18n("Show Symbols")); act->setCheckedState(i18n("Show Symbols"));
setInstance (new TDEInstance("kate")); setInstance (new TDEInstance("kate"));
@ -66,14 +66,14 @@ KatePluginSymbolViewerView::KatePluginSymbolViewerView(Kate::MainWindow *w)
m_Active = false; m_Active = false;
popup = new TQPopupMenu(); popup = new TQPopupMenu();
popup->insertItem(i18n("Refresh List"), this, TQT_SLOT(slotRefreshSymbol())); popup->insertItem(i18n("Refresh List"), this, TQ_SLOT(slotRefreshSymbol()));
popup->insertSeparator(); popup->insertSeparator();
m_macro = popup->insertItem(i18n("Show Macros"), this, TQT_SLOT(toggleShowMacros())); m_macro = popup->insertItem(i18n("Show Macros"), this, TQ_SLOT(toggleShowMacros()));
m_struct = popup->insertItem(i18n("Show Structures"), this, TQT_SLOT(toggleShowStructures())); m_struct = popup->insertItem(i18n("Show Structures"), this, TQ_SLOT(toggleShowStructures()));
m_func = popup->insertItem(i18n("Show Functions"), this, TQT_SLOT(toggleShowFunctions())); m_func = popup->insertItem(i18n("Show Functions"), this, TQ_SLOT(toggleShowFunctions()));
popup->insertSeparator(); popup->insertSeparator();
popup->insertItem(i18n("List/Tree Mode"), this, TQT_SLOT(slotChangeMode())); popup->insertItem(i18n("List/Tree Mode"), this, TQ_SLOT(slotChangeMode()));
m_sort = popup->insertItem(i18n("Enable sorting"), this, TQT_SLOT(slotEnableSorting())); m_sort = popup->insertItem(i18n("Enable sorting"), this, TQ_SLOT(slotEnableSorting()));
popup->setItemChecked(m_macro, true); popup->setItemChecked(m_macro, true);
popup->setItemChecked(m_struct, true); popup->setItemChecked(m_struct, true);
@ -126,11 +126,11 @@ void KatePluginSymbolViewerView::slotInsertSymbol()
symbols = new TDEListView(dock); symbols = new TDEListView(dock);
treeMode = 0; treeMode = 0;
connect(symbols, TQT_SIGNAL(executed(TQListViewItem *)), this, TQT_SLOT(goToSymbol(TQListViewItem *))); connect(symbols, TQ_SIGNAL(executed(TQListViewItem *)), this, TQ_SLOT(goToSymbol(TQListViewItem *)));
connect(symbols, TQT_SIGNAL(rightButtonClicked(TQListViewItem *, const TQPoint&, int)), connect(symbols, TQ_SIGNAL(rightButtonClicked(TQListViewItem *, const TQPoint&, int)),
TQT_SLOT(slotShowContextMenu(TQListViewItem *, const TQPoint&, int))); TQ_SLOT(slotShowContextMenu(TQListViewItem *, const TQPoint&, int)));
connect(win->viewManager(), TQT_SIGNAL(viewChanged()), this, TQT_SLOT(slotDocChanged())); connect(win->viewManager(), TQ_SIGNAL(viewChanged()), this, TQ_SLOT(slotDocChanged()));
//connect(symbols, TQT_SIGNAL(resizeEvent(TQResizeEvent *)), this, TQT_SLOT(slotViewChanged(TQResizeEvent *))); //connect(symbols, TQ_SIGNAL(resizeEvent(TQResizeEvent *)), this, TQ_SLOT(slotViewChanged(TQResizeEvent *)));
m_Active = true; m_Active = true;
//symbols->addColumn(i18n("Symbols"), symbols->parentWidget()->width()); //symbols->addColumn(i18n("Symbols"), symbols->parentWidget()->width());
@ -280,8 +280,8 @@ Kate::PluginConfigPage* KatePluginSymbolViewer::configPage(
{ {
KatePluginSymbolViewerConfigPage* p = new KatePluginSymbolViewerConfigPage(this, w); KatePluginSymbolViewerConfigPage* p = new KatePluginSymbolViewerConfigPage(this, w);
initConfigPage( p ); initConfigPage( p );
connect( p, TQT_SIGNAL(configPageApplyRequest(KatePluginSymbolViewerConfigPage*)), connect( p, TQ_SIGNAL(configPageApplyRequest(KatePluginSymbolViewerConfigPage*)),
TQT_SLOT(applyConfig(KatePluginSymbolViewerConfigPage *)) ); TQ_SLOT(applyConfig(KatePluginSymbolViewerConfigPage *)) );
return (Kate::PluginConfigPage*)p; return (Kate::PluginConfigPage*)p;
} }
@ -323,8 +323,8 @@ KatePluginSymbolViewerConfigPage::KatePluginSymbolViewerConfigPage(
top->add(gb); top->add(gb);
top->addStretch(1); top->addStretch(1);
// throw signal changed // throw signal changed
connect(viewReturns, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed())); connect(viewReturns, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed()));
connect(expandTree, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed())); connect(expandTree, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed()));
} }
KatePluginSymbolViewerConfigPage::~KatePluginSymbolViewerConfigPage() {} KatePluginSymbolViewerConfigPage::~KatePluginSymbolViewerConfigPage() {}

@ -79,11 +79,11 @@ int InitPluginKateFileListLoader::initKate()
Kate::Plugin *pl=application()->pluginManager()->plugin("katefll_plugin"); Kate::Plugin *pl=application()->pluginManager()->plugin("katefll_plugin");
if (pl) if (pl)
{ {
connect(this,TQT_SIGNAL(updateInit()),pl,TQT_SLOT(updateInit())); connect(this,TQ_SIGNAL(updateInit()),pl,TQ_SLOT(updateInit()));
updateInit(); updateInit();
disconnect(this,TQT_SIGNAL(updateInit()),pl,TQT_SLOT(updateInit())); disconnect(this,TQ_SIGNAL(updateInit()),pl,TQ_SLOT(updateInit()));
/* int id = pl->metaObject()->findSlot( TQT_SLOT(updateInit()) ); /* int id = pl->metaObject()->findSlot( TQ_SLOT(updateInit()) );
if ( id != -1 ) if ( id != -1 )
{ {
kdDebug()<<"Action slot was found, it will be called now"<<endl; kdDebug()<<"Action slot was found, it will be called now"<<endl;

@ -75,20 +75,20 @@ void PluginKateFileListLoader::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
(void) new TDEAction( i18n("Open File List..."), 0, (void) new TDEAction( i18n("Open File List..."), 0,
this, TQT_SLOT( slotOpenList() ), this, TQ_SLOT( slotOpenList() ),
view->actionCollection(), "file_kfllopen" ); view->actionCollection(), "file_kfllopen" );
view->recentFiles = new TDERecentFilesAction( i18n("Open Recent"), TDEShortcut::null(), view->recentFiles = new TDERecentFilesAction( i18n("Open Recent"), TDEShortcut::null(),
this, TQT_SLOT(slotOpenList(const KURL&)), view->actionCollection(), this, TQ_SLOT(slotOpenList(const KURL&)), view->actionCollection(),
"file_kfllopenrecent"); "file_kfllopenrecent");
view->recentFiles->loadEntries(m_config, "Recent Files"); view->recentFiles->loadEntries(m_config, "Recent Files");
(void) new TDEAction( i18n("Save File List"), 0, (void) new TDEAction( i18n("Save File List"), 0,
this, TQT_SLOT( slotSaveList() ), this, TQ_SLOT( slotSaveList() ),
view->actionCollection(), "file_kfllsave" ); view->actionCollection(), "file_kfllsave" );
(void) new TDEAction( i18n("Save File List As..."), 0, (void) new TDEAction( i18n("Save File List As..."), 0,
this, TQT_SLOT( slotSaveListAs() ), this, TQ_SLOT( slotSaveListAs() ),
view->actionCollection(), "file_kfllsaveas" ); view->actionCollection(), "file_kfllsaveas" );
view->setInstance (new TDEInstance("kate")); view->setInstance (new TDEInstance("kate"));

@ -133,11 +133,11 @@ KateFileTemplates::KateFileTemplates( TQObject* parent, const char* name )
// We plug them into each view's menus, and update them centrally, so that // We plug them into each view's menus, and update them centrally, so that
// new plugins can automatically become visible in all windows. // new plugins can automatically become visible in all windows.
(void) new TDEAction ( i18n("Any File..."), 0, this, (void) new TDEAction ( i18n("Any File..."), 0, this,
TQT_SLOT( slotAny() ), m_actionCollection, TQ_SLOT( slotAny() ), m_actionCollection,
"file_template_any" ); "file_template_any" );
// recent templates // recent templates
m_acRecentTemplates = new TDERecentFilesAction( i18n("&Use Recent"), 0, this, m_acRecentTemplates = new TDERecentFilesAction( i18n("&Use Recent"), 0, this,
TQT_SLOT(slotOpenTemplate(const KURL &)), TQ_SLOT(slotOpenTemplate(const KURL &)),
m_actionCollection, m_actionCollection,
"file_templates_recent" ); "file_templates_recent" );
m_acRecentTemplates->loadEntries( kapp->config(), "Recent Templates" ); m_acRecentTemplates->loadEntries( kapp->config(), "Recent Templates" );
@ -150,12 +150,12 @@ KateFileTemplates::KateFileTemplates( TQObject* parent, const char* name )
m_dw->addDir( *it, true ); m_dw->addDir( *it, true );
} }
connect( m_dw, TQT_SIGNAL(dirty(const TQString&)), connect( m_dw, TQ_SIGNAL(dirty(const TQString&)),
this, TQT_SLOT(updateTemplateDirs(const TQString&)) ); this, TQ_SLOT(updateTemplateDirs(const TQString&)) );
connect( m_dw, TQT_SIGNAL(created(const TQString&)), connect( m_dw, TQ_SIGNAL(created(const TQString&)),
this, TQT_SLOT(updateTemplateDirs(const TQString&)) ); this, TQ_SLOT(updateTemplateDirs(const TQString&)) );
connect( m_dw, TQT_SIGNAL(deleted(const TQString&)), connect( m_dw, TQ_SIGNAL(deleted(const TQString&)),
this, TQT_SLOT(updateTemplateDirs(const TQString&)) ); this, TQ_SLOT(updateTemplateDirs(const TQString&)) );
m_templates.setAutoDelete( true ); m_templates.setAutoDelete( true );
updateTemplateDirs(); updateTemplateDirs();
@ -249,7 +249,7 @@ void KateFileTemplates::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
(void) new TDEAction( i18n("&Manage Templates..."), 0, (void) new TDEAction( i18n("&Manage Templates..."), 0,
this, TQT_SLOT(slotEditTemplate()), this, TQ_SLOT(slotEditTemplate()),
view->actionCollection(), "settings_manage_templates" ); view->actionCollection(), "settings_manage_templates" );
(void)new TDEActionMenu( i18n("New From &Template"), "text-x-makefile", (void)new TDEActionMenu( i18n("New From &Template"), "text-x-makefile",
@ -316,10 +316,10 @@ void KateFileTemplates::refreshMenu( PluginView *v )
if ( ! m_templates.at( i )->icon.isEmpty() ) if ( ! m_templates.at( i )->icon.isEmpty() )
submenus[m_templates.at( i )->group]->insertItem( submenus[m_templates.at( i )->group]->insertItem(
SmallIconSet( m_templates.at( i )->icon ), SmallIconSet( m_templates.at( i )->icon ),
m_templates.at( i )->tmplate, this, TQT_SLOT(slotOpenTemplate( int )), 0, i ); m_templates.at( i )->tmplate, this, TQ_SLOT(slotOpenTemplate( int )), 0, i );
else else
submenus[m_templates.at( i )->group]->insertItem( submenus[m_templates.at( i )->group]->insertItem(
m_templates.at( i )->tmplate, this, TQT_SLOT(slotOpenTemplate( int )), 0, i ); m_templates.at( i )->tmplate, this, TQ_SLOT(slotOpenTemplate( int )), 0, i );
// add whatsthis containing the description and author // add whatsthis containing the description and author
TQString w ( m_templates.at( i )->description ); TQString w ( m_templates.at( i )->description );
@ -623,7 +623,7 @@ KateTemplateInfoWidget::KateTemplateInfoWidget( TQWidget *parent, TemplateInfo *
if ( doc ) if ( doc )
{ {
TQPopupMenu *m = new TQPopupMenu( btnHighlight ); TQPopupMenu *m = new TQPopupMenu( btnHighlight );
connect( m, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotHlSet( int ) ) ); connect( m, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotHlSet( int ) ) );
TQDict<TQPopupMenu> submenus; TQDict<TQPopupMenu> submenus;
for ( uint n = 0; n < doc->hlModeCount(); n++ ) for ( uint n = 0; n < doc->hlModeCount(); n++ )
{ {
@ -635,7 +635,7 @@ KateTemplateInfoWidget::KateTemplateInfoWidget( TQWidget *parent, TemplateInfo *
{ {
TQPopupMenu *sm = new TQPopupMenu(); TQPopupMenu *sm = new TQPopupMenu();
submenus.insert( text, sm ); submenus.insert( text, sm );
connect( sm, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotHlSet( int ) ) ); connect( sm, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotHlSet( int ) ) );
m->insertItem( text, sm ); m->insertItem( text, sm );
} }
@ -699,7 +699,7 @@ KateTemplateWizard::KateTemplateWizard( TQWidget *parent, KateFileTemplates *kft
btnTmpl = new TQPushButton( page ); btnTmpl = new TQPushButton( page );
glo->addWidget( btnTmpl, 6, 2 ); glo->addWidget( btnTmpl, 6, 2 );
TQPopupMenu *m = new TQPopupMenu( btnTmpl ); TQPopupMenu *m = new TQPopupMenu( btnTmpl );
connect( m, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotTmplateSet( int ) ) ); connect( m, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotTmplateSet( int ) ) );
TQDict<TQPopupMenu> submenus; TQDict<TQPopupMenu> submenus;
for ( uint i = 0; i < kft->templates().count(); i++ ) for ( uint i = 0; i < kft->templates().count(); i++ )
@ -707,7 +707,7 @@ KateTemplateWizard::KateTemplateWizard( TQWidget *parent, KateFileTemplates *kft
if ( ! submenus[ kft->templates().at( i )->group ] ) if ( ! submenus[ kft->templates().at( i )->group ] )
{ {
TQPopupMenu *sm = new TQPopupMenu(); TQPopupMenu *sm = new TQPopupMenu();
connect( sm, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotTmplateSet( int ) ) ); connect( sm, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotTmplateSet( int ) ) );
submenus.insert( kft->templates().at( i )->group, sm ); submenus.insert( kft->templates().at( i )->group, sm );
m->insertItem( kft->templates().at( i )->group, sm ); m->insertItem( kft->templates().at( i )->group, sm );
} }
@ -717,8 +717,8 @@ KateTemplateWizard::KateTemplateWizard( TQWidget *parent, KateFileTemplates *kft
} }
btnTmpl->setPopup( m ); btnTmpl->setPopup( m );
connect( bgOrigin, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slotStateChanged(int)) ); connect( bgOrigin, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slotStateChanged(int)) );
connect( urOrigin, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotStateChanged(const TQString&)) ); connect( urOrigin, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotStateChanged(const TQString&)) );
glo->addMultiCell( new TQSpacerItem( 1, 1, TQSizePolicy::Expanding, TQSizePolicy::Expanding ), 7, 7, 1, 2 ); glo->addMultiCell( new TQSpacerItem( 1, 1, TQSizePolicy::Expanding, TQSizePolicy::Expanding ), 7, 7, 1, 2 );
@ -775,9 +775,9 @@ KateTemplateWizard::KateTemplateWizard( TQWidget *parent, KateFileTemplates *kft
urLocation = new KURLRequester( page ); urLocation = new KURLRequester( page );
glo->addWidget( urLocation, 6, 2 ); glo->addWidget( urLocation, 6, 2 );
connect( bgLocation, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slotStateChanged(int)) ); connect( bgLocation, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slotStateChanged(int)) );
connect( urLocation, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotStateChanged(const TQString&)) ); connect( urLocation, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotStateChanged(const TQString&)) );
connect( leTemplateFileName, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotStateChanged(const TQString &)) ); connect( leTemplateFileName, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotStateChanged(const TQString &)) );
glo->addMultiCell( new TQSpacerItem( 1, 1, TQSizePolicy::Expanding, TQSizePolicy::Expanding ), 7, 7, 1, 2 ); glo->addMultiCell( new TQSpacerItem( 1, 1, TQSizePolicy::Expanding, TQSizePolicy::Expanding ), 7, 7, 1, 2 );
@ -827,7 +827,7 @@ KateTemplateWizard::KateTemplateWizard( TQWidget *parent, KateFileTemplates *kft
addPage( page, i18n("Create Template") ); addPage( page, i18n("Create Template") );
kdDebug()<<"=== Adding summary page at "<<endl; kdDebug()<<"=== Adding summary page at "<<endl;
connect( this, TQT_SIGNAL(selected(const TQString&)), this, TQT_SLOT(slotStateChanged(const TQString&)) ); connect( this, TQ_SIGNAL(selected(const TQString&)), this, TQ_SLOT(slotStateChanged(const TQString&)) );
} }
void KateTemplateWizard::slotTmplateSet( int idx ) void KateTemplateWizard::slotTmplateSet( int idx )
@ -1108,26 +1108,26 @@ KateTemplateManager::KateTemplateManager( KateFileTemplates *kft, TQWidget *pare
lvTemplates = new TDEListView( this ); lvTemplates = new TDEListView( this );
lvTemplates->addColumn( i18n("Template") ); lvTemplates->addColumn( i18n("Template") );
lo->addMultiCellWidget( lvTemplates, 1, 1, 1, 6 ); lo->addMultiCellWidget( lvTemplates, 1, 1, 1, 6 );
connect( lvTemplates, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotUpdateState()) ); connect( lvTemplates, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotUpdateState()) );
btnNew = new TQPushButton( i18n("New..."), this ); btnNew = new TQPushButton( i18n("New..."), this );
connect( btnNew, TQT_SIGNAL(clicked()), kft, TQT_SLOT(slotCreateTemplate()) ); connect( btnNew, TQ_SIGNAL(clicked()), kft, TQ_SLOT(slotCreateTemplate()) );
lo->addWidget( btnNew, 2, 2 ); lo->addWidget( btnNew, 2, 2 );
btnEdit = new TQPushButton( i18n("Edit..."), this ); btnEdit = new TQPushButton( i18n("Edit..."), this );
connect( btnEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT( slotEditTemplate()) ); connect( btnEdit, TQ_SIGNAL(clicked()), this, TQ_SLOT( slotEditTemplate()) );
lo->addWidget( btnEdit, 2, 3 ); lo->addWidget( btnEdit, 2, 3 );
btnRemove = new TQPushButton( i18n("Remove"), this ); btnRemove = new TQPushButton( i18n("Remove"), this );
connect( btnRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveTemplate()) ); connect( btnRemove, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemoveTemplate()) );
lo->addWidget( btnRemove, 2, 4 ); lo->addWidget( btnRemove, 2, 4 );
btnUpload = new TQPushButton( i18n("Upload..."), this ); btnUpload = new TQPushButton( i18n("Upload..."), this );
connect( btnUpload, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpload()) ); connect( btnUpload, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotUpload()) );
lo->addWidget( btnUpload, 2, 5 ); lo->addWidget( btnUpload, 2, 5 );
btnDownload = new TQPushButton( i18n("Download..."), this ); btnDownload = new TQPushButton( i18n("Download..."), this );
connect( btnDownload, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDownload()) ); connect( btnDownload, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDownload()) );
lo->addWidget( btnDownload, 2, 6 ); lo->addWidget( btnDownload, 2, 6 );
lo->setColStretch( 1, 1 ); lo->setColStretch( 1, 1 );

@ -31,7 +31,7 @@ void KatePluginHelloWorld::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
(void) new TDEAction ( i18n("Insert Hello World"), 0, this, (void) new TDEAction ( i18n("Insert Hello World"), 0, this,
TQT_SLOT( slotInsertHello() ), view->actionCollection(), TQ_SLOT( slotInsertHello() ), view->actionCollection(),
"edit_insert_helloworld" ); "edit_insert_helloworld" );
view->setInstance (new TDEInstance("kate")); view->setInstance (new TDEInstance("kate"));

@ -51,7 +51,7 @@ void PluginKateHtmlTools::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
(void) new TDEAction ( i18n("HT&ML Tag..."), /*"edit_HTML_tag",*/ ALT + Key_Minus, this, (void) new TDEAction ( i18n("HT&ML Tag..."), /*"edit_HTML_tag",*/ ALT + Key_Minus, this,
TQT_SLOT( slotEditHTMLtag() ), view->actionCollection(), "edit_HTML_tag" ); TQ_SLOT( slotEditHTMLtag() ), view->actionCollection(), "edit_HTML_tag" );
view->setInstance (new TDEInstance("kate")); view->setInstance (new TDEInstance("kate"));
view->setXMLFile( "plugins/katehtmltools/ui.rc" ); view->setXMLFile( "plugins/katehtmltools/ui.rc" );

@ -84,7 +84,7 @@ void PluginKateInsertCommand::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
(void) new TDEAction ( i18n("Insert Command..."), "", 0, this, (void) new TDEAction ( i18n("Insert Command..."), "", 0, this,
TQT_SLOT( slotInsertCommand() ), view->actionCollection(), TQ_SLOT( slotInsertCommand() ), view->actionCollection(),
"edit_insert_command" ); "edit_insert_command" );
view->setInstance (new TDEInstance("kate")); view->setInstance (new TDEInstance("kate"));
@ -148,12 +148,12 @@ void PluginKateInsertCommand::slotInsertCommand()
if ( ! sh ) { if ( ! sh ) {
sh = new KShellProcess; sh = new KShellProcess;
connect ( sh, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), connect ( sh, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int)) ); this, TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int)) );
connect ( sh, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), connect ( sh, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int)) ); this, TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int)) );
connect ( sh, TQT_SIGNAL(processExited(TDEProcess*)), connect ( sh, TQ_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotProcessExited(TDEProcess*)) ) ; this, TQ_SLOT(slotProcessExited(TDEProcess*)) ) ;
} }
sh->clearArguments(); sh->clearArguments();
@ -209,7 +209,7 @@ void PluginKateInsertCommand::slotShowWaitDlg()
if ( sh->isRunning() ) { if ( sh->isRunning() ) {
wdlg = new WaitDlg( (TQWidget*)kv, i18n( wdlg = new WaitDlg( (TQWidget*)kv, i18n(
"Executing command:\n%1\n\nPress 'Cancel' to abort.").arg(cmd) ); "Executing command:\n%1\n\nPress 'Cancel' to abort.").arg(cmd) );
connect(wdlg, TQT_SIGNAL(cancelClicked()), this, TQT_SLOT(slotAbort()) ); connect(wdlg, TQ_SIGNAL(cancelClicked()), this, TQ_SLOT(slotAbort()) );
} }
if ( sh->isRunning() ) // we may have finished while creating the dialog. if ( sh->isRunning() ) // we may have finished while creating the dialog.
wdlg->show(); wdlg->show();
@ -254,8 +254,8 @@ Kate::PluginConfigPage* PluginKateInsertCommand::configPage (uint,
{ {
InsertCommandConfigPage* p = new InsertCommandConfigPage(this, w); InsertCommandConfigPage* p = new InsertCommandConfigPage(this, w);
initConfigPage( p ); initConfigPage( p );
connect( p, TQT_SIGNAL(configPageApplyRequest(InsertCommandConfigPage*)), connect( p, TQ_SIGNAL(configPageApplyRequest(InsertCommandConfigPage*)),
this, TQT_SLOT(applyConfig(InsertCommandConfigPage*)) ); this, TQ_SLOT(applyConfig(InsertCommandConfigPage*)) );
return (Kate::PluginConfigPage*)p; return (Kate::PluginConfigPage*)p;
} }
@ -299,8 +299,8 @@ CmdPrompt::CmdPrompt(TQWidget* parent,
l->setBuddy(cmb_cmd); l->setBuddy(cmb_cmd);
cmb_cmd->setFocus(); cmb_cmd->setFocus();
lo->addWidget(cmb_cmd); lo->addWidget(cmb_cmd);
connect( cmb_cmd->lineEdit(),TQT_SIGNAL(textChanged ( const TQString & )), connect( cmb_cmd->lineEdit(),TQ_SIGNAL(textChanged ( const TQString & )),
this, TQT_SLOT( slotTextChanged(const TQString &))); this, TQ_SLOT( slotTextChanged(const TQString &)));
TQLabel *lwd = new TQLabel( i18n("Choose &working folder:"), page ); TQLabel *lwd = new TQLabel( i18n("Choose &working folder:"), page );
lo->addWidget( lwd ); lo->addWidget( lwd );

@ -77,7 +77,7 @@ void KatePluginSort::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
(void) new TDEAction ( i18n("Sort"), 0, this, (void) new TDEAction ( i18n("Sort"), 0, this,
SLOT( slotSort() ), view->actionCollection(), TQ_SLOT( slotSort() ), view->actionCollection(),
"edit_insert_sort" ); "edit_insert_sort" );
view->setInstance (new TDEInstance("kate")); view->setInstance (new TDEInstance("kate"));

@ -394,7 +394,7 @@ KJS::Object Kate::JS::RefCountedObjectDict::jsObject(KJS::ExecState *exec, TQOb
if (oe==0) { if (oe==0) {
oe=new ObjectEntry; oe=new ObjectEntry;
oe->obj=proxy->part()->factory()->createProxy(exec,obj,proxy); oe->obj=proxy->part()->factory()->createProxy(exec,obj,proxy);
connect(obj,TQT_SIGNAL(destroyed()),this,TQT_SLOT(removeSender())); connect(obj,TQ_SIGNAL(destroyed()),this,TQ_SLOT(removeSender()));
insert(obj,oe); insert(obj,oe);
return oe->obj; return oe->obj;
} else return oe->obj; } else return oe->obj;

@ -197,8 +197,8 @@ Kate::PluginConfigPage* PluginKateKJSWrapper::configPage (uint id,
/* /*
KateKJSWrapperConfigPage* p = new KateKJSWrapperConfigPage(this, w); KateKJSWrapperConfigPage* p = new KateKJSWrapperConfigPage(this, w);
//init //init
connect( p, TQT_SIGNAL(configPageApplyRequest(KateKJSWrapperConfigPage*)), connect( p, TQ_SIGNAL(configPageApplyRequest(KateKJSWrapperConfigPage*)),
this, TQT_SLOT(applyConfig(KateKJSWrapperConfigPage*)) ); this, TQ_SLOT(applyConfig(KateKJSWrapperConfigPage*)) );
return (Kate::PluginConfigPage*);*/ return (Kate::PluginConfigPage*);*/
} }
@ -260,7 +260,7 @@ PluginKateKJSWrapperView *PluginKateKJSWrapper::getViewObject(Kate::MainWindow *
if (!view) { if (!view) {
view=new PluginKateKJSWrapperView(); view=new PluginKateKJSWrapperView();
view->win=win; view->win=win;
connect(win,TQT_SIGNAL(destroyed()),this,TQT_SLOT(slotWindowDestroyed())); connect(win,TQ_SIGNAL(destroyed()),this,TQ_SLOT(slotWindowDestroyed()));
m_views.insert(win,view); m_views.insert(win,view);
KJS::Interpreter *js = m_part->interpreter(); KJS::Interpreter *js = m_part->interpreter();
KJS::ExecState *exec = js->globalExec(); KJS::ExecState *exec = js->globalExec();

@ -196,8 +196,8 @@ TDEListView (parent, name)
PYOTHER); PYOTHER);
function_root->setPixmap (0, TQPixmap (container_xpm)); function_root->setPixmap (0, TQPixmap (container_xpm));
setRootIsDecorated (1); setRootIsDecorated (1);
connect (this, TQT_SIGNAL (executed (TQListViewItem *)), this, connect (this, TQ_SIGNAL (executed (TQListViewItem *)), this,
TQT_SLOT (nodeSelected (TQListViewItem *))); TQ_SLOT (nodeSelected (TQListViewItem *)));
setTooltipColumn (1); setTooltipColumn (1);
setShowToolTips (1); setShowToolTips (1);
tooltip = new KPBToolTip (this); tooltip = new KPBToolTip (this);

@ -34,7 +34,7 @@ PluginViewPyBrowse::PluginViewPyBrowse (Kate::MainWindow *w)
: win (w) : win (w)
{ {
(void) new TDEAction ( i18n("Update Python Browser"), 0, this, (void) new TDEAction ( i18n("Update Python Browser"), 0, this,
TQT_SLOT( slotUpdatePyBrowser() ), actionCollection(), TQ_SLOT( slotUpdatePyBrowser() ), actionCollection(),
"python_update_pybrowse" ); "python_update_pybrowse" );
//set up the menus //set up the menus
@ -53,7 +53,7 @@ PluginViewPyBrowse::PluginViewPyBrowse (Kate::MainWindow *w)
my_dock = tool_view_manager->createToolView("kate_plugin_kpybrowser", Kate::ToolViewManager::Left, (*py_pixmap), i18n("Python Browser")); my_dock = tool_view_manager->createToolView("kate_plugin_kpybrowser", Kate::ToolViewManager::Left, (*py_pixmap), i18n("Python Browser"));
kpybrowser = new KPyBrowser(my_dock, "kpybrowser"); kpybrowser = new KPyBrowser(my_dock, "kpybrowser");
connect(kpybrowser, TQT_SIGNAL(selected(TQString, int)), this, TQT_SLOT(slotSelected(TQString, int))); connect(kpybrowser, TQ_SIGNAL(selected(TQString, int)), this, TQ_SLOT(slotSelected(TQString, int)));
} }
PluginViewPyBrowse::~PluginViewPyBrowse () PluginViewPyBrowse::~PluginViewPyBrowse ()

@ -334,19 +334,19 @@ PluginKateMakeView::PluginKateMakeView(TQWidget *parent,
m_proc=0; m_proc=0;
(void) new TDEAction ( i18n("Next Error"), TDEShortcut(ALT+CTRL+Key_Right), (void) new TDEAction ( i18n("Next Error"), TDEShortcut(ALT+CTRL+Key_Right),
this, TQT_SLOT( slotNext() ), this, TQ_SLOT( slotNext() ),
actionCollection(), "make_right" ); actionCollection(), "make_right" );
(void) new TDEAction ( i18n("Previous Error"), TDEShortcut(ALT+CTRL+Key_Left), (void) new TDEAction ( i18n("Previous Error"), TDEShortcut(ALT+CTRL+Key_Left),
this, TQT_SLOT( slotPrev() ), this, TQ_SLOT( slotPrev() ),
actionCollection(), "make_left" ); actionCollection(), "make_left" );
(void) new TDEAction ( i18n("Make"), TDEShortcut(ALT+Key_R), (void) new TDEAction ( i18n("Make"), TDEShortcut(ALT+Key_R),
this, TQT_SLOT( slotValidate() ), this, TQ_SLOT( slotValidate() ),
actionCollection(), "make_check" ); actionCollection(), "make_check" );
(void) new TDEAction ( i18n("Configure..."), TDEShortcut(), (void) new TDEAction ( i18n("Configure..."), TDEShortcut(),
this, TQT_SLOT( slotConfigure() ), this, TQ_SLOT( slotConfigure() ),
actionCollection(), "make_settings" ); actionCollection(), "make_settings" );
setInstance(new TDEInstance("kate")); setInstance(new TDEInstance("kate"));
@ -362,13 +362,13 @@ PluginKateMakeView::PluginKateMakeView(TQWidget *parent,
addColumn(i18n("Message"), -1); addColumn(i18n("Message"), -1);
setAllColumnsShowFocus(true); setAllColumnsShowFocus(true);
setResizeMode(TQListView::LastColumn); setResizeMode(TQListView::LastColumn);
connect(this, TQT_SIGNAL(clicked(TQListViewItem *)), TQT_SLOT(slotClicked(TQListViewItem *))); connect(this, TQ_SIGNAL(clicked(TQListViewItem *)), TQ_SLOT(slotClicked(TQListViewItem *)));
m_proc = new TDEProcess(); m_proc = new TDEProcess();
connect(m_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotProcExited(TDEProcess*))); connect(m_proc, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotProcExited(TDEProcess*)));
connect(m_proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)), connect(m_proc, TQ_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(slotReceivedProcStderr(TDEProcess*, char*, int))); this, TQ_SLOT(slotReceivedProcStderr(TDEProcess*, char*, int)));
TDEConfig c("katemakepluginrc"); TDEConfig c("katemakepluginrc");

@ -56,7 +56,7 @@ void ModelinePlugin::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
new TDEAction( i18n("Apply Modeline"), 0, new TDEAction( i18n("Apply Modeline"), 0,
this, TQT_SLOT(applyModeline()), this, TQ_SLOT(applyModeline()),
view->actionCollection(), "edit_apply_modeline" ); view->actionCollection(), "edit_apply_modeline" );
view->setInstance (new TDEInstance("kate")); view->setInstance (new TDEInstance("kate"));

@ -51,7 +51,7 @@ void PluginKateOpenHeader::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
(void) new TDEAction( i18n("Open .h/.cpp/.c"), Key_F12, (void) new TDEAction( i18n("Open .h/.cpp/.c"), Key_F12,
this, TQT_SLOT( slotOpenHeader() ), this, TQ_SLOT( slotOpenHeader() ),
view->actionCollection(), "file_openheader" ); view->actionCollection(), "file_openheader" );
view->setInstance (new TDEInstance("kate")); view->setInstance (new TDEInstance("kate"));

@ -35,29 +35,29 @@ KatePluginSnippetsView::KatePluginSnippetsView(Kate::MainWindow *w, TQWidget *do
//<make connections> //<make connections>
connect ( connect (
lvSnippets, TQT_SIGNAL( selectionChanged(TQListViewItem *) ), lvSnippets, TQ_SIGNAL( selectionChanged(TQListViewItem *) ),
this, TQT_SLOT( slot_lvSnippetsSelectionChanged(TQListViewItem *) ) this, TQ_SLOT( slot_lvSnippetsSelectionChanged(TQListViewItem *) )
); );
connect ( connect (
lvSnippets, TQT_SIGNAL( doubleClicked (TQListViewItem *) ), lvSnippets, TQ_SIGNAL( doubleClicked (TQListViewItem *) ),
this, TQT_SLOT( slot_lvSnippetsClicked(TQListViewItem *) ) this, TQ_SLOT( slot_lvSnippetsClicked(TQListViewItem *) )
); );
connect ( connect (
lvSnippets, TQT_SIGNAL( itemRenamed(TQListViewItem *, int, const TQString &) ), lvSnippets, TQ_SIGNAL( itemRenamed(TQListViewItem *, int, const TQString &) ),
this, TQT_SLOT( slot_lvSnippetsItemRenamed(TQListViewItem *, int, const TQString &) ) this, TQ_SLOT( slot_lvSnippetsItemRenamed(TQListViewItem *, int, const TQString &) )
); );
connect ( connect (
btnNew, TQT_SIGNAL( clicked () ), btnNew, TQ_SIGNAL( clicked () ),
this, TQT_SLOT( slot_btnNewClicked() ) this, TQ_SLOT( slot_btnNewClicked() )
); );
connect ( connect (
btnSave, TQT_SIGNAL( clicked () ), btnSave, TQ_SIGNAL( clicked () ),
this, TQT_SLOT( slot_btnSaveClicked() ) this, TQ_SLOT( slot_btnSaveClicked() )
); );
connect ( connect (
btnDelete, TQT_SIGNAL( clicked () ), btnDelete, TQ_SIGNAL( clicked () ),
this, TQT_SLOT( slot_btnDeleteClicked() ) this, TQ_SLOT( slot_btnDeleteClicked() )
); );
//</make connections> //</make connections>

@ -112,8 +112,8 @@ void KatePluginTabBarExtension::addView(Kate::MainWindow *win)
TDEToolBar* toolbar = dynamic_cast<TDEToolBar*> TDEToolBar* toolbar = dynamic_cast<TDEToolBar*>
(win->guiFactory()->container("tabbarExtensionToolBar", view)); (win->guiFactory()->container("tabbarExtensionToolBar", view));
if (toolbar) { if (toolbar) {
connect(toolbar, TQT_SIGNAL(orientationChanged(TQt::Orientation)), connect(toolbar, TQ_SIGNAL(orientationChanged(TQt::Orientation)),
view->tabbar, TQT_SLOT(slotMoved(TQt::Orientation))); view->tabbar, TQ_SLOT(slotMoved(TQt::Orientation)));
} }
} }
@ -147,8 +147,8 @@ Kate::PluginConfigPage* KatePluginTabBarExtension::configPage(
{ {
KateTabBarExtensionConfigPage* p = new KateTabBarExtensionConfigPage(this, w); KateTabBarExtensionConfigPage* p = new KateTabBarExtensionConfigPage(this, w);
initConfigPage( p ); initConfigPage( p );
connect( p, TQT_SIGNAL(configPageApplyRequest(KateTabBarExtensionConfigPage*)), connect( p, TQ_SIGNAL(configPageApplyRequest(KateTabBarExtensionConfigPage*)),
TQT_SLOT(applyConfig(KateTabBarExtensionConfigPage*)) ); TQ_SLOT(applyConfig(KateTabBarExtensionConfigPage*)) );
return (Kate::PluginConfigPage*)p; return (Kate::PluginConfigPage*)p;
} }
@ -181,7 +181,7 @@ KateTabBarButton::KateTabBarButton(Kate::ViewManager* pViewManager,
setText(pDoc->docName()); setText(pDoc->docName());
connect(this, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setOn(bool))); connect(this, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setOn(bool)));
} }
void KateTabBarButton::setDirty(bool d) void KateTabBarButton::setDirty(bool d)
@ -246,7 +246,7 @@ void KateTabBarButton::triggerModified()
void KateTabBarButton::setOn(bool on) void KateTabBarButton::setOn(bool on)
{ {
disconnect( TQT_SIGNAL(toggled(bool))); disconnect( TQ_SIGNAL(toggled(bool)));
// kdDebug() << "setOn: " << (int)on << endl; // kdDebug() << "setOn: " << (int)on << endl;
if ((!on) && viewManager->activeView()->document()->documentNumber() if ((!on) && viewManager->activeView()->document()->documentNumber()
== documentNumber()) { == documentNumber()) {
@ -257,7 +257,7 @@ void KateTabBarButton::setOn(bool on)
if (on) emit myToggled(this); if (on) emit myToggled(this);
} }
connect(this, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setOn(bool))); connect(this, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setOn(bool)));
} }
// END KateTabBarButton // END KateTabBarButton
@ -282,13 +282,13 @@ KateTabBarExtension::KateTabBarExtension(Kate::DocumentManager *pDocManager,
slotDocumentCreated (pDocManager->document(i)); slotDocumentCreated (pDocManager->document(i));
} }
connect(m_win->viewManager(), TQT_SIGNAL(viewChanged()), TQT_SLOT(slotViewChanged())); connect(m_win->viewManager(), TQ_SIGNAL(viewChanged()), TQ_SLOT(slotViewChanged()));
connect(pDocManager, connect(pDocManager,
TQT_SIGNAL(documentCreated(Kate::Document *)), TQ_SIGNAL(documentCreated(Kate::Document *)),
TQT_SLOT(slotDocumentCreated(Kate::Document *))); TQ_SLOT(slotDocumentCreated(Kate::Document *)));
connect(pDocManager, connect(pDocManager,
TQT_SIGNAL(documentDeleted(uint)), TQ_SIGNAL(documentDeleted(uint)),
TQT_SLOT(slotDocumentDeleted(uint))); TQ_SLOT(slotDocumentDeleted(uint)));
setSortByName(bSort); setSortByName(bSort);
setCloseOnMiddleClick(bCloseOnMiddleClick); setCloseOnMiddleClick(bCloseOnMiddleClick);
@ -346,17 +346,17 @@ void KateTabBarExtension::slotDocumentCreated (Kate::Document *doc)
if (!doc) return; if (!doc) return;
KateTabBarButton* tab = new KateTabBarButton(m_win->viewManager(), doc, this); KateTabBarButton* tab = new KateTabBarButton(m_win->viewManager(), doc, this);
connect(tab, TQT_SIGNAL(myToggled(KateTabBarButton*)), connect(tab, TQ_SIGNAL(myToggled(KateTabBarButton*)),
TQT_SLOT(slotActivateView(KateTabBarButton*))); TQ_SLOT(slotActivateView(KateTabBarButton*)));
connect(tab, TQT_SIGNAL(middleButtonPressed(KateTabBarButton*)), connect(tab, TQ_SIGNAL(middleButtonPressed(KateTabBarButton*)),
TQT_SLOT(slotRequestDocClose(KateTabBarButton*))); TQ_SLOT(slotRequestDocClose(KateTabBarButton*)));
connect(doc, TQT_SIGNAL(nameChanged(Kate::Document *)), connect(doc, TQ_SIGNAL(nameChanged(Kate::Document *)),
TQT_SLOT(slotNameChanged(Kate::Document *))); TQ_SLOT(slotNameChanged(Kate::Document *)));
connect(doc, TQT_SIGNAL(modStateChanged(Kate::Document *)), connect(doc, TQ_SIGNAL(modStateChanged(Kate::Document *)),
TQT_SLOT(slotModChanged(Kate::Document *))); TQ_SLOT(slotModChanged(Kate::Document *)));
connect(doc, connect(doc,
TQT_SIGNAL(modifiedOnDisc(Kate::Document *, bool, unsigned char)), TQ_SIGNAL(modifiedOnDisc(Kate::Document *, bool, unsigned char)),
TQT_SLOT(slotModifiedOnDisc(Kate::Document *, bool, unsigned char))); TQ_SLOT(slotModifiedOnDisc(Kate::Document *, bool, unsigned char)));
if(doc->isModified()) tab->triggerModified(); if(doc->isModified()) tab->triggerModified();
tab->show(); tab->show();
top->addWidget(tab); top->addWidget(tab);
@ -489,8 +489,8 @@ KateTabBarExtensionConfigPage::KateTabBarExtensionConfigPage(
top->add(gb); top->add(gb);
top->addStretch(1); top->addStretch(1);
// throw signal changed // throw signal changed
connect(pSortAlpha, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed())); connect(pSortAlpha, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed()));
connect(pCloseOnMiddleClick, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed())); connect(pCloseOnMiddleClick, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed()));
} }
// END KateTabBarExtensionConfigPage // END KateTabBarExtensionConfigPage

@ -64,7 +64,7 @@ void PluginKateTextFilter::addView(Kate::MainWindow *win)
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
(void) new TDEAction ( i18n("Filter Te&xt..."), /*"edit_filter",*/ CTRL + Key_Backslash, this, (void) new TDEAction ( i18n("Filter Te&xt..."), /*"edit_filter",*/ CTRL + Key_Backslash, this,
TQT_SLOT( slotEditFilter() ), view->actionCollection(), "edit_filter" ); TQ_SLOT( slotEditFilter() ), view->actionCollection(), "edit_filter" );
view->setInstance (new TDEInstance("kate")); view->setInstance (new TDEInstance("kate"));
view->setXMLFile( "plugins/katetextfilter/ui.rc" ); view->setXMLFile( "plugins/katetextfilter/ui.rc" );
@ -283,17 +283,17 @@ void PluginKateTextFilter::runFilter( Kate::View *kv, const TQString &filter )
{ {
m_pFilterShellProcess = new KShellProcess; m_pFilterShellProcess = new KShellProcess;
connect ( m_pFilterShellProcess, TQT_SIGNAL(wroteStdin(TDEProcess *)), connect ( m_pFilterShellProcess, TQ_SIGNAL(wroteStdin(TDEProcess *)),
this, TQT_SLOT(slotFilterCloseStdin (TDEProcess *))); this, TQ_SLOT(slotFilterCloseStdin (TDEProcess *)));
connect ( m_pFilterShellProcess, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), connect ( m_pFilterShellProcess, TQ_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
this, TQT_SLOT(slotFilterReceivedStdout(TDEProcess*,char*,int)) ); this, TQ_SLOT(slotFilterReceivedStdout(TDEProcess*,char*,int)) );
connect ( m_pFilterShellProcess, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)), connect ( m_pFilterShellProcess, TQ_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(slotFilterReceivedStderr(TDEProcess*,char*,int)) ); this, TQ_SLOT(slotFilterReceivedStderr(TDEProcess*,char*,int)) );
connect ( m_pFilterShellProcess, TQT_SIGNAL(processExited(TDEProcess*)), connect ( m_pFilterShellProcess, TQ_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotFilterProcessExited(TDEProcess*) ) ) ; this, TQ_SLOT(slotFilterProcessExited(TDEProcess*) ) ) ;
} }
slipInFilter (*m_pFilterShellProcess, *kv, filter); slipInFilter (*m_pFilterShellProcess, *kv, filter);

@ -100,10 +100,10 @@ PluginKateXMLCheckView::PluginKateXMLCheckView(TQWidget *parent,Kate::MainWindow
m_tmp_file=0; m_tmp_file=0;
m_proc=0; m_proc=0;
(void) new TDEAction ( i18n("Validate XML"), 0, this, (void) new TDEAction ( i18n("Validate XML"), 0, this,
TQT_SLOT( slotValidate() ), actionCollection(), "xml_check" ); TQ_SLOT( slotValidate() ), actionCollection(), "xml_check" );
// TODO?: // TODO?:
//(void) new TDEAction ( i18n("Indent XML"), 0, this, //(void) new TDEAction ( i18n("Indent XML"), 0, this,
// TQT_SLOT( slotIndent() ), actionCollection(), "xml_indent" ); // TQ_SLOT( slotIndent() ), actionCollection(), "xml_indent" );
setInstance(new TDEInstance("kate")); setInstance(new TDEInstance("kate"));
setXMLFile("plugins/katexmlcheck/ui.rc"); setXMLFile("plugins/katexmlcheck/ui.rc");
@ -118,7 +118,7 @@ PluginKateXMLCheckView::PluginKateXMLCheckView(TQWidget *parent,Kate::MainWindow
addColumn(i18n("Message"), -1); addColumn(i18n("Message"), -1);
setAllColumnsShowFocus(true); setAllColumnsShowFocus(true);
setResizeMode(TQListView::LastColumn); setResizeMode(TQListView::LastColumn);
connect(this, TQT_SIGNAL(clicked(TQListViewItem *)), TQT_SLOT(slotClicked(TQListViewItem *))); connect(this, TQ_SIGNAL(clicked(TQListViewItem *)), TQ_SLOT(slotClicked(TQListViewItem *)));
/* TODO?: invalidate the listview when document has changed /* TODO?: invalidate the listview when document has changed
Kate::View *kv = application()->activeMainWindow()->viewManager()->activeView(); Kate::View *kv = application()->activeMainWindow()->viewManager()->activeView();
@ -126,17 +126,17 @@ PluginKateXMLCheckView::PluginKateXMLCheckView(TQWidget *parent,Kate::MainWindow
kdDebug() << "Warning: no Kate::View" << endl; kdDebug() << "Warning: no Kate::View" << endl;
return; return;
} }
connect(kv, TQT_SIGNAL(modifiedChanged()), this, TQT_SLOT(slotUpdate())); connect(kv, TQ_SIGNAL(modifiedChanged()), this, TQ_SLOT(slotUpdate()));
*/ */
m_proc_stderr = ""; m_proc_stderr = "";
m_proc = new TDEProcess(); m_proc = new TDEProcess();
connect(m_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotProcExited(TDEProcess*))); connect(m_proc, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotProcExited(TDEProcess*)));
// we currently only want errors: // we currently only want errors:
//connect(m_proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), //connect(m_proc, TQ_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
// this, TQT_SLOT(receivedProcStdout(TDEProcess*, char*, int))); // this, TQ_SLOT(receivedProcStdout(TDEProcess*, char*, int)));
connect(m_proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)), connect(m_proc, TQ_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(slotReceivedProcStderr(TDEProcess*, char*, int))); this, TQ_SLOT(slotReceivedProcStderr(TDEProcess*, char*, int)));
} }

@ -134,10 +134,10 @@ PluginKateXMLTools::PluginKateXMLTools( TQObject* parent, const char* name, cons
m_documentManager = ((Kate::Application*)parent)->documentManager(); m_documentManager = ((Kate::Application*)parent)->documentManager();
// connect( m_documentManager, TQT_SIGNAL(documentCreated()), // connect( m_documentManager, TQ_SIGNAL(documentCreated()),
// this, TQT_SLOT(slotDocumentCreated()) ); // this, TQ_SLOT(slotDocumentCreated()) );
connect( m_documentManager, TQT_SIGNAL(documentDeleted(uint)), connect( m_documentManager, TQ_SIGNAL(documentDeleted(uint)),
this, TQT_SLOT(slotDocumentDeleted(uint)) ); this, TQ_SLOT(slotDocumentDeleted(uint)) );
} }
PluginKateXMLTools::~PluginKateXMLTools() PluginKateXMLTools::~PluginKateXMLTools()
@ -150,11 +150,11 @@ void PluginKateXMLTools::addView( Kate::MainWindow *win )
// TODO: doesn't this have to be deleted? // TODO: doesn't this have to be deleted?
PluginView *view = new PluginView (); PluginView *view = new PluginView ();
( void) new TDEAction ( i18n("&Insert Element..."), CTRL+Key_Return, this, ( void) new TDEAction ( i18n("&Insert Element..."), CTRL+Key_Return, this,
TQT_SLOT( slotInsertElement()), view->actionCollection(), "xml_tool_insert_element" ); TQ_SLOT( slotInsertElement()), view->actionCollection(), "xml_tool_insert_element" );
( void) new TDEAction ( i18n("&Close Element"), CTRL+Key_Less, this, ( void) new TDEAction ( i18n("&Close Element"), CTRL+Key_Less, this,
TQT_SLOT( slotCloseElement()), view->actionCollection(), "xml_tool_close_element" ); TQ_SLOT( slotCloseElement()), view->actionCollection(), "xml_tool_close_element" );
( void) new TDEAction ( i18n("Assign Meta &DTD..." ), 0, this, ( void) new TDEAction ( i18n("Assign Meta &DTD..." ), 0, this,
TQT_SLOT( getDTD()), view->actionCollection(), "xml_tool_assign" ); TQ_SLOT( getDTD()), view->actionCollection(), "xml_tool_assign" );
view->setInstance( new TDEInstance("kate") ); view->setInstance( new TDEInstance("kate") );
view->setXMLFile( "plugins/katexmltools/ui.rc" ); view->setXMLFile( "plugins/katexmltools/ui.rc" );
@ -361,9 +361,9 @@ PluginKateXMLTools::stringListToCompletionEntryList( TQStringList list )
*/ */
void PluginKateXMLTools::disconnectSlots( Kate::View *kv ) void PluginKateXMLTools::disconnectSlots( Kate::View *kv )
{ {
disconnect( kv, TQT_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*,TQString*)), this, 0 ); disconnect( kv, TQ_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*,TQString*)), this, 0 );
disconnect( kv, TQT_SIGNAL(completionDone(KTextEditor::CompletionEntry)), this, 0 ); disconnect( kv, TQ_SIGNAL(completionDone(KTextEditor::CompletionEntry)), this, 0 );
disconnect( kv, TQT_SIGNAL(completionAborted()), this, 0 ); disconnect( kv, TQ_SIGNAL(completionAborted()), this, 0 );
} }
/** /**
@ -372,11 +372,11 @@ void PluginKateXMLTools::disconnectSlots( Kate::View *kv )
*/ */
void PluginKateXMLTools::connectSlots( Kate::View *kv ) void PluginKateXMLTools::connectSlots( Kate::View *kv )
{ {
connect( kv, TQT_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*,TQString*) ), connect( kv, TQ_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*,TQString*) ),
this, TQT_SLOT(filterInsertString(KTextEditor::CompletionEntry*,TQString*)) ); this, TQ_SLOT(filterInsertString(KTextEditor::CompletionEntry*,TQString*)) );
connect( kv, TQT_SIGNAL(completionDone(KTextEditor::CompletionEntry) ), connect( kv, TQ_SIGNAL(completionDone(KTextEditor::CompletionEntry) ),
this, TQT_SLOT(completionDone(KTextEditor::CompletionEntry)) ); this, TQ_SLOT(completionDone(KTextEditor::CompletionEntry)) );
connect( kv, TQT_SIGNAL(completionAborted()), this, TQT_SLOT(completionAborted()) ); connect( kv, TQ_SIGNAL(completionAborted()), this, TQ_SLOT(completionAborted()) );
} }
/** /**
@ -485,9 +485,9 @@ void PluginKateXMLTools::getDTD()
TQApplication::setOverrideCursor( KCursor::waitCursor() ); TQApplication::setOverrideCursor( KCursor::waitCursor() );
TDEIO::Job *job = TDEIO::get( url ); TDEIO::Job *job = TDEIO::get( url );
connect( job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SLOT(slotFinished(TDEIO::Job *)) ); connect( job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SLOT(slotFinished(TDEIO::Job *)) );
connect( job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), connect( job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)),
this, TQT_SLOT(slotData(TDEIO::Job *, const TQByteArray &)) ); this, TQ_SLOT(slotData(TDEIO::Job *, const TQByteArray &)) );
} }
kdDebug()<<"XMLTools::getDTD: Documents: "<<m_docDtds.count()<<", DTDs: "<<m_dtds.count()<<endl; kdDebug()<<"XMLTools::getDTD: Documents: "<<m_docDtds.count()<<", DTDs: "<<m_dtds.count()<<endl;
} }
@ -529,12 +529,12 @@ void PluginKateXMLTools::slotData( TDEIO::Job *, const TQByteArray &data )
void PluginKateXMLTools::assignDTD( PseudoDTD *dtd, KTextEditor::Document *doc ) void PluginKateXMLTools::assignDTD( PseudoDTD *dtd, KTextEditor::Document *doc )
{ {
m_docDtds.replace( doc->documentNumber(), dtd ); m_docDtds.replace( doc->documentNumber(), dtd );
connect( doc, TQT_SIGNAL(charactersInteractivelyInserted(int,int,const TQString&) ), connect( doc, TQ_SIGNAL(charactersInteractivelyInserted(int,int,const TQString&) ),
this, TQT_SLOT(keyEvent(int,int,const TQString&)) ); this, TQ_SLOT(keyEvent(int,int,const TQString&)) );
disconnect( doc, TQT_SIGNAL(backspacePressed()), this, 0 ); disconnect( doc, TQ_SIGNAL(backspacePressed()), this, 0 );
connect( doc, TQT_SIGNAL(backspacePressed() ), connect( doc, TQ_SIGNAL(backspacePressed() ),
this, TQT_SLOT(backspacePressed()) ); this, TQ_SLOT(backspacePressed()) );
} }
/** /**
@ -782,7 +782,7 @@ void PluginKateXMLTools::completionDone( KTextEditor::CompletionEntry )
if( m_mode == attributes ) if( m_mode == attributes )
{ {
// immediately show attribute values: // immediately show attribute values:
TQTimer::singleShot( 10, this, TQT_SLOT(emptyKeyEvent()) ); TQTimer::singleShot( 10, this, TQ_SLOT(emptyKeyEvent()) );
} }
} }
@ -1122,8 +1122,8 @@ TQString InsertElement::showDialog( TQStringList &completions )
KHistoryCombo *combo = new KHistoryCombo( page, "value" ); KHistoryCombo *combo = new KHistoryCombo( page, "value" );
combo->setHistoryItems( completions, true ); combo->setHistoryItems( completions, true );
connect( combo->lineEdit(), TQT_SIGNAL(textChanged ( const TQString & )), connect( combo->lineEdit(), TQ_SIGNAL(textChanged ( const TQString & )),
this, TQT_SLOT(slotHistoryTextChanged(const TQString &)) ); this, TQ_SLOT(slotHistoryTextChanged(const TQString &)) );
TQString text = i18n( "Enter XML tag name and attributes (\"<\", \">\" and closing tag will be supplied):" ); TQString text = i18n( "Enter XML tag name and attributes (\"<\", \">\" and closing tag will be supplied):" );
TQLabel *label = new TQLabel( text, page, "insert" ); TQLabel *label = new TQLabel( text, page, "insert" );

@ -58,7 +58,7 @@ TDEConfigDialogImp::TDEConfigDialogImp( TQWidget *parent, const char *name, TDEC
settings = new SettingsImp(0, "General"); settings = new SettingsImp(0, "General");
addPage(settings, i18n("General"), "package_settings"); addPage(settings, i18n("General"), "package_settings");
connect(this, TQT_SIGNAL(widgetModified()), settings, TQT_SLOT(updatePreview())); connect(this, TQ_SIGNAL(widgetModified()), settings, TQ_SLOT(updatePreview()));
} }
SettingsImp::SettingsImp(TQWidget* parent, const char* name, WFlags fl): Settings(parent, name, fl){ SettingsImp::SettingsImp(TQWidget* parent, const char* name, WFlags fl): Settings(parent, name, fl){
@ -138,7 +138,7 @@ KBinaryClock::KBinaryClock(const TQString& configFile, Type type, int actions, T
updateClock(); updateClock();
loadSettings(); loadSettings();
TQTimer *timer=new TQTimer(this); TQTimer *timer=new TQTimer(this);
connect (timer, TQT_SIGNAL (timeout()), this, TQT_SLOT (updateClock())); connect (timer, TQ_SIGNAL (timeout()), this, TQ_SLOT (updateClock()));
timer->start(500,false); timer->start(500,false);
} }
@ -217,7 +217,7 @@ void KBinaryClock::preferences(){
return; return;
TDEConfigDialogImp *dialog = new TDEConfigDialogImp(this, "settings", prefs, KDialogBase::Swallow); TDEConfigDialogImp *dialog = new TDEConfigDialogImp(this, "settings", prefs, KDialogBase::Swallow);
connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(loadSettings())); connect(dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(loadSettings()));
dialog->show(); dialog->show();
dialog->settings->updatePreview(); dialog->settings->updatePreview();
} }
@ -301,7 +301,7 @@ void KBinaryClock::openContextMenu() {
copyMenu->insertItem(dt.date().toString(), 206); copyMenu->insertItem(dt.date().toString(), 206);
copyMenu->insertItem(dt.time().toString(), 207); copyMenu->insertItem(dt.time().toString(), 207);
copyMenu->insertItem(dt.toString(), 208); copyMenu->insertItem(dt.toString(), 208);
connect( copyMenu, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotCopyMenuActivated(int) ) ); connect( copyMenu, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotCopyMenuActivated(int) ) );
if (!bImmutable) if (!bImmutable)
{ {
@ -362,7 +362,7 @@ void KBinaryClock::toggleCalendar()
return; return;
} }
_calendar = new DatePicker(this, TQDateTime::currentDateTime().date()); _calendar = new DatePicker(this, TQDateTime::currentDateTime().date());
connect( _calendar, TQT_SIGNAL( destroyed() ), TQT_SLOT( slotCalendarDeleted() )); connect( _calendar, TQ_SIGNAL( destroyed() ), TQ_SLOT( slotCalendarDeleted() ));
// some extra spacing is included if aligned on a desktop edge // some extra spacing is included if aligned on a desktop edge
TQPoint c = mapToGlobal(TQPoint(0,0)); TQPoint c = mapToGlobal(TQPoint(0,0));
@ -393,7 +393,7 @@ void KBinaryClock::slotCalendarDeleted()
_calendar = 0L; _calendar = 0L;
// don't reopen the calendar immediately ... // don't reopen the calendar immediately ...
_disableCalendar = true; _disableCalendar = true;
TQTimer::singleShot(100, this, TQT_SLOT(slotEnableCalendar())); TQTimer::singleShot(100, this, TQ_SLOT(slotEnableCalendar()));
} }
void KBinaryClock::slotEnableCalendar() void KBinaryClock::slotEnableCalendar()

@ -83,7 +83,7 @@ KolourPicker::KolourPicker(const TQString& configFile, Type type,
m_colourButton->setPixmap(SmallIcon("colorpicker")); m_colourButton->setPixmap(SmallIcon("colorpicker"));
m_colourButton->setFixedSize(20, 20); m_colourButton->setFixedSize(20, 20);
TQToolTip::add(m_colourButton, i18n("Pick a color")); TQToolTip::add(m_colourButton, i18n("Pick a color"));
connect(m_colourButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotPick())); connect(m_colourButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotPick()));
m_historyButton = new SimpleButton(this); m_historyButton = new SimpleButton(this);
m_historyButton->setFixedSize(20, 20); m_historyButton->setFixedSize(20, 20);
@ -95,7 +95,7 @@ KolourPicker::KolourPicker(const TQString& configFile, Type type,
m_historyButton->setEnabled(false); m_historyButton->setEnabled(false);
} }
TQToolTip::add(m_historyButton, i18n("History")); TQToolTip::add(m_historyButton, i18n("History"));
connect(m_historyButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotHistory())); connect(m_historyButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotHistory()));
} }
KolourPicker::~KolourPicker() KolourPicker::~KolourPicker()

@ -39,10 +39,10 @@ SimpleButton::SimpleButton(TQWidget *parent, const char *name)
{ {
setBackgroundOrigin( AncestorOrigin ); setBackgroundOrigin( AncestorOrigin );
connect( kapp, TQT_SIGNAL( settingsChanged( int ) ), connect( kapp, TQ_SIGNAL( settingsChanged( int ) ),
TQT_SLOT( slotSettingsChanged( int ) ) ); TQ_SLOT( slotSettingsChanged( int ) ) );
connect( kapp, TQT_SIGNAL( iconChanged( int ) ), connect( kapp, TQ_SIGNAL( iconChanged( int ) ),
TQT_SLOT( slotIconChanged( int ) ) ); TQ_SLOT( slotIconChanged( int ) ) );
kapp->addKipcEventMask( KIPC::SettingsChanged ); kapp->addKipcEventMask( KIPC::SettingsChanged );
kapp->addKipcEventMask( KIPC::IconChanged ); kapp->addKipcEventMask( KIPC::IconChanged );

@ -65,7 +65,7 @@ KConfDialog::KConfDialog(KTimeMon *t)
bl->addStretch(); bl->addStretch();
autoScaleBox = new TQCheckBox(i18n("&Automatic"), b); autoScaleBox = new TQCheckBox(i18n("&Automatic"), b);
connect(autoScaleBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(toggle(bool))); connect(autoScaleBox, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(toggle(bool)));
pageScaleEdit = new KIntNumInput(intervalEdit, 1000, b); pageScaleEdit = new KIntNumInput(intervalEdit, 1000, b);
pageScaleEdit->setRange(10, 10000, 10); pageScaleEdit->setRange(10, 10000, 10);
@ -117,8 +117,8 @@ KConfDialog::KConfDialog(KTimeMon *t)
cb = *cpuColourButtons[j] = new KColorButton(white, page); cb = *cpuColourButtons[j] = new KColorButton(white, page);
gl->addWidget(cb, 1, 3*j+2, AlignCenter); gl->addWidget(cb, 1, 3*j+2, AlignCenter);
connect(cb, TQT_SIGNAL(changed(const TQColor &)), connect(cb, TQ_SIGNAL(changed(const TQColor &)),
this, TQT_SLOT(updateSampleWidget(const TQColor &))); this, TQ_SLOT(updateSampleWidget(const TQColor &)));
} }
KColorButton **memColourButtons[4] = { &mkernelCB, &usedCB, &buffersCB, &cachedCB }; KColorButton **memColourButtons[4] = { &mkernelCB, &usedCB, &buffersCB, &cachedCB };
@ -132,8 +132,8 @@ KConfDialog::KConfDialog(KTimeMon *t)
cb = *memColourButtons[j] = new KColorButton(white, page); cb = *memColourButtons[j] = new KColorButton(white, page);
gl->addWidget(cb, 5, 3*j+2, AlignCenter); gl->addWidget(cb, 5, 3*j+2, AlignCenter);
connect(cb, TQT_SIGNAL(changed(const TQColor &)), connect(cb, TQ_SIGNAL(changed(const TQColor &)),
this, TQT_SLOT(updateSampleWidget(const TQColor &))); this, TQ_SLOT(updateSampleWidget(const TQColor &)));
} }
b = new TQGroupBox(i18n("Swap"), page); b = new TQGroupBox(i18n("Swap"), page);
@ -145,8 +145,8 @@ KConfDialog::KConfDialog(KTimeMon *t)
cb = swapCB = new KColorButton(red, page); cb = swapCB = new KColorButton(red, page);
gl->addWidget(cb, 9, 2); gl->addWidget(cb, 9, 2);
connect(cb, TQT_SIGNAL(changed(const TQColor &)), connect(cb, TQ_SIGNAL(changed(const TQColor &)),
this, TQT_SLOT(updateSampleWidget(const TQColor &))); this, TQ_SLOT(updateSampleWidget(const TQColor &)));
l = new TQLabel(i18n("Backgd:"), page); l = new TQLabel(i18n("Backgd:"), page);
gl->addWidget(l, 9, 4, AlignVCenter | AlignRight); gl->addWidget(l, 9, 4, AlignVCenter | AlignRight);
@ -154,8 +154,8 @@ KConfDialog::KConfDialog(KTimeMon *t)
cb = bgCB = new KColorButton(blue, page); cb = bgCB = new KColorButton(blue, page);
gl->addWidget(cb, 9, 5); gl->addWidget(cb, 9, 5);
connect(cb, TQT_SIGNAL(changed(const TQColor &)), connect(cb, TQ_SIGNAL(changed(const TQColor &)),
this, TQT_SLOT(updateSampleWidget(const TQColor &))); this, TQ_SLOT(updateSampleWidget(const TQColor &)));
//b = new TQGroupBox(i18n("Sample"), page); //b = new TQGroupBox(i18n("Sample"), page);
//gl->addMultiCellWidget(b, 8, 10, 7, 9); //gl->addMultiCellWidget(b, 8, 10, 7, 9);
@ -197,8 +197,8 @@ KConfDialog::KConfDialog(KTimeMon *t)
mouseC[i]->insertItem(i18n("Starts"), KTimeMon::COMMAND - 1); mouseC[i]->insertItem(i18n("Starts"), KTimeMon::COMMAND - 1);
gl->addWidget(mouseC[i], i+1, 1); gl->addWidget(mouseC[i], i+1, 1);
connect( mouseC[ i ], TQT_SIGNAL( activated( int ) ), this, connect( mouseC[ i ], TQ_SIGNAL( activated( int ) ), this,
TQT_SLOT( mouseCommandEnable() ) ); TQ_SLOT( mouseCommandEnable() ) );
mouseLE[i] = new KURLRequester(b); mouseLE[i] = new KURLRequester(b);
mouseLE[i]->lineEdit()->setText(t->mouseActionCommand[i]); mouseLE[i]->lineEdit()->setText(t->mouseActionCommand[i]);
@ -209,8 +209,8 @@ KConfDialog::KConfDialog(KTimeMon *t)
resize(380, 300); resize(380, 300);
connect(this, TQT_SIGNAL(applyClicked()), timemon, TQT_SLOT(apply())); connect(this, TQ_SIGNAL(applyClicked()), timemon, TQ_SLOT(apply()));
connect(this, TQT_SIGNAL(okClicked()), timemon, TQT_SLOT(apply())); connect(this, TQ_SIGNAL(okClicked()), timemon, TQ_SLOT(apply()));
} }
// Adjust the colours of the sample widget in the configuration dialog. // Adjust the colours of the sample widget in the configuration dialog.

@ -230,7 +230,7 @@ KTimeMon::KTimeMon(const TQString& configFile, Type type, int actions,
vertical = conf->readBoolEntry("Vertical", true); vertical = conf->readBoolEntry("Vertical", true);
timer = new TQTimer(this); timer = new TQTimer(this);
connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout())); connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()));
timer->start(interval); timer->start(interval);
sample = new KSample(this, autoScale, pageScale, swapScale, ctxScale); sample = new KSample(this, autoScale, pageScale, swapScale, ctxScale);
@ -249,8 +249,8 @@ KTimeMon::KTimeMon(const TQString& configFile, Type type, int actions,
menu->insertSeparator(); menu->insertSeparator();
menu->insertItem(SmallIcon( "help" ), i18n("Help"), hmenu->menu(), 1); menu->insertItem(SmallIcon( "help" ), i18n("Help"), hmenu->menu(), 1);
menu->connectItem(2, this, TQT_SLOT(configure())); menu->connectItem(2, this, TQ_SLOT(configure()));
menu->connectItem(4, this, TQT_SLOT(orientation())); menu->connectItem(4, this, TQ_SLOT(orientation()));
menu->setCheckable(true); menu->setCheckable(true);
@ -413,8 +413,8 @@ void KTimeMon::runCommand(int index)
bgProcess = new KShellProcess; bgProcess = new KShellProcess;
*bgProcess << mouseActionCommand[index]; *bgProcess << mouseActionCommand[index];
connect(bgProcess, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), connect(bgProcess, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
this, TQT_SLOT(commandStderr(TDEProcess *, char *, int))); this, TQ_SLOT(commandStderr(TDEProcess *, char *, int)));
bgProcess->start(TDEProcess::DontCare, TDEProcess::Stderr); bgProcess->start(TDEProcess::DontCare, TDEProcess::Stderr);
} }

@ -77,15 +77,15 @@ MathApplet::MathApplet(const TQString& configFile, Type type, int actions,
f = _btn->font(); f = _btn->font();
f.setPixelSize(12); f.setPixelSize(12);
_btn->setFont(f); _btn->setFont(f);
connect(_btn, TQT_SIGNAL(clicked()), TQT_SLOT(popup_combo())); connect(_btn, TQ_SIGNAL(clicked()), TQ_SLOT(popup_combo()));
// setup history combo // setup history combo
_input = new KHistoryCombo(this); _input = new KHistoryCombo(this);
_input->setFocus(); _input->setFocus();
_input->clearEdit(); _input->clearEdit();
watchForFocus(_input->lineEdit()); watchForFocus(_input->lineEdit());
connect(_input, TQT_SIGNAL(activated(const TQString&)), connect(_input, TQ_SIGNAL(activated(const TQString&)),
TQT_SLOT(evaluate(const TQString&))); TQ_SLOT(evaluate(const TQString&)));
initContextMenu(); initContextMenu();
useDegrees(); useDegrees();
@ -112,8 +112,8 @@ void MathApplet::initContextMenu()
{ {
mContextMenu = new TDEPopupMenu(this); mContextMenu = new TDEPopupMenu(this);
mContextMenu->setCheckable(true); mContextMenu->setCheckable(true);
mContextMenu->insertItem(i18n("Use &Degrees"), this, TQT_SLOT(useDegrees()), 0, 0, 0); mContextMenu->insertItem(i18n("Use &Degrees"), this, TQ_SLOT(useDegrees()), 0, 0, 0);
mContextMenu->insertItem(i18n("Use &Radians"), this, TQT_SLOT(useRadians()), 0, 1, 1); mContextMenu->insertItem(i18n("Use &Radians"), this, TQ_SLOT(useRadians()), 0, 1, 1);
setCustomMenu(mContextMenu); setCustomMenu(mContextMenu);
} }

@ -32,16 +32,16 @@ AmarokInterface::AmarokInterface() : PlayerInterface()
mTimerValue = TIMER_FAST; mTimerValue = TIMER_FAST;
mAmarokTimer = new TQTimer ( this, "mAmaroKTimer" ); mAmarokTimer = new TQTimer ( this, "mAmaroKTimer" );
connect(mAmarokTimer, TQT_SIGNAL(timeout()), TQT_SLOT(updateSlider()) ); connect(mAmarokTimer, TQ_SIGNAL(timeout()), TQ_SLOT(updateSlider()) );
kapp->dcopClient()->setNotifications ( true ); kapp->dcopClient()->setNotifications ( true );
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRegistered(const TQCString&)), connect(kapp->dcopClient(), TQ_SIGNAL(applicationRegistered(const TQCString&)),
TQT_SLOT(appRegistered(const TQCString&)) ); TQ_SLOT(appRegistered(const TQCString&)) );
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRemoved(const TQCString&)), connect(kapp->dcopClient(), TQ_SIGNAL(applicationRemoved(const TQCString&)),
TQT_SLOT(appRemoved(const TQCString&))); TQ_SLOT(appRemoved(const TQCString&)));
TQTimer::singleShot(0, this, TQT_SLOT(myInit())); TQTimer::singleShot(0, this, TQ_SLOT(myInit()));
} }
AmarokInterface::~AmarokInterface() AmarokInterface::~AmarokInterface()

@ -32,16 +32,16 @@ JuKInterface::JuKInterface() : PlayerInterface(), mProc(0)
mTimerValue = TIMER_FAST; mTimerValue = TIMER_FAST;
mJuKTimer = new TQTimer ( this, "mJukTimer" ); mJuKTimer = new TQTimer ( this, "mJukTimer" );
connect(mJuKTimer, TQT_SIGNAL(timeout()), TQT_SLOT(updateSlider()) ); connect(mJuKTimer, TQ_SIGNAL(timeout()), TQ_SLOT(updateSlider()) );
kapp->dcopClient()->setNotifications ( true ); kapp->dcopClient()->setNotifications ( true );
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRegistered(const TQCString&)), connect(kapp->dcopClient(), TQ_SIGNAL(applicationRegistered(const TQCString&)),
TQT_SLOT(appRegistered(const TQCString&)) ); TQ_SLOT(appRegistered(const TQCString&)) );
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRemoved(const TQCString&)), connect(kapp->dcopClient(), TQ_SIGNAL(applicationRemoved(const TQCString&)),
TQT_SLOT(appRemoved(const TQCString&))); TQ_SLOT(appRemoved(const TQCString&)));
TQTimer::singleShot(0, this, TQT_SLOT(myInit())); TQTimer::singleShot(0, this, TQ_SLOT(myInit()));
} }
JuKInterface::~JuKInterface() JuKInterface::~JuKInterface()
@ -86,7 +86,7 @@ void JuKInterface::appRegistered ( const TQCString &appId )
mProc->addArgument("Player"); mProc->addArgument("Player");
mProc->addArgument("status()"); mProc->addArgument("status()");
connect(mProc, TQT_SIGNAL(processExited()), TQT_SLOT(jukIsReady())); connect(mProc, TQ_SIGNAL(processExited()), TQ_SLOT(jukIsReady()));
mProc->start(); mProc->start();
} }
} }

@ -32,16 +32,16 @@ KsCDInterface::KsCDInterface() : PlayerInterface()
{ {
mKsCDTimer = new TQTimer(this, "mKsCDTimer"); mKsCDTimer = new TQTimer(this, "mKsCDTimer");
connect(mKsCDTimer, TQT_SIGNAL(timeout()), TQT_SLOT(updateSlider()) ); connect(mKsCDTimer, TQ_SIGNAL(timeout()), TQ_SLOT(updateSlider()) );
kapp->dcopClient()->setNotifications ( true ); kapp->dcopClient()->setNotifications ( true );
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRegistered(const TQCString&)), connect(kapp->dcopClient(), TQ_SIGNAL(applicationRegistered(const TQCString&)),
TQT_SLOT(appRegistered(const TQCString&)) ); TQ_SLOT(appRegistered(const TQCString&)) );
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRemoved(const TQCString&)), connect(kapp->dcopClient(), TQ_SIGNAL(applicationRemoved(const TQCString&)),
TQT_SLOT(appRemoved(const TQCString&))); TQ_SLOT(appRemoved(const TQCString&)));
TQTimer::singleShot(0, this, TQT_SLOT(myInit())); TQTimer::singleShot(0, this, TQ_SLOT(myInit()));
} }
KsCDInterface::~KsCDInterface() KsCDInterface::~KsCDInterface()

@ -147,15 +147,15 @@ MediaControl::MediaControl(const TQString &configFile, Type t, int actions,
// request notification of changes in icon style // request notification of changes in icon style
kapp->addKipcEventMask(KIPC::IconChanged); kapp->addKipcEventMask(KIPC::IconChanged);
connect(kapp, TQT_SIGNAL(iconChanged(int)), this, TQT_SLOT(slotIconChanged())); connect(kapp, TQ_SIGNAL(iconChanged(int)), this, TQ_SLOT(slotIconChanged()));
reparseConfig(); reparseConfig();
rmbMenu = new TDEPopupMenu(this, "RMBMenu"); rmbMenu = new TDEPopupMenu(this, "RMBMenu");
rmbMenu->insertTitle(i18n("MediaControl"), 0, 0); rmbMenu->insertTitle(i18n("MediaControl"), 0, 0);
rmbMenu->insertItem(SmallIcon("configure"), i18n("Configure MediaControl..."), rmbMenu->insertItem(SmallIcon("configure"), i18n("Configure MediaControl..."),
this, TQT_SLOT(preferences())); this, TQ_SLOT(preferences()));
rmbMenu->insertItem(i18n("About MediaControl"), this, TQT_SLOT(about())); rmbMenu->insertItem(i18n("About MediaControl"), this, TQ_SLOT(about()));
} }
MediaControl::~MediaControl() MediaControl::~MediaControl()
@ -275,12 +275,12 @@ void MediaControl::preferences()
else else
{ {
_prefsDialog = new MediaControlConfig ( _configFrontend ); _prefsDialog = new MediaControlConfig ( _configFrontend );
connect ( _prefsDialog, TQT_SIGNAL(closing()), connect ( _prefsDialog, TQ_SIGNAL(closing()),
this, TQT_SLOT(slotClosePrefsDialog()) ); this, TQ_SLOT(slotClosePrefsDialog()) );
connect ( _prefsDialog, TQT_SIGNAL(destroyed()), connect ( _prefsDialog, TQ_SIGNAL(destroyed()),
this, TQT_SLOT(slotPrefsDialogClosing()) ); this, TQ_SLOT(slotPrefsDialogClosing()) );
connect ( _prefsDialog, TQT_SIGNAL(configChanged()), connect ( _prefsDialog, TQ_SIGNAL(configChanged()),
this, TQT_SLOT(slotConfigChanged()) ); this, TQ_SLOT(slotConfigChanged()) );
} }
} }
@ -396,12 +396,12 @@ void MediaControl::reparseConfig()
} }
// this signal gets emitted by a playerInterface when the player's playtime changed // this signal gets emitted by a playerInterface when the player's playtime changed
connect(_player, TQT_SIGNAL(newSliderPosition(int,int)), connect(_player, TQ_SIGNAL(newSliderPosition(int,int)),
this, TQT_SLOT(setSliderPosition(int,int))); this, TQ_SLOT(setSliderPosition(int,int)));
connect(_player, TQT_SIGNAL(playerStarted()), TQT_SLOT(enableAll())); connect(_player, TQ_SIGNAL(playerStarted()), TQ_SLOT(enableAll()));
connect(_player, TQT_SIGNAL(playerStopped()), TQT_SLOT(disableAll())); connect(_player, TQ_SIGNAL(playerStopped()), TQ_SLOT(disableAll()));
connect(_player, TQT_SIGNAL(playingStatusChanged(int)), TQT_SLOT(slotPlayingStatusChanged(int))); connect(_player, TQ_SIGNAL(playingStatusChanged(int)), TQ_SLOT(slotPlayingStatusChanged(int)));
// do we use our icons or the default ones from KDE? // do we use our icons or the default ones from KDE?
if(_configFrontend->useCustomTheme()) if(_configFrontend->useCustomTheme())
@ -441,17 +441,17 @@ void MediaControl::reparseConfig()
slider_tooltip = new MediaControlToolTip(time_slider, _player); slider_tooltip = new MediaControlToolTip(time_slider, _player);
connect(prev_button, TQT_SIGNAL(clicked()), _player, TQT_SLOT(prev())); connect(prev_button, TQ_SIGNAL(clicked()), _player, TQ_SLOT(prev()));
connect(playpause_button, TQT_SIGNAL(clicked()), _player, TQT_SLOT(playpause())); connect(playpause_button, TQ_SIGNAL(clicked()), _player, TQ_SLOT(playpause()));
connect(stop_button, TQT_SIGNAL(clicked()), _player, TQT_SLOT(stop())); connect(stop_button, TQ_SIGNAL(clicked()), _player, TQ_SLOT(stop()));
connect(next_button, TQT_SIGNAL(clicked()), _player, TQT_SLOT(next())); connect(next_button, TQ_SIGNAL(clicked()), _player, TQ_SLOT(next()));
connect(time_slider, TQT_SIGNAL(sliderPressed()), _player, TQT_SLOT(sliderStartDrag())); connect(time_slider, TQ_SIGNAL(sliderPressed()), _player, TQ_SLOT(sliderStartDrag()));
connect(time_slider, TQT_SIGNAL(sliderReleased()), _player, TQT_SLOT(sliderStopDrag())); connect(time_slider, TQ_SIGNAL(sliderReleased()), _player, TQ_SLOT(sliderStopDrag()));
connect(time_slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(adjustTime(int))); connect(time_slider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(adjustTime(int)));
connect(time_slider, TQT_SIGNAL(volumeUp()), _player, TQT_SLOT(volumeUp())); connect(time_slider, TQ_SIGNAL(volumeUp()), _player, TQ_SLOT(volumeUp()));
connect(time_slider, TQT_SIGNAL(volumeDown()), _player, TQT_SLOT(volumeDown())); connect(time_slider, TQ_SIGNAL(volumeDown()), _player, TQ_SLOT(volumeDown()));
connect(this, TQT_SIGNAL(newJumpToTime(int)), _player, TQT_SLOT(jumpToTime(int))); connect(this, TQ_SIGNAL(newJumpToTime(int)), _player, TQ_SLOT(jumpToTime(int)));
} }
// Widget Placement =================================================================== // Widget Placement ===================================================================

@ -68,12 +68,12 @@ MediaControlConfig::MediaControlConfig( ConfigFrontend *cfg, TQWidget *parent, c
for (TQStringList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it) for (TQStringList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it)
readSkinDir(*it); readSkinDir(*it);
connect(_child->mWheelScrollAmount, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotConfigChanged())); connect(_child->mWheelScrollAmount, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotConfigChanged()));
connect(_child->playerListBox, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotConfigChanged())); connect(_child->playerListBox, TQ_SIGNAL(selectionChanged()), TQ_SLOT(slotConfigChanged()));
connect(_child->themeListBox, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotConfigChanged())); connect(_child->themeListBox, TQ_SIGNAL(selectionChanged()), TQ_SLOT(slotConfigChanged()));
connect(_child->themeListBox, TQT_SIGNAL(selectionChanged(TQListBoxItem *)), TQT_SLOT(slotChangePreview(TQListBoxItem *))); connect(_child->themeListBox, TQ_SIGNAL(selectionChanged(TQListBoxItem *)), TQ_SLOT(slotChangePreview(TQListBoxItem *)));
connect(_child->mUseThemes, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotConfigChanged()) ); connect(_child->mUseThemes, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotConfigChanged()) );
connect(_child->mUseThemes, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotUseThemesToggled(bool)) ); connect(_child->mUseThemes, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotUseThemesToggled(bool)) );
load(); load();
show(); show();

@ -39,16 +39,16 @@ MpdInterface::MpdInterface()
, slider_timer(0) , slider_timer(0)
, reconnect_timer(0) , reconnect_timer(0)
{ {
connect(&sock, TQT_SIGNAL(error(int)), this, TQT_SLOT(connectionError(int))); connect(&sock, TQ_SIGNAL(error(int)), this, TQ_SLOT(connectionError(int)));
connect(&sock, TQT_SIGNAL(error(int)), this, TQT_SLOT(stopSliderClock())); connect(&sock, TQ_SIGNAL(error(int)), this, TQ_SLOT(stopSliderClock()));
connect(&sock, TQT_SIGNAL(connected()), this, TQT_SLOT(startSliderClock())); connect(&sock, TQ_SIGNAL(connected()), this, TQ_SLOT(startSliderClock()));
connect(&sock, TQT_SIGNAL(connected()), this, TQT_SLOT(stopReconnectClock())); connect(&sock, TQ_SIGNAL(connected()), this, TQ_SLOT(stopReconnectClock()));
connect(&sock, TQT_SIGNAL(connected()), this, TQT_SLOT(connected())); connect(&sock, TQ_SIGNAL(connected()), this, TQ_SLOT(connected()));
connect(&sock, TQT_SIGNAL(connectionClosed()), this, TQT_SLOT(stopSliderClock())); connect(&sock, TQ_SIGNAL(connectionClosed()), this, TQ_SLOT(stopSliderClock()));
connect(&sock, TQT_SIGNAL(connectionClosed()), this, TQT_SLOT(startReconnectClock())); connect(&sock, TQ_SIGNAL(connectionClosed()), this, TQ_SLOT(startReconnectClock()));
connect(&sock, TQT_SIGNAL(connectionClosed()), this, TQT_SIGNAL(playerStopped())); connect(&sock, TQ_SIGNAL(connectionClosed()), this, TQ_SIGNAL(playerStopped()));
reconnect(); reconnect();
} }

@ -31,16 +31,16 @@ NoatunInterface::NoatunInterface() : PlayerInterface()
mTimerValue = TIMER_FAST; mTimerValue = TIMER_FAST;
mNoatunTimer = new TQTimer(this, "mNoatunTimer"); mNoatunTimer = new TQTimer(this, "mNoatunTimer");
connect(mNoatunTimer, TQT_SIGNAL(timeout()), TQT_SLOT(updateSlider())); connect(mNoatunTimer, TQ_SIGNAL(timeout()), TQ_SLOT(updateSlider()));
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRegistered(const TQCString&)), connect(kapp->dcopClient(), TQ_SIGNAL(applicationRegistered(const TQCString&)),
TQT_SLOT(appRegistered(const TQCString&)) ); TQ_SLOT(appRegistered(const TQCString&)) );
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRemoved(const TQCString&)), connect(kapp->dcopClient(), TQ_SIGNAL(applicationRemoved(const TQCString&)),
TQT_SLOT(appRemoved(const TQCString&))); TQ_SLOT(appRemoved(const TQCString&)));
kapp->dcopClient()->setNotifications(true); kapp->dcopClient()->setNotifications(true);
TQTimer::singleShot(0, this, TQT_SLOT(myInit())); TQTimer::singleShot(0, this, TQ_SLOT(myInit()));
} }
NoatunInterface::~NoatunInterface() NoatunInterface::~NoatunInterface()

@ -39,10 +39,10 @@ SimpleButton::SimpleButton(TQWidget *parent, const char *name)
{ {
setBackgroundOrigin( AncestorOrigin ); setBackgroundOrigin( AncestorOrigin );
connect( kapp, TQT_SIGNAL( settingsChanged( int ) ), connect( kapp, TQ_SIGNAL( settingsChanged( int ) ),
TQT_SLOT( slotSettingsChanged( int ) ) ); TQ_SLOT( slotSettingsChanged( int ) ) );
connect( kapp, TQT_SIGNAL( iconChanged( int ) ), connect( kapp, TQ_SIGNAL( iconChanged( int ) ),
TQT_SLOT( slotIconChanged( int ) ) ); TQ_SLOT( slotIconChanged( int ) ) );
kapp->addKipcEventMask( KIPC::SettingsChanged ); kapp->addKipcEventMask( KIPC::SettingsChanged );
kapp->addKipcEventMask( KIPC::IconChanged ); kapp->addKipcEventMask( KIPC::IconChanged );

@ -36,7 +36,7 @@ XmmsInterface::XmmsInterface() : PlayerInterface()
bStartingXMMS = false; bStartingXMMS = false;
xmms_timer = new TQTimer ( this, "xmms_timer" ); xmms_timer = new TQTimer ( this, "xmms_timer" );
TQObject::connect( xmms_timer, TQT_SIGNAL(timeout()), TQT_SLOT(updateSlider()) ); TQObject::connect( xmms_timer, TQ_SIGNAL(timeout()), TQ_SLOT(updateSlider()) );
// Better start the timer as late as possible in initialization // Better start the timer as late as possible in initialization
xmms_timer->start ( timervalue ); xmms_timer->start ( timervalue );
@ -127,7 +127,7 @@ void XmmsInterface::playpause()
return; return;
startPlayer("xmms"); startPlayer("xmms");
bStartingXMMS = true; bStartingXMMS = true;
TQTimer::singleShot(500, this, TQT_SLOT(playpause())); TQTimer::singleShot(500, this, TQ_SLOT(playpause()));
} }
else else
{ {

@ -64,10 +64,10 @@ AdBlock::AdBlock(TQObject *parent, const char *name, const TQStringList &) :
m_menu = new TDEPopupMenu(m_part->widget()); m_menu = new TDEPopupMenu(m_part->widget());
m_menu->insertTitle(i18n("Adblock")); m_menu->insertTitle(i18n("Adblock"));
m_menu->insertItem(i18n("Configure"), this, TQT_SLOT(showTDECModule())); m_menu->insertItem(i18n("Configure"), this, TQ_SLOT(showTDECModule()));
m_menu->insertItem(i18n("Show Elements"), this, TQT_SLOT(showDialogue())); m_menu->insertItem(i18n("Show Elements"), this, TQ_SLOT(showDialogue()));
connect(m_part, TQT_SIGNAL(completed()), this, TQT_SLOT(initLabel())); connect(m_part, TQ_SIGNAL(completed()), this, TQ_SLOT(initLabel()));
} }
AdBlock::~AdBlock() AdBlock::~AdBlock()
@ -100,8 +100,8 @@ void AdBlock::initLabel()
statusBarEx->addStatusBarItem(m_label, 0, false); statusBarEx->addStatusBarItem(m_label, 0, false);
connect(m_label, TQT_SIGNAL(leftClickedURL()), this, TQT_SLOT(showDialogue())); connect(m_label, TQ_SIGNAL(leftClickedURL()), this, TQ_SLOT(showDialogue()));
connect(m_label, TQT_SIGNAL(rightClickedURL()), this, TQT_SLOT(contextMenu())); connect(m_label, TQ_SIGNAL(rightClickedURL()), this, TQ_SLOT(contextMenu()));
} }
void AdBlock::showDialogue() void AdBlock::showDialogue()
@ -119,9 +119,9 @@ void AdBlock::showDialogue()
fillBlockableElements(elements); fillBlockableElements(elements);
AdBlockDlg *dialogue = new AdBlockDlg(m_part->widget(), elements); AdBlockDlg *dialogue = new AdBlockDlg(m_part->widget(), elements);
connect(dialogue, TQT_SIGNAL( notEmptyFilter(const TQString&) ), this, TQT_SLOT( addAdFilter(const TQString&) )); connect(dialogue, TQ_SIGNAL( notEmptyFilter(const TQString&) ), this, TQ_SLOT( addAdFilter(const TQString&) ));
connect(dialogue, TQT_SIGNAL( cancelClicked() ), dialogue, TQT_SLOT( delayedDestruct() )); connect(dialogue, TQ_SIGNAL( cancelClicked() ), dialogue, TQ_SLOT( delayedDestruct() ));
connect(dialogue, TQT_SIGNAL( closeClicked() ), dialogue, TQT_SLOT( delayedDestruct() )); connect(dialogue, TQ_SIGNAL( closeClicked() ), dialogue, TQ_SLOT( delayedDestruct() ));
dialogue->show(); dialogue->show();
} }
@ -129,8 +129,8 @@ void AdBlock::showTDECModule()
{ {
KCMultiDialog* dialogue = new KCMultiDialog(m_part->widget()); KCMultiDialog* dialogue = new KCMultiDialog(m_part->widget());
dialogue->addModule("tdehtml_filter"); dialogue->addModule("tdehtml_filter");
connect(dialogue, TQT_SIGNAL( cancelClicked() ), dialogue, TQT_SLOT( delayedDestruct() )); connect(dialogue, TQ_SIGNAL( cancelClicked() ), dialogue, TQ_SLOT( delayedDestruct() ));
connect(dialogue, TQT_SIGNAL( closeClicked() ), dialogue, TQT_SLOT( delayedDestruct() )); connect(dialogue, TQ_SIGNAL( closeClicked() ), dialogue, TQ_SLOT( delayedDestruct() ));
dialogue->show(); dialogue->show();
} }

@ -67,17 +67,17 @@ AdBlockDlg::AdBlockDlg(TQWidget *parent, AdElementList &elements) :
m_filter = new TQLineEdit( "", page, "lineedit" ); m_filter = new TQLineEdit( "", page, "lineedit" );
connect(this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( validateFilter() )); connect(this, TQ_SIGNAL( okClicked() ), this, TQ_SLOT( validateFilter() ));
connect(m_list, TQT_SIGNAL( doubleClicked(TQListViewItem *, const TQPoint &, int) ), this, TQT_SLOT(updateFilter(TQListViewItem *)) ); connect(m_list, TQ_SIGNAL( doubleClicked(TQListViewItem *, const TQPoint &, int) ), this, TQ_SLOT(updateFilter(TQListViewItem *)) );
m_menu = new TDEPopupMenu(this); m_menu = new TDEPopupMenu(this);
m_menu->insertItem(i18n("Filter this item"), this, TQT_SLOT(filterItem())); m_menu->insertItem(i18n("Filter this item"), this, TQ_SLOT(filterItem()));
m_menu->insertItem(i18n("Filter all items at same path"), this, TQT_SLOT(filterPath())); m_menu->insertItem(i18n("Filter all items at same path"), this, TQ_SLOT(filterPath()));
connect(m_list, connect(m_list,
TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this, this,
TQT_SLOT( showContextMenu(TQListViewItem *, const TQPoint &) ) ); TQ_SLOT( showContextMenu(TQListViewItem *, const TQPoint &) ) );
} }
void AdBlockDlg::updateFilter(TQListViewItem *selected) void AdBlockDlg::updateFilter(TQListViewItem *selected)

@ -84,7 +84,7 @@ AkregatorMenu::AkregatorMenu( KonqPopupMenu * popupmenu, const char *name, const
if (isFeedUrl(it)) if (isFeedUrl(it))
{ {
kdDebug() << "AkregatorMenu: found feed URL " << it->url().prettyURL() << endl; kdDebug() << "AkregatorMenu: found feed URL " << it->url().prettyURL() << endl;
TDEAction *action = new TDEAction( i18n( "Add Feed to Akregator" ), "akregator", 0, this, TQT_SLOT( slotAddFeed() ), actionCollection(), "akregatorkonqplugin_mnu" ); TDEAction *action = new TDEAction( i18n( "Add Feed to Akregator" ), "akregator", 0, this, TQ_SLOT( slotAddFeed() ), actionCollection(), "akregatorkonqplugin_mnu" );
addAction( action ); addAction( action );
addSeparator(); addSeparator();
m_feedURL = it->url().url(); m_feedURL = it->url().url();

@ -63,15 +63,15 @@ KonqFeedIcon::KonqFeedIcon(TQObject *parent, const char *name, const TQStringLis
m_part = dynamic_cast<TDEHTMLPart*>(parent); m_part = dynamic_cast<TDEHTMLPart*>(parent);
if(!m_part) { kdDebug() << "couldn't get part" << endl; return; } if(!m_part) { kdDebug() << "couldn't get part" << endl; return; }
// FIXME: need to do this because of a bug in tdehtmlpart, it's fixed now for 3.4 (and prolly backported for 3.3.3?) // FIXME: need to do this because of a bug in tdehtmlpart, it's fixed now for 3.4 (and prolly backported for 3.3.3?)
//connect(m_part->view(), TQT_SIGNAL(finishedLayout()), this, TQT_SLOT(addFeedIcon())); //connect(m_part->view(), TQ_SIGNAL(finishedLayout()), this, TQ_SLOT(addFeedIcon()));
TQTimer::singleShot(0, this, TQT_SLOT(waitPartToLoad())); TQTimer::singleShot(0, this, TQ_SLOT(waitPartToLoad()));
} }
void KonqFeedIcon::waitPartToLoad() void KonqFeedIcon::waitPartToLoad()
{ {
connect(m_part, TQT_SIGNAL(completed()), this, TQT_SLOT(addFeedIcon())); connect(m_part, TQ_SIGNAL(completed()), this, TQ_SLOT(addFeedIcon()));
connect(m_part, TQT_SIGNAL(completed(bool)), this, TQT_SLOT(addFeedIcon())); // to make pages with metarefresh to work connect(m_part, TQ_SIGNAL(completed(bool)), this, TQ_SLOT(addFeedIcon())); // to make pages with metarefresh to work
connect(m_part, TQT_SIGNAL(started(TDEIO::Job *)), this, TQT_SLOT(removeFeedIcon())); connect(m_part, TQ_SIGNAL(started(TDEIO::Job *)), this, TQ_SLOT(removeFeedIcon()));
addFeedIcon(); addFeedIcon();
} }
@ -126,19 +126,19 @@ void KonqFeedIcon::contextMenu()
m_menu = new TDEPopupMenu(m_part->widget()); m_menu = new TDEPopupMenu(m_part->widget());
if(m_feedList.count() == 1) { if(m_feedList.count() == 1) {
m_menu->insertTitle(m_feedList.first().title()); m_menu->insertTitle(m_feedList.first().title());
m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Add Feed to Akregator"), this, TQT_SLOT(addFeeds()) ); m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Add Feed to Akregator"), this, TQ_SLOT(addFeeds()) );
} }
else { else {
m_menu->insertTitle(i18n("Add Feeds to Akregator")); m_menu->insertTitle(i18n("Add Feeds to Akregator"));
connect(m_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addFeed(int))); connect(m_menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(addFeed(int)));
int id = 0; int id = 0;
for(FeedDetectorEntryList::Iterator it = m_feedList.begin(); it != m_feedList.end(); ++it) { for(FeedDetectorEntryList::Iterator it = m_feedList.begin(); it != m_feedList.end(); ++it) {
m_menu->insertItem(SmallIcon("bookmark_add"), (*it).title(), id); m_menu->insertItem(SmallIcon("bookmark_add"), (*it).title(), id);
id++; id++;
} }
//disconnect(m_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addFeed(int))); //disconnect(m_menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(addFeed(int)));
m_menu->insertSeparator(); m_menu->insertSeparator();
m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Add All Found Feeds to Akregator"), this, TQT_SLOT(addFeeds()), 0, 50000 ); m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Add All Found Feeds to Akregator"), this, TQ_SLOT(addFeeds()), 0, 50000 );
} }
m_menu->popup(TQCursor::pos()); m_menu->popup(TQCursor::pos());
} }
@ -166,7 +166,7 @@ void KonqFeedIcon::addFeedIcon()
m_statusBarEx->addStatusBarItem(m_feedIcon, 0, true); m_statusBarEx->addStatusBarItem(m_feedIcon, 0, true);
connect(m_feedIcon, TQT_SIGNAL(leftClickedURL()), this, TQT_SLOT(contextMenu())); connect(m_feedIcon, TQ_SIGNAL(leftClickedURL()), this, TQ_SLOT(contextMenu()));
} }
void KonqFeedIcon::removeFeedIcon() void KonqFeedIcon::removeFeedIcon()

@ -100,13 +100,13 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis
item = itemList.first(); item = itemList.first();
m_name = itemList.first()->name(); m_name = itemList.first()->name();
action = new TDEAction( i18n( "Compress as %1" ).arg( m_name + m_ext ), 0, this, action = new TDEAction( i18n( "Compress as %1" ).arg( m_name + m_ext ), 0, this,
TQT_SLOT( slotCompressAsDefault() ), actionCollection() ); TQ_SLOT( slotCompressAsDefault() ), actionCollection() );
} }
else else
{ {
action = new TDEAction( KMimeType::mimeType( m_conf->readEntry( action = new TDEAction( KMimeType::mimeType( m_conf->readEntry(
"LastMimeType", "application/x-txz" ) )->comment(), "LastMimeType", "application/x-txz" ) )->comment(),
0, this, TQT_SLOT( slotCompressAsDefault() ), actionCollection() ); 0, this, TQ_SLOT( slotCompressAsDefault() ), actionCollection() );
} }
actionMenu->insert( action ); actionMenu->insert( action );
@ -118,14 +118,14 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis
if ( itemList.first()->url().isLocalFile() ) if ( itemList.first()->url().isLocalFile() )
actionMenu->insert( m_addToMenu ); actionMenu->insert( m_addToMenu );
connect( m_compAsMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), connect( m_compAsMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ),
this, TQT_SLOT( slotPrepareCompAsMenu() ) ); this, TQ_SLOT( slotPrepareCompAsMenu() ) );
connect( m_addToMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), connect( m_addToMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ),
this, TQT_SLOT( slotPrepareAddToMenu() ) ); this, TQ_SLOT( slotPrepareAddToMenu() ) );
action = new TDEAction( i18n( "Add to Archive..." ), 0, this, action = new TDEAction( i18n( "Add to Archive..." ), 0, this,
TQT_SLOT( slotAdd() ), actionCollection() ); TQ_SLOT( slotAdd() ), actionCollection() );
actionMenu->insert( action ); actionMenu->insert( action );
addAction( actionMenu ); addAction( actionMenu );
} }
@ -137,7 +137,7 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis
actionMenu = new TDEActionMenu( i18n( "Extract" ), "ark", actionCollection(), "ark_extract_menu" ); actionMenu = new TDEActionMenu( i18n( "Extract" ), "ark", actionCollection(), "ark_extract_menu" );
action = new TDEAction( i18n( "Extract Here" ), 0, this, action = new TDEAction( i18n( "Extract Here" ), 0, this,
TQT_SLOT( slotExtractHere() ), actionCollection() ); TQ_SLOT( slotExtractHere() ), actionCollection() );
actionMenu->insert( action ); actionMenu->insert( action );
// stolen from arkwidget.cpp // stolen from arkwidget.cpp
if ( itemCount == 1 ) if ( itemCount == 1 )
@ -145,22 +145,22 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis
TQString targetName = itemList.first()->name(); TQString targetName = itemList.first()->name();
stripExtension( targetName ); stripExtension( targetName );
action = new TDEAction( i18n( "Extract to %1" ).arg( targetName ), 0, this, action = new TDEAction( i18n( "Extract to %1" ).arg( targetName ), 0, this,
TQT_SLOT( slotExtractToSubfolders() ), actionCollection() ); TQ_SLOT( slotExtractToSubfolders() ), actionCollection() );
} }
else else
{ {
action = new TDEAction( i18n( "Extract to Subfolders" ), 0, this, action = new TDEAction( i18n( "Extract to Subfolders" ), 0, this,
TQT_SLOT( slotExtractToSubfolders() ), actionCollection() ); TQ_SLOT( slotExtractToSubfolders() ), actionCollection() );
} }
actionMenu->insert( action ); actionMenu->insert( action );
action = new TDEAction( i18n( "Extract To..." ), 0 , this, action = new TDEAction( i18n( "Extract To..." ), 0 , this,
TQT_SLOT( slotExtractTo() ), actionCollection() ); TQ_SLOT( slotExtractTo() ), actionCollection() );
actionMenu->insert( action ); actionMenu->insert( action );
addAction( actionMenu ); addAction( actionMenu );
} }
else else
{ {
action = new TDEAction( i18n( "Extract To..." ), "ark", 0, this, TQT_SLOT( slotExtractTo() ), actionCollection(), "ark_extract_menu" ); action = new TDEAction( i18n( "Extract To..." ), "ark", 0, this, TQ_SLOT( slotExtractTo() ), actionCollection(), "ark_extract_menu" );
addAction( action ); addAction( action );
} }
} }
@ -174,8 +174,8 @@ ArkMenu::~ArkMenu()
void ArkMenu::slotPrepareCompAsMenu() void ArkMenu::slotPrepareCompAsMenu()
{ {
disconnect( m_compAsMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), disconnect( m_compAsMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ),
this, TQT_SLOT( slotPrepareCompAsMenu() ) ); this, TQ_SLOT( slotPrepareCompAsMenu() ) );
TDEAction * action; TDEAction * action;
m_compAsMapper = new TQSignalMapper( this, "compAsMapper" ); m_compAsMapper = new TQSignalMapper( this, "compAsMapper" );
@ -196,13 +196,13 @@ void ArkMenu::slotPrepareCompAsMenu()
if ( m_urlList.count() == 1 ) if ( m_urlList.count() == 1 )
{ {
action = new TDEAction( m_name + (*eit), 0, m_compAsMapper, action = new TDEAction( m_name + (*eit), 0, m_compAsMapper,
TQT_SLOT( map() ), actionCollection() ); TQ_SLOT( map() ), actionCollection() );
} }
else else
{ {
ext = KMimeType::mimeType(*mit)->comment(); ext = KMimeType::mimeType(*mit)->comment();
action = new TDEAction( ext, 0, m_compAsMapper, action = new TDEAction( ext, 0, m_compAsMapper,
TQT_SLOT( map() ), actionCollection() ); TQ_SLOT( map() ), actionCollection() );
} }
m_compAsMenu->insert( action ); m_compAsMenu->insert( action );
@ -219,13 +219,13 @@ void ArkMenu::slotPrepareCompAsMenu()
m_extensionList += newExt; m_extensionList += newExt;
} }
connect( m_compAsMapper, TQT_SIGNAL( mapped( int ) ), TQT_SLOT( slotCompressAs( int ) ) ); connect( m_compAsMapper, TQ_SIGNAL( mapped( int ) ), TQ_SLOT( slotCompressAs( int ) ) );
} }
void ArkMenu::slotPrepareAddToMenu() void ArkMenu::slotPrepareAddToMenu()
{ {
disconnect( m_addToMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), disconnect( m_addToMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ),
this, TQT_SLOT( slotPrepareAddToMenu() ) ); this, TQ_SLOT( slotPrepareAddToMenu() ) );
if ( m_extensionList.isEmpty() ) // is filled in slotPrepareCompAsMenu if ( m_extensionList.isEmpty() ) // is filled in slotPrepareCompAsMenu
@ -246,7 +246,7 @@ void ArkMenu::slotPrepareAddToMenu()
if ( (*uit).endsWith(*mit) ) if ( (*uit).endsWith(*mit) )
{ {
action = new TDEAction( *uit, 0, m_addToMapper, action = new TDEAction( *uit, 0, m_addToMapper,
TQT_SLOT( map() ), actionCollection() ); TQ_SLOT( map() ), actionCollection() );
m_addToMenu->insert( action ); m_addToMenu->insert( action );
m_addToMapper->setMapping( action, counter ); m_addToMapper->setMapping( action, counter );
archive.setPath( *uit ); archive.setPath( *uit );
@ -255,7 +255,7 @@ void ArkMenu::slotPrepareAddToMenu()
break; break;
} }
} }
connect( m_addToMapper, TQT_SIGNAL( mapped( int ) ), TQT_SLOT( slotAddTo( int ) ) ); connect( m_addToMapper, TQ_SIGNAL( mapped( int ) ), TQ_SLOT( slotAddTo( int ) ) );
} }
void ArkMenu::compMimeTypes() void ArkMenu::compMimeTypes()

@ -18,11 +18,11 @@ AutoRefresh::AutoRefresh( TQObject* parent, const char* name, const TQStringList
: Plugin( parent, name ) : Plugin( parent, name )
{ {
timer = new TQTimer( this ); timer = new TQTimer( this );
connect( timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotRefresh() ) ); connect( timer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotRefresh() ) );
refresher = new TDESelectAction( i18n("&Auto Refresh"), refresher = new TDESelectAction( i18n("&Auto Refresh"),
"reload", 0, "reload", 0,
this, TQT_SLOT(slotIntervalChanged()), this, TQ_SLOT(slotIntervalChanged()),
actionCollection(), "autorefresh" ); actionCollection(), "autorefresh" );
TQStringList sl; TQStringList sl;
sl << i18n("None"); sl << i18n("None");

@ -60,104 +60,104 @@ PluginBabelFish::PluginBabelFish( TQObject* parent, const char* name,
actionCollection(), "translatewebpage_nl" ); actionCollection(), "translatewebpage_nl" );
m_en->insert( new TDEAction( i18n("&Chinese (Simplified)"), 0, m_en->insert( new TDEAction( i18n("&Chinese (Simplified)"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_zh") ); actionCollection(), "en_zh") );
m_en->insert( new TDEAction( i18n("Chinese (&Traditional)"), 0, m_en->insert( new TDEAction( i18n("Chinese (&Traditional)"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_zhTW") ); actionCollection(), "en_zhTW") );
m_en->insert( new TDEAction( i18n("&Dutch"), 0, m_en->insert( new TDEAction( i18n("&Dutch"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_nl") ); actionCollection(), "en_nl") );
m_en->insert( new TDEAction( i18n("&French"), 0, m_en->insert( new TDEAction( i18n("&French"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_fr") ); actionCollection(), "en_fr") );
m_en->insert( new TDEAction( i18n("&German"), 0, m_en->insert( new TDEAction( i18n("&German"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_de") ); actionCollection(), "en_de") );
m_en->insert( new TDEAction( i18n("&Italian"), 0, m_en->insert( new TDEAction( i18n("&Italian"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_it") ); actionCollection(), "en_it") );
m_en->insert( new TDEAction( i18n("&Japanese"), 0, m_en->insert( new TDEAction( i18n("&Japanese"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_ja") ); actionCollection(), "en_ja") );
m_en->insert( new TDEAction( i18n("&Korean"), 0, m_en->insert( new TDEAction( i18n("&Korean"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_ko") ); actionCollection(), "en_ko") );
m_en->insert( new TDEAction( i18n("&Norwegian"), 0, m_en->insert( new TDEAction( i18n("&Norwegian"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_no") ); actionCollection(), "en_no") );
m_en->insert( new TDEAction( i18n("&Portuguese"), 0, m_en->insert( new TDEAction( i18n("&Portuguese"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_pt") ); actionCollection(), "en_pt") );
m_en->insert( new TDEAction( i18n("&Russian"), 0, m_en->insert( new TDEAction( i18n("&Russian"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_ru") ); actionCollection(), "en_ru") );
m_en->insert( new TDEAction( i18n("&Spanish"), 0, m_en->insert( new TDEAction( i18n("&Spanish"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_es") ); actionCollection(), "en_es") );
m_en->insert( new TDEAction( i18n("T&hai"), 0, m_en->insert( new TDEAction( i18n("T&hai"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "en_th") ); actionCollection(), "en_th") );
m_fr->insert( new TDEAction( i18n("&Dutch"), 0, m_fr->insert( new TDEAction( i18n("&Dutch"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "fr_nl") ); actionCollection(), "fr_nl") );
m_fr->insert( new TDEAction( i18n("&English"), 0, m_fr->insert( new TDEAction( i18n("&English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "fr_en") ); actionCollection(), "fr_en") );
m_fr->insert( new TDEAction( i18n("&German"), 0, m_fr->insert( new TDEAction( i18n("&German"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "fr_de") ); actionCollection(), "fr_de") );
m_fr->insert( new TDEAction( i18n("&Italian"), 0, m_fr->insert( new TDEAction( i18n("&Italian"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "fr_it") ); actionCollection(), "fr_it") );
m_fr->insert( new TDEAction( i18n("&Portuguese"), 0, m_fr->insert( new TDEAction( i18n("&Portuguese"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "fr_pt") ); actionCollection(), "fr_pt") );
m_fr->insert( new TDEAction( i18n("&Spanish"), 0, m_fr->insert( new TDEAction( i18n("&Spanish"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "fr_es") ); actionCollection(), "fr_es") );
m_de->insert( new TDEAction( i18n("&English"), 0, m_de->insert( new TDEAction( i18n("&English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "de_en") ); actionCollection(), "de_en") );
m_de->insert( new TDEAction( i18n("&French"), 0, m_de->insert( new TDEAction( i18n("&French"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "de_fr") ); actionCollection(), "de_fr") );
m_es->insert( new TDEAction( i18n("&English"), 0, m_es->insert( new TDEAction( i18n("&English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "es_en") ); actionCollection(), "es_en") );
m_es->insert( new TDEAction( i18n("&French"), 0, m_es->insert( new TDEAction( i18n("&French"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "es_fr") ); actionCollection(), "es_fr") );
m_pt->insert( new TDEAction( i18n("&English"), 0, m_pt->insert( new TDEAction( i18n("&English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "pt_en") ); actionCollection(), "pt_en") );
m_pt->insert( new TDEAction( i18n("&French"), 0, m_pt->insert( new TDEAction( i18n("&French"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "pt_fr") ); actionCollection(), "pt_fr") );
m_it->insert( new TDEAction( i18n("&English"), 0, m_it->insert( new TDEAction( i18n("&English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "it_en") ); actionCollection(), "it_en") );
m_it->insert( new TDEAction( i18n("&French"), 0, m_it->insert( new TDEAction( i18n("&French"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "it_fr") ); actionCollection(), "it_fr") );
m_nl->insert( new TDEAction( i18n("&English"), 0, m_nl->insert( new TDEAction( i18n("&English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "nl_en") ); actionCollection(), "nl_en") );
m_nl->insert( new TDEAction( i18n("&French"), 0, m_nl->insert( new TDEAction( i18n("&French"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "nl_fr") ); actionCollection(), "nl_fr") );
m_menu->insert( new TDEAction( i18n("&Chinese (Simplified) to English"), 0, m_menu->insert( new TDEAction( i18n("&Chinese (Simplified) to English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "zh_en") ); actionCollection(), "zh_en") );
m_menu->insert( new TDEAction( i18n("Chinese (&Traditional) to English"), 0, m_menu->insert( new TDEAction( i18n("Chinese (&Traditional) to English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "zhTW_en") ); actionCollection(), "zhTW_en") );
m_menu->insert( m_nl ); m_menu->insert( m_nl );
m_menu->insert( m_en ); m_menu->insert( m_en );
@ -165,14 +165,14 @@ PluginBabelFish::PluginBabelFish( TQObject* parent, const char* name,
m_menu->insert( m_de ); m_menu->insert( m_de );
m_menu->insert( m_it ); m_menu->insert( m_it );
m_menu->insert( new TDEAction( i18n("&Japanese to English"), 0, m_menu->insert( new TDEAction( i18n("&Japanese to English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "ja_en") ); actionCollection(), "ja_en") );
m_menu->insert( new TDEAction( i18n("&Korean to English"), 0, m_menu->insert( new TDEAction( i18n("&Korean to English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "ko_en") ); actionCollection(), "ko_en") );
m_menu->insert( m_pt ); m_menu->insert( m_pt );
m_menu->insert( new TDEAction( i18n("&Russian to English"), 0, m_menu->insert( new TDEAction( i18n("&Russian to English"), 0,
this, TQT_SLOT(translateURL()), this, TQ_SLOT(translateURL()),
actionCollection(), "ru_en") ); actionCollection(), "ru_en") );
m_menu->insert( m_es ); m_menu->insert( m_es );
m_menu->setEnabled( true ); m_menu->setEnabled( true );
@ -181,8 +181,8 @@ PluginBabelFish::PluginBabelFish( TQObject* parent, const char* name,
if ( parent && parent->inherits( "TDEHTMLPart" ) ) if ( parent && parent->inherits( "TDEHTMLPart" ) )
{ {
KParts::ReadOnlyPart* part = static_cast<KParts::ReadOnlyPart *>(parent); KParts::ReadOnlyPart* part = static_cast<KParts::ReadOnlyPart *>(parent);
connect( part, TQT_SIGNAL(started(TDEIO::Job*)), this, connect( part, TQ_SIGNAL(started(TDEIO::Job*)), this,
TQT_SLOT(slotStarted(TDEIO::Job*)) ); TQ_SLOT(slotStarted(TDEIO::Job*)) );
} }
} }

@ -48,8 +48,8 @@ CrashesPlugin::CrashesPlugin( TQObject* parent, const char* name, const TQString
m_pCrashesMenu->setDelayed( false ); m_pCrashesMenu->setDelayed( false );
m_pCrashesMenu->setEnabled( true ); m_pCrashesMenu->setEnabled( true );
connect( m_pCrashesMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), connect( m_pCrashesMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ),
this, TQT_SLOT( slotAboutToShow() ) ); this, TQ_SLOT( slotAboutToShow() ) );
} }
CrashesPlugin::~CrashesPlugin() CrashesPlugin::~CrashesPlugin()
@ -62,10 +62,10 @@ void CrashesPlugin::slotAboutToShow()
TDECrashBookmarkImporter importer(TDECrashBookmarkImporter::crashBookmarksDir()); TDECrashBookmarkImporter importer(TDECrashBookmarkImporter::crashBookmarksDir());
connect( &importer, TQT_SIGNAL( newBookmark( const TQString &, const TQCString &, const TQString &) ), connect( &importer, TQ_SIGNAL( newBookmark( const TQString &, const TQCString &, const TQString &) ),
TQT_SLOT( newBookmarkCallback( const TQString &, const TQCString &, const TQString & ) ) ); TQ_SLOT( newBookmarkCallback( const TQString &, const TQCString &, const TQString & ) ) );
connect( &importer, TQT_SIGNAL( endFolder() ), TQT_SLOT( endFolderCallback() ) ); connect( &importer, TQ_SIGNAL( endFolder() ), TQ_SLOT( endFolderCallback() ) );
int count = m_pCrashesMenu->popupMenu()->count(); int count = m_pCrashesMenu->popupMenu()->count();
@ -89,7 +89,7 @@ void CrashesPlugin::slotAboutToShow()
m_crashRangesList.append( CrashRange(firstItem, count) ); m_crashRangesList.append( CrashRange(firstItem, count) );
m_pCrashesMenu->popupMenu()->insertItem( m_pCrashesMenu->popupMenu()->insertItem(
i18n("All Pages of This Crash"), this, i18n("All Pages of This Crash"), this,
TQT_SLOT(slotGroupSelected(int)), TQ_SLOT(slotGroupSelected(int)),
0, crashGroup--); 0, crashGroup--);
} }
m_pCrashesMenu->popupMenu()->insertSeparator(); m_pCrashesMenu->popupMenu()->insertSeparator();
@ -104,7 +104,7 @@ void CrashesPlugin::slotAboutToShow()
} }
m_pCrashesMenu->popupMenu()->insertItem( m_pCrashesMenu->popupMenu()->insertItem(
str, this, str, this,
TQT_SLOT(slotItemSelected(int)), TQ_SLOT(slotItemSelected(int)),
0, ++count ); 0, ++count );
gotSep = false; gotSep = false;
} }
@ -113,13 +113,13 @@ void CrashesPlugin::slotAboutToShow()
m_crashRangesList.append( CrashRange(firstItem, count) ); m_crashRangesList.append( CrashRange(firstItem, count) );
m_pCrashesMenu->popupMenu()->insertItem( m_pCrashesMenu->popupMenu()->insertItem(
i18n("All Pages of This Crash"), this, i18n("All Pages of This Crash"), this,
TQT_SLOT(slotGroupSelected(int)), TQ_SLOT(slotGroupSelected(int)),
0, crashGroup--); 0, crashGroup--);
} }
} else { } else {
m_pCrashesMenu->popupMenu()->insertItem( m_pCrashesMenu->popupMenu()->insertItem(
i18n("No Recovered Crashes"), this, i18n("No Recovered Crashes"), this,
TQT_SLOT(slotItemSelected(int)), TQ_SLOT(slotItemSelected(int)),
0, ++count ); 0, ++count );
gotSep = false; gotSep = false;
enable = false; enable = false;
@ -131,7 +131,7 @@ void CrashesPlugin::slotAboutToShow()
} }
int id =m_pCrashesMenu->popupMenu()->insertItem( i18n("&Clear List of Crashes"), this, int id =m_pCrashesMenu->popupMenu()->insertItem( i18n("&Clear List of Crashes"), this,
TQT_SLOT(slotClearCrashes()), TQ_SLOT(slotClearCrashes()),
0, ++count ); 0, ++count );
m_pCrashesMenu->popupMenu()->setItemEnabled( id, enable); m_pCrashesMenu->popupMenu()->setItemEnabled( id, enable);
} }

@ -156,18 +156,18 @@ DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name,
m_pFilterMenu->setDelayed (false); m_pFilterMenu->setDelayed (false);
m_pFilterMenu->setWhatsThis(i18n("Allow to filter the currently displayed items by filetype.")); m_pFilterMenu->setWhatsThis(i18n("Allow to filter the currently displayed items by filetype."));
connect (m_pFilterMenu->popupMenu(), TQT_SIGNAL (aboutToShow()), connect (m_pFilterMenu->popupMenu(), TQ_SIGNAL (aboutToShow()),
TQT_SLOT (slotShowPopup())); TQ_SLOT (slotShowPopup()));
connect (m_part, TQT_SIGNAL(itemRemoved(const KFileItem*)), connect (m_part, TQ_SIGNAL(itemRemoved(const KFileItem*)),
TQT_SLOT( slotItemRemoved (const KFileItem*))); TQ_SLOT( slotItemRemoved (const KFileItem*)));
connect (m_part, TQT_SIGNAL(itemsAdded(const KFileItemList&)), connect (m_part, TQ_SIGNAL(itemsAdded(const KFileItemList&)),
TQT_SLOT (slotItemsAdded(const KFileItemList&))); TQ_SLOT (slotItemsAdded(const KFileItemList&)));
connect (m_part, TQT_SIGNAL(itemsFilteredByMime(const KFileItemList&)), connect (m_part, TQ_SIGNAL(itemsFilteredByMime(const KFileItemList&)),
TQT_SLOT (slotItemsAdded(const KFileItemList&))); TQ_SLOT (slotItemsAdded(const KFileItemList&)));
connect (m_part, TQT_SIGNAL(itemsRefresh(const KFileItemList&)), connect (m_part, TQ_SIGNAL(itemsRefresh(const KFileItemList&)),
TQT_SLOT (slotItemsRefresh(const KFileItemList&))); TQ_SLOT (slotItemsRefresh(const KFileItemList&)));
connect (m_part, TQT_SIGNAL(aboutToOpenURL()), TQT_SLOT(slotOpenURL())); connect (m_part, TQ_SIGNAL(aboutToOpenURL()), TQ_SLOT(slotOpenURL()));
// add a searchline filter for konqis icons/list views // add a searchline filter for konqis icons/list views
TQHBox *hbox = new TQHBox(m_part->widget()); TQHBox *hbox = new TQHBox(m_part->widget());
@ -197,8 +197,8 @@ DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name,
if ( m_searchWidget ) if ( m_searchWidget )
{ {
TQWhatsThis::add(m_searchWidget, i18n("Enter here a text which an item in the view must contain anywhere to be shown.")); TQWhatsThis::add(m_searchWidget, i18n("Enter here a text which an item in the view must contain anywhere to be shown."));
connect(clear, TQT_SIGNAL(activated()), m_searchWidget, TQT_SLOT(clear())); connect(clear, TQ_SIGNAL(activated()), m_searchWidget, TQ_SLOT(clear()));
connect(m_searchWidget, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(searchTextChanged(const TQString&))); connect(m_searchWidget, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(searchTextChanged(const TQString&)));
} }
KWidgetAction *filterAction = new KWidgetAction(hbox, i18n("Filter Field"), KWidgetAction *filterAction = new KWidgetAction(hbox, i18n("Filter Field"),
@ -210,9 +210,9 @@ DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name,
// Really the broken TQt3 iconview should just be modified to include a hidden list; it would make things *so* much easier! // Really the broken TQt3 iconview should just be modified to include a hidden list; it would make things *so* much easier!
m_refreshTimer = new TQTimer( this ); m_refreshTimer = new TQTimer( this );
m_reactivateRefreshTimer = new TQTimer( this ); m_reactivateRefreshTimer = new TQTimer( this );
connect( m_refreshTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(activateSearch()) ); connect( m_refreshTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(activateSearch()) );
m_refreshTimer->start( 200, FALSE ); // 200 millisecond continuous timer m_refreshTimer->start( 200, FALSE ); // 200 millisecond continuous timer
connect( m_reactivateRefreshTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(reactivateRefreshTimer()) ); connect( m_reactivateRefreshTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(reactivateRefreshTimer()) );
} }
@ -302,7 +302,7 @@ void DirFilterPlugin::slotShowPopup()
m_pMimeInfo[it.key()].id = m_pFilterMenu->popupMenu()->insertItem ( m_pMimeInfo[it.key()].id = m_pFilterMenu->popupMenu()->insertItem (
SmallIconSet(it.data().iconName), label, SmallIconSet(it.data().iconName), label,
this, TQT_SLOT(slotItemSelected(int)), 0, ++id); this, TQ_SLOT(slotItemSelected(int)), 0, ++id);
if (it.data().useAsFilter) if (it.data().useAsFilter)
{ {
@ -333,7 +333,7 @@ void DirFilterPlugin::slotShowPopup()
m_pMimeInfo[(*it)].id = m_pFilterMenu->popupMenu()->insertItem ( m_pMimeInfo[(*it)].id = m_pFilterMenu->popupMenu()->insertItem (
SmallIconSet(m_pMimeInfo[(*it)].iconName), label, SmallIconSet(m_pMimeInfo[(*it)].iconName), label,
this, TQT_SLOT(slotItemSelected(int)), 0, ++id); this, TQ_SLOT(slotItemSelected(int)), 0, ++id);
if (m_pMimeInfo[(*it)].useAsFilter) if (m_pMimeInfo[(*it)].useAsFilter)
{ {
@ -345,16 +345,16 @@ void DirFilterPlugin::slotShowPopup()
m_pFilterMenu->popupMenu()->insertSeparator (); m_pFilterMenu->popupMenu()->insertSeparator ();
id = m_pFilterMenu->popupMenu()->insertItem (i18n("Use Multiple Filters"), id = m_pFilterMenu->popupMenu()->insertItem (i18n("Use Multiple Filters"),
this, TQT_SLOT(slotMultipleFilters())); this, TQ_SLOT(slotMultipleFilters()));
m_pFilterMenu->popupMenu()->setItemEnabled (id, enableReset <= 1); m_pFilterMenu->popupMenu()->setItemEnabled (id, enableReset <= 1);
m_pFilterMenu->popupMenu()->setItemChecked (id, SessionManager::self()->useMultipleFilters); m_pFilterMenu->popupMenu()->setItemChecked (id, SessionManager::self()->useMultipleFilters);
id = m_pFilterMenu->popupMenu()->insertItem (i18n("Show Count"), this, id = m_pFilterMenu->popupMenu()->insertItem (i18n("Show Count"), this,
TQT_SLOT(slotShowCount())); TQ_SLOT(slotShowCount()));
m_pFilterMenu->popupMenu()->setItemChecked (id, SessionManager::self()->showCount); m_pFilterMenu->popupMenu()->setItemChecked (id, SessionManager::self()->showCount);
id = m_pFilterMenu->popupMenu()->insertItem (i18n("Reset"), this, id = m_pFilterMenu->popupMenu()->insertItem (i18n("Reset"), this,
TQT_SLOT(slotReset())); TQ_SLOT(slotReset()));
m_pFilterMenu->popupMenu()->setItemEnabled (id, enableReset); m_pFilterMenu->popupMenu()->setItemEnabled (id, enableReset);
} }
@ -481,7 +481,7 @@ void DirFilterPlugin::slotItemRemoved(const KFileItem* item)
m_part->setMimeFilter(filters); m_part->setMimeFilter(filters);
SessionManager::self()->save(m_part->url(), filters); SessionManager::self()->save(m_part->url(), filters);
// Use 1ms delay to avoid possible race conditions // Use 1ms delay to avoid possible race conditions
TQTimer::singleShot(1, this, TQT_SLOT(slotTimeout())); TQTimer::singleShot(1, this, TQ_SLOT(slotTimeout()));
} }
m_pMimeInfo.remove(mimeType); m_pMimeInfo.remove(mimeType);
} }
@ -547,7 +547,7 @@ void DirFilterPlugin::slotItemsRefresh(const KFileItemList &list)
m_part->setMimeFilter(filters); m_part->setMimeFilter(filters);
SessionManager::self()->save(m_part->url(), filters); SessionManager::self()->save(m_part->url(), filters);
// Use 1ms delay to avoid possible race conditions // Use 1ms delay to avoid possible race conditions
TQTimer::singleShot(1, this, TQT_SLOT(slotTimeout())); TQTimer::singleShot(1, this, TQ_SLOT(slotTimeout()));
} }
MimeInfoIterator del_mit = it; MimeInfoIterator del_mit = it;
++it; ++it;

@ -77,32 +77,32 @@ DOMTreeView::DOMTreeView(TQWidget *parent, const char* name, bool /*allowSaving*
m_rootListView = m_listView; m_rootListView = m_listView;
m_pureCheckBox->setChecked(m_bPure); m_pureCheckBox->setChecked(m_bPure);
connect(m_pureCheckBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotPureToggled(bool))); connect(m_pureCheckBox, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotPureToggled(bool)));
m_showAttributesCheckBox->setChecked(m_bShowAttributes); m_showAttributesCheckBox->setChecked(m_bShowAttributes);
connect(m_showAttributesCheckBox, TQT_SIGNAL(toggled(bool)), this, connect(m_showAttributesCheckBox, TQ_SIGNAL(toggled(bool)), this,
TQT_SLOT(slotShowAttributesToggled(bool))); TQ_SLOT(slotShowAttributesToggled(bool)));
m_highlightHTMLCheckBox->setChecked(m_bHighlightHTML); m_highlightHTMLCheckBox->setChecked(m_bHighlightHTML);
connect(m_highlightHTMLCheckBox, TQT_SIGNAL(toggled(bool)), this, connect(m_highlightHTMLCheckBox, TQ_SIGNAL(toggled(bool)), this,
TQT_SLOT(slotHighlightHTMLToggled(bool))); TQ_SLOT(slotHighlightHTMLToggled(bool)));
connect(m_listView, TQT_SIGNAL(clicked(TQListViewItem *)), this, connect(m_listView, TQ_SIGNAL(clicked(TQListViewItem *)), this,
TQT_SLOT(slotItemClicked(TQListViewItem *))); TQ_SLOT(slotItemClicked(TQListViewItem *)));
connect(m_listView, TQT_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)), connect(m_listView, TQ_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),
TQT_SLOT(showDOMTreeContextMenu(TQListViewItem *, const TQPoint &, int))); TQ_SLOT(showDOMTreeContextMenu(TQListViewItem *, const TQPoint &, int)));
connect(m_listView, TQT_SIGNAL(moved(TQPtrList<TQListViewItem> &, TQPtrList<TQListViewItem> &, TQPtrList<TQListViewItem> &)), connect(m_listView, TQ_SIGNAL(moved(TQPtrList<TQListViewItem> &, TQPtrList<TQListViewItem> &, TQPtrList<TQListViewItem> &)),
TQT_SLOT(slotMovedItems(TQPtrList<TQListViewItem> &, TQPtrList<TQListViewItem> &, TQPtrList<TQListViewItem> &))); TQ_SLOT(slotMovedItems(TQPtrList<TQListViewItem> &, TQPtrList<TQListViewItem> &, TQPtrList<TQListViewItem> &)));
// set up message line // set up message line
messageLinePane->hide(); messageLinePane->hide();
connect(messageHideBtn, TQT_SIGNAL(clicked()), TQT_SLOT(hideMessageLine())); connect(messageHideBtn, TQ_SIGNAL(clicked()), TQ_SLOT(hideMessageLine()));
connect(messageListBtn, TQT_SIGNAL(clicked()), mainWindow(), TQT_SLOT(showMessageLog())); connect(messageListBtn, TQ_SIGNAL(clicked()), mainWindow(), TQ_SLOT(showMessageLog()));
installEventFilter(m_listView); installEventFilter(m_listView);
ManipulationCommand::connect(TQT_SIGNAL(nodeChanged(const DOM::Node &)), this, TQT_SLOT(slotRefreshNode(const DOM::Node &))); ManipulationCommand::connect(TQ_SIGNAL(nodeChanged(const DOM::Node &)), this, TQ_SLOT(slotRefreshNode(const DOM::Node &)));
ManipulationCommand::connect(TQT_SIGNAL(structureChanged()), this, TQT_SLOT(refresh())); ManipulationCommand::connect(TQ_SIGNAL(structureChanged()), this, TQ_SLOT(refresh()));
initDOMNodeInfo(); initDOMNodeInfo();
@ -126,7 +126,7 @@ void DOMTreeView::setHtmlPart(TDEHTMLPart *_part)
parentWidget()->setCaption( part ? i18n( "DOM Tree for %1" ).arg(part->url().prettyURL()) : i18n("DOM Tree") ); parentWidget()->setCaption( part ? i18n( "DOM Tree for %1" ).arg(part->url().prettyURL()) : i18n("DOM Tree") );
TQTimer::singleShot(0, this, TQT_SLOT(slotSetHtmlPartDelayed())); TQTimer::singleShot(0, this, TQ_SLOT(slotSetHtmlPartDelayed()));
} }
DOMTreeWindow *DOMTreeView::mainWindow() const DOMTreeWindow *DOMTreeView::mainWindow() const
@ -436,7 +436,7 @@ void DOMTreeView::slotFindClicked()
{ {
if (m_findDialog == 0) { if (m_findDialog == 0) {
m_findDialog = new KEdFind(this); m_findDialog = new KEdFind(this);
connect(m_findDialog, TQT_SIGNAL(search()), this, TQT_SLOT(slotSearch())); connect(m_findDialog, TQ_SIGNAL(search()), this, TQ_SLOT(slotSearch()));
} }
m_findDialog->show(); m_findDialog->show();
} }
@ -652,7 +652,7 @@ void DOMTreeView::refresh()
m_listView->setUpdatesEnabled(false); m_listView->setUpdatesEnabled(false);
slotShowTree(part->document()); slotShowTree(part->document());
TQTimer::singleShot(0, this, TQT_SLOT(slotRestoreScrollOffset())); TQTimer::singleShot(0, this, TQ_SLOT(slotRestoreScrollOffset()));
_refreshed = true; _refreshed = true;
} }
@ -805,9 +805,9 @@ void DOMTreeView::disconnectFromTornDownPart()
void DOMTreeView::connectToPart() void DOMTreeView::connectToPart()
{ {
if (part) { if (part) {
connect(part, TQT_SIGNAL(nodeActivated(const DOM::Node &)), this, connect(part, TQ_SIGNAL(nodeActivated(const DOM::Node &)), this,
TQT_SLOT(activateNode(const DOM::Node &))); TQ_SLOT(activateNode(const DOM::Node &)));
connect(part, TQT_SIGNAL(completed()), this, TQT_SLOT(refresh())); connect(part, TQ_SIGNAL(completed()), this, TQ_SLOT(refresh()));
// insert a style rule to indicate activated nodes // insert a style rule to indicate activated nodes
try { try {
@ -871,7 +871,7 @@ void DOMTreeView::slotAddElementDlg()
{ {
ElementEditDialog dlg(this, "ElementEditDialog", true); ElementEditDialog dlg(this, "ElementEditDialog", true);
connect(dlg.insBeforeBtn, TQT_SIGNAL(clicked()), &addBefore, TQT_SLOT(slot())); connect(dlg.insBeforeBtn, TQ_SIGNAL(clicked()), &addBefore, TQ_SLOT(slot()));
// ### activate when namespaces are supported // ### activate when namespaces are supported
dlg.elemNamespace->setEnabled(false); dlg.elemNamespace->setEnabled(false);
@ -911,7 +911,7 @@ void DOMTreeView::slotAddTextDlg()
{ {
TextEditDialog dlg(this, "TextEditDialog", true); TextEditDialog dlg(this, "TextEditDialog", true);
connect(dlg.insBeforeBtn, TQT_SIGNAL(clicked()), &addBefore, TQT_SLOT(slot())); connect(dlg.insBeforeBtn, TQ_SIGNAL(clicked()), &addBefore, TQ_SLOT(slot()));
if (dlg.exec() != TQDialog::Accepted) return; if (dlg.exec() != TQDialog::Accepted) return;
@ -1003,19 +1003,19 @@ protected:
void DOMTreeView::initDOMNodeInfo() void DOMTreeView::initDOMNodeInfo()
{ {
connect(m_listView, TQT_SIGNAL(clicked(TQListViewItem *)), connect(m_listView, TQ_SIGNAL(clicked(TQListViewItem *)),
TQT_SLOT(initializeOptionsFromListItem(TQListViewItem *))); TQ_SLOT(initializeOptionsFromListItem(TQListViewItem *)));
connect(nodeAttributes, TQT_SIGNAL(itemRenamed(TQListViewItem *, const TQString &, int)), connect(nodeAttributes, TQ_SIGNAL(itemRenamed(TQListViewItem *, const TQString &, int)),
TQT_SLOT(slotItemRenamed(TQListViewItem *, const TQString &, int))); TQ_SLOT(slotItemRenamed(TQListViewItem *, const TQString &, int)));
connect(nodeAttributes, TQT_SIGNAL(executed(TQListViewItem *, const TQPoint &, int)), connect(nodeAttributes, TQ_SIGNAL(executed(TQListViewItem *, const TQPoint &, int)),
TQT_SLOT(slotEditAttribute(TQListViewItem *, const TQPoint &, int))); TQ_SLOT(slotEditAttribute(TQListViewItem *, const TQPoint &, int)));
connect(nodeAttributes, TQT_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)), connect(nodeAttributes, TQ_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),
TQT_SLOT(showInfoPanelContextMenu(TQListViewItem *, const TQPoint &, int))); TQ_SLOT(showInfoPanelContextMenu(TQListViewItem *, const TQPoint &, int)));
connect(applyContent, TQT_SIGNAL(clicked()), TQT_SLOT(slotApplyContent())); connect(applyContent, TQ_SIGNAL(clicked()), TQ_SLOT(slotApplyContent()));
ManipulationCommand::connect(TQT_SIGNAL(nodeChanged(const DOM::Node &)), this, TQT_SLOT(initializeOptionsFromNode(const DOM::Node &))); ManipulationCommand::connect(TQ_SIGNAL(nodeChanged(const DOM::Node &)), this, TQ_SLOT(initializeOptionsFromNode(const DOM::Node &)));
nodeAttributes->setRenameable(0, true); nodeAttributes->setRenameable(0, true);
nodeAttributes->setRenameable(1, true); nodeAttributes->setRenameable(1, true);

@ -84,16 +84,16 @@ DOMTreeWindow::DOMTreeWindow(PluginDomtreeviewer *plugin)
// allow the view to change the statusbar and caption // allow the view to change the statusbar and caption
#if 0 #if 0
connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)), connect(m_view, TQ_SIGNAL(signalChangeStatusbar(const TQString&)),
this, TQT_SLOT(changeStatusbar(const TQString&))); this, TQ_SLOT(changeStatusbar(const TQString&)));
connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)), connect(m_view, TQ_SIGNAL(signalChangeCaption(const TQString&)),
this, TQT_SLOT(changeCaption(const TQString&))); this, TQ_SLOT(changeCaption(const TQString&)));
#endif #endif
connect(view(), TQT_SIGNAL(htmlPartChanged(TDEHTMLPart *)), connect(view(), TQ_SIGNAL(htmlPartChanged(TDEHTMLPart *)),
TQT_SLOT(slotHtmlPartChanged(TDEHTMLPart *))); TQ_SLOT(slotHtmlPartChanged(TDEHTMLPart *)));
ManipulationCommand::connect(TQT_SIGNAL(error(int, const TQString &)), ManipulationCommand::connect(TQ_SIGNAL(error(int, const TQString &)),
this, TQT_SLOT(addMessage(int, const TQString &))); this, TQ_SLOT(addMessage(int, const TQString &)));
infopanel_ctx = createInfoPanelAttrContextMenu(); infopanel_ctx = createInfoPanelAttrContextMenu();
domtree_ctx = createDOMTreeViewContextMenu(); domtree_ctx = createDOMTreeViewContextMenu();
@ -119,57 +119,57 @@ void DOMTreeWindow::executeAndAddCommand(ManipulationCommand *cmd)
void DOMTreeWindow::setupActions() void DOMTreeWindow::setupActions()
{ {
KStdAction::close(this, TQT_SLOT(close()), actionCollection()); KStdAction::close(this, TQ_SLOT(close()), actionCollection());
KStdAction::cut(this, TQT_SLOT(slotCut()), actionCollection())->setEnabled(false); KStdAction::cut(this, TQ_SLOT(slotCut()), actionCollection())->setEnabled(false);
KStdAction::copy(this, TQT_SLOT(slotCopy()), actionCollection())->setEnabled(false); KStdAction::copy(this, TQ_SLOT(slotCopy()), actionCollection())->setEnabled(false);
KStdAction::paste(this, TQT_SLOT(slotPaste()), actionCollection())->setEnabled(false); KStdAction::paste(this, TQ_SLOT(slotPaste()), actionCollection())->setEnabled(false);
m_commandHistory = new KCommandHistory(actionCollection()); m_commandHistory = new KCommandHistory(actionCollection());
KStdAction::find(this, TQT_SLOT(slotFind()), actionCollection()); KStdAction::find(this, TQ_SLOT(slotFind()), actionCollection());
KStdAction::redisplay(m_view, TQT_SLOT(refresh()), actionCollection()); KStdAction::redisplay(m_view, TQ_SLOT(refresh()), actionCollection());
// toggle manipulation dialog // toggle manipulation dialog
TDEAction *showMsgDlg = new TDEAction(i18n("Show Message Log"), TDEAction *showMsgDlg = new TDEAction(i18n("Show Message Log"),
CTRL+Key_E, actionCollection(), "show_msg_dlg"); CTRL+Key_E, actionCollection(), "show_msg_dlg");
connect(showMsgDlg, TQT_SIGNAL(activated()), TQT_SLOT(showMessageLog())); connect(showMsgDlg, TQ_SIGNAL(activated()), TQ_SLOT(showMessageLog()));
// TDEAction *custom = new TDEAction(i18n("Cus&tom Menuitem"), 0, // TDEAction *custom = new TDEAction(i18n("Cus&tom Menuitem"), 0,
// this, TQT_SLOT(optionsPreferences()), // this, TQ_SLOT(optionsPreferences()),
// actionCollection(), "custom_action"); // actionCollection(), "custom_action");
// actions for the dom tree list view toolbar // actions for the dom tree list view toolbar
KStdAction::up(view(), TQT_SLOT(moveToParent()), actionCollection(), "tree_up"); KStdAction::up(view(), TQ_SLOT(moveToParent()), actionCollection(), "tree_up");
TDEAction *tree_inc_level = new TDEAction(i18n("Expand"), TDEAction *tree_inc_level = new TDEAction(i18n("Expand"),
"1rightarrow", CTRL+Key_Greater, view(), "1rightarrow", CTRL+Key_Greater, view(),
TQT_SLOT(increaseExpansionDepth()), actionCollection(), TQ_SLOT(increaseExpansionDepth()), actionCollection(),
"tree_inc_level"); "tree_inc_level");
tree_inc_level->setToolTip(i18n("Increase expansion level")); tree_inc_level->setToolTip(i18n("Increase expansion level"));
TDEAction *tree_dec_level = new TDEAction(i18n("Collapse"), TDEAction *tree_dec_level = new TDEAction(i18n("Collapse"),
"1leftarrow", CTRL+Key_Less, view(), "1leftarrow", CTRL+Key_Less, view(),
TQT_SLOT(decreaseExpansionDepth()), actionCollection(), TQ_SLOT(decreaseExpansionDepth()), actionCollection(),
"tree_dec_level"); "tree_dec_level");
tree_dec_level->setToolTip(i18n("Decrease expansion level")); tree_dec_level->setToolTip(i18n("Decrease expansion level"));
// actions for the dom tree list view context menu // actions for the dom tree list view context menu
del_tree = new TDEAction(i18n("&Delete"), "edit-delete", del_tree = new TDEAction(i18n("&Delete"), "edit-delete",
Key_Delete, view(), TQT_SLOT(deleteNodes()), Key_Delete, view(), TQ_SLOT(deleteNodes()),
actionCollection(), "tree_delete"); actionCollection(), "tree_delete");
del_tree->setToolTip(i18n("Delete nodes")); del_tree->setToolTip(i18n("Delete nodes"));
/*TDEAction *new_elem = */new TDEAction(i18n("New &Element ..."), /*TDEAction *new_elem = */new TDEAction(i18n("New &Element ..."),
"bookmark", TDEShortcut(), view(), "bookmark", TDEShortcut(), view(),
TQT_SLOT(slotAddElementDlg()), actionCollection(), TQ_SLOT(slotAddElementDlg()), actionCollection(),
"tree_add_element"); "tree_add_element");
/*TDEAction *new_text = */new TDEAction(i18n("New &Text Node ..."), /*TDEAction *new_text = */new TDEAction(i18n("New &Text Node ..."),
"text", TDEShortcut(), view(), TQT_SLOT(slotAddTextDlg()), "text", TDEShortcut(), view(), TQ_SLOT(slotAddTextDlg()),
actionCollection(), "tree_add_text"); actionCollection(), "tree_add_text");
// actions for the info panel attribute list context menu // actions for the info panel attribute list context menu
del_attr = new TDEAction(i18n("&Delete"), "edit-delete", del_attr = new TDEAction(i18n("&Delete"), "edit-delete",
Key_Delete, view(), TQT_SLOT(deleteAttributes()), Key_Delete, view(), TQ_SLOT(deleteAttributes()),
actionCollection(), "attr_delete"); actionCollection(), "attr_delete");
del_attr->setToolTip(i18n("Delete attributes")); del_attr->setToolTip(i18n("Delete attributes"));
@ -292,7 +292,7 @@ void DOMTreeWindow::optionsConfigureToolbars()
// use the standard toolbar editor // use the standard toolbar editor
saveMainWindowSettings( config(), autoSaveGroup() ); saveMainWindowSettings( config(), autoSaveGroup() );
KEditToolbar dlg(actionCollection()); KEditToolbar dlg(actionCollection());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(newToolbarConfig())); connect(&dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(newToolbarConfig()));
dlg.exec(); dlg.exec();
} }
@ -339,13 +339,13 @@ void DOMTreeWindow::slotHtmlPartChanged(TDEHTMLPart *p)
part_manager = p->manager(); part_manager = p->manager();
connect(part_manager, TQT_SIGNAL(activePartChanged(KParts::Part *)), connect(part_manager, TQ_SIGNAL(activePartChanged(KParts::Part *)),
TQT_SLOT(slotActivePartChanged(KParts::Part *))); TQ_SLOT(slotActivePartChanged(KParts::Part *)));
connect(part_manager, TQT_SIGNAL(partRemoved(KParts::Part *)), connect(part_manager, TQ_SIGNAL(partRemoved(KParts::Part *)),
TQT_SLOT(slotPartRemoved(KParts::Part *))); TQ_SLOT(slotPartRemoved(KParts::Part *)));
// set up browser extension connections // set up browser extension connections
connect(p, TQT_SIGNAL(docCreated()), TQT_SLOT(slotClosePart())); connect(p, TQ_SIGNAL(docCreated()), TQ_SLOT(slotClosePart()));
} }
} }

@ -21,7 +21,7 @@ PluginDomtreeviewer::PluginDomtreeviewer( TQObject* parent, const char* name,
{ {
(void) new TDEAction( i18n("Show &DOM Tree"), (void) new TDEAction( i18n("Show &DOM Tree"),
"domtreeviewer", 0, "domtreeviewer", 0,
this, TQT_SLOT(slotShowDOMTree()), this, TQ_SLOT(slotShowDOMTree()),
actionCollection(), "viewdomtree" ); actionCollection(), "viewdomtree" );
} }
@ -41,7 +41,7 @@ void PluginDomtreeviewer::slotShowDOMTree()
if (TDEHTMLPart *part = ::tqt_cast<TDEHTMLPart *>(parent())) if (TDEHTMLPart *part = ::tqt_cast<TDEHTMLPart *>(parent()))
{ {
m_dialog = new DOMTreeWindow(this); m_dialog = new DOMTreeWindow(this);
connect( m_dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); connect( m_dialog, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) );
m_dialog->view()->setHtmlPart(part); m_dialog->view()->setHtmlPart(part);
m_dialog->show(); m_dialog->show();
} }

@ -32,7 +32,7 @@
* Use as follows: * Use as follows:
* \code * \code
* SignalReceiver sr; * SignalReceiver sr;
* sr.connect(some_obj, TQT_SIGNAL(someSignal()), TQT_SLOT(slot())); * sr.connect(some_obj, TQ_SIGNAL(someSignal()), TQ_SLOT(slot()));
* <do something with some_obj> ... * <do something with some_obj> ...
* if (sr.receivedSignal()) { // yes, signal was received * if (sr.receivedSignal()) { // yes, signal was received
* } * }

@ -203,8 +203,8 @@ void FSView::requestUpdate(Inode* i)
i->clear(); i->clear();
if (!_sm.scanRunning()) { if (!_sm.scanRunning()) {
TQTimer::singleShot(0, this, TQT_SLOT(doUpdate())); TQTimer::singleShot(0, this, TQ_SLOT(doUpdate()));
TQTimer::singleShot(100, this, TQT_SLOT(doRedraw())); TQTimer::singleShot(100, this, TQ_SLOT(doRedraw()));
/* start new progress chunk */ /* start new progress chunk */
_progressPhase = 1; _progressPhase = 1;
@ -381,8 +381,8 @@ void FSView::addColorItems(TQPopupMenu* popup, int id)
_colorID = id; _colorID = id;
popup->setCheckable(true); popup->setCheckable(true);
connect(popup, TQT_SIGNAL(activated(int)), connect(popup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(colorActivated(int))); this, TQ_SLOT(colorActivated(int)));
popup->insertItem(i18n("None"), id); popup->insertItem(i18n("None"), id);
popup->insertItem(i18n("Depth"), id+1); popup->insertItem(i18n("Depth"), id+1);
@ -458,7 +458,7 @@ void FSView::doRedraw()
redo = true; redo = true;
if (redo) { if (redo) {
TQTimer::singleShot(500, this, TQT_SLOT(doRedraw())); TQTimer::singleShot(500, this, TQ_SLOT(doRedraw()));
redrawCounter++; redrawCounter++;
} }
} }
@ -532,7 +532,7 @@ void FSView::doUpdate()
} }
if (_sm.scanRunning()) if (_sm.scanRunning())
TQTimer::singleShot(0, this, TQT_SLOT(doUpdate())); TQTimer::singleShot(0, this, TQ_SLOT(doUpdate()));
else else
emit completed(_dirsFinished); emit completed(_dirsFinished);
} }

@ -57,8 +57,8 @@ FSJob::FSJob(FSView* v)
: TDEIO::Job(false) : TDEIO::Job(false)
{ {
_view = v; _view = v;
TQObject::connect(v, TQT_SIGNAL(progress(int,int,const TQString&)), TQObject::connect(v, TQ_SIGNAL(progress(int,int,const TQString&)),
this, TQT_SLOT(progressSlot(int,int,const TQString&))); this, TQ_SLOT(progressSlot(int,int,const TQString&)));
} }
void FSJob::kill(bool quietly) void FSJob::kill(bool quietly)
@ -129,40 +129,40 @@ FSViewPart::FSViewPart(TQWidget *parentWidget, const char *widgetName,
TDEAction* action; TDEAction* action;
action = new TDEAction( i18n( "&FSView Manual" ), "fsview", action = new TDEAction( i18n( "&FSView Manual" ), "fsview",
TDEShortcut(), this, TQT_SLOT(showHelp()), TDEShortcut(), this, TQ_SLOT(showHelp()),
actionCollection(), "help_fsview" ); actionCollection(), "help_fsview" );
action->setToolTip(i18n("Show FSView manual")); action->setToolTip(i18n("Show FSView manual"));
action->setWhatsThis(i18n("Opens the help browser with the " action->setWhatsThis(i18n("Opens the help browser with the "
"FSView documentation")); "FSView documentation"));
TQObject::connect (_visMenu->popupMenu(), TQT_SIGNAL (aboutToShow()), TQObject::connect (_visMenu->popupMenu(), TQ_SIGNAL (aboutToShow()),
TQT_SLOT (slotShowVisMenu())); TQ_SLOT (slotShowVisMenu()));
TQObject::connect (_areaMenu->popupMenu(), TQT_SIGNAL (aboutToShow()), TQObject::connect (_areaMenu->popupMenu(), TQ_SIGNAL (aboutToShow()),
TQT_SLOT (slotShowAreaMenu())); TQ_SLOT (slotShowAreaMenu()));
TQObject::connect (_depthMenu->popupMenu(), TQT_SIGNAL (aboutToShow()), TQObject::connect (_depthMenu->popupMenu(), TQ_SIGNAL (aboutToShow()),
TQT_SLOT (slotShowDepthMenu())); TQ_SLOT (slotShowDepthMenu()));
TQObject::connect (_colorMenu->popupMenu(), TQT_SIGNAL (aboutToShow()), TQObject::connect (_colorMenu->popupMenu(), TQ_SIGNAL (aboutToShow()),
TQT_SLOT (slotShowColorMenu())); TQ_SLOT (slotShowColorMenu()));
slotSettingsChanged(TDEApplication::SETTINGS_MOUSE); slotSettingsChanged(TDEApplication::SETTINGS_MOUSE);
if (kapp) if (kapp)
connect( kapp, TQT_SIGNAL( settingsChanged(int) ), connect( kapp, TQ_SIGNAL( settingsChanged(int) ),
TQT_SLOT( slotSettingsChanged(int) ) ); TQ_SLOT( slotSettingsChanged(int) ) );
TQObject::connect(_view,TQT_SIGNAL(returnPressed(TreeMapItem*)), TQObject::connect(_view,TQ_SIGNAL(returnPressed(TreeMapItem*)),
_ext,TQT_SLOT(selected(TreeMapItem*))); _ext,TQ_SLOT(selected(TreeMapItem*)));
TQObject::connect(_view,TQT_SIGNAL(selectionChanged()), TQObject::connect(_view,TQ_SIGNAL(selectionChanged()),
_ext,TQT_SLOT(updateActions())); _ext,TQ_SLOT(updateActions()));
TQObject::connect(_view, TQObject::connect(_view,
TQT_SIGNAL(contextMenuRequested(TreeMapItem*,const TQPoint&)), TQ_SIGNAL(contextMenuRequested(TreeMapItem*,const TQPoint&)),
_ext, _ext,
TQT_SLOT(contextMenu(TreeMapItem*, const TQPoint&))); TQ_SLOT(contextMenu(TreeMapItem*, const TQPoint&)));
TQObject::connect(_view, TQT_SIGNAL(started()), this, TQT_SLOT(startedSlot())); TQObject::connect(_view, TQ_SIGNAL(started()), this, TQ_SLOT(startedSlot()));
TQObject::connect(_view, TQT_SIGNAL(completed(int)), TQObject::connect(_view, TQ_SIGNAL(completed(int)),
this, TQT_SLOT(completedSlot(int))); this, TQ_SLOT(completedSlot(int)));
TQTimer::singleShot(1, this, TQT_SLOT(showInfo())); TQTimer::singleShot(1, this, TQ_SLOT(showInfo()));
setXMLFile( "fsview_part.rc" ); setXMLFile( "fsview_part.rc" );
} }
@ -180,17 +180,17 @@ void FSViewPart::slotSettingsChanged(int category)
{ {
if (category != TDEApplication::SETTINGS_MOUSE) return; if (category != TDEApplication::SETTINGS_MOUSE) return;
TQObject::disconnect(_view,TQT_SIGNAL(clicked(TreeMapItem*)), TQObject::disconnect(_view,TQ_SIGNAL(clicked(TreeMapItem*)),
_ext,TQT_SLOT(selected(TreeMapItem*))); _ext,TQ_SLOT(selected(TreeMapItem*)));
TQObject::disconnect(_view,TQT_SIGNAL(doubleClicked(TreeMapItem*)), TQObject::disconnect(_view,TQ_SIGNAL(doubleClicked(TreeMapItem*)),
_ext,TQT_SLOT(selected(TreeMapItem*))); _ext,TQ_SLOT(selected(TreeMapItem*)));
if (TDEGlobalSettings::singleClick()) if (TDEGlobalSettings::singleClick())
TQObject::connect(_view,TQT_SIGNAL(clicked(TreeMapItem*)), TQObject::connect(_view,TQ_SIGNAL(clicked(TreeMapItem*)),
_ext,TQT_SLOT(selected(TreeMapItem*))); _ext,TQ_SLOT(selected(TreeMapItem*)));
else else
TQObject::connect(_view,TQT_SIGNAL(doubleClicked(TreeMapItem*)), TQObject::connect(_view,TQ_SIGNAL(doubleClicked(TreeMapItem*)),
_ext,TQT_SLOT(selected(TreeMapItem*))); _ext,TQ_SLOT(selected(TreeMapItem*)));
} }
void FSViewPart::showInfo() void FSViewPart::showInfo()
@ -331,14 +331,14 @@ void FSViewBrowserExtension::del()
// - search for the KonqOperations child of _view (name "KonqOperations") // - search for the KonqOperations child of _view (name "KonqOperations")
// - connect to destroyed signal // - connect to destroyed signal
KonqOperations* o = (KonqOperations*) _view->child("KonqOperations"); KonqOperations* o = (KonqOperations*) _view->child("KonqOperations");
if (o) connect(o, TQT_SIGNAL(destroyed()), TQT_SLOT(refresh())); if (o) connect(o, TQ_SIGNAL(destroyed()), TQ_SLOT(refresh()));
} }
void FSViewBrowserExtension::trash() void FSViewBrowserExtension::trash()
{ {
KonqOperations::del(_view, KonqOperations::TRASH, _view->selectedUrls()); KonqOperations::del(_view, KonqOperations::TRASH, _view->selectedUrls());
KonqOperations* o = (KonqOperations*) _view->child("KonqOperations"); KonqOperations* o = (KonqOperations*) _view->child("KonqOperations");
if (o) connect(o, TQT_SIGNAL(destroyed()), TQT_SLOT(refresh())); if (o) connect(o, TQ_SIGNAL(destroyed()), TQ_SLOT(refresh()));
} }
void FSViewBrowserExtension::copySelection( bool move ) void FSViewBrowserExtension::copySelection( bool move )

@ -40,17 +40,17 @@ int main(int argc, char* argv[])
// TreeMap Widget as toplevel window // TreeMap Widget as toplevel window
FSView w(new Inode()); FSView w(new Inode());
TQObject::connect(&w,TQT_SIGNAL(clicked(TreeMapItem*)), TQObject::connect(&w,TQ_SIGNAL(clicked(TreeMapItem*)),
&w,TQT_SLOT(selected(TreeMapItem*))); &w,TQ_SLOT(selected(TreeMapItem*)));
TQObject::connect(&w,TQT_SIGNAL(returnPressed(TreeMapItem*)), TQObject::connect(&w,TQ_SIGNAL(returnPressed(TreeMapItem*)),
&w,TQT_SLOT(selected(TreeMapItem*))); &w,TQ_SLOT(selected(TreeMapItem*)));
TQObject::connect(&w, TQObject::connect(&w,
TQT_SIGNAL(contextMenuRequested(TreeMapItem*,const TQPoint&)), TQ_SIGNAL(contextMenuRequested(TreeMapItem*,const TQPoint&)),
&w,TQT_SLOT(contextMenu(TreeMapItem*, const TQPoint&))); &w,TQ_SLOT(contextMenu(TreeMapItem*, const TQPoint&)));
w.setPath(path); w.setPath(path);
w.show(); w.show();
a.connect( &a, TQT_SIGNAL( lastWindowClosed() ), &w, TQT_SLOT( quit() ) ); a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), &w, TQ_SLOT( quit() ) );
return a.exec(); return a.exec();
} }

@ -1768,7 +1768,7 @@ void TreeMapWidget::contextMenuEvent( TQContextMenuEvent* e )
{ {
//kdDebug(90100) << "TreeMapWidget::contextMenuEvent" << endl; //kdDebug(90100) << "TreeMapWidget::contextMenuEvent" << endl;
if ( receivers( TQT_SIGNAL(contextMenuRequested(TreeMapItem*, const TQPoint &)) ) ) if ( receivers( TQ_SIGNAL(contextMenuRequested(TreeMapItem*, const TQPoint &)) ) )
e->accept(); e->accept();
if ( e->reason() == TQContextMenuEvent::Keyboard ) { if ( e->reason() == TQContextMenuEvent::Keyboard ) {
@ -2774,8 +2774,8 @@ void TreeMapWidget::addSplitDirectionItems(TQPopupMenu* popup, int id)
_splitID = id; _splitID = id;
popup->setCheckable(true); popup->setCheckable(true);
connect(popup, TQT_SIGNAL(activated(int)), connect(popup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(splitActivated(int))); this, TQ_SLOT(splitActivated(int)));
popup->insertItem(i18n("Recursive Bisection"), id); popup->insertItem(i18n("Recursive Bisection"), id);
popup->insertItem(i18n("Columns"), id+1); popup->insertItem(i18n("Columns"), id+1);
@ -2833,10 +2833,10 @@ void TreeMapWidget::addVisualizationItems(TQPopupMenu* popup, int id)
TQPopupMenu* bpopup = new TQPopupMenu(); TQPopupMenu* bpopup = new TQPopupMenu();
bpopup->setCheckable(true); bpopup->setCheckable(true);
connect(popup, TQT_SIGNAL(activated(int)), connect(popup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(visualizationActivated(int))); this, TQ_SLOT(visualizationActivated(int)));
connect(bpopup, TQT_SIGNAL(activated(int)), connect(bpopup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(visualizationActivated(int))); this, TQ_SLOT(visualizationActivated(int)));
TQPopupMenu* spopup = new TQPopupMenu(); TQPopupMenu* spopup = new TQPopupMenu();
addSplitDirectionItems(spopup, id+100); addSplitDirectionItems(spopup, id+100);
@ -2896,8 +2896,8 @@ void TreeMapWidget::addVisualizationItems(TQPopupMenu* popup, int id)
tpopup->setItemChecked(id+7,_attr[f].pos == DrawParams::BottomCenter); tpopup->setItemChecked(id+7,_attr[f].pos == DrawParams::BottomCenter);
tpopup->setItemChecked(id+8,_attr[f].pos == DrawParams::BottomRight); tpopup->setItemChecked(id+8,_attr[f].pos == DrawParams::BottomRight);
connect(tpopup, TQT_SIGNAL(activated(int)), connect(tpopup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(visualizationActivated(int))); this, TQ_SLOT(visualizationActivated(int)));
} }
} }
@ -2921,8 +2921,8 @@ void TreeMapWidget::addSelectionItems(TQPopupMenu* popup,
_selectionID = id; _selectionID = id;
_menuItem = i; _menuItem = i;
connect(popup, TQT_SIGNAL(activated(int)), connect(popup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(selectionActivated(int))); this, TQ_SLOT(selectionActivated(int)));
while (i) { while (i) {
TQString name = i->text(0); TQString name = i->text(0);
@ -2952,8 +2952,8 @@ void TreeMapWidget::addFieldStopItems(TQPopupMenu* popup,
{ {
_fieldStopID = id; _fieldStopID = id;
connect(popup, TQT_SIGNAL(activated(int)), connect(popup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(fieldStopActivated(int))); this, TQ_SLOT(fieldStopActivated(int)));
popup->insertItem(i18n("No %1 Limit").arg(fieldType(0)), id); popup->insertItem(i18n("No %1 Limit").arg(fieldType(0)), id);
popup->setItemChecked(id, fieldStop(0).isEmpty()); popup->setItemChecked(id, fieldStop(0).isEmpty());
@ -3002,8 +3002,8 @@ void TreeMapWidget::addAreaStopItems(TQPopupMenu* popup,
_areaStopID = id; _areaStopID = id;
_menuItem = i; _menuItem = i;
connect(popup, TQT_SIGNAL(activated(int)), connect(popup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(areaStopActivated(int))); this, TQ_SLOT(areaStopActivated(int)));
bool foundArea = false; bool foundArea = false;
@ -3067,8 +3067,8 @@ void TreeMapWidget::addDepthStopItems(TQPopupMenu* popup,
_depthStopID = id; _depthStopID = id;
_menuItem = i; _menuItem = i;
connect(popup, TQT_SIGNAL(activated(int)), connect(popup, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(depthStopActivated(int))); this, TQ_SLOT(depthStopActivated(int)));
bool foundDepth = false; bool foundDepth = false;

@ -191,8 +191,8 @@ void KIGPDialog::setupDirectoryPage(const TQString& path) {
m_imageNameReq = new KURLRequester(path + "images.html", page); m_imageNameReq = new KURLRequester(path + "images.html", page);
label->setBuddy( m_imageNameReq ); label->setBuddy( m_imageNameReq );
dvlay->addWidget(m_imageNameReq); dvlay->addWidget(m_imageNameReq);
connect( m_imageNameReq, TQT_SIGNAL(textChanged(const TQString&)), connect( m_imageNameReq, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(imageUrlChanged(const TQString&)) ); this, TQ_SLOT(imageUrlChanged(const TQString&)) );
TQWhatsThis::add( m_imageNameReq, whatsThis ); TQWhatsThis::add( m_imageNameReq, whatsThis );
const bool recurseSubDir = m_config->readBoolEntry("RecurseSubDirectories", false); const bool recurseSubDir = m_config->readBoolEntry("RecurseSubDirectories", false);
@ -215,8 +215,8 @@ void KIGPDialog::setupDirectoryPage(const TQString& path) {
TQWhatsThis::add( m_recursionLevel, whatsThis ); TQWhatsThis::add( m_recursionLevel, whatsThis );
connect(m_recurseSubDir, TQT_SIGNAL( toggled(bool) ), connect(m_recurseSubDir, TQ_SIGNAL( toggled(bool) ),
m_recursionLevel, TQT_SLOT( setEnabled(bool) ) ); m_recursionLevel, TQ_SLOT( setEnabled(bool) ) );
dvlay->addWidget(m_recurseSubDir); dvlay->addWidget(m_recurseSubDir);
dvlay->addWidget(m_recursionLevel); dvlay->addWidget(m_recursionLevel);
@ -262,10 +262,10 @@ void KIGPDialog::setupDirectoryPage(const TQString& path) {
dvlay->addWidget(m_commentFileReq); dvlay->addWidget(m_commentFileReq);
TQWhatsThis::add( m_commentFileReq, whatsThis ); TQWhatsThis::add( m_commentFileReq, whatsThis );
connect(m_useCommentFile, TQT_SIGNAL(toggled(bool)), connect(m_useCommentFile, TQ_SIGNAL(toggled(bool)),
label, TQT_SLOT(setEnabled(bool))); label, TQ_SLOT(setEnabled(bool)));
connect(m_useCommentFile, TQT_SIGNAL(toggled(bool)), connect(m_useCommentFile, TQ_SIGNAL(toggled(bool)),
m_commentFileReq, TQT_SLOT(setEnabled(bool))); m_commentFileReq, TQ_SLOT(setEnabled(bool)));
dvlay->addStretch(1); dvlay->addStretch(1);
} }
@ -317,8 +317,8 @@ void KIGPDialog::setupThumbnailPage(const TQString& path) {
m_colorDepth->setEnabled(colorDepthSet); m_colorDepth->setEnabled(colorDepthSet);
hlay4->addWidget( m_colorDepth ); hlay4->addWidget( m_colorDepth );
connect(m_colorDepthSet, TQT_SIGNAL( toggled(bool) ), connect(m_colorDepthSet, TQ_SIGNAL( toggled(bool) ),
m_colorDepth, TQT_SLOT( setEnabled(bool) ) ); m_colorDepth, TQ_SLOT( setEnabled(bool) ) );
vlay->addStretch(1); vlay->addStretch(1);

@ -52,7 +52,7 @@ KImGalleryPlugin::KImGalleryPlugin( TQObject* parent, const char* name, const TQ
: KParts::Plugin( parent, name ), m_commentMap(0) : KParts::Plugin( parent, name ), m_commentMap(0)
{ {
new TDEAction( i18n( "&Create Image Gallery..." ), "imagegallery", CTRL+Key_I, this, new TDEAction( i18n( "&Create Image Gallery..." ), "imagegallery", CTRL+Key_I, this,
TQT_SLOT( slotExecute() ), actionCollection(), "create_img_gallery" ); TQ_SLOT( slotExecute() ), actionCollection(), "create_img_gallery" );
} }
void KImGalleryPlugin::slotExecute() void KImGalleryPlugin::slotExecute()
@ -82,7 +82,7 @@ void KImGalleryPlugin::slotExecute()
KURL url(m_configDlg->getImageName()); KURL url(m_configDlg->getImageName());
if ( !url.isEmpty() && url.isValid()) { if ( !url.isEmpty() && url.isValid()) {
m_progressDlg = new TQProgressDialog(m_part->widget(), "progressDlg", true ); m_progressDlg = new TQProgressDialog(m_part->widget(), "progressDlg", true );
TQObject::connect(m_progressDlg, TQT_SIGNAL( cancelled() ), this, TQT_SLOT( slotCancelled() ) ); TQObject::connect(m_progressDlg, TQ_SIGNAL( cancelled() ), this, TQ_SLOT( slotCancelled() ) );
m_progressDlg->setLabelText( i18n("Creating thumbnails") ); m_progressDlg->setLabelText( i18n("Creating thumbnails") );
m_progressDlg->setCancelButton(new KPushButton(KStdGuiItem::cancel(),m_progressDlg)); m_progressDlg->setCancelButton(new KPushButton(KStdGuiItem::cancel(),m_progressDlg));

@ -47,11 +47,11 @@ KCMKuick::KCMKuick(TQWidget *parent, const char *name, const TQStringList &)
topLayout->add(dialog); topLayout->add(dialog);
topLayout->addStretch(); topLayout->addStretch();
connect( dialog->m_sbCopy, TQT_SIGNAL(valueChanged(int) ), TQT_SLOT(configChanged() ) ); connect( dialog->m_sbCopy, TQ_SIGNAL(valueChanged(int) ), TQ_SLOT(configChanged() ) );
connect( dialog->m_sbMove, TQT_SIGNAL(valueChanged(int) ), TQT_SLOT(configChanged() ) ); connect( dialog->m_sbMove, TQ_SIGNAL(valueChanged(int) ), TQ_SLOT(configChanged() ) );
connect( dialog->pbCopyClear, TQT_SIGNAL(pressed() ), TQT_SLOT(slotClearCopyCache() ) ); connect( dialog->pbCopyClear, TQ_SIGNAL(pressed() ), TQ_SLOT(slotClearCopyCache() ) );
connect( dialog->pbMoveClear, TQT_SIGNAL(pressed() ), TQT_SLOT(slotClearMoveCache() ) ); connect( dialog->pbMoveClear, TQ_SIGNAL(pressed() ), TQ_SLOT(slotClearMoveCache() ) );
connect( dialog->m_chkShow, TQT_SIGNAL(clicked() ), TQT_SLOT(slotShowToggled() ) ); connect( dialog->m_chkShow, TQ_SIGNAL(clicked() ), TQ_SLOT(slotShowToggled() ) );
load(); load();
} }

@ -44,13 +44,13 @@ KDirMenu::KDirMenu ( TQWidget *parent, const KURL &_src,
{ {
children.setAutoDelete( true ); children.setAutoDelete( true );
initIconMap( ); initIconMap( );
connect( this, TQT_SIGNAL( aboutToShow( ) ), this, TQT_SLOT( slotAboutToShow( ) ) ); connect( this, TQ_SIGNAL( aboutToShow( ) ), this, TQ_SLOT( slotAboutToShow( ) ) );
connect( this, TQT_SIGNAL( aboutToHide( ) ), this, TQT_SLOT( slotAboutToHide( ) ) ); connect( this, TQ_SIGNAL( aboutToHide( ) ), this, TQ_SLOT( slotAboutToHide( ) ) );
children.clear(); // just in case children.clear(); // just in case
TQFileInfo fileInfo(path); TQFileInfo fileInfo(path);
if (( src.path() != path || !src.isLocalFile()) && fileInfo.isWritable()) if (( src.path() != path || !src.isLocalFile()) && fileInfo.isWritable())
action = new TDEAction(name, 0, this, TQT_SLOT(new_slot( ) ), this); action = new TDEAction(name, 0, this, TQ_SLOT(new_slot( ) ), this);
} }
KDirMenu::~KDirMenu( ) { KDirMenu::~KDirMenu( ) {
delete action; delete action;
@ -81,8 +81,8 @@ void KDirMenu::insert( KDirMenu *submenu, const TQString &_path ) {
else else
insertItem( folder, escapedPath.replace( "&", "&&" ), submenu ); insertItem( folder, escapedPath.replace( "&", "&&" ), submenu );
children.append( submenu ); children.append( submenu );
connect(submenu, TQT_SIGNAL(fileChosen(const TQString &)), connect(submenu, TQ_SIGNAL(fileChosen(const TQString &)),
this, TQT_SLOT(slotFileSelected(const TQString &))); this, TQ_SLOT(slotFileSelected(const TQString &)));
} }
void KDirMenu::slotAboutToShow( ) { void KDirMenu::slotAboutToShow( ) {

@ -40,8 +40,8 @@ KIMContactMenu::KIMContactMenu( TQWidget *parent, KIMProxy *proxy )
#ifdef KIMCONTACTS_USE_KABC #ifdef KIMCONTACTS_USE_KABC
m_addressBook = TDEABC::StdAddressBook::self( false ); m_addressBook = TDEABC::StdAddressBook::self( false );
#endif #endif
connect( this, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotItemActivated( int ) ) ); connect( this, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotItemActivated( int ) ) );
connect( this, TQT_SIGNAL( aboutToShow( ) ), this, TQT_SLOT( slotAboutToShow( ) ) ); connect( this, TQ_SIGNAL( aboutToShow( ) ), this, TQ_SLOT( slotAboutToShow( ) ) );
} }
KIMContactMenu::~KIMContactMenu() KIMContactMenu::~KIMContactMenu()

@ -55,8 +55,8 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
insertItem( SmallIcon( "kfm_home" ), i18n("&Home Folder"), m_home); insertItem( SmallIcon( "kfm_home" ), i18n("&Home Folder"), m_home);
dirList << u.path(); dirList << u.path();
connect(m_home, TQT_SIGNAL(fileChosen(const TQString &)), connect(m_home, TQ_SIGNAL(fileChosen(const TQString &)),
TQT_SLOT(slotFileChosen(const TQString &) ) ); TQ_SLOT(slotFileChosen(const TQString &) ) );
} }
u.setPath(TQDir::rootDirPath()); u.setPath(TQDir::rootDirPath());
@ -66,8 +66,8 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
insertItem( SmallIcon( "folder_red" ), i18n("&Root Folder"), m_root); insertItem( SmallIcon( "folder_red" ), i18n("&Root Folder"), m_root);
dirList << u.path(); dirList << u.path();
connect(m_root, TQT_SIGNAL(fileChosen(const TQString &)), connect(m_root, TQ_SIGNAL(fileChosen(const TQString &)),
TQT_SLOT(slotFileChosen(const TQString &) ) ); TQ_SLOT(slotFileChosen(const TQString &) ) );
} }
TQString confDir = TQDir::rootDirPath()+ "etc"; TQString confDir = TQDir::rootDirPath()+ "etc";
@ -80,8 +80,8 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
i18n("&System Configuration"), m_etc); i18n("&System Configuration"), m_etc);
dirList << confDir; dirList << confDir;
connect(m_etc , TQT_SIGNAL(fileChosen(const TQString &)), connect(m_etc , TQ_SIGNAL(fileChosen(const TQString &)),
TQT_SLOT(slotFileChosen(const TQString &) ) ); TQ_SLOT(slotFileChosen(const TQString &) ) );
} }
if ( url.isLocalFile() if ( url.isLocalFile()
@ -97,21 +97,21 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
insertItem( SmallIcon( "folder" ), i18n( "&Current Folder" ), insertItem( SmallIcon( "folder" ), i18n( "&Current Folder" ),
m_current ); m_current );
connect(m_current, TQT_SIGNAL(fileChosen(const TQString &)), connect(m_current, TQ_SIGNAL(fileChosen(const TQString &)),
TQT_SLOT(slotFileChosen(const TQString &) ) ); TQ_SLOT(slotFileChosen(const TQString &) ) );
} }
if ( imProxy ) if ( imProxy )
{ {
m_contacts = new KIMContactMenu( parent, imProxy ); m_contacts = new KIMContactMenu( parent, imProxy );
int item = insertItem( SmallIconSet( "preferences-desktop-personal" ), i18n( "C&ontact" ), m_contacts ); int item = insertItem( SmallIconSet( "preferences-desktop-personal" ), i18n( "C&ontact" ), m_contacts );
connect ( m_contacts, TQT_SIGNAL( contactChosen( const TQString &) ), TQT_SIGNAL( contactChosen( const TQString & ) ) ); connect ( m_contacts, TQ_SIGNAL( contactChosen( const TQString &) ), TQ_SIGNAL( contactChosen( const TQString & ) ) );
if ( !imProxy->initialize() || imProxy->fileTransferContacts().isEmpty() ) if ( !imProxy->initialize() || imProxy->fileTransferContacts().isEmpty() )
setItemEnabled( item, false ); setItemEnabled( item, false );
} }
m_browse = new TDEAction(i18n("&Browse..."), 0, this, TQT_SLOT(slotBrowse()), this ); m_browse = new TDEAction(i18n("&Browse..."), 0, this, TQ_SLOT(slotBrowse()), this );
m_browse->plug(this); m_browse->plug(this);
// read the last chosen dirs // read the last chosen dirs
// first set the group according to our parameter // first set the group according to our parameter
@ -133,7 +133,7 @@ KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
continue; continue;
} }
TQString escapedDir = *it; TQString escapedDir = *it;
TDEAction *action = new TDEAction(escapedDir.replace("&", "&&"), 0, this, TQT_SLOT(slotFastPath()), this); TDEAction *action = new TDEAction(escapedDir.replace("&", "&&"), 0, this, TQ_SLOT(slotFastPath()), this);
action->plug(this ); action->plug(this );
actions.append( action ); actions.append( action );
++it; ++it;

@ -42,11 +42,11 @@ KTestMenu::KTestMenu( KonqPopupMenu *popupmenu, const char *name, const TQString
popup= popupmenu ; popup= popupmenu ;
meta_copy_mmu = 0L; meta_copy_mmu = 0L;
meta_move_mmu = 0L; meta_move_mmu = 0L;
my_action = new TDEAction( "kuick_plugin", 0, this, TQT_SLOT( slotPopupMaeh( ) ), actionCollection( ), "Do some funky stuff" ); my_action = new TDEAction( "kuick_plugin", 0, this, TQ_SLOT( slotPopupMaeh( ) ), actionCollection( ), "Do some funky stuff" );
addAction( my_action ); addAction( my_action );
addSeparator(); addSeparator();
//popupmenu->addMerge(); //popupmenu->addMerge();
connect( popup, TQT_SIGNAL(aboutToShow() ), this, TQT_SLOT(slotPrepareMenu( ) ) ); connect( popup, TQ_SIGNAL(aboutToShow() ), this, TQ_SLOT(slotPrepareMenu( ) ) );
m_imProxy = KIMProxy::instance( kapp->dcopClient() ); m_imProxy = KIMProxy::instance( kapp->dcopClient() );
} }
KTestMenu::~KTestMenu( ){ KTestMenu::~KTestMenu( ){
@ -95,18 +95,18 @@ void KTestMenu::slotPrepareMenu( ) { // now it's time to set up the menu...
meta_copy_mmu = new KMetaMenu(popup, popup->url(), meta_copy_mmu = new KMetaMenu(popup, popup->url(),
i18n("&Copy Here") , "kuick-copy", m_imProxy ); i18n("&Copy Here") , "kuick-copy", m_imProxy );
popup->insertItem(i18n("Copy To"), meta_copy_mmu, -1, i ); popup->insertItem(i18n("Copy To"), meta_copy_mmu, -1, i );
connect( meta_copy_mmu, TQT_SIGNAL(fileChosen(const TQString &) ), connect( meta_copy_mmu, TQ_SIGNAL(fileChosen(const TQString &) ),
TQT_SLOT(slotStartCopyJob(const TQString & )) ); TQ_SLOT(slotStartCopyJob(const TQString & )) );
connect( meta_copy_mmu, TQT_SIGNAL( contactChosen( const TQString & ) ), connect( meta_copy_mmu, TQ_SIGNAL( contactChosen( const TQString & ) ),
TQT_SLOT( slotFileTransfer( const TQString & )) ); TQ_SLOT( slotFileTransfer( const TQString & )) );
if( popup->protocolInfo().supportsMoving() ){ if( popup->protocolInfo().supportsMoving() ){
meta_move_mmu = new KMetaMenu(popup, popup->url(), meta_move_mmu = new KMetaMenu(popup, popup->url(),
i18n("&Move Here"), "kuick-move"); i18n("&Move Here"), "kuick-move");
popup->insertItem(i18n("Move To"), meta_move_mmu, -1, i+1 ); popup->insertItem(i18n("Move To"), meta_move_mmu, -1, i+1 );
connect( meta_move_mmu, TQT_SIGNAL(fileChosen(const TQString &) ), connect( meta_move_mmu, TQ_SIGNAL(fileChosen(const TQString &) ),
TQT_SLOT(slotStartMoveJob(const TQString & )) ); TQ_SLOT(slotStartMoveJob(const TQString & )) );
} }
break; break;
} }

@ -50,14 +50,14 @@ KonqMFIcon::KonqMFIcon(TQObject *parent, const char *name, const TQStringList &)
kdDebug() << "couldn't get part" << endl; kdDebug() << "couldn't get part" << endl;
return; return;
} }
TQTimer::singleShot(0, this, TQT_SLOT(waitPartToLoad())); TQTimer::singleShot(0, this, TQ_SLOT(waitPartToLoad()));
} }
void KonqMFIcon::waitPartToLoad() { void KonqMFIcon::waitPartToLoad() {
connect(m_part, TQT_SIGNAL(completed()), this, TQT_SLOT(addMFIcon())); connect(m_part, TQ_SIGNAL(completed()), this, TQ_SLOT(addMFIcon()));
connect(m_part, TQT_SIGNAL(completed(bool)), this, TQT_SLOT(addMFIcon())); // to make pages with metarefresh to work connect(m_part, TQ_SIGNAL(completed(bool)), this, TQ_SLOT(addMFIcon())); // to make pages with metarefresh to work
connect(m_part, TQT_SIGNAL(started(TDEIO::Job *)), this, TQT_SLOT(removeMFIcon())); connect(m_part, TQ_SIGNAL(started(TDEIO::Job *)), this, TQ_SLOT(removeMFIcon()));
} }
@ -247,7 +247,7 @@ void KonqMFIcon::contextMenu() {
delete m_menu; delete m_menu;
m_menu = new TDEPopupMenu(m_part->widget()); m_menu = new TDEPopupMenu(m_part->widget());
m_menu->insertTitle(i18n("Microformats")); m_menu->insertTitle(i18n("Microformats"));
connect(m_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addMF(int))); connect(m_menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(addMF(int)));
int id = 0; int id = 0;
for (TQValueList<TQPair<TQString, TQString> >::ConstIterator it = _events.begin(); it != _events.end(); ++it) { for (TQValueList<TQPair<TQString, TQString> >::ConstIterator it = _events.begin(); it != _events.end(); ++it) {
m_menu->insertItem(SmallIcon("bookmark_add"), (*it).first, id); m_menu->insertItem(SmallIcon("bookmark_add"), (*it).first, id);
@ -258,7 +258,7 @@ void KonqMFIcon::contextMenu() {
id++; id++;
} }
m_menu->insertSeparator(); m_menu->insertSeparator();
m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Import All Microformats"), this, TQT_SLOT(addMFs()), 0, 50000 ); m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Import All Microformats"), this, TQ_SLOT(addMFs()), 0, 50000 );
m_menu->popup(TQCursor::pos()); m_menu->popup(TQCursor::pos());
} }
@ -285,7 +285,7 @@ void KonqMFIcon::addMFIcon() {
m_statusBarEx->addStatusBarItem(m_mfIcon, 0, true); m_statusBarEx->addStatusBarItem(m_mfIcon, 0, true);
connect(m_mfIcon, TQT_SIGNAL(leftClickedURL()), this, TQT_SLOT(contextMenu())); connect(m_mfIcon, TQ_SIGNAL(leftClickedURL()), this, TQ_SLOT(contextMenu()));
} }

@ -51,8 +51,8 @@ MinitoolsPlugin::MinitoolsPlugin(TQObject* parent, const char* name, const TQStr
m_pMinitoolsMenu->setDelayed(false); m_pMinitoolsMenu->setDelayed(false);
m_pMinitoolsMenu->setEnabled(true); m_pMinitoolsMenu->setEnabled(true);
connect(m_pMinitoolsMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), connect(m_pMinitoolsMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ),
this, TQT_SLOT( slotAboutToShow() )); this, TQ_SLOT( slotAboutToShow() ));
} }
MinitoolsPlugin::~MinitoolsPlugin() { MinitoolsPlugin::~MinitoolsPlugin() {
@ -63,10 +63,10 @@ void MinitoolsPlugin::slotAboutToShow() {
m_minitoolsList.clear(); m_minitoolsList.clear();
KXBELBookmarkImporterImpl importer; KXBELBookmarkImporterImpl importer;
connect(&importer, TQT_SIGNAL( newBookmark( const TQString &, const TQCString &, const TQString &) ), connect(&importer, TQ_SIGNAL( newBookmark( const TQString &, const TQCString &, const TQString &) ),
TQT_SLOT( newBookmarkCallback( const TQString &, const TQCString &, const TQString & ) )); TQ_SLOT( newBookmarkCallback( const TQString &, const TQCString &, const TQString & ) ));
connect(&importer, TQT_SIGNAL( endFolder() ), connect(&importer, TQ_SIGNAL( endFolder() ),
TQT_SLOT( endFolderCallback() )); TQ_SLOT( endFolderCallback() ));
TQString filename = minitoolsFilename(true); TQString filename = minitoolsFilename(true);
if (!filename.isEmpty() && TQFile::exists(filename)) { if (!filename.isEmpty() && TQFile::exists(filename)) {
importer.setFilename(filename); importer.setFilename(filename);
@ -102,7 +102,7 @@ void MinitoolsPlugin::slotAboutToShow() {
} }
m_pMinitoolsMenu->popupMenu()->insertItem( m_pMinitoolsMenu->popupMenu()->insertItem(
str, this, str, this,
TQT_SLOT(slotItemSelected(int)), TQ_SLOT(slotItemSelected(int)),
0, ++count ); 0, ++count );
gotSep = false; gotSep = false;
} }
@ -116,7 +116,7 @@ void MinitoolsPlugin::slotAboutToShow() {
m_pMinitoolsMenu->popupMenu() m_pMinitoolsMenu->popupMenu()
->insertItem(i18n("&Edit Minitools"), ->insertItem(i18n("&Edit Minitools"),
this, TQT_SLOT(slotEditBookmarks()), this, TQ_SLOT(slotEditBookmarks()),
0, ++count ); 0, ++count );
} }
@ -147,10 +147,10 @@ void MinitoolsPlugin::slotItemSelected(int id) {
return; return;
TQString tmp = m_minitoolsList[id-1].second; TQString tmp = m_minitoolsList[id-1].second;
TQString script = KURL::decode_string(tmp.right(tmp.length() - 11)); // sizeof("javascript:") TQString script = KURL::decode_string(tmp.right(tmp.length() - 11)); // sizeof("javascript:")
connect(this, TQT_SIGNAL( executeScript(const TQString &) ), connect(this, TQ_SIGNAL( executeScript(const TQString &) ),
m_part, TQT_SLOT( executeScript(const TQString &) )); m_part, TQ_SLOT( executeScript(const TQString &) ));
emit executeScript(script); emit executeScript(script);
disconnect(this, TQT_SIGNAL( executeScript(const TQString &) ), 0, 0); disconnect(this, TQ_SIGNAL( executeScript(const TQString &) ), 0, 0);
} }
#include "minitoolsplugin.moc" #include "minitoolsplugin.moc"

@ -70,28 +70,28 @@ RelLinksPlugin::RelLinksPlugin(TQObject *parent, const char *name, const TQStrin
setInstance(RelLinksFactory::instance()); setInstance(RelLinksFactory::instance());
// ------------- Navigation links -------------- // ------------- Navigation links --------------
tdeaction_map["home"] = new TDEAction( i18n("&Top"), "2uparrow", TDEShortcut("Ctrl+Alt+T"), this, TQT_SLOT(goHome()), actionCollection(), "rellinks_top" ); tdeaction_map["home"] = new TDEAction( i18n("&Top"), "2uparrow", TDEShortcut("Ctrl+Alt+T"), this, TQ_SLOT(goHome()), actionCollection(), "rellinks_top" );
tdeaction_map["home"]->setWhatsThis( i18n("<p>This link references a home page or the top of some hierarchy.</p>") ); tdeaction_map["home"]->setWhatsThis( i18n("<p>This link references a home page or the top of some hierarchy.</p>") );
tdeaction_map["up"] = new TDEAction( i18n("&Up"), "1uparrow", TDEShortcut("Ctrl+Alt+U"), this, TQT_SLOT(goUp()), actionCollection(), "rellinks_up" ); tdeaction_map["up"] = new TDEAction( i18n("&Up"), "1uparrow", TDEShortcut("Ctrl+Alt+U"), this, TQ_SLOT(goUp()), actionCollection(), "rellinks_up" );
tdeaction_map["up"]->setWhatsThis( i18n("<p>This link references the immediate parent of the current document.</p>") ); tdeaction_map["up"]->setWhatsThis( i18n("<p>This link references the immediate parent of the current document.</p>") );
bool isRTL = TQApplication::reverseLayout(); bool isRTL = TQApplication::reverseLayout();
tdeaction_map["begin"] = new TDEAction( i18n("&First"), isRTL ? "2rightarrow" : "2leftarrow", TDEShortcut("Ctrl+Alt+F"), this, TQT_SLOT(goFirst()), actionCollection(), "rellinks_first" ); tdeaction_map["begin"] = new TDEAction( i18n("&First"), isRTL ? "2rightarrow" : "2leftarrow", TDEShortcut("Ctrl+Alt+F"), this, TQ_SLOT(goFirst()), actionCollection(), "rellinks_first" );
tdeaction_map["begin"]->setWhatsThis( i18n("<p>This link type tells search engines which document is considered by the author to be the starting point of the collection.</p>") ); tdeaction_map["begin"]->setWhatsThis( i18n("<p>This link type tells search engines which document is considered by the author to be the starting point of the collection.</p>") );
tdeaction_map["prev"] = new TDEAction( i18n("&Previous"), isRTL ? "1rightarrow" : "1leftarrow", TDEShortcut("Ctrl+Alt+P"), this, TQT_SLOT(goPrevious()), actionCollection(), "rellinks_previous" ); tdeaction_map["prev"] = new TDEAction( i18n("&Previous"), isRTL ? "1rightarrow" : "1leftarrow", TDEShortcut("Ctrl+Alt+P"), this, TQ_SLOT(goPrevious()), actionCollection(), "rellinks_previous" );
tdeaction_map["prev"]->setWhatsThis( i18n("<p>This link references the previous document in an ordered series of documents.</p>") ); tdeaction_map["prev"]->setWhatsThis( i18n("<p>This link references the previous document in an ordered series of documents.</p>") );
tdeaction_map["next"] = new TDEAction( i18n("&Next"), isRTL ? "1leftarrow" : "1rightarrow", TDEShortcut("Ctrl+Alt+N"), this, TQT_SLOT(goNext()), actionCollection(), "rellinks_next" ); tdeaction_map["next"] = new TDEAction( i18n("&Next"), isRTL ? "1leftarrow" : "1rightarrow", TDEShortcut("Ctrl+Alt+N"), this, TQ_SLOT(goNext()), actionCollection(), "rellinks_next" );
tdeaction_map["next"]->setWhatsThis( i18n("<p>This link references the next document in an ordered series of documents.</p>") ); tdeaction_map["next"]->setWhatsThis( i18n("<p>This link references the next document in an ordered series of documents.</p>") );
tdeaction_map["last"] = new TDEAction( i18n("&Last"), isRTL ? "2leftarrow" : "2rightarrow", TDEShortcut("Ctrl+Alt+L"), this, TQT_SLOT(goLast()), actionCollection(), "rellinks_last" ); tdeaction_map["last"] = new TDEAction( i18n("&Last"), isRTL ? "2leftarrow" : "2rightarrow", TDEShortcut("Ctrl+Alt+L"), this, TQ_SLOT(goLast()), actionCollection(), "rellinks_last" );
tdeaction_map["last"]->setWhatsThis( i18n("<p>This link references the end of a sequence of documents.</p>") ); tdeaction_map["last"]->setWhatsThis( i18n("<p>This link references the end of a sequence of documents.</p>") );
// ------------ special items -------------------------- // ------------ special items --------------------------
tdeaction_map["search"] = new TDEAction( i18n("&Search"), "filefind", TDEShortcut("Ctrl+Alt+S"), this, TQT_SLOT(goSearch()), actionCollection(), "rellinks_search" ); tdeaction_map["search"] = new TDEAction( i18n("&Search"), "filefind", TDEShortcut("Ctrl+Alt+S"), this, TQ_SLOT(goSearch()), actionCollection(), "rellinks_search" );
tdeaction_map["search"]->setWhatsThis( i18n("<p>This link references the search.</p>") ); tdeaction_map["search"]->setWhatsThis( i18n("<p>This link references the search.</p>") );
// ------------ Document structure links --------------- // ------------ Document structure links ---------------
@ -99,39 +99,39 @@ RelLinksPlugin::RelLinksPlugin(TQObject *parent, const char *name, const TQStrin
m_document->setWhatsThis( i18n("<p>This menu contains the links referring the document information.</p>") ); m_document->setWhatsThis( i18n("<p>This menu contains the links referring the document information.</p>") );
m_document->setDelayed(false); m_document->setDelayed(false);
tdeaction_map["contents"] = new TDEAction( i18n("Table of &Contents"), "contents", TDEShortcut("Ctrl+Alt+C"), this, TQT_SLOT(goContents()), actionCollection(), "rellinks_toc" ); tdeaction_map["contents"] = new TDEAction( i18n("Table of &Contents"), "contents", TDEShortcut("Ctrl+Alt+C"), this, TQ_SLOT(goContents()), actionCollection(), "rellinks_toc" );
m_document->insert(tdeaction_map["contents"]); m_document->insert(tdeaction_map["contents"]);
tdeaction_map["contents"]->setWhatsThis( i18n("<p>This link references the table of contents.</p>") ); tdeaction_map["contents"]->setWhatsThis( i18n("<p>This link references the table of contents.</p>") );
tdeactionmenu_map["chapter"] = new TDEActionMenu( i18n("Chapters"), "document-open", actionCollection(), "rellinks_chapters" ); tdeactionmenu_map["chapter"] = new TDEActionMenu( i18n("Chapters"), "document-open", actionCollection(), "rellinks_chapters" );
m_document->insert(tdeactionmenu_map["chapter"]); m_document->insert(tdeactionmenu_map["chapter"]);
connect( tdeactionmenu_map["chapter"]->popupMenu(), TQT_SIGNAL( activated( int ) ), this, TQT_SLOT(goChapter(int))); connect( tdeactionmenu_map["chapter"]->popupMenu(), TQ_SIGNAL( activated( int ) ), this, TQ_SLOT(goChapter(int)));
tdeactionmenu_map["chapter"]->setWhatsThis( i18n("<p>This menu references the chapters of the document.</p>") ); tdeactionmenu_map["chapter"]->setWhatsThis( i18n("<p>This menu references the chapters of the document.</p>") );
tdeactionmenu_map["chapter"]->setDelayed(false); tdeactionmenu_map["chapter"]->setDelayed(false);
tdeactionmenu_map["section"] = new TDEActionMenu( i18n("Sections"), "document-open", actionCollection(), "rellinks_sections" ); tdeactionmenu_map["section"] = new TDEActionMenu( i18n("Sections"), "document-open", actionCollection(), "rellinks_sections" );
m_document->insert(tdeactionmenu_map["section"]); m_document->insert(tdeactionmenu_map["section"]);
connect( tdeactionmenu_map["section"]->popupMenu(), TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( goSection( int ) ) ); connect( tdeactionmenu_map["section"]->popupMenu(), TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( goSection( int ) ) );
tdeactionmenu_map["section"]->setWhatsThis( i18n("<p>This menu references the sections of the document.</p>") ); tdeactionmenu_map["section"]->setWhatsThis( i18n("<p>This menu references the sections of the document.</p>") );
tdeactionmenu_map["section"]->setDelayed(false); tdeactionmenu_map["section"]->setDelayed(false);
tdeactionmenu_map["subsection"] = new TDEActionMenu( i18n("Subsections"), "document-open", actionCollection(), "rellinks_subsections" ); tdeactionmenu_map["subsection"] = new TDEActionMenu( i18n("Subsections"), "document-open", actionCollection(), "rellinks_subsections" );
m_document->insert(tdeactionmenu_map["subsection"]); m_document->insert(tdeactionmenu_map["subsection"]);
connect( tdeactionmenu_map["subsection"]->popupMenu(), TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( goSubsection( int ) ) ); connect( tdeactionmenu_map["subsection"]->popupMenu(), TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( goSubsection( int ) ) );
tdeactionmenu_map["subsection"]->setWhatsThis( i18n("<p>This menu references the subsections of the document.</p>") ); tdeactionmenu_map["subsection"]->setWhatsThis( i18n("<p>This menu references the subsections of the document.</p>") );
tdeactionmenu_map["subsection"]->setDelayed(false); tdeactionmenu_map["subsection"]->setDelayed(false);
tdeactionmenu_map["appendix"] = new TDEActionMenu( i18n("Appendix"), "edit", actionCollection(), "rellinks_appendix" ); tdeactionmenu_map["appendix"] = new TDEActionMenu( i18n("Appendix"), "edit", actionCollection(), "rellinks_appendix" );
m_document->insert(tdeactionmenu_map["appendix"]); m_document->insert(tdeactionmenu_map["appendix"]);
connect( tdeactionmenu_map["appendix"]->popupMenu(), TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( goAppendix( int ) ) ); connect( tdeactionmenu_map["appendix"]->popupMenu(), TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( goAppendix( int ) ) );
tdeactionmenu_map["appendix"]->setWhatsThis( i18n("<p>This link references the appendix.</p>") ); tdeactionmenu_map["appendix"]->setWhatsThis( i18n("<p>This link references the appendix.</p>") );
tdeactionmenu_map["appendix"]->setDelayed(false); tdeactionmenu_map["appendix"]->setDelayed(false);
tdeaction_map["glossary"] = new TDEAction( i18n("&Glossary"), "flag", TDEShortcut("Ctrl+Alt+G"), this, TQT_SLOT(goGlossary()), actionCollection(), "rellinks_glossary" ); tdeaction_map["glossary"] = new TDEAction( i18n("&Glossary"), "flag", TDEShortcut("Ctrl+Alt+G"), this, TQ_SLOT(goGlossary()), actionCollection(), "rellinks_glossary" );
m_document->insert(tdeaction_map["glossary"]); m_document->insert(tdeaction_map["glossary"]);
tdeaction_map["glossary"]->setWhatsThis( i18n("<p>This link references the glossary.</p>") ); tdeaction_map["glossary"]->setWhatsThis( i18n("<p>This link references the glossary.</p>") );
tdeaction_map["index"] = new TDEAction( i18n("&Index"), "application-vnd.tde.info", TDEShortcut("Ctrl+Alt+I"), this, TQT_SLOT(goIndex()), actionCollection(), "rellinks_index" ); tdeaction_map["index"] = new TDEAction( i18n("&Index"), "application-vnd.tde.info", TDEShortcut("Ctrl+Alt+I"), this, TQ_SLOT(goIndex()), actionCollection(), "rellinks_index" );
m_document->insert(tdeaction_map["index"]); m_document->insert(tdeaction_map["index"]);
tdeaction_map["index"]->setWhatsThis( i18n("<p>This link references the index.</p>") ); tdeaction_map["index"]->setWhatsThis( i18n("<p>This link references the index.</p>") );
@ -140,35 +140,35 @@ RelLinksPlugin::RelLinksPlugin(TQObject *parent, const char *name, const TQStrin
m_more->setWhatsThis( i18n("<p>This menu contains other important links.</p>") ); m_more->setWhatsThis( i18n("<p>This menu contains other important links.</p>") );
m_more->setDelayed(false); m_more->setDelayed(false);
tdeaction_map["help"] = new TDEAction( i18n("&Help"), "help", TDEShortcut("Ctrl+Alt+H"), this, TQT_SLOT(goHelp()), actionCollection(), "rellinks_help" ); tdeaction_map["help"] = new TDEAction( i18n("&Help"), "help", TDEShortcut("Ctrl+Alt+H"), this, TQ_SLOT(goHelp()), actionCollection(), "rellinks_help" );
m_more->insert(tdeaction_map["help"]); m_more->insert(tdeaction_map["help"]);
tdeaction_map["help"]->setWhatsThis( i18n("<p>This link references the help.</p>") ); tdeaction_map["help"]->setWhatsThis( i18n("<p>This link references the help.</p>") );
tdeaction_map["author"] = new TDEAction( i18n("&Authors"), "mail-message-new", TDEShortcut("Ctrl+Alt+A"), this, TQT_SLOT(goAuthor()), actionCollection(), "rellinks_authors" ); tdeaction_map["author"] = new TDEAction( i18n("&Authors"), "mail-message-new", TDEShortcut("Ctrl+Alt+A"), this, TQ_SLOT(goAuthor()), actionCollection(), "rellinks_authors" );
m_more->insert(tdeaction_map["author"]); m_more->insert(tdeaction_map["author"]);
tdeaction_map["author"]->setWhatsThis( i18n("<p>This link references the author.</p>") ); tdeaction_map["author"]->setWhatsThis( i18n("<p>This link references the author.</p>") );
tdeaction_map["copyright"] = new TDEAction( i18n("Copy&right"), "signature", TDEShortcut("Ctrl+Alt+R"), this, TQT_SLOT(goCopyright()), actionCollection(), "rellinks_copyright" ); tdeaction_map["copyright"] = new TDEAction( i18n("Copy&right"), "signature", TDEShortcut("Ctrl+Alt+R"), this, TQ_SLOT(goCopyright()), actionCollection(), "rellinks_copyright" );
m_more->insert(tdeaction_map["copyright"]); m_more->insert(tdeaction_map["copyright"]);
tdeaction_map["copyright"]->setWhatsThis( i18n("<p>This link references the copyright.</p>") ); tdeaction_map["copyright"]->setWhatsThis( i18n("<p>This link references the copyright.</p>") );
tdeactionmenu_map["bookmark"] = new TDEActionMenu( i18n("Bookmarks"), "bookmark_folder", actionCollection(), "rellinks_bookmarks" ); tdeactionmenu_map["bookmark"] = new TDEActionMenu( i18n("Bookmarks"), "bookmark_folder", actionCollection(), "rellinks_bookmarks" );
m_more->insert(tdeactionmenu_map["bookmark"]); m_more->insert(tdeactionmenu_map["bookmark"]);
tdeactionmenu_map["bookmark"]->setWhatsThis( i18n("<p>This menu references the bookmarks.</p>") ); tdeactionmenu_map["bookmark"]->setWhatsThis( i18n("<p>This menu references the bookmarks.</p>") );
connect( tdeactionmenu_map["bookmark"]->popupMenu(), TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( goBookmark( int ) ) ); connect( tdeactionmenu_map["bookmark"]->popupMenu(), TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( goBookmark( int ) ) );
tdeactionmenu_map["bookmark"]->setDelayed(false); tdeactionmenu_map["bookmark"]->setDelayed(false);
tdeactionmenu_map["alternate"] = new TDEActionMenu( i18n("Other Versions"), "attach", actionCollection(), "rellinks_other_versions" ); tdeactionmenu_map["alternate"] = new TDEActionMenu( i18n("Other Versions"), "attach", actionCollection(), "rellinks_other_versions" );
m_more->insert(tdeactionmenu_map["alternate"]); m_more->insert(tdeactionmenu_map["alternate"]);
tdeactionmenu_map["alternate"]->setWhatsThis( i18n("<p>This link references the alternate versions of this document.</p>") ); tdeactionmenu_map["alternate"]->setWhatsThis( i18n("<p>This link references the alternate versions of this document.</p>") );
connect( tdeactionmenu_map["alternate"]->popupMenu(), TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( goAlternate( int ) ) ); connect( tdeactionmenu_map["alternate"]->popupMenu(), TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( goAlternate( int ) ) );
tdeactionmenu_map["alternate"]->setDelayed(false); tdeactionmenu_map["alternate"]->setDelayed(false);
// Unclassified menu // Unclassified menu
m_links = new TDEActionMenu( i18n("Miscellaneous"), "rellinks", actionCollection(), "rellinks_links" ); m_links = new TDEActionMenu( i18n("Miscellaneous"), "rellinks", actionCollection(), "rellinks_links" );
tdeactionmenu_map["unclassified"] = m_links; tdeactionmenu_map["unclassified"] = m_links;
tdeactionmenu_map["unclassified"]->setWhatsThis( i18n("<p>Miscellaneous links.</p>") ); tdeactionmenu_map["unclassified"]->setWhatsThis( i18n("<p>Miscellaneous links.</p>") );
connect( tdeactionmenu_map["unclassified"]->popupMenu(), TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( goAllElements( int ) ) ); connect( tdeactionmenu_map["unclassified"]->popupMenu(), TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( goAllElements( int ) ) );
tdeactionmenu_map["unclassified"]->setDelayed(false); tdeactionmenu_map["unclassified"]->setDelayed(false);
// We unactivate all the possible actions // We unactivate all the possible actions
@ -179,15 +179,15 @@ RelLinksPlugin::RelLinksPlugin(TQObject *parent, const char *name, const TQStrin
if (!m_part) if (!m_part)
return; return;
connect( m_part, TQT_SIGNAL( docCreated() ), this, TQT_SLOT( newDocument() ) ); connect( m_part, TQ_SIGNAL( docCreated() ), this, TQ_SLOT( newDocument() ) );
connect( m_part, TQT_SIGNAL( completed() ), this, TQT_SLOT( loadingFinished() ) ); connect( m_part, TQ_SIGNAL( completed() ), this, TQ_SLOT( loadingFinished() ) );
// create polling timer and connect it // create polling timer and connect it
m_pollTimer = new TQTimer(this, "polling timer"); m_pollTimer = new TQTimer(this, "polling timer");
connect( m_pollTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( updateToolbar() ) ); connect( m_pollTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( updateToolbar() ) );
// delay access to our part's members until it has finished its initialisation // delay access to our part's members until it has finished its initialisation
TQTimer::singleShot(0, this, TQT_SLOT(delayedSetup())); TQTimer::singleShot(0, this, TQ_SLOT(delayedSetup()));
} }
/** Destructor */ /** Destructor */

@ -88,13 +88,13 @@ RsyncPlugin::RsyncPlugin (TQObject* parent, const char* name,
m_rSync = new KRsync(parent, name); m_rSync = new KRsync(parent, name);
connect (m_part, TQT_SIGNAL(aboutToOpenURL()), TQT_SLOT(slotOpenURL())); connect (m_part, TQ_SIGNAL(aboutToOpenURL()), TQ_SLOT(slotOpenURL()));
connect(m_pSyncNow, TQT_SIGNAL(activated()), this, TQT_SLOT(slotSync())); connect(m_pSyncNow, TQ_SIGNAL(activated()), this, TQ_SLOT(slotSync()));
connect(m_pSyncSetup, TQT_SIGNAL(activated()), this, TQT_SLOT(slotSetup())); connect(m_pSyncSetup, TQ_SIGNAL(activated()), this, TQ_SLOT(slotSetup()));
connect(m_rSync, TQT_SIGNAL(setupDone()), this, TQT_SLOT(slotSetupDone())); connect(m_rSync, TQ_SIGNAL(setupDone()), this, TQ_SLOT(slotSetupDone()));
connect(m_rSync, TQT_SIGNAL(transferDone()), this, TQT_SLOT(slotTransferDone())); connect(m_rSync, TQ_SIGNAL(transferDone()), this, TQ_SLOT(slotTransferDone()));
m_rSync->loadSettings(); m_rSync->loadSettings();
} }

@ -81,15 +81,15 @@ SearchBarPlugin::SearchBarPlugin(TQObject *parent, const char *name,
0, 0, actionCollection(), "toolbar_search_bar"); 0, 0, actionCollection(), "toolbar_search_bar");
m_searchComboAction->setShortcutConfigurable(false); m_searchComboAction->setShortcutConfigurable(false);
connect(m_searchCombo, TQT_SIGNAL(activated(const TQString &)), connect(m_searchCombo, TQ_SIGNAL(activated(const TQString &)),
TQT_SLOT(startSearch(const TQString &))); TQ_SLOT(startSearch(const TQString &)));
connect(m_searchCombo, TQT_SIGNAL(iconClicked()), TQT_SLOT(showSelectionMenu())); connect(m_searchCombo, TQ_SIGNAL(iconClicked()), TQ_SLOT(showSelectionMenu()));
TQWhatsThis::add(m_searchCombo, i18n("Search Bar<p>" TQWhatsThis::add(m_searchCombo, i18n("Search Bar<p>"
"Enter a search term. Click on the icon to change search mode or provider.")); "Enter a search term. Click on the icon to change search mode or provider."));
new TDEAction( i18n( "Focus Searchbar" ), CTRL+Key_S, new TDEAction( i18n( "Focus Searchbar" ), CTRL+Key_S,
this, TQT_SLOT(focusSearchbar()), this, TQ_SLOT(focusSearchbar()),
actionCollection(), "focus_search_bar"); actionCollection(), "focus_search_bar");
configurationChanged(); configurationChanged();
@ -100,15 +100,15 @@ SearchBarPlugin::SearchBarPlugin(TQObject *parent, const char *name,
KParts::PartManager *partMan = static_cast<KParts::PartManager*>(mainWin->child(0, "KParts::PartManager")); KParts::PartManager *partMan = static_cast<KParts::PartManager*>(mainWin->child(0, "KParts::PartManager"));
if (partMan) if (partMan)
{ {
connect(partMan, TQT_SIGNAL(activePartChanged(KParts::Part*)), connect(partMan, TQ_SIGNAL(activePartChanged(KParts::Part*)),
TQT_SLOT (partChanged (KParts::Part*))); TQ_SLOT (partChanged (KParts::Part*)));
partChanged(partMan->activePart()); partChanged(partMan->activePart());
} }
connect(this, TQT_SIGNAL(gsCompleteDelayed()), TQT_SLOT(gsStartDelay())); connect(this, TQ_SIGNAL(gsCompleteDelayed()), TQ_SLOT(gsStartDelay()));
connect(&m_gsTimer, TQT_SIGNAL(timeout()), TQT_SLOT(gsMakeCompletionList())); connect(&m_gsTimer, TQ_SIGNAL(timeout()), TQ_SLOT(gsMakeCompletionList()));
connect(m_searchCombo->listBox(), TQT_SIGNAL(highlighted(const TQString&)), TQT_SLOT(gsSetCompletedText(const TQString&))); connect(m_searchCombo->listBox(), TQ_SIGNAL(highlighted(const TQString&)), TQ_SLOT(gsSetCompletedText(const TQString&)));
connect(m_searchCombo, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(gsPutTextInBox(const TQString&))); connect(m_searchCombo, TQ_SIGNAL(activated(const TQString&)), TQ_SLOT(gsPutTextInBox(const TQString&)));
} }
SearchBarPlugin::~SearchBarPlugin() SearchBarPlugin::~SearchBarPlugin()
@ -382,7 +382,7 @@ void SearchBarPlugin::showSelectionMenu()
list << "kurisearchfilter" << "kuriikwsfilter"; list << "kurisearchfilter" << "kuriikwsfilter";
m_popupMenu = new TQPopupMenu(m_searchCombo, "search selection menu"); m_popupMenu = new TQPopupMenu(m_searchCombo, "search selection menu");
m_popupMenu->insertItem(SmallIcon("edit-find"), i18n("Find in This Page"), this, TQT_SLOT(useFindInThisPage()), 0, 999); m_popupMenu->insertItem(SmallIcon("edit-find"), i18n("Find in This Page"), this, TQ_SLOT(useFindInThisPage()), 0, 999);
m_popupMenu->insertSeparator(); m_popupMenu->insertSeparator();
int i=-1; int i=-1;
@ -413,14 +413,14 @@ void SearchBarPlugin::showSelectionMenu()
} }
m_popupMenu->insertSeparator(); m_popupMenu->insertSeparator();
m_googleMenu = new TDESelectAction(i18n("Use Google Suggest"), SmallIconSet("ktip"), 0, this, TQT_SLOT(selectGoogleSuggestMode()), m_popupMenu); m_googleMenu = new TDESelectAction(i18n("Use Google Suggest"), SmallIconSet("ktip"), 0, this, TQ_SLOT(selectGoogleSuggestMode()), m_popupMenu);
TQStringList google_modes; TQStringList google_modes;
google_modes << i18n("For Google Only") << i18n("For All Searches") << i18n("Never"); google_modes << i18n("For Google Only") << i18n("For All Searches") << i18n("Never");
m_googleMenu->setItems(google_modes); m_googleMenu->setItems(google_modes);
m_googleMenu->plug(m_popupMenu); m_googleMenu->plug(m_popupMenu);
m_popupMenu->insertItem(SmallIcon("enhanced_browsing"), i18n("Select Search Engines..."), m_popupMenu->insertItem(SmallIcon("enhanced_browsing"), i18n("Select Search Engines..."),
this, TQT_SLOT(selectSearchEngines()), 0, 1000); this, TQ_SLOT(selectSearchEngines()), 0, 1000);
connect(m_popupMenu, TQT_SIGNAL(activated(int)), TQT_SLOT(useSearchProvider(int))); connect(m_popupMenu, TQ_SIGNAL(activated(int)), TQ_SLOT(useSearchProvider(int)));
} }
m_googleMenu->setCurrentItem(m_googleMode); m_googleMenu->setCurrentItem(m_googleMode);
m_popupMenu->popup(m_searchCombo->mapToGlobal(TQPoint(0, m_searchCombo->height() + 1)), 0); m_popupMenu->popup(m_searchCombo->mapToGlobal(TQPoint(0, m_searchCombo->height() + 1)), 0);
@ -450,7 +450,7 @@ void SearchBarPlugin::selectSearchEngines()
*process << "tdecmshell" << "ebrowsing"; *process << "tdecmshell" << "ebrowsing";
connect(process, TQT_SIGNAL(processExited(TDEProcess *)), TQT_SLOT(searchEnginesSelected(TDEProcess *))); connect(process, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(searchEnginesSelected(TDEProcess *)));
if(!process->start()) if(!process->start())
{ {
@ -518,7 +518,7 @@ void SearchBarPlugin::partChanged(KParts::Part *newPart)
m_part = ::tqt_cast<TDEHTMLPart*>(newPart); m_part = ::tqt_cast<TDEHTMLPart*>(newPart);
//Delay since when destroying tabs part 0 gets activated for a bit, before the proper part //Delay since when destroying tabs part 0 gets activated for a bit, before the proper part
TQTimer::singleShot(0, this, TQT_SLOT(updateComboVisibility())); TQTimer::singleShot(0, this, TQ_SLOT(updateComboVisibility()));
} }
void SearchBarPlugin::updateComboVisibility() void SearchBarPlugin::updateComboVisibility()
@ -546,7 +546,7 @@ SearchBarCombo::SearchBarCombo(TQWidget *parent, const char *name) :
KHistoryCombo(parent, name), KHistoryCombo(parent, name),
m_pluginActive(true) m_pluginActive(true)
{ {
connect(this, TQT_SIGNAL(cleared()), TQT_SLOT(historyCleared())); connect(this, TQ_SIGNAL(cleared()), TQ_SLOT(historyCleared()));
} }
const TQPixmap &SearchBarCombo::icon() const const TQPixmap &SearchBarCombo::icon() const
@ -649,8 +649,8 @@ void SearchBarPlugin::gsMakeCompletionList()
{ {
TDEIO::TransferJob* tj = TDEIO::TransferJob* tj =
TDEIO::get(KURL("http://www.google.com/complete/search?hl=en&js=true&qu=" + m_searchCombo->currentText()), false, false); TDEIO::get(KURL("http://www.google.com/complete/search?hl=en&js=true&qu=" + m_searchCombo->currentText()), false, false);
connect(tj, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), this, TQT_SLOT(gsDataArrived(TDEIO::Job*, const TQByteArray&))); connect(tj, TQ_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), this, TQ_SLOT(gsDataArrived(TDEIO::Job*, const TQByteArray&)));
connect(tj, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(gsJobFinished(TDEIO::Job*))); connect(tj, TQ_SIGNAL(result(TDEIO::Job*)), this, TQ_SLOT(gsJobFinished(TDEIO::Job*)));
} }
} }

@ -52,28 +52,28 @@ MainWidget::MainWidget( TDEConfig * config, TQWidget * parent )
btnRefreshBookmarks->setIconSet( il->loadIconSet( "reload", TDEIcon::Small ) ); btnRefreshBookmarks->setIconSet( il->loadIconSet( "reload", TDEIcon::Small ) );
btnNew->setIconSet( il->loadIconSet( "bookmark_add", TDEIcon::Small ) ); btnNew->setIconSet( il->loadIconSet( "bookmark_add", TDEIcon::Small ) );
connect( ( TQWidget * ) btnRefreshTags, TQT_SIGNAL( clicked() ), connect( ( TQWidget * ) btnRefreshTags, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotGetTags() ) ); this, TQ_SLOT( slotGetTags() ) );
connect( ( TQWidget * ) btnRefreshBookmarks, TQT_SIGNAL( clicked() ), connect( ( TQWidget * ) btnRefreshBookmarks, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotGetBookmarks() ) ); this, TQ_SLOT( slotGetBookmarks() ) );
connect( ( TQWidget * ) btnNew, TQT_SIGNAL( clicked() ), connect( ( TQWidget * ) btnNew, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotNewBookmark() ) ); this, TQ_SLOT( slotNewBookmark() ) );
connect( lvBookmarks, TQT_SIGNAL( executed( TQListViewItem * ) ), connect( lvBookmarks, TQ_SIGNAL( executed( TQListViewItem * ) ),
this, TQT_SLOT( slotBookmarkExecuted( TQListViewItem * ) ) ); this, TQ_SLOT( slotBookmarkExecuted( TQListViewItem * ) ) );
connect( lvBookmarks, TQT_SIGNAL( mouseButtonClicked ( int, TQListViewItem *, const TQPoint &, int ) ), connect( lvBookmarks, TQ_SIGNAL( mouseButtonClicked ( int, TQListViewItem *, const TQPoint &, int ) ),
this, TQT_SLOT( slotBookmarkClicked( int, TQListViewItem *, const TQPoint &, int ) ) ); this, TQ_SLOT( slotBookmarkClicked( int, TQListViewItem *, const TQPoint &, int ) ) );
connect( lvTags, TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint &, int ) ), connect( lvTags, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint &, int ) ),
this, TQT_SLOT( slotTagsContextMenu( TQListViewItem *, const TQPoint &, int ) ) ); this, TQ_SLOT( slotTagsContextMenu( TQListViewItem *, const TQPoint &, int ) ) );
connect( lvBookmarks, TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint &, int ) ), connect( lvBookmarks, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint &, int ) ),
this, TQT_SLOT( slotBookmarksContextMenu( TQListViewItem *, const TQPoint &, int ) ) ); this, TQ_SLOT( slotBookmarksContextMenu( TQListViewItem *, const TQPoint &, int ) ) );
m_updateTimer = new TQTimer( this ); m_updateTimer = new TQTimer( this );
connect( m_updateTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotGetBookmarks() ) ); connect( m_updateTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotGetBookmarks() ) );
slotGetTags(); slotGetTags();
} }
@ -93,8 +93,8 @@ void MainWidget::slotGetTags()
kdDebug() << k_funcinfo << endl; kdDebug() << k_funcinfo << endl;
TDEIO::StoredTransferJob * job = TDEIO::storedGet( "http://del.icio.us/api/tags/get" ); TDEIO::StoredTransferJob * job = TDEIO::storedGet( "http://del.icio.us/api/tags/get" );
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ),
this, TQT_SLOT( slotFillTags( TDEIO::Job * ) ) ); this, TQ_SLOT( slotFillTags( TDEIO::Job * ) ) );
} }
void MainWidget::slotFillTags( TDEIO::Job * job ) void MainWidget::slotFillTags( TDEIO::Job * job )
@ -121,7 +121,7 @@ void MainWidget::slotFillTags( TDEIO::Job * job )
{ {
TagListItem *item = new TagListItem( lvTags, tag.attribute( "tag" ), tag.attribute( "count" ).toInt() ); TagListItem *item = new TagListItem( lvTags, tag.attribute( "tag" ), tag.attribute( "count" ).toInt() );
m_tags.append( tag.attribute( "tag" ) ); m_tags.append( tag.attribute( "tag" ) );
connect( item, TQT_SIGNAL( signalItemChecked( TagListItem * ) ), TQT_SLOT( itemToggled() ) ); connect( item, TQ_SIGNAL( signalItemChecked( TagListItem * ) ), TQ_SLOT( itemToggled() ) );
} }
} }
} }
@ -134,8 +134,8 @@ void MainWidget::slotGetBookmarks()
kdDebug() << k_funcinfo << url.url() << endl; kdDebug() << k_funcinfo << url.url() << endl;
TDEIO::StoredTransferJob * job = TDEIO::storedGet( url ); TDEIO::StoredTransferJob * job = TDEIO::storedGet( url );
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ),
this, TQT_SLOT( slotFillBookmarks( TDEIO::Job * ) ) ); this, TQ_SLOT( slotFillBookmarks( TDEIO::Job * ) ) );
} }
void MainWidget::slotFillBookmarks( TDEIO::Job * job ) void MainWidget::slotFillBookmarks( TDEIO::Job * job )
@ -229,12 +229,12 @@ void MainWidget::slotTagsContextMenu( TQListViewItem *, const TQPoint & pos, int
TQPopupMenu * tagMenu = new TQPopupMenu( this ); TQPopupMenu * tagMenu = new TQPopupMenu( this );
TQ_CHECK_PTR( tagMenu ); TQ_CHECK_PTR( tagMenu );
tagMenu->insertItem( i18n( "Check All" ), this, TQT_SLOT( slotCheckAllTags() ) ); tagMenu->insertItem( i18n( "Check All" ), this, TQ_SLOT( slotCheckAllTags() ) );
tagMenu->insertItem( i18n( "Uncheck All" ), this, TQT_SLOT( slotUncheckAllTags() ) ); tagMenu->insertItem( i18n( "Uncheck All" ), this, TQ_SLOT( slotUncheckAllTags() ) );
tagMenu->insertItem( i18n( "Toggle All" ), this, TQT_SLOT( slotToggleTags() ) ); tagMenu->insertItem( i18n( "Toggle All" ), this, TQ_SLOT( slotToggleTags() ) );
tagMenu->insertSeparator(); tagMenu->insertSeparator();
tagMenu->insertItem( TDEGlobal::iconLoader()->loadIconSet( "edit", TDEIcon::Small ), tagMenu->insertItem( TDEGlobal::iconLoader()->loadIconSet( "edit", TDEIcon::Small ),
i18n( "Rename Tag..." ), this, TQT_SLOT( slotRenameTag() ) ); i18n( "Rename Tag..." ), this, TQ_SLOT( slotRenameTag() ) );
tagMenu->exec( pos ); tagMenu->exec( pos );
} }
@ -323,7 +323,7 @@ void MainWidget::slotBookmarksContextMenu( TQListViewItem *, const TQPoint & pos
TQ_CHECK_PTR( menu ); TQ_CHECK_PTR( menu );
menu->insertItem( TDEGlobal::iconLoader()->loadIconSet( "edit-delete", TDEIcon::Small ), menu->insertItem( TDEGlobal::iconLoader()->loadIconSet( "edit-delete", TDEIcon::Small ),
i18n( "Delete Bookmark" ), this, TQT_SLOT( slotDeleteBookmark() ) ); i18n( "Delete Bookmark" ), this, TQ_SLOT( slotDeleteBookmark() ) );
menu->exec( pos ); menu->exec( pos );
} }

@ -35,10 +35,10 @@ KonqSidebarDelicious::KonqSidebarDelicious( TDEInstance *instance, TQObject *par
{ {
m_widget = new MainWidget( instance->config(), widgetParent ); m_widget = new MainWidget( instance->config(), widgetParent );
connect( m_widget, TQT_SIGNAL( signalURLClicked( const KURL &, const KParts::URLArgs & ) ), connect( m_widget, TQ_SIGNAL( signalURLClicked( const KURL &, const KParts::URLArgs & ) ),
this, TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ) ); this, TQ_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ) );
connect( m_widget, TQT_SIGNAL( signalURLMidClicked( const KURL &, const KParts::URLArgs & ) ), connect( m_widget, TQ_SIGNAL( signalURLMidClicked( const KURL &, const KParts::URLArgs & ) ),
this, TQT_SIGNAL( createNewWindow( const KURL &, const KParts::URLArgs & ) ) ); this, TQ_SIGNAL( createNewWindow( const KURL &, const KParts::URLArgs & ) ) );
} }
KonqSidebarDelicious::~KonqSidebarDelicious() KonqSidebarDelicious::~KonqSidebarDelicious()

@ -97,11 +97,11 @@ int SliderAction::plug( TQWidget *w, int index )
addContainer( toolBar, id ); addContainer( toolBar, id );
connect( toolBar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); connect( toolBar, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) );
toolBar->setItemAutoSized( id, true ); toolBar->setItemAutoSized( id, true );
if (w->inherits( "TDEToolBar" )) if (w->inherits( "TDEToolBar" ))
connect(toolBar, TQT_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(TDEToolBar::BarPosition))); connect(toolBar, TQ_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQ_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
emit plugged(); emit plugged();

@ -42,19 +42,19 @@ KSB_MediaWidget::KSB_MediaWidget(TQWidget *parent):KSB_MediaWidget_skel(parent)
labelFont.setBold(true); labelFont.setBold(true);
time->setFont(labelFont); time->setFont(labelFont);
connect(Play, TQT_SIGNAL(clicked()), player, TQT_SLOT(play())); connect(Play, TQ_SIGNAL(clicked()), player, TQ_SLOT(play()));
connect(Pause, TQT_SIGNAL(clicked()), player, TQT_SLOT(pause())); connect(Pause, TQ_SIGNAL(clicked()), player, TQ_SLOT(pause()));
connect(Stop, TQT_SIGNAL(clicked()), player, TQT_SLOT(stop())); connect(Stop, TQ_SIGNAL(clicked()), player, TQ_SLOT(stop()));
connect(player, TQT_SIGNAL(timeout()), this, TQT_SLOT(playerTimeout())); connect(player, TQ_SIGNAL(timeout()), this, TQ_SLOT(playerTimeout()));
connect(player, TQT_SIGNAL(finished()), this, TQT_SLOT(playerFinished())); connect(player, TQ_SIGNAL(finished()), this, TQ_SLOT(playerFinished()));
connect(player, TQT_SIGNAL(playing()), this, TQT_SLOT(playing())); connect(player, TQ_SIGNAL(playing()), this, TQ_SLOT(playing()));
connect(player, TQT_SIGNAL(paused()), this, TQT_SLOT(paused())); connect(player, TQ_SIGNAL(paused()), this, TQ_SLOT(paused()));
connect(player, TQT_SIGNAL(stopped()), this, TQT_SLOT(stopped())); connect(player, TQ_SIGNAL(stopped()), this, TQ_SLOT(stopped()));
connect(player, TQT_SIGNAL(empty()), this, TQT_SLOT(empty())); connect(player, TQ_SIGNAL(empty()), this, TQ_SLOT(empty()));
connect(Position, TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int))); connect(Position, TQ_SIGNAL(userChanged(int)), this, TQ_SLOT(skipToWrapper(int)));
connect(this, TQT_SIGNAL(skipTo(unsigned long)), player, TQT_SLOT(skipTo(unsigned long))); connect(this, TQ_SIGNAL(skipTo(unsigned long)), player, TQ_SLOT(skipTo(unsigned long)));
setAcceptDrops(true); setAcceptDrops(true);
pretty=""; pretty="";

@ -36,7 +36,7 @@ Player::Player(TQObject *parent)
{ {
mEngine = new Engine; mEngine = new Engine;
mLooping = false; mLooping = false;
connect(&ticker, TQT_SIGNAL(timeout()), TQT_SLOT(tickerTimeout())); connect(&ticker, TQ_SIGNAL(timeout()), TQ_SLOT(tickerTimeout()));
ticker.start(500); ticker.start(500);
stop(); stop();
} }

@ -66,10 +66,10 @@ ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent
setIcon(SmallIcon("metabar")); setIcon(SmallIcon("metabar"));
ok = new KPushButton(KStdGuiItem::ok(), this); ok = new KPushButton(KStdGuiItem::ok(), this);
connect(ok, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); connect(ok, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
cancel = new KPushButton(KStdGuiItem::cancel(), this); cancel = new KPushButton(KStdGuiItem::cancel(), this);
connect(cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); connect(cancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()));
TQTabWidget *tab = new TQTabWidget(this); TQTabWidget *tab = new TQTabWidget(this);
@ -117,7 +117,7 @@ ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent
install_theme = new KPushButton(i18n("Install New Theme..."), theme_group); install_theme = new KPushButton(i18n("Install New Theme..."), theme_group);
install_theme->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred); install_theme->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred);
connect(install_theme, TQT_SIGNAL(clicked()), this, TQT_SLOT(installTheme())); connect(install_theme, TQ_SIGNAL(clicked()), this, TQ_SLOT(installTheme()));
loadThemes(); loadThemes();
@ -125,23 +125,23 @@ ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent
TQWidget *links = new TQWidget; TQWidget *links = new TQWidget;
link_create = new KPushButton(i18n("New..."), links); link_create = new KPushButton(i18n("New..."), links);
connect(link_create, TQT_SIGNAL(clicked()), this, TQT_SLOT(createLink())); connect(link_create, TQ_SIGNAL(clicked()), this, TQ_SLOT(createLink()));
link_delete = new KPushButton(i18n("Delete"), links); link_delete = new KPushButton(i18n("Delete"), links);
connect(link_delete, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteLink())); connect(link_delete, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteLink()));
link_edit = new KPushButton(i18n("Edit..."), links); link_edit = new KPushButton(i18n("Edit..."), links);
connect(link_edit, TQT_SIGNAL(clicked()), this, TQT_SLOT(editLink())); connect(link_edit, TQ_SIGNAL(clicked()), this, TQ_SLOT(editLink()));
link_up = new KPushButton(links); link_up = new KPushButton(links);
link_up->setIconSet(SmallIconSet("go-up")); link_up->setIconSet(SmallIconSet("go-up"));
link_up->setEnabled(false); link_up->setEnabled(false);
connect(link_up, TQT_SIGNAL(clicked()), this, TQT_SLOT(moveLinkUp())); connect(link_up, TQ_SIGNAL(clicked()), this, TQ_SLOT(moveLinkUp()));
link_down = new KPushButton(links); link_down = new KPushButton(links);
link_down->setIconSet(SmallIconSet("go-down")); link_down->setIconSet(SmallIconSet("go-down"));
link_down->setEnabled(false); link_down->setEnabled(false);
connect(link_down, TQT_SIGNAL(clicked()), this, TQT_SLOT(moveLinkDown())); connect(link_down, TQ_SIGNAL(clicked()), this, TQ_SLOT(moveLinkDown()));
link_list = new TDEListView(links); link_list = new TDEListView(links);
link_list->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); link_list->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
@ -149,8 +149,8 @@ ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent
link_list->setItemsMovable(TRUE); link_list->setItemsMovable(TRUE);
link_list->addColumn(i18n("Name")); link_list->addColumn(i18n("Name"));
link_list->addColumn(i18n("Address")); link_list->addColumn(i18n("Address"));
connect(link_list, TQT_SIGNAL(doubleClicked(TQListViewItem*)), this, TQT_SLOT(editLink(TQListViewItem*))); connect(link_list, TQ_SIGNAL(doubleClicked(TQListViewItem*)), this, TQ_SLOT(editLink(TQListViewItem*)));
connect(link_list, TQT_SIGNAL(selectionChanged()), TQT_SLOT(updateArrows())); connect(link_list, TQ_SIGNAL(selectionChanged()), TQ_SLOT(updateArrows()));
TQWidget *actionPage = new TQWidget; TQWidget *actionPage = new TQWidget;
@ -311,10 +311,10 @@ void ConfigDialog::createLink()
main->setIcon(SmallIcon("metabar")); main->setIcon(SmallIcon("metabar"));
KPushButton *ok = new KPushButton(KStdGuiItem::ok(), main); KPushButton *ok = new KPushButton(KStdGuiItem::ok(), main);
connect(ok, TQT_SIGNAL(clicked()), main, TQT_SLOT(accept())); connect(ok, TQ_SIGNAL(clicked()), main, TQ_SLOT(accept()));
KPushButton *cancel = new KPushButton(KStdGuiItem::cancel(), main); KPushButton *cancel = new KPushButton(KStdGuiItem::cancel(), main);
connect(cancel, TQT_SIGNAL(clicked()), main, TQT_SLOT(reject())); connect(cancel, TQ_SIGNAL(clicked()), main, TQ_SLOT(reject()));
TQLineEdit *name = new TQLineEdit(i18n("New link"), main); TQLineEdit *name = new TQLineEdit(i18n("New link"), main);
TQLineEdit *url = new TQLineEdit("file:/", main); TQLineEdit *url = new TQLineEdit("file:/", main);
@ -394,10 +394,10 @@ void ConfigDialog::editLink(TQListViewItem *item)
main->setIcon(SmallIcon("metabar")); main->setIcon(SmallIcon("metabar"));
KPushButton *ok = new KPushButton(KStdGuiItem::ok(), main); KPushButton *ok = new KPushButton(KStdGuiItem::ok(), main);
connect(ok, TQT_SIGNAL(clicked()), main, TQT_SLOT(accept())); connect(ok, TQ_SIGNAL(clicked()), main, TQ_SLOT(accept()));
KPushButton *cancel = new KPushButton(KStdGuiItem::cancel(), main); KPushButton *cancel = new KPushButton(KStdGuiItem::cancel(), main);
connect(cancel, TQT_SIGNAL(clicked()), main, TQT_SLOT(reject())); connect(cancel, TQ_SIGNAL(clicked()), main, TQ_SLOT(reject()));
TQLineEdit *name = new TQLineEdit(linkList[item]->name, main); TQLineEdit *name = new TQLineEdit(linkList[item]->name, main);
TQLineEdit *url = new TQLineEdit(linkList[item]->url, main); TQLineEdit *url = new TQLineEdit(linkList[item]->url, main);

@ -336,9 +336,9 @@ void DefaultPlugin::loadPreview(DOM::HTMLElement node)
preview_job = TDEIO::filePreview(KURL::List(url), m_html->view()->width() - 30); preview_job = TDEIO::filePreview(KURL::List(url), m_html->view()->width() - 30);
connect(preview_job, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), this, TQT_SLOT(slotSetPreview(const KFileItem*, const TQPixmap&))); connect(preview_job, TQ_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), this, TQ_SLOT(slotSetPreview(const KFileItem*, const TQPixmap&)));
connect(preview_job, TQT_SIGNAL(failed(const KFileItem *)), this, TQT_SLOT(slotPreviewFailed(const KFileItem *))); connect(preview_job, TQ_SIGNAL(failed(const KFileItem *)), this, TQ_SLOT(slotPreviewFailed(const KFileItem *)));
connect(preview_job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SLOT(slotJobFinished(TDEIO::Job *))); connect(preview_job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SLOT(slotJobFinished(TDEIO::Job *)));
} }
m_functions->show("preview"); m_functions->show("preview");

@ -35,7 +35,7 @@
MetabarFunctions::MetabarFunctions(TDEHTMLPart *html, TQObject *parent, const char* name) : TQObject(parent, name), m_html(html) MetabarFunctions::MetabarFunctions(TDEHTMLPart *html, TQObject *parent, const char* name) : TQObject(parent, name), m_html(html)
{ {
timer = new TQTimer(this); timer = new TQTimer(this);
connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(animate())); connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(animate()));
} }
MetabarFunctions::~MetabarFunctions() MetabarFunctions::~MetabarFunctions()

@ -84,9 +84,9 @@ MetabarWidget::MetabarWidget(TQWidget *parent, const char *name) : TQWidget(pare
config = new TDEConfig("metabarrc"); config = new TDEConfig("metabarrc");
dir_watch = new KDirWatch(); dir_watch = new KDirWatch();
connect(dir_watch, TQT_SIGNAL(dirty(const TQString&)), this, TQT_SLOT(slotUpdateCurrentInfo(const TQString&))); connect(dir_watch, TQ_SIGNAL(dirty(const TQString&)), this, TQ_SLOT(slotUpdateCurrentInfo(const TQString&)));
connect(dir_watch, TQT_SIGNAL(created(const TQString&)), this, TQT_SLOT(slotUpdateCurrentInfo(const TQString&))); connect(dir_watch, TQ_SIGNAL(created(const TQString&)), this, TQ_SLOT(slotUpdateCurrentInfo(const TQString&)));
connect(dir_watch, TQT_SIGNAL(deleted(const TQString&)), this, TQT_SLOT(slotDeleteCurrentInfo(const TQString&))); connect(dir_watch, TQ_SIGNAL(deleted(const TQString&)), this, TQ_SLOT(slotDeleteCurrentInfo(const TQString&)));
html = new TDEHTMLPart(this, "metabarhtmlpart"); html = new TDEHTMLPart(this, "metabarhtmlpart");
html->setJScriptEnabled(true); html->setJScriptEnabled(true);
@ -97,9 +97,9 @@ MetabarWidget::MetabarWidget(TQWidget *parent, const char *name) : TQWidget(pare
html->view()->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); html->view()->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
html->view()->hide(); html->view()->hide();
connect(html->browserExtension(), TQT_SIGNAL(openURLRequest( const KURL &, const KParts::URLArgs & )), this, TQT_SLOT(handleURLRequest(const KURL &, const KParts::URLArgs &))); connect(html->browserExtension(), TQ_SIGNAL(openURLRequest( const KURL &, const KParts::URLArgs & )), this, TQ_SLOT(handleURLRequest(const KURL &, const KParts::URLArgs &)));
connect(html, TQT_SIGNAL(completed()), this, TQT_SLOT(loadCompleted())); connect(html, TQ_SIGNAL(completed()), this, TQ_SLOT(loadCompleted()));
connect(html, TQT_SIGNAL(popupMenu(const TQString &, const TQPoint &)), this, TQT_SLOT(slotShowPopup(const TQString&, const TQPoint &))); connect(html, TQ_SIGNAL(popupMenu(const TQString &, const TQPoint &)), this, TQ_SLOT(slotShowPopup(const TQString&, const TQPoint &)));
functions = new MetabarFunctions(html, this); functions = new MetabarFunctions(html, this);
@ -118,10 +118,10 @@ MetabarWidget::MetabarWidget(TQWidget *parent, const char *name) : TQWidget(pare
layout->addWidget(html->view()); layout->addWidget(html->view());
popup = new TDEPopupMenu(0); popup = new TDEPopupMenu(0);
TDEAction *configAction = new TDEAction(i18n("Configure %1...").arg("Metabar"), "configure", TDEShortcut(), this, TQT_SLOT(slotShowConfig()), html->actionCollection(), "configure"); TDEAction *configAction = new TDEAction(i18n("Configure %1...").arg("Metabar"), "configure", TDEShortcut(), this, TQ_SLOT(slotShowConfig()), html->actionCollection(), "configure");
configAction->plug(popup); configAction->plug(popup);
TDEAction *reloadAction = new TDEAction(i18n("Reload Theme"), "reload", TDEShortcut(), this, TQT_SLOT(setTheme()), html->actionCollection(), "reload"); TDEAction *reloadAction = new TDEAction(i18n("Reload Theme"), "reload", TDEShortcut(), this, TQ_SLOT(setTheme()), html->actionCollection(), "reload");
reloadAction->plug(popup); reloadAction->plug(popup);
setTheme(); setTheme();

@ -168,7 +168,7 @@ void ServiceLoader::loadServices(const KFileItem item, DOM::DOMString &html, int
for (TQValueList<KDEDesktopMimeType::Service>::iterator it = list.begin(); it != list.end(); ++it){ for (TQValueList<KDEDesktopMimeType::Service>::iterator it = list.begin(); it != list.end(); ++it){
if(usePopup){ if(usePopup){
TDEAction *action = new TDEAction((*it).m_strName, (*it).m_strIcon, TDEShortcut(), this, TQT_SLOT(runAction()), popup, idString.utf8()); TDEAction *action = new TDEAction((*it).m_strName, (*it).m_strIcon, TDEShortcut(), this, TQ_SLOT(runAction()), popup, idString.utf8());
action->plug(popup); action->plug(popup);
} }
else{ else{

@ -58,8 +58,8 @@ void SettingsPlugin::loadActions(DOM::HTMLElement node)
if(url.path().endsWith("/")){ if(url.path().endsWith("/")){
list_job = TDEIO::listDir(url, true, false); list_job = TDEIO::listDir(url, true, false);
connect(list_job, TQT_SIGNAL(entries(TDEIO::Job *, const TDEIO::UDSEntryList &)), this, TQT_SLOT(slotGotEntries(TDEIO::Job *, const TDEIO::UDSEntryList &))); connect(list_job, TQ_SIGNAL(entries(TDEIO::Job *, const TDEIO::UDSEntryList &)), this, TQ_SLOT(slotGotEntries(TDEIO::Job *, const TDEIO::UDSEntryList &)));
connect(list_job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SLOT(slotJobFinished(TDEIO::Job *))); connect(list_job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SLOT(slotJobFinished(TDEIO::Job *)));
m_functions->show("actions"); m_functions->show("actions");
} }

@ -44,7 +44,7 @@ namespace KSB_News {
KPushButton *btn = new KPushButton(i18n("&Configure"), this); KPushButton *btn = new KPushButton(i18n("&Configure"), this);
btn->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum); btn->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum);
connect(btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotBtnClicked())); connect(btn, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotBtnClicked()));
topLayout->addWidget(btn, 0, TQt::AlignHCenter); topLayout->addWidget(btn, 0, TQt::AlignHCenter);
topLayout->addStretch(); topLayout->addStretch();
@ -69,8 +69,8 @@ namespace KSB_News {
// User edited the configuration - update your local copies of the // User edited the configuration - update your local copies of the
// configuration data // configuration data
connect(m_confdlg, TQT_SIGNAL(settingsChanged()), this, connect(m_confdlg, TQ_SIGNAL(settingsChanged()), this,
TQT_SLOT(slotConfigure_okClicked())); TQ_SLOT(slotConfigure_okClicked()));
m_confdlg->show(); m_confdlg->show();
} }

@ -86,7 +86,7 @@ namespace KSB_News {
// updating of RSS documents // updating of RSS documents
m_timeoutinterval = 10 * 60 * 1000; // 10 mins m_timeoutinterval = 10 * 60 * 1000; // 10 mins
m_timer = new TQTimer(this); m_timer = new TQTimer(this);
connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(refresh())); connect(m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(refresh()));
m_timer->start(m_timeoutinterval); m_timer->start(m_timeoutinterval);
refresh(); refresh();
} }

@ -84,19 +84,19 @@ namespace KSB_News {
popup = new TDEPopupMenu(this); popup = new TDEPopupMenu(this);
popup->insertItem(KStdGuiItem::configure().iconSet(), popup->insertItem(KStdGuiItem::configure().iconSet(),
i18n("&Configure Newsticker..."), this, i18n("&Configure Newsticker..."), this,
TQT_SLOT(slotConfigure())); TQ_SLOT(slotConfigure()));
popup->insertItem(SmallIconSet("reload"), i18n("&Reload"), this, popup->insertItem(SmallIconSet("reload"), i18n("&Reload"), this,
TQT_SLOT(slotRefresh())); TQ_SLOT(slotRefresh()));
popup->insertItem(KStdGuiItem::close().iconSet(), popup->insertItem(KStdGuiItem::close().iconSet(),
KStdGuiItem::close().text(), this, TQT_SLOT(slotClose())); KStdGuiItem::close().text(), this, TQ_SLOT(slotClose()));
popup->insertSeparator(); popup->insertSeparator();
// help menu // help menu
helpmenu = new TDEPopupMenu(this); helpmenu = new TDEPopupMenu(this);
helpmenu->insertItem(appIcon, i18n("&About Newsticker"), this, helpmenu->insertItem(appIcon, i18n("&About Newsticker"), this,
TQT_SLOT(slotShowAbout())); TQ_SLOT(slotShowAbout()));
helpmenu->insertItem(i18n("&Report Bug..."), this, helpmenu->insertItem(i18n("&Report Bug..."), this,
TQT_SLOT(slotShowBugreport())); TQ_SLOT(slotShowBugreport()));
popup->insertItem(KStdGuiItem::help().iconSet(), popup->insertItem(KStdGuiItem::help().iconSet(),
KStdGuiItem::help().text(), helpmenu); KStdGuiItem::help().text(), helpmenu);
@ -115,7 +115,7 @@ namespace KSB_News {
button->width() - 4 )); button->width() - 4 ));
button->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, button->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred,
TQSizePolicy::Preferred)); TQSizePolicy::Preferred));
connect(button, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonClicked())); connect(button, TQ_SIGNAL(clicked()), this, TQ_SLOT(buttonClicked()));
TQToolTip::add(button, nsp->title()); TQToolTip::add(button, nsp->title());
// eventFiler for the title button // eventFiler for the title button
@ -258,8 +258,8 @@ namespace KSB_News {
// User edited the configuration - update your local copies of the // User edited the configuration - update your local copies of the
// configuration data // configuration data
connect(m_confdlg, TQT_SIGNAL(settingsChanged()), this, connect(m_confdlg, TQ_SIGNAL(settingsChanged()), this,
TQT_SLOT(slotConfigure_okClicked())); TQ_SLOT(slotConfigure_okClicked()));
m_confdlg->show(); m_confdlg->show();
} }

@ -164,19 +164,19 @@ namespace KSB_News {
if (! nspanel->listbox()) { if (! nspanel->listbox()) {
TTListBox *listbox = new TTListBox(newswidget, "article_lb"); TTListBox *listbox = new TTListBox(newswidget, "article_lb");
newswidget->addStackTab(nspanel, listbox); newswidget->addStackTab(nspanel, listbox);
connect(listbox, TQT_SIGNAL(executed(TQListBoxItem *)), connect(listbox, TQ_SIGNAL(executed(TQListBoxItem *)),
this, TQT_SLOT(slotArticleItemExecuted(TQListBoxItem *))); this, TQ_SLOT(slotArticleItemExecuted(TQListBoxItem *)));
listbox->insertItem(i18n("Connecting..." )); listbox->insertItem(i18n("Connecting..." ));
nspanel->setListbox(listbox); nspanel->setListbox(listbox);
} }
// listen to updates // listen to updates
connect(nspanel, TQT_SIGNAL(documentUpdated(NSPanel *)), connect(nspanel, TQ_SIGNAL(documentUpdated(NSPanel *)),
this, TQT_SLOT(updateArticles(NSPanel *))); this, TQ_SLOT(updateArticles(NSPanel *)));
connect(nspanel, TQT_SIGNAL(documentUpdated(NSPanel *)), connect(nspanel, TQ_SIGNAL(documentUpdated(NSPanel *)),
this, TQT_SLOT(updateTitle(NSPanel *))); this, TQ_SLOT(updateTitle(NSPanel *)));
connect(nspanel, TQT_SIGNAL(pixmapUpdated(NSPanel *)), connect(nspanel, TQ_SIGNAL(pixmapUpdated(NSPanel *)),
this, TQT_SLOT(updatePixmap(NSPanel *))); this, TQ_SLOT(updatePixmap(NSPanel *)));
if (widgets->visibleWidget() != newswidget) if (widgets->visibleWidget() != newswidget)
widgets->raiseWidget(newswidget); widgets->raiseWidget(newswidget);

@ -57,40 +57,40 @@ SettingsPlugin::SettingsPlugin( TQObject* parent, const char* name,
action = new TDEToggleAction( i18n("Java&Script"), 0, action = new TDEToggleAction( i18n("Java&Script"), 0,
this, TQT_SLOT(toggleJavascript()), this, TQ_SLOT(toggleJavascript()),
actionCollection(), "javascript" ); actionCollection(), "javascript" );
menu->insert( action ); menu->insert( action );
action = new TDEToggleAction( i18n("&Java"), 0, action = new TDEToggleAction( i18n("&Java"), 0,
this, TQT_SLOT(toggleJava()), this, TQ_SLOT(toggleJava()),
actionCollection(), "java" ); actionCollection(), "java" );
menu->insert( action ); menu->insert( action );
action = new TDEToggleAction( i18n("&Cookies"), 0, action = new TDEToggleAction( i18n("&Cookies"), 0,
this, TQT_SLOT(toggleCookies()), this, TQ_SLOT(toggleCookies()),
actionCollection(), "cookies" ); actionCollection(), "cookies" );
menu->insert( action ); menu->insert( action );
action = new TDEToggleAction( i18n("&Plugins"), 0, action = new TDEToggleAction( i18n("&Plugins"), 0,
this, TQT_SLOT(togglePlugins()), this, TQ_SLOT(togglePlugins()),
actionCollection(), "plugins" ); actionCollection(), "plugins" );
menu->insert( action ); menu->insert( action );
action = new TDEToggleAction( i18n("Autoload &Images"), 0, action = new TDEToggleAction( i18n("Autoload &Images"), 0,
this, TQT_SLOT(toggleImageLoading()), this, TQ_SLOT(toggleImageLoading()),
actionCollection(), "imageloading" ); actionCollection(), "imageloading" );
menu->insert( action ); menu->insert( action );
menu->insert( new TDEActionSeparator(actionCollection()) ); menu->insert( new TDEActionSeparator(actionCollection()) );
action = new TDEToggleAction( i18n("Enable Pro&xy"), 0, action = new TDEToggleAction( i18n("Enable Pro&xy"), 0,
this, TQT_SLOT(toggleProxy()), this, TQ_SLOT(toggleProxy()),
actionCollection(), "useproxy" ); actionCollection(), "useproxy" );
action->setCheckedState(i18n("Disable Pro&xy")); action->setCheckedState(i18n("Disable Pro&xy"));
menu->insert( action ); menu->insert( action );
action = new TDEToggleAction( i18n("Enable Cac&he"), 0, action = new TDEToggleAction( i18n("Enable Cac&he"), 0,
this, TQT_SLOT(toggleCache()), this, TQ_SLOT(toggleCache()),
actionCollection(), "usecache" ); actionCollection(), "usecache" );
action->setCheckedState(i18n("Disable Cac&he")); action->setCheckedState(i18n("Disable Cac&he"));
menu->insert( action ); menu->insert( action );
@ -104,11 +104,11 @@ SettingsPlugin::SettingsPlugin( TQObject* parent, const char* name,
policies += i18n( "&Use Cache if Possible" ); policies += i18n( "&Use Cache if Possible" );
policies += i18n( "&Offline Browsing Mode" ); policies += i18n( "&Offline Browsing Mode" );
sAction->setItems( policies ); sAction->setItems( policies );
connect( sAction, TQT_SIGNAL( activated( int ) ), TQT_SLOT( cachePolicyChanged(int) ) ); connect( sAction, TQ_SIGNAL( activated( int ) ), TQ_SLOT( cachePolicyChanged(int) ) );
menu->insert( sAction ); menu->insert( sAction );
connect( menu->popupMenu(), TQT_SIGNAL( aboutToShow() ), TQT_SLOT( showPopup() )); connect( menu->popupMenu(), TQ_SIGNAL( aboutToShow() ), TQ_SLOT( showPopup() ));
} }
SettingsPlugin::~SettingsPlugin() SettingsPlugin::~SettingsPlugin()

@ -60,16 +60,16 @@ UAChangerPlugin::UAChangerPlugin( TQObject* parent, const char* name,
m_pUAMenu = new TDEActionMenu( i18n("Change Browser &Identification"), "agent", m_pUAMenu = new TDEActionMenu( i18n("Change Browser &Identification"), "agent",
actionCollection(), "changeuseragent" ); actionCollection(), "changeuseragent" );
m_pUAMenu->setDelayed( false ); m_pUAMenu->setDelayed( false );
connect( m_pUAMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), connect( m_pUAMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ),
this, TQT_SLOT( slotAboutToShow() ) ); this, TQ_SLOT( slotAboutToShow() ) );
m_pUAMenu->setEnabled ( false ); m_pUAMenu->setEnabled ( false );
if ( parent && parent->inherits( "TDEHTMLPart" ) ) if ( parent && parent->inherits( "TDEHTMLPart" ) )
{ {
m_part = static_cast<TDEHTMLPart*>(parent); m_part = static_cast<TDEHTMLPart*>(parent);
connect( m_part, TQT_SIGNAL(started(TDEIO::Job*)), this, connect( m_part, TQ_SIGNAL(started(TDEIO::Job*)), this,
TQT_SLOT(slotStarted(TDEIO::Job*)) ); TQ_SLOT(slotStarted(TDEIO::Job*)) );
} }
} }
@ -217,7 +217,7 @@ void UAChangerPlugin::slotAboutToShow()
//kdDebug(90130) << "User Agent: " << m_currentUserAgent << endl; //kdDebug(90130) << "User Agent: " << m_currentUserAgent << endl;
int id = m_pUAMenu->popupMenu()->insertItem( i18n("Default Identification"), this, int id = m_pUAMenu->popupMenu()->insertItem( i18n("Default Identification"), this,
TQT_SLOT(slotDefault()), 0, ++count ); TQ_SLOT(slotDefault()), 0, ++count );
if( m_currentUserAgent == KProtocolManager::defaultUserAgent() ) if( m_currentUserAgent == KProtocolManager::defaultUserAgent() )
m_pUAMenu->popupMenu()->setItemChecked(id, true); m_pUAMenu->popupMenu()->setItemChecked(id, true);
@ -230,7 +230,7 @@ void UAChangerPlugin::slotAboutToShow()
BrowserGroup::ConstIterator e = map.data().begin(); BrowserGroup::ConstIterator e = map.data().begin();
for( ; e != map.data().end(); ++e ) for( ; e != map.data().end(); ++e )
{ {
int id = browserMenu->insertItem( m_lstAlias[*e], this, TQT_SLOT(slotItemSelected(int)), 0, *e ); int id = browserMenu->insertItem( m_lstAlias[*e], this, TQ_SLOT(slotItemSelected(int)), 0, *e );
if (m_lstIdentity[(*e)] == m_currentUserAgent) if (m_lstIdentity[(*e)] == m_currentUserAgent)
browserMenu->setItemChecked(id, true); browserMenu->setItemChecked(id, true);
} }
@ -241,16 +241,16 @@ void UAChangerPlugin::slotAboutToShow()
/* useless here, imho.. /* useless here, imho..
m_pUAMenu->popupMenu()->insertItem( i18n("Reload Identifications"), this, m_pUAMenu->popupMenu()->insertItem( i18n("Reload Identifications"), this,
TQT_SLOT(slotReloadDescriptions()), TQ_SLOT(slotReloadDescriptions()),
0, ++count );*/ 0, ++count );*/
m_pUAMenu->popupMenu()->insertItem( i18n("Apply to Entire Site"), this, m_pUAMenu->popupMenu()->insertItem( i18n("Apply to Entire Site"), this,
TQT_SLOT(slotApplyToDomain()), TQ_SLOT(slotApplyToDomain()),
0, ++count ); 0, ++count );
m_pUAMenu->popupMenu()->setItemChecked(count, m_bApplyToDomain); m_pUAMenu->popupMenu()->setItemChecked(count, m_bApplyToDomain);
m_pUAMenu->popupMenu()->insertItem( i18n("Configure..."), this, m_pUAMenu->popupMenu()->insertItem( i18n("Configure..."), this,
TQT_SLOT(slotConfigure())); TQ_SLOT(slotConfigure()));
} }

@ -56,17 +56,17 @@ PluginValidators::PluginValidators( TQObject* parent, const char* name,
m_menu->insert( new TDEAction( i18n( "Validate &HTML" ), m_menu->insert( new TDEAction( i18n( "Validate &HTML" ),
"htmlvalidator", 0, "htmlvalidator", 0,
this, TQT_SLOT(slotValidateHTML()), this, TQ_SLOT(slotValidateHTML()),
actionCollection(), "validateHTML") ); actionCollection(), "validateHTML") );
m_menu->insert( new TDEAction( i18n( "Validate &CSS" ), m_menu->insert( new TDEAction( i18n( "Validate &CSS" ),
"cssvalidator", 0, "cssvalidator", 0,
this, TQT_SLOT(slotValidateCSS()), this, TQ_SLOT(slotValidateCSS()),
actionCollection(), "validateCSS") ); actionCollection(), "validateCSS") );
m_menu->insert( new TDEAction( i18n( "Validate &Links" ), m_menu->insert( new TDEAction( i18n( "Validate &Links" ),
0, 0,
this, TQT_SLOT(slotValidateLinks()), this, TQ_SLOT(slotValidateLinks()),
actionCollection(), "validateLinks") ); actionCollection(), "validateLinks") );
m_menu->setEnabled( false ); m_menu->setEnabled( false );
@ -75,15 +75,15 @@ PluginValidators::PluginValidators( TQObject* parent, const char* name,
{ {
m_menu->insert( new TDEAction( i18n( "C&onfigure Validator..." ), m_menu->insert( new TDEAction( i18n( "C&onfigure Validator..." ),
"configure", 0, "configure", 0,
this, TQT_SLOT(slotConfigure()), this, TQ_SLOT(slotConfigure()),
actionCollection(), "configure") ); actionCollection(), "configure") );
m_part = static_cast<TDEHTMLPart *>( parent ); m_part = static_cast<TDEHTMLPart *>( parent );
m_configDialog = new ValidatorsDialog( m_part->widget() ); m_configDialog = new ValidatorsDialog( m_part->widget() );
setURLs(); setURLs();
connect( m_part, TQT_SIGNAL(started(TDEIO::Job*)), this, connect( m_part, TQ_SIGNAL(started(TDEIO::Job*)), this,
TQT_SLOT(slotStarted(TDEIO::Job*)) ); TQ_SLOT(slotStarted(TDEIO::Job*)) );
} }
} }

@ -446,7 +446,7 @@ void ArchiveDialog::downloadNext()
dsturl.setPath(m_tmpFile->name()); dsturl.setPath(m_tmpFile->name());
TDEIO::Job *job=TDEIO::file_copy(url, dsturl, -1, false, false, false); TDEIO::Job *job=TDEIO::file_copy(url, dsturl, -1, false, false, false);
job->addMetaData("cache", "cache"); // Use entry from cache if available. job->addMetaData("cache", "cache"); // Use entry from cache if available.
connect(job, TQT_SIGNAL(result( TDEIO::Job *)), this, TQT_SLOT(finishedDownloadingURL( TDEIO::Job *)) ); connect(job, TQ_SIGNAL(result( TDEIO::Job *)), this, TQ_SLOT(finishedDownloadingURL( TDEIO::Job *)) );
m_currentLVI=new TQListViewItem(m_widget->listView, url.prettyURL()); m_currentLVI=new TQListViewItem(m_widget->listView, url.prettyURL());
m_widget->listView->insertItem( m_currentLVI ); m_widget->listView->insertItem( m_currentLVI );

@ -56,7 +56,7 @@ PluginWebArchiver::PluginWebArchiver( TQObject* parent, const char* name,
{ {
(void) new TDEAction( i18n("Archive &Web Page..."), (void) new TDEAction( i18n("Archive &Web Page..."),
"webarchiver", 0, "webarchiver", 0,
this, TQT_SLOT(slotSaveToArchive()), this, TQ_SLOT(slotSaveToArchive()),
actionCollection(), "archivepage" ); actionCollection(), "archivepage" );
} }

@ -53,7 +53,7 @@ bool WebArchiveCreator::create(const TQString &path, int width, int height, TQIm
if (!m_html) if (!m_html)
{ {
m_html = new TDEHTMLPart; m_html = new TDEHTMLPart;
connect(m_html, TQT_SIGNAL(completed()), TQT_SLOT(slotCompleted())); connect(m_html, TQ_SIGNAL(completed()), TQ_SLOT(slotCompleted()));
m_html->setJScriptEnabled(false); m_html->setJScriptEnabled(false);
m_html->setJavaEnabled(false); m_html->setJavaEnabled(false);
m_html->setPluginsEnabled(false); m_html->setPluginsEnabled(false);

@ -63,18 +63,18 @@ KSig::~KSig()
void KSig::setupActions() void KSig::setupActions()
{ {
KStdAction::openNew(this, TQT_SLOT(add()), actionCollection()); KStdAction::openNew(this, TQ_SLOT(add()), actionCollection());
new TDEAction(i18n("Remove"), "edit-delete", 0, this, TQT_SLOT(remove()), actionCollection(), "remove"); new TDEAction(i18n("Remove"), "edit-delete", 0, this, TQ_SLOT(remove()), actionCollection(), "remove");
KStdAction::save(this, TQT_SLOT(save()), actionCollection()); KStdAction::save(this, TQ_SLOT(save()), actionCollection());
KStdAction::quit(this, TQT_SLOT(quit()), actionCollection()); KStdAction::quit(this, TQ_SLOT(quit()), actionCollection());
KStdAction::cut(kapp, TQT_SLOT(cut()), actionCollection()); KStdAction::cut(kapp, TQ_SLOT(cut()), actionCollection());
KStdAction::copy(kapp, TQT_SLOT(copy()), actionCollection()); KStdAction::copy(kapp, TQ_SLOT(copy()), actionCollection());
KStdAction::paste(kapp, TQT_SLOT(paste()), actionCollection()); KStdAction::paste(kapp, TQ_SLOT(paste()), actionCollection());
new TDEAction(i18n("C&lear"), "edit-clear", 0, kapp, TQT_SLOT(clear()), actionCollection(), "clear"); new TDEAction(i18n("C&lear"), "edit-clear", 0, kapp, TQ_SLOT(clear()), actionCollection(), "clear");
new TDEAction(i18n("Edit Standard Header"), 0, 0, this, TQT_SLOT(editHeader()), actionCollection(), "editHeader"); new TDEAction(i18n("Edit Standard Header"), 0, 0, this, TQ_SLOT(editHeader()), actionCollection(), "editHeader");
new TDEAction(i18n("Edit Standard Footer"), 0, 0, this, TQT_SLOT(editFooter()), actionCollection(), "editFooter"); new TDEAction(i18n("Edit Standard Footer"), 0, 0, this, TQ_SLOT(editFooter()), actionCollection(), "editFooter");
} }
void KSig::setupLayout() void KSig::setupLayout()
@ -96,9 +96,9 @@ void KSig::setupLayout()
statusBar()->show(); statusBar()->show();
updateListLock = false; updateListLock = false;
connect(sigEdit, TQT_SIGNAL(textChanged()), this, TQT_SLOT(updateList())); connect(sigEdit, TQ_SIGNAL(textChanged()), this, TQ_SLOT(updateList()));
connect(sigList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(updateEdit())); connect(sigList, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(updateEdit()));
connect(sigEdit, TQT_SIGNAL(cursorPositionChanged(int,int)), this, TQT_SLOT(updateStatus(int,int))); connect(sigEdit, TQ_SIGNAL(cursorPositionChanged(int,int)), this, TQ_SLOT(updateStatus(int,int)));
} }
void KSig::setupSearchLine() void KSig::setupSearchLine()
@ -222,7 +222,7 @@ void KSig::editHeader()
t->setLabel(i18n("Standard signature header:")); t->setLabel(i18n("Standard signature header:"));
t->setText(header); t->setText(header);
connect(t, TQT_SIGNAL(textUpdated(const TQString &)), this, TQT_SLOT(setHeader(const TQString &))); connect(t, TQ_SIGNAL(textUpdated(const TQString &)), this, TQ_SLOT(setHeader(const TQString &)));
t->exec(); t->exec();
} }
@ -233,7 +233,7 @@ void KSig::editFooter()
t->setLabel(i18n("Standard signature footer:")); t->setLabel(i18n("Standard signature footer:"));
t->setText(footer); t->setText(footer);
connect(t, TQT_SIGNAL(textUpdated(const TQString &)), this, TQT_SLOT(setFooter(const TQString &))); connect(t, TQ_SIGNAL(textUpdated(const TQString &)), this, TQ_SLOT(setFooter(const TQString &)));
t->exec(); t->exec();
} }

@ -60,7 +60,7 @@ Wakeup::Wakeup() : TQObject(), Plugin()
update(); update();
TQTimer *timer=new TQTimer(this); TQTimer *timer=new TQTimer(this);
connect (timer,TQT_SIGNAL(timeout()),TQT_SLOT(slotCheckTime())); connect (timer,TQ_SIGNAL(timeout()),TQ_SLOT(slotCheckTime()));
timer->start(60000,false); timer->start(60000,false);
} }
@ -129,7 +129,7 @@ void Wakeup::PlayerAct()
// timer for volume (up/down) according to prefs :-) // timer for volume (up/down) according to prefs :-)
volTimer = new TQTimer (this); volTimer = new TQTimer (this);
connect (volTimer,TQT_SIGNAL(timeout()), TQT_SLOT(slotVolumeChange())); connect (volTimer,TQ_SIGNAL(timeout()), TQ_SLOT(slotVolumeChange()));
volTimer->start(1000,false); // updates volume every seconds volTimer->start(1000,false); // updates volume every seconds
@ -260,8 +260,8 @@ WakeupPrefs::WakeupPrefs( TQObject *parent ) :
volLayout->addWidget(volEndValue); volLayout->addWidget(volEndValue);
volLayout->addStretch(); volLayout->addStretch();
connect (morningmode,TQT_SIGNAL(stateChanged(int)),TQT_SLOT(slotViewFrame(int))); connect (morningmode,TQ_SIGNAL(stateChanged(int)),TQ_SLOT(slotViewFrame(int)));
connect (applyall,TQT_SIGNAL(clicked()),TQT_SLOT(slotApplyAll())); connect (applyall,TQ_SIGNAL(clicked()),TQ_SLOT(slotApplyAll()));
load(); load();
} }

@ -29,9 +29,9 @@
Seeker::Seeker(TQWidget * parent, const char * name) Seeker::Seeker(TQWidget * parent, const char * name)
: L33tSlider(0, 1000, 10, 0,TQt::Horizontal, parent, name) : L33tSlider(0, 1000, 10, 0,TQt::Horizontal, parent, name)
{ {
connect(this, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(this, TQ_SIGNAL(userChanged(int)), TQ_SLOT(slotValueChanged(int)));
connect(napp->player(), TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); connect(napp->player(), TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
} }
Seeker::~Seeker() Seeker::~Seeker()

@ -60,92 +60,92 @@ AlsaPlayer::AlsaPlayer()
connect connect
( (
playlistButton, playlistButton,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(toggleListView()) TQ_SLOT(toggleListView())
); );
connect connect
( (
previousButton, previousButton,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(back()) TQ_SLOT(back())
); );
connect connect
( (
nextButton, nextButton,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(forward()) TQ_SLOT(forward())
); );
connect connect
( (
stopButton, stopButton,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(stop()) TQ_SLOT(stop())
); );
connect connect
( (
playButton, playButton,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(playpause()) TQ_SLOT(playpause())
); );
connect(napp, TQT_SIGNAL(hideYourself()), TQT_SLOT(hide())); connect(napp, TQ_SIGNAL(hideYourself()), TQ_SLOT(hide()));
connect(napp, TQT_SIGNAL(showYourself()), TQT_SLOT(show())); connect(napp, TQ_SIGNAL(showYourself()), TQ_SLOT(show()));
connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(slotPlayListShown())); connect(napp->player(), TQ_SIGNAL(playlistShown()), TQ_SLOT(slotPlayListShown()));
connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(slotPlayListHidden())); connect(napp->player(), TQ_SIGNAL(playlistHidden()), TQ_SLOT(slotPlayListHidden()));
connect(napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(slotPlaying())); connect(napp->player(), TQ_SIGNAL(playing()), TQ_SLOT(slotPlaying()));
connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(slotStopped())); connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(slotStopped()));
connect(napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(slotPaused())); connect(napp->player(), TQ_SIGNAL(paused()), TQ_SLOT(slotPaused()));
connect(napp->player(), TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); connect(napp->player(), TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
connect(napp->player(), TQT_SIGNAL(changed()), TQT_SLOT(slotTrackChanged())); connect(napp->player(), TQ_SIGNAL(changed()), TQ_SLOT(slotTrackChanged()));
connect connect
( (
napp->player(), napp->player(),
TQT_SIGNAL(volumeChanged(int)), TQ_SIGNAL(volumeChanged(int)),
TQT_SLOT(slotVolumeChanged(int)) TQ_SLOT(slotVolumeChanged(int))
); );
connect connect
( (
new AlsaPlayerConfigModule(this), new AlsaPlayerConfigModule(this),
TQT_SIGNAL(saved()), TQ_SIGNAL(saved()),
TQT_SLOT(slotConfigChanged()) TQ_SLOT(slotConfigChanged())
); );
connect connect
( (
volumeSlider, volumeSlider,
TQT_SIGNAL(valueChanged(int)), TQ_SIGNAL(valueChanged(int)),
napp->player(), napp->player(),
TQT_SLOT(setVolume(int)) TQ_SLOT(setVolume(int))
); );
connect connect
( (
forwardButton, forwardButton,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
TQT_SLOT(slotForward()) TQ_SLOT(slotForward())
); );
connect connect
( (
pauseButton, pauseButton,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
TQT_SLOT(slotPause()) TQ_SLOT(slotPause())
); );
connect(speedSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotSetSpeed(int))); connect(speedSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotSetSpeed(int)));
menuButton->setPopup(NoatunStdAction::ContextMenu::contextMenu()); menuButton->setPopup(NoatunStdAction::ContextMenu::contextMenu());

@ -33,12 +33,12 @@ Seeker::Seeker(TQWidget * parent)
{ {
delayedUpdateTimer_ = new TQTimer(this); delayedUpdateTimer_ = new TQTimer(this);
connect(this, TQT_SIGNAL(sliderPressed()), TQT_SLOT(slotSliderPressed())); connect(this, TQ_SIGNAL(sliderPressed()), TQ_SLOT(slotSliderPressed()));
connect(this, TQT_SIGNAL(sliderReleased()), TQT_SLOT(slotSliderReleased())); connect(this, TQ_SIGNAL(sliderReleased()), TQ_SLOT(slotSliderReleased()));
connect(this, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(this, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotValueChanged(int)));
connect(napp->player(), TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); connect(napp->player(), TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
connect(delayedUpdateTimer_, TQT_SIGNAL(timeout()), TQT_SLOT(slotDelayedUpdate())); connect(delayedUpdateTimer_, TQ_SIGNAL(timeout()), TQ_SLOT(slotDelayedUpdate()));
} }
Seeker::~Seeker() Seeker::~Seeker()

@ -69,8 +69,8 @@ Charlatan::Charlatan()
connect connect
( (
showingVolumeTimer_, showingVolumeTimer_,
TQT_SIGNAL(timeout()), TQ_SIGNAL(timeout()),
TQT_SLOT(slotStopShowingVolume()) TQ_SLOT(slotStopShowingVolume())
); );
playListToggleButton_ = new TQToolButton(this); playListToggleButton_ = new TQToolButton(this);
@ -130,68 +130,68 @@ Charlatan::Charlatan()
connect connect
( (
playListToggleButton_, playListToggleButton_,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(toggleListView()) TQ_SLOT(toggleListView())
); );
connect connect
( (
previousButton_, previousButton_,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(back()) TQ_SLOT(back())
); );
connect connect
( (
nextButton_, nextButton_,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(forward()) TQ_SLOT(forward())
); );
connect connect
( (
stopButton_, stopButton_,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(stop()) TQ_SLOT(stop())
); );
connect(restartButton_, TQT_SIGNAL(clicked()), TQT_SLOT(slotRestart())); connect(restartButton_, TQ_SIGNAL(clicked()), TQ_SLOT(slotRestart()));
connect connect
( (
playButton_, playButton_,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
napp->player(), napp->player(),
TQT_SLOT(playpause()) TQ_SLOT(playpause())
); );
connect(napp, TQT_SIGNAL(hideYourself()), TQT_SLOT(hide())); connect(napp, TQ_SIGNAL(hideYourself()), TQ_SLOT(hide()));
connect(napp, TQT_SIGNAL(showYourself()), TQT_SLOT(show())); connect(napp, TQ_SIGNAL(showYourself()), TQ_SLOT(show()));
connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(slotPlayListShown())); connect(napp->player(), TQ_SIGNAL(playlistShown()), TQ_SLOT(slotPlayListShown()));
connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(slotPlayListHidden())); connect(napp->player(), TQ_SIGNAL(playlistHidden()), TQ_SLOT(slotPlayListHidden()));
connect(napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(slotPlaying())); connect(napp->player(), TQ_SIGNAL(playing()), TQ_SLOT(slotPlaying()));
connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(slotStopped())); connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(slotStopped()));
connect(napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(slotPaused())); connect(napp->player(), TQ_SIGNAL(paused()), TQ_SLOT(slotPaused()));
connect(napp->player(), TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); connect(napp->player(), TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
connect connect
( (
napp->player(), napp->player(),
TQT_SIGNAL(volumeChanged(int)), TQ_SIGNAL(volumeChanged(int)),
TQT_SLOT(slotVolumeChanged(int)) TQ_SLOT(slotVolumeChanged(int))
); );
connect connect
( (
new CharlatanConfigModule(this), new CharlatanConfigModule(this),
TQT_SIGNAL(saved()), TQ_SIGNAL(saved()),
TQT_SLOT(slotConfigChanged()) TQ_SLOT(slotConfigChanged())
); );
setCaption(i18n("Noatun")); setCaption(i18n("Noatun"));
@ -213,12 +213,12 @@ Charlatan::Charlatan()
int accelRstt = a->insertItem(Key_Return); int accelRstt = a->insertItem(Key_Return);
int accelQuit = a->insertItem(Key_Q); int accelQuit = a->insertItem(Key_Q);
a->connectItem(accelPlay, napp->player(), TQT_SLOT(playpause())); a->connectItem(accelPlay, napp->player(), TQ_SLOT(playpause()));
a->connectItem(accelNext, napp->player(), TQT_SLOT(forward())); a->connectItem(accelNext, napp->player(), TQ_SLOT(forward()));
a->connectItem(accelPrev, napp->player(), TQT_SLOT(back())); a->connectItem(accelPrev, napp->player(), TQ_SLOT(back()));
a->connectItem(accelStop, napp->player(), TQT_SLOT(stop())); a->connectItem(accelStop, napp->player(), TQ_SLOT(stop()));
a->connectItem(accelRstt, this, TQT_SLOT(slotRestart())); a->connectItem(accelRstt, this, TQ_SLOT(slotRestart()));
a->connectItem(accelQuit, napp, TQT_SLOT(quit())); a->connectItem(accelQuit, napp, TQ_SLOT(quit()));
show(); show();

@ -62,17 +62,17 @@ Dub::Dub(DubPlaylist* plist)
, shuffle_recursive(this) , shuffle_recursive(this)
{ {
connect( view->dirOperator(), connect( view->dirOperator(),
TQT_SIGNAL(fileSelected(const KFileItem*)), TQ_SIGNAL(fileSelected(const KFileItem*)),
this, this,
TQT_SLOT(fileSelected(const KFileItem*)) ); TQ_SLOT(fileSelected(const KFileItem*)) );
connect( dubconfig.prefs->mediaDirectory, connect( dubconfig.prefs->mediaDirectory,
TQT_SIGNAL( urlSelected (const TQString &) ), TQ_SIGNAL( urlSelected (const TQString &) ),
this, this,
TQT_SLOT( mediaHomeSelected (const TQString &) ) ); TQ_SLOT( mediaHomeSelected (const TQString &) ) );
connect( this, connect( this,
TQT_SIGNAL(setMediaHome(KURL)), TQ_SIGNAL(setMediaHome(KURL)),
view, view,
TQT_SLOT(setDir(KURL)) ); TQ_SLOT(setDir(KURL)) );
configure_sequencing(); configure_sequencing();
emit setMediaHome(dubconfig.mediaDirectory); emit setMediaHome(dubconfig.mediaDirectory);
} }

@ -54,7 +54,7 @@ DubApp::~DubApp()
void DubApp::initActions() void DubApp::initActions()
{ {
fileClose = KStdAction::close(this, TQT_SLOT(close()), actionCollection()); fileClose = KStdAction::close(this, TQ_SLOT(close()), actionCollection());
setStandardToolBarMenuEnabled(true); setStandardToolBarMenuEnabled(true);
createStandardStatusBarAction(); createStandardStatusBarAction();

@ -86,29 +86,29 @@ FileSelectorWidget::FileSelectorWidget(TQWidget *parent)
// slots and signals // slots and signals
connect( filter, TQT_SIGNAL( activated(const TQString&) ), TQT_SLOT( slotFilterChange(const TQString&) ) ); connect( filter, TQ_SIGNAL( activated(const TQString&) ), TQ_SLOT( slotFilterChange(const TQString&) ) );
connect( filter, TQT_SIGNAL( returnPressed(const TQString&) ),filter, TQT_SLOT( addToHistory(const TQString&) ) ); connect( filter, TQ_SIGNAL( returnPressed(const TQString&) ),filter, TQ_SLOT( addToHistory(const TQString&) ) );
connect( home, TQT_SIGNAL( clicked() ), dir, TQT_SLOT( home() ) ); connect( home, TQ_SIGNAL( clicked() ), dir, TQ_SLOT( home() ) );
connect( up, TQT_SIGNAL( clicked() ), dir, TQT_SLOT( cdUp() ) ); connect( up, TQ_SIGNAL( clicked() ), dir, TQ_SLOT( cdUp() ) );
connect( back, TQT_SIGNAL( clicked() ), dir, TQT_SLOT( back() ) ); connect( back, TQ_SIGNAL( clicked() ), dir, TQ_SLOT( back() ) );
connect( forward, TQT_SIGNAL( clicked() ), dir, TQT_SLOT( forward() ) ); connect( forward, TQ_SIGNAL( clicked() ), dir, TQ_SLOT( forward() ) );
connect( cmbPath, TQT_SIGNAL( urlActivated( const KURL& )), connect( cmbPath, TQ_SIGNAL( urlActivated( const KURL& )),
this, TQT_SLOT( cmbPathActivated( const KURL& ) )); this, TQ_SLOT( cmbPathActivated( const KURL& ) ));
connect( cmbPath, TQT_SIGNAL( returnPressed( const TQString& )), connect( cmbPath, TQ_SIGNAL( returnPressed( const TQString& )),
this, TQT_SLOT( cmbPathReturnPressed( const TQString& ) )); this, TQ_SLOT( cmbPathReturnPressed( const TQString& ) ));
connect(dir, TQT_SIGNAL(urlEntered(const KURL&)), connect(dir, TQ_SIGNAL(urlEntered(const KURL&)),
this, TQT_SLOT(dirUrlEntered(const KURL&)) ); this, TQ_SLOT(dirUrlEntered(const KURL&)) );
connect(dir, TQT_SIGNAL(finishedLoading()), connect(dir, TQ_SIGNAL(finishedLoading()),
this, TQT_SLOT(dirFinishedLoading()) ); this, TQ_SLOT(dirFinishedLoading()) );
connect(dir, TQT_SIGNAL(fileHighlighted(const KFileItem *)), connect(dir, TQ_SIGNAL(fileHighlighted(const KFileItem *)),
TQT_SLOT(fileHighlighted(const KFileItem *))); TQ_SLOT(fileHighlighted(const KFileItem *)));
connect(dir, TQT_SIGNAL(fileSelected(const KFileItem *)), connect(dir, TQ_SIGNAL(fileSelected(const KFileItem *)),
TQT_SLOT(fileSelected(const KFileItem *))); TQ_SLOT(fileSelected(const KFileItem *)));
kdDebug(90010) << "connected stuff!" << endl; kdDebug(90010) << "connected stuff!" << endl;
} }

@ -138,7 +138,7 @@ FFRS::FFRS() : TQObject(), Plugin()
dpyleft = dpyright = 0; dpyleft = dpyright = 0;
changed(); changed();
prefs = new FFRSPrefs(this); prefs = new FFRSPrefs(this);
connect(prefs, TQT_SIGNAL(changed()), TQT_SLOT(changed())); connect(prefs, TQ_SIGNAL(changed()), TQ_SLOT(changed()));
setSamples(256); setSamples(256);

@ -58,10 +58,10 @@ LyricsCModule::LyricsCModule(TQObject *_parent) : CModule(i18n("Lyrics"), i18n("
boxlayout->addWidget(providersBox); boxlayout->addWidget(providersBox);
boxButtons = new KButtonBox( this,TQt::Vertical ); boxButtons = new KButtonBox( this,TQt::Vertical );
boxButtons->addButton( i18n( "New Search Provider" ), this, TQT_SLOT( newSearch() ) ); boxButtons->addButton( i18n( "New Search Provider" ), this, TQ_SLOT( newSearch() ) );
boxButtons->addButton( i18n( "Delete Search Provider" ), this, TQT_SLOT( delSearch() ) ); boxButtons->addButton( i18n( "Delete Search Provider" ), this, TQ_SLOT( delSearch() ) );
boxButtons->addButton( i18n( "Move Up" ), this, TQT_SLOT( moveUpSearch() ) ); boxButtons->addButton( i18n( "Move Up" ), this, TQ_SLOT( moveUpSearch() ) );
boxButtons->addButton( i18n( "Move Down" ), this, TQT_SLOT( moveDownSearch() ) ); boxButtons->addButton( i18n( "Move Down" ), this, TQ_SLOT( moveDownSearch() ) );
boxButtons->layout(); boxButtons->layout();
boxlayout->addWidget( boxButtons ); boxlayout->addWidget( boxButtons );
@ -82,9 +82,9 @@ LyricsCModule::LyricsCModule(TQObject *_parent) : CModule(i18n("Lyrics"), i18n("
/* Signal/slots */ /* Signal/slots */
nameEdit->setEnabled( false ); nameEdit->setEnabled( false );
queryEdit->setEnabled( false ); queryEdit->setEnabled( false );
connect( providersBox, TQT_SIGNAL( highlighted( TQListBoxItem * ) ), this, TQT_SLOT( selected( TQListBoxItem * ) ) ); connect( providersBox, TQ_SIGNAL( highlighted( TQListBoxItem * ) ), this, TQ_SLOT( selected( TQListBoxItem * ) ) );
connect( nameEdit, TQT_SIGNAL( textChanged( const TQString &) ), this, TQT_SLOT( nameChanged( const TQString & ) ) ); connect( nameEdit, TQ_SIGNAL( textChanged( const TQString &) ), this, TQ_SLOT( nameChanged( const TQString & ) ) );
connect( queryEdit, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( queryChanged( const TQString & ) ) ); connect( queryEdit, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( queryChanged( const TQString & ) ) );

@ -27,25 +27,25 @@ Lyrics::Lyrics() : TDEMainWindow(), Plugin(), active(false)
{ {
lyrics = this; lyrics = this;
/* Create default actions */ /* Create default actions */
(void)KStdAction::close(this, TQT_SLOT(close()), actionCollection()); (void)KStdAction::close(this, TQ_SLOT(close()), actionCollection());
( void )KStdAction::goTo( this, TQT_SLOT( goTo() ), actionCollection(), "go_web_goTo" ); ( void )KStdAction::goTo( this, TQ_SLOT( goTo() ), actionCollection(), "go_web_goTo" );
//(void)KStdAction::print(this, TQT_SLOT(print()), actionCollection()); //(void)KStdAction::print(this, TQ_SLOT(print()), actionCollection());
//(void)KStdAction::printPreview(this, TQT_SLOT(printPreview()), actionCollection()); //(void)KStdAction::printPreview(this, TQ_SLOT(printPreview()), actionCollection());
//(void)KStdAction::mail(this, TQT_SLOT(mail()), actionCollection()); //(void)KStdAction::mail(this, TQ_SLOT(mail()), actionCollection());
//(void)KStdAction::find(this, TQT_SLOT(find()), actionCollection()); //(void)KStdAction::find(this, TQ_SLOT(find()), actionCollection());
follow_act = new TDEToggleAction(i18n("&Follow Noatun Playlist"), "goto", 0, actionCollection(), "follow"); follow_act = new TDEToggleAction(i18n("&Follow Noatun Playlist"), "goto", 0, actionCollection(), "follow");
KStdAction::redisplay(this, TQT_SLOT(viewLyrics()), actionCollection()); KStdAction::redisplay(this, TQ_SLOT(viewLyrics()), actionCollection());
attach_act = new TDEToggleAction(i18n("&Link URL to File"), "attach", TDEShortcut("CTRL+ALT+A"), actionCollection(), "attach_url"); attach_act = new TDEToggleAction(i18n("&Link URL to File"), "attach", TDEShortcut("CTRL+ALT+A"), actionCollection(), "attach_url");
connect(attach_act, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(attach(bool))); connect(attach_act, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(attach(bool)));
back_act = KStdAction::back(this, TQT_SLOT(back()), actionCollection()); back_act = KStdAction::back(this, TQ_SLOT(back()), actionCollection());
back_act->setEnabled(false); back_act->setEnabled(false);
forward_act = KStdAction::forward(this, TQT_SLOT(forward()), actionCollection()); forward_act = KStdAction::forward(this, TQ_SLOT(forward()), actionCollection());
forward_act->setEnabled(false); forward_act->setEnabled(false);
new KWidgetAction( new TQLabel(i18n("Search provider:"), this, "tde toolbar widget"), i18n("Search Provider"), 0, 0, 0, actionCollection(), "search_label"); new KWidgetAction( new TQLabel(i18n("Search provider:"), this, "tde toolbar widget"), i18n("Search Provider"), 0, 0, 0, actionCollection(), "search_label");
site_act = new TDESelectAction(i18n("&Search Provider"), 0, this, TQT_SLOT(viewLyrics()), actionCollection(), "search_provider"); site_act = new TDESelectAction(i18n("&Search Provider"), 0, this, TQ_SLOT(viewLyrics()), actionCollection(), "search_provider");
/* Add entry to menu */ /* Add entry to menu */
menuID = napp->pluginMenuAdd(i18n("&View Lyrics"), this, TQT_SLOT(viewLyrics())); menuID = napp->pluginMenuAdd(i18n("&View Lyrics"), this, TQ_SLOT(viewLyrics()));
/* Create history manager and htmlpart */ /* Create history manager and htmlpart */
history = new HistoryManager(this); history = new HistoryManager(this);
@ -53,11 +53,11 @@ Lyrics::Lyrics() : TDEMainWindow(), Plugin(), active(false)
//htmlpart->view()->setMinimumSize(350, 420); //htmlpart->view()->setMinimumSize(350, 420);
/* Connect signals/slots */ /* Connect signals/slots */
connect( htmlpart->browserExtension(), TQT_SIGNAL(openURLRequestDelayed( const KURL &, const KParts::URLArgs & )), this, TQT_SLOT(openURLRequest( const KURL &, const KParts::URLArgs & ))); connect( htmlpart->browserExtension(), TQ_SIGNAL(openURLRequestDelayed( const KURL &, const KParts::URLArgs & )), this, TQ_SLOT(openURLRequest( const KURL &, const KParts::URLArgs & )));
connect( htmlpart, TQT_SIGNAL(started(TDEIO::Job *)), this, TQT_SLOT(loadingURL(TDEIO::Job *)) ); connect( htmlpart, TQ_SIGNAL(started(TDEIO::Job *)), this, TQ_SLOT(loadingURL(TDEIO::Job *)) );
connect( htmlpart, TQT_SIGNAL(completed()), this, TQT_SLOT(loadedURL()) ); connect( htmlpart, TQ_SIGNAL(completed()), this, TQ_SLOT(loadedURL()) );
connect( history, TQT_SIGNAL(uiChanged(int, bool)), this, TQT_SLOT(changeUI(int, bool)) ); connect( history, TQ_SIGNAL(uiChanged(int, bool)), this, TQ_SLOT(changeUI(int, bool)) );
connect( napp->player(), TQT_SIGNAL(newSong()), this, TQT_SLOT(newSong()) ); connect( napp->player(), TQ_SIGNAL(newSong()), this, TQ_SLOT(newSong()) );
/* Status bar */ /* Status bar */
statusBar()->insertItem(i18n("Ready"), 0, 1); statusBar()->insertItem(i18n("Ready"), 0, 1);

@ -72,9 +72,9 @@ Control::Control() : mConfigurator(0)
{ {
{ {
TDEToolBar *tools=toolBar(); TDEToolBar *tools=toolBar();
KStdAction::save(this, TQT_SLOT(save()), actionCollection())->plug(tools); KStdAction::save(this, TQ_SLOT(save()), actionCollection())->plug(tools);
KStdAction::saveAs(this, TQT_SLOT(saveAs()), actionCollection())->plug(tools); KStdAction::saveAs(this, TQ_SLOT(saveAs()), actionCollection())->plug(tools);
KStdAction::open(this, TQT_SLOT(open()), actionCollection())->plug(tools); KStdAction::open(this, TQ_SLOT(open()), actionCollection())->plug(tools);
} }
@ -88,11 +88,11 @@ Control::Control() : mConfigurator(0)
mTree->setSorting(-1); mTree->setSorting(-1);
mTree->setRootIsDecorated(true); mTree->setRootIsDecorated(true);
connect(mTree, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)), connect(mTree, TQ_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)),
TQT_SLOT(dropEvent(TQDropEvent*, TQListViewItem*, TQListViewItem*))); TQ_SLOT(dropEvent(TQDropEvent*, TQListViewItem*, TQListViewItem*)));
connect(mTree, TQT_SIGNAL(currentChanged(TQListViewItem*)), connect(mTree, TQ_SIGNAL(currentChanged(TQListViewItem*)),
TQT_SLOT(currentChanged(TQListViewItem*))); TQ_SLOT(currentChanged(TQListViewItem*)));
mCreatorsList=new RendererListView(left); mCreatorsList=new RendererListView(left);
mCreatorsList->addColumn(i18n("Name")); mCreatorsList->addColumn(i18n("Name"));

@ -62,7 +62,7 @@ NexCheckBox::NexCheckBox(TQWidget *parent,
{ {
value=v; value=v;
setChecked(*v); setChecked(*v);
connect(this, TQT_SIGNAL(toggled(bool)), TQT_SLOT(change(bool))); connect(this, TQ_SIGNAL(toggled(bool)), TQ_SLOT(change(bool)));
} }
void NexCheckBox::change(bool b) void NexCheckBox::change(bool b)
{ {
@ -77,7 +77,7 @@ NexColorButton::NexColorButton(TQWidget *parent, Pixel *color)
c=color; c=color;
TQColor temp( (*c >> 16) & 0xFF, (*c >> 8) & 0xFF, *c & 0xFF); TQColor temp( (*c >> 16) & 0xFF, (*c >> 8) & 0xFF, *c & 0xFF);
setColor(temp); setColor(temp);
connect(this, TQT_SIGNAL(changed(const TQColor&)), TQT_SLOT(change(const TQColor&))); connect(this, TQ_SIGNAL(changed(const TQColor&)), TQ_SLOT(change(const TQColor&)));
} }
void NexColorButton::change(const TQColor &co) void NexColorButton::change(const TQColor &co)
@ -411,13 +411,13 @@ RendererListConfigurator::RendererListConfigurator(RendererList *l, TQWidget *pa
{ {
(new TQVBoxLayout(this))->setAutoAdd(true); (new TQVBoxLayout(this))->setAutoAdd(true);
mErase=new TQCheckBox(i18n("&Erase between frames"), this); mErase=new TQCheckBox(i18n("&Erase between frames"), this);
connect(mErase, TQT_SIGNAL(toggled(bool)), TQT_SLOT(eraseOn(bool))); connect(mErase, TQ_SIGNAL(toggled(bool)), TQ_SLOT(eraseOn(bool)));
mErase->setChecked(mList->mClearAfter); mErase->setChecked(mList->mClearAfter);
if (nex->rendererList()==l) if (nex->rendererList()==l)
{ {
TQCheckBox *mConvolve=new TQCheckBox(i18n("&Convolve audio"), this); TQCheckBox *mConvolve=new TQCheckBox(i18n("&Convolve audio"), this);
connect(mConvolve, TQT_SIGNAL(toggled(bool)), TQT_SLOT(convolve(bool))); connect(mConvolve, TQ_SIGNAL(toggled(bool)), TQ_SLOT(convolve(bool)));
mConvolve->setChecked(nex->input()->convolve()); mConvolve->setChecked(nex->input()->convolve());
} }

@ -18,7 +18,7 @@ extern "C"
NexPlugin::NexPlugin() NexPlugin::NexPlugin()
{ {
connect(&process, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(processExited(TDEProcess *))); connect(&process, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(processExited(TDEProcess *)));
} }
NexPlugin::~NexPlugin() NexPlugin::~NexPlugin()

@ -30,10 +30,10 @@ extern "C"
Madness::Madness() Madness::Madness()
: MonoFFTScope(100), Plugin(), mWm(this) : MonoFFTScope(100), Plugin(), mWm(this)
{ {
connect(&mWm, TQT_SIGNAL(currentDesktopChanged(int)), TQT_SLOT(update())); connect(&mWm, TQ_SIGNAL(currentDesktopChanged(int)), TQ_SLOT(update()));
connect(&mWm, TQT_SIGNAL(windowAdded(WId)), TQT_SLOT(update())); connect(&mWm, TQ_SIGNAL(windowAdded(WId)), TQ_SLOT(update()));
connect(&mWm, TQT_SIGNAL(windowRemoved(WId)), TQT_SLOT(update())); connect(&mWm, TQ_SIGNAL(windowRemoved(WId)), TQ_SLOT(update()));
connect(&mWm, TQT_SIGNAL(strutChanged()), TQT_SLOT(update())); connect(&mWm, TQ_SIGNAL(strutChanged()), TQ_SLOT(update()));
} }

@ -47,24 +47,24 @@ SchemaConfig::SchemaConfig(TQWidget *parent, Oblique *oblique)
box->setSpacing(7); box->setSpacing(7);
mSchemaList = new TQComboBox(box); mSchemaList = new TQComboBox(box);
connect( connect(
mSchemaList, TQT_SIGNAL(activated(const TQString&)), mSchemaList, TQ_SIGNAL(activated(const TQString&)),
TQT_SLOT(selectSchema(const TQString&)) TQ_SLOT(selectSchema(const TQString&))
); );
mAdd = new TQPushButton(BarIconSet("document-new"), 0, box); mAdd = new TQPushButton(BarIconSet("document-new"), 0, box);
mAdd->setFixedWidth(mAdd->height()); mAdd->setFixedWidth(mAdd->height());
TQToolTip::add(mAdd, i18n("Create new schema")); TQToolTip::add(mAdd, i18n("Create new schema"));
connect(mAdd, TQT_SIGNAL(clicked()), TQT_SLOT(newSchema())); connect(mAdd, TQ_SIGNAL(clicked()), TQ_SLOT(newSchema()));
mRemove = new TQPushButton(BarIconSet("edit-delete"), 0, box); mRemove = new TQPushButton(BarIconSet("edit-delete"), 0, box);
mRemove->setFixedWidth(mRemove->height()); mRemove->setFixedWidth(mRemove->height());
TQToolTip::add(mRemove, i18n("Remove this schema")); TQToolTip::add(mRemove, i18n("Remove this schema"));
connect(mRemove, TQT_SIGNAL(clicked()), TQT_SLOT(removeSchema())); connect(mRemove, TQ_SIGNAL(clicked()), TQ_SLOT(removeSchema()));
mCopy = new TQPushButton(BarIconSet("edit-copy"), 0, box); mCopy = new TQPushButton(BarIconSet("edit-copy"), 0, box);
mCopy->setFixedWidth(mCopy->height()); mCopy->setFixedWidth(mCopy->height());
TQToolTip::add(mCopy, i18n("Copy this schema")); TQToolTip::add(mCopy, i18n("Copy this schema"));
connect(mCopy, TQT_SIGNAL(clicked()), TQT_SLOT(copySchema())); connect(mCopy, TQ_SIGNAL(clicked()), TQ_SLOT(copySchema()));
} }
@ -74,12 +74,12 @@ SchemaConfig::SchemaConfig(TQWidget *parent, Oblique *oblique)
mSchemaTree = new TDEListView(middle); mSchemaTree = new TDEListView(middle);
connect( connect(
mSchemaTree, TQT_SIGNAL(currentChanged(TQListViewItem*)), mSchemaTree, TQ_SIGNAL(currentChanged(TQListViewItem*)),
TQT_SLOT(setCurrent(TQListViewItem*)) TQ_SLOT(setCurrent(TQListViewItem*))
); );
connect( connect(
mSchemaTree, TQT_SIGNAL(moved(TQListViewItem *, TQListViewItem *, TQListViewItem *)), mSchemaTree, TQ_SIGNAL(moved(TQListViewItem *, TQListViewItem *, TQListViewItem *)),
TQT_SLOT(move(TQListViewItem *, TQListViewItem *, TQListViewItem *)) TQ_SLOT(move(TQListViewItem *, TQListViewItem *, TQListViewItem *))
); );
mSchemaTree->setAcceptDrops(true); mSchemaTree->setAcceptDrops(true);
@ -96,17 +96,17 @@ SchemaConfig::SchemaConfig(TQWidget *parent, Oblique *oblique)
mAddSibling = new TQPushButton(BarIconSet("1rightarrow", TDEIcon::SizeSmall), "",buttons); mAddSibling = new TQPushButton(BarIconSet("1rightarrow", TDEIcon::SizeSmall), "",buttons);
mAddSibling->setFixedWidth(mAddSibling->height()); mAddSibling->setFixedWidth(mAddSibling->height());
connect(mAddSibling, TQT_SIGNAL(clicked()), TQT_SLOT(addSibling())); connect(mAddSibling, TQ_SIGNAL(clicked()), TQ_SLOT(addSibling()));
TQToolTip::add(mAddSibling, i18n("Create a new item after the selected one")); TQToolTip::add(mAddSibling, i18n("Create a new item after the selected one"));
mAddChild = new TQPushButton(BarIconSet("2rightarrow", TDEIcon::SizeSmall), "", buttons); mAddChild = new TQPushButton(BarIconSet("2rightarrow", TDEIcon::SizeSmall), "", buttons);
mAddChild->setFixedWidth(mAddChild->height()); mAddChild->setFixedWidth(mAddChild->height());
connect(mAddChild, TQT_SIGNAL(clicked()), TQT_SLOT(addChild())); connect(mAddChild, TQ_SIGNAL(clicked()), TQ_SLOT(addChild()));
TQToolTip::add(mAddChild, i18n("Create a new child item under the selected one")); TQToolTip::add(mAddChild, i18n("Create a new child item under the selected one"));
mRemoveSelf = new TQPushButton(BarIconSet("document-new", TDEIcon::SizeSmall), "", buttons); mRemoveSelf = new TQPushButton(BarIconSet("document-new", TDEIcon::SizeSmall), "", buttons);
mRemoveSelf->setFixedWidth(mRemoveSelf->height()); mRemoveSelf->setFixedWidth(mRemoveSelf->height());
connect(mRemoveSelf, TQT_SIGNAL(clicked()), TQT_SLOT(removeSelf())); connect(mRemoveSelf, TQ_SIGNAL(clicked()), TQ_SLOT(removeSelf()));
TQToolTip::add(mRemoveSelf, i18n("Remove the selected item")); TQToolTip::add(mRemoveSelf, i18n("Remove the selected item"));
new TQWidget(buttons); new TQWidget(buttons);
@ -128,25 +128,25 @@ SchemaConfig::SchemaConfig(TQWidget *parent, Oblique *oblique)
label->setBuddy(mPropertyEdit); label->setBuddy(mPropertyEdit);
grid->addWidget(label, 0, 0); grid->addWidget(label, 0, 0);
grid->addMultiCellWidget(mPropertyEdit, 0, 0, 1, 2); grid->addMultiCellWidget(mPropertyEdit, 0, 0, 1, 2);
connect(mPropertyEdit, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(updateCurrent())); connect(mPropertyEdit, TQ_SIGNAL(textChanged(const TQString&)), TQ_SLOT(updateCurrent()));
label = new TQLabel(i18n("&Value:"), topSide); label = new TQLabel(i18n("&Value:"), topSide);
mValueEdit = new KLineEdit(topSide); mValueEdit = new KLineEdit(topSide);
label->setBuddy(mPropertyEdit); label->setBuddy(mPropertyEdit);
grid->addWidget(label, 1, 0); grid->addWidget(label, 1, 0);
grid->addMultiCellWidget(mValueEdit, 1, 1, 1, 1); grid->addMultiCellWidget(mValueEdit, 1, 1, 1, 1);
connect(mValueEdit, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(updateCurrent())); connect(mValueEdit, TQ_SIGNAL(textChanged(const TQString&)), TQ_SLOT(updateCurrent()));
TQPushButton *editRe = new TQPushButton(i18n("&Edit..."), topSide); TQPushButton *editRe = new TQPushButton(i18n("&Edit..."), topSide);
grid->addWidget(editRe, 1, 2); grid->addWidget(editRe, 1, 2);
connect(editRe, TQT_SIGNAL(clicked()), TQT_SLOT(editValueRegexp())); connect(editRe, TQ_SIGNAL(clicked()), TQ_SLOT(editValueRegexp()));
label = new TQLabel(i18n("Pre&sentation:"), topSide); label = new TQLabel(i18n("Pre&sentation:"), topSide);
mPresentationEdit = new KLineEdit(topSide); mPresentationEdit = new KLineEdit(topSide);
label->setBuddy(mPropertyEdit); label->setBuddy(mPropertyEdit);
grid->addWidget(label, 2, 0); grid->addWidget(label, 2, 0);
grid->addMultiCellWidget(mPresentationEdit, 2, 2, 1, 2); grid->addMultiCellWidget(mPresentationEdit, 2, 2, 1, 2);
connect(mPresentationEdit, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(updateCurrent())); connect(mPresentationEdit, TQ_SIGNAL(textChanged(const TQString&)), TQ_SLOT(updateCurrent()));
} }
{ {
@ -156,15 +156,15 @@ SchemaConfig::SchemaConfig(TQWidget *parent, Oblique *oblique)
mOptionPlayable = new TQCheckBox(i18n("Play&able"), groupbox); mOptionPlayable = new TQCheckBox(i18n("Play&able"), groupbox);
TQWhatsThis::add(mOptionPlayable, i18n("This branch represents an individual file. If two items' presentation match, two items are created.")); TQWhatsThis::add(mOptionPlayable, i18n("This branch represents an individual file. If two items' presentation match, two items are created."));
connect(mOptionPlayable, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent())); connect(mOptionPlayable, TQ_SIGNAL(toggled(bool)), TQ_SLOT(updateCurrent()));
mOptionChildrenVisible = new TQCheckBox(i18n("&Children visible"), groupbox); mOptionChildrenVisible = new TQCheckBox(i18n("&Children visible"), groupbox);
TQWhatsThis::add(mOptionChildrenVisible, i18n("Don't create this node, this nodes children become direct children of this node's parent")); TQWhatsThis::add(mOptionChildrenVisible, i18n("Don't create this node, this nodes children become direct children of this node's parent"));
connect(mOptionChildrenVisible, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent())); connect(mOptionChildrenVisible, TQ_SIGNAL(toggled(bool)), TQ_SLOT(updateCurrent()));
mOptionAutoOpen = new TQCheckBox(i18n("Auto &open"), groupbox); mOptionAutoOpen = new TQCheckBox(i18n("Auto &open"), groupbox);
TQWhatsThis::add(mOptionAutoOpen, i18n("This branch is marked as open immediately.")); TQWhatsThis::add(mOptionAutoOpen, i18n("This branch is marked as open immediately."));
connect(mOptionAutoOpen, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent())); connect(mOptionAutoOpen, TQ_SIGNAL(toggled(bool)), TQ_SLOT(updateCurrent()));
} }
} }
@ -522,12 +522,12 @@ SliceConfig::SliceConfig(TQWidget *parent, Oblique *oblique)
mAdd = new TQPushButton(BarIconSet("1rightarrow", TDEIcon::SizeSmall), "",buttons); mAdd = new TQPushButton(BarIconSet("1rightarrow", TDEIcon::SizeSmall), "",buttons);
mAdd->setFixedWidth(mAdd->height()); mAdd->setFixedWidth(mAdd->height());
connect(mAdd, TQT_SIGNAL(clicked()), TQT_SLOT(addSibling())); connect(mAdd, TQ_SIGNAL(clicked()), TQ_SLOT(addSibling()));
TQToolTip::add(mAdd, i18n("Create a new item")); TQToolTip::add(mAdd, i18n("Create a new item"));
mRemove = new TQPushButton(BarIconSet("document-new", TDEIcon::SizeSmall), "", buttons); mRemove = new TQPushButton(BarIconSet("document-new", TDEIcon::SizeSmall), "", buttons);
mRemove->setFixedWidth(mRemove->height()); mRemove->setFixedWidth(mRemove->height());
connect(mRemove, TQT_SIGNAL(clicked()), TQT_SLOT(removeSelf())); connect(mRemove, TQ_SIGNAL(clicked()), TQ_SLOT(removeSelf()));
TQToolTip::add(mRemove, i18n("Remove the selected item")); TQToolTip::add(mRemove, i18n("Remove the selected item"));
new TQWidget(buttons); new TQWidget(buttons);

@ -14,13 +14,13 @@ FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, File file)
mFiles.append(file); mFiles.append(file);
insertItem( insertItem(
BarIconSet("delete"), i18n("&Remove From Playlist"), BarIconSet("delete"), i18n("&Remove From Playlist"),
this, TQT_SLOT(removeFromList()) this, TQ_SLOT(removeFromList())
); );
insertItem(i18n("&Properties"), this, TQT_SLOT(properties())); insertItem(i18n("&Properties"), this, TQ_SLOT(properties()));
(new SliceListAction( (new SliceListAction(
i18n("&Slices"), oblique, i18n("&Slices"), oblique,
this, TQT_SLOT(toggleInSlice(Slice *)), this, TQ_SLOT(toggleInSlice(Slice *)),
mFiles, this mFiles, this
))->plug(this); ))->plug(this);
} }
@ -46,13 +46,13 @@ FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, TreeItem *items)
insertItem( insertItem(
BarIconSet("delete"), i18n("&Remove From Playlist"), BarIconSet("delete"), i18n("&Remove From Playlist"),
this, TQT_SLOT(removeFromList()) this, TQ_SLOT(removeFromList())
); );
insertItem(i18n("&Properties"), this, TQT_SLOT(properties())); insertItem(i18n("&Properties"), this, TQ_SLOT(properties()));
(new SliceListAction( (new SliceListAction(
i18n("&Slices"), oblique, i18n("&Slices"), oblique,
this, TQT_SLOT(toggleInSlice(Slice *)), this, TQ_SLOT(toggleInSlice(Slice *)),
mFiles,this mFiles,this
))->plug(this); ))->plug(this);
} }
@ -99,9 +99,9 @@ SliceListAction::SliceListAction(
mOblique = oblique; mOblique = oblique;
slicesModified(); slicesModified();
if (reciever) if (reciever)
connect(this, TQT_SIGNAL(activated(Slice*)), reciever, slot); connect(this, TQ_SIGNAL(activated(Slice*)), reciever, slot);
connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_SLOT(hit(int))); connect(popupMenu(), TQ_SIGNAL(activated(int)), TQ_SLOT(hit(int)));
connect(oblique->base(), TQT_SIGNAL(slicesModified()), TQT_SLOT(slicesModified())); connect(oblique->base(), TQ_SIGNAL(slicesModified()), TQ_SLOT(slicesModified()));
} }
void SliceListAction::slicesModified() void SliceListAction::slicesModified()
@ -158,9 +158,9 @@ SchemaListAction::SchemaListAction(
{ {
mTree = 0; mTree = 0;
if (reciever) if (reciever)
connect(this, TQT_SIGNAL(activated(const TQString&)), reciever, slot); connect(this, TQ_SIGNAL(activated(const TQString&)), reciever, slot);
connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_SLOT(prepare())); connect(popupMenu(), TQ_SIGNAL(aboutToShow()), TQ_SLOT(prepare()));
connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_SLOT(hit(int))); connect(popupMenu(), TQ_SIGNAL(activated(int)), TQ_SLOT(hit(int)));
} }
void SchemaListAction::prepare() void SchemaListAction::prepare()
@ -200,8 +200,8 @@ void SchemaListAction::hit(int index)
ObliquePropertiesDialog::ObliquePropertiesDialog(const TQValueList<File> &files, TQWidget *parent) ObliquePropertiesDialog::ObliquePropertiesDialog(const TQValueList<File> &files, TQWidget *parent)
: KPropertiesDialog(makeItems(files), parent), mFiles(files) : KPropertiesDialog(makeItems(files), parent), mFiles(files)
{ {
connect(this, TQT_SIGNAL(propertiesClosed()), TQT_SLOT(deleteLater())); connect(this, TQ_SIGNAL(propertiesClosed()), TQ_SLOT(deleteLater()));
connect(this, TQT_SIGNAL(applied()), TQT_SLOT(modified())); connect(this, TQ_SIGNAL(applied()), TQ_SLOT(modified()));
show(); show();
} }

@ -37,15 +37,15 @@ Oblique::Oblique()
mBase = new Base(::locate("data", "noatun/")+"/oblique-list"); mBase = new Base(::locate("data", "noatun/")+"/oblique-list");
mView = new View(this); mView = new View(this);
connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), TQT_SLOT(loopTypeChange(int))); connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), TQ_SLOT(loopTypeChange(int)));
mSelector = new SequentialSelector(mView->tree()); mSelector = new SequentialSelector(mView->tree());
new Configure(this); new Configure(this);
// psst, window's gone, pass it on! // psst, window's gone, pass it on!
connect(mView, TQT_SIGNAL(listHidden()), TQT_SIGNAL(listHidden())); connect(mView, TQ_SIGNAL(listHidden()), TQ_SIGNAL(listHidden()));
connect(mView, TQT_SIGNAL(listShown()), TQT_SIGNAL(listShown())); connect(mView, TQ_SIGNAL(listShown()), TQ_SIGNAL(listShown()));
loopTypeChange(napp->player()->loopStyle()); loopTypeChange(napp->player()->loopStyle());
} }
@ -187,7 +187,7 @@ void Oblique::beginDirectoryAdd(const KURL &url)
else else
{ {
mAdder = new DirectoryAdder(url, this); mAdder = new DirectoryAdder(url, this);
connect(mAdder, TQT_SIGNAL(done()), TQT_SLOT(adderDone())); connect(mAdder, TQ_SIGNAL(done()), TQ_SLOT(adderDone()));
} }
} }
@ -201,7 +201,7 @@ Loader::Loader(Tree *tree)
mDeferredLoaderAt=1; mDeferredLoaderAt=1;
TQTimer::singleShot(0, this, TQT_SLOT(loadItemsDeferred())); TQTimer::singleShot(0, this, TQ_SLOT(loadItemsDeferred()));
} }
void Loader::loadItemsDeferred() void Loader::loadItemsDeferred()
@ -230,7 +230,7 @@ void Loader::loadItemsDeferred()
mDeferredLoaderAt++; mDeferredLoaderAt++;
} }
TQTimer::singleShot(0, this, TQT_SLOT(loadItemsDeferred())); TQTimer::singleShot(0, this, TQ_SLOT(loadItemsDeferred()));
} }
@ -267,16 +267,16 @@ void DirectoryAdder::addNextPending()
currentJobURL= *pendingIt; currentJobURL= *pendingIt;
listJob = TDEIO::listDir(currentJobURL, false, false); listJob = TDEIO::listDir(currentJobURL, false, false);
connect( connect(
listJob, TQT_SIGNAL(entries(TDEIO::Job*, const TDEIO::UDSEntryList&)), listJob, TQ_SIGNAL(entries(TDEIO::Job*, const TDEIO::UDSEntryList&)),
TQT_SLOT(slotEntries(TDEIO::Job*, const TDEIO::UDSEntryList&)) TQ_SLOT(slotEntries(TDEIO::Job*, const TDEIO::UDSEntryList&))
); );
connect( connect(
listJob, TQT_SIGNAL(result(TDEIO::Job *)), listJob, TQ_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(TDEIO::Job *)) TQ_SLOT(slotResult(TDEIO::Job *))
); );
connect( connect(
listJob, TQT_SIGNAL(redirection(TDEIO::Job *, const KURL &)), listJob, TQ_SIGNAL(redirection(TDEIO::Job *, const KURL &)),
TQT_SLOT(slotRedirection(TDEIO::Job *, const KURL &)) TQ_SLOT(slotRedirection(TDEIO::Job *, const KURL &))
); );
pendingAddDirectories.remove(pendingIt); pendingAddDirectories.remove(pendingIt);
lastAddedSubDirectory = pendingAddDirectories.begin(); lastAddedSubDirectory = pendingAddDirectories.begin();

@ -453,28 +453,28 @@ Tree::Tree(Oblique *oblique, TQWidget *parent)
connect( connect(
this, TQT_SIGNAL(moved(TQPtrList<TQListViewItem>&, TQPtrList<TQListViewItem>&, TQPtrList<TQListViewItem>&)), this, TQ_SIGNAL(moved(TQPtrList<TQListViewItem>&, TQPtrList<TQListViewItem>&, TQPtrList<TQListViewItem>&)),
TQT_SLOT(dropped(TQPtrList<TQListViewItem>&, TQPtrList<TQListViewItem>&, TQPtrList<TQListViewItem>&)) TQ_SLOT(dropped(TQPtrList<TQListViewItem>&, TQPtrList<TQListViewItem>&, TQPtrList<TQListViewItem>&))
); );
connect( connect(
this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), this, TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
TQT_SLOT(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) TQ_SLOT(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&))
); );
connect( connect(
this, TQT_SIGNAL(executed(TQListViewItem*)), this, TQ_SIGNAL(executed(TQListViewItem*)),
TQT_SLOT(play(TQListViewItem*)) TQ_SLOT(play(TQListViewItem*))
); );
Base *base = oblique->base(); Base *base = oblique->base();
connect(base, TQT_SIGNAL(added(File)), TQT_SLOT(insert(File))); connect(base, TQ_SIGNAL(added(File)), TQ_SLOT(insert(File)));
connect(base, TQT_SIGNAL(removed(File)), TQT_SLOT(remove(File))); connect(base, TQ_SIGNAL(removed(File)), TQ_SLOT(remove(File)));
connect(base, TQT_SIGNAL(modified(File)), TQT_SLOT(update(File))); connect(base, TQ_SIGNAL(modified(File)), TQ_SLOT(update(File)));
connect(base, TQT_SIGNAL(addedTo(Slice*, File)), TQT_SLOT(checkInsert(Slice*, File))); connect(base, TQ_SIGNAL(addedTo(Slice*, File)), TQ_SLOT(checkInsert(Slice*, File)));
connect(base, TQT_SIGNAL(removedFrom(Slice*, File)), TQT_SLOT(checkRemove(Slice*, File))); connect(base, TQ_SIGNAL(removedFrom(Slice*, File)), TQ_SLOT(checkRemove(Slice*, File)));
connect(this, TQT_SIGNAL(selected(TreeItem*)), oblique, TQT_SLOT(selected(TreeItem*))); connect(this, TQ_SIGNAL(selected(TreeItem*)), oblique, TQ_SLOT(selected(TreeItem*)));
mSlice = oblique->base()->defaultSlice(); mSlice = oblique->base()->defaultSlice();
@ -660,7 +660,7 @@ void Tree::reload()
delete mLoader; delete mLoader;
clear(); clear();
mLoader = new Loader(this); mLoader = new Loader(this);
connect(mLoader, TQT_SIGNAL(finished()), TQT_SLOT(destroyLoader())); connect(mLoader, TQ_SIGNAL(finished()), TQ_SLOT(destroyLoader()));
} }
void Tree::setSlice(Slice *slice) void Tree::setSlice(Slice *slice)

@ -37,37 +37,37 @@ View::View(Oblique *oblique)
mTabs = new TabWidget(this); mTabs = new TabWidget(this);
mTabs->tabBar()->hide(); mTabs->tabBar()->hide();
connect(mTabs, TQT_SIGNAL(currentChanged(TQWidget*)), TQT_SLOT(currentTabChanged(TQWidget*))); connect(mTabs, TQ_SIGNAL(currentChanged(TQWidget*)), TQ_SLOT(currentTabChanged(TQWidget*)));
setCentralWidget(mTabs); setCentralWidget(mTabs);
TDEAction *ac; TDEAction *ac;
ac = new TDEAction(i18n("Add &Files..."), "queue", 0, this, TQT_SLOT(addFiles()), actionCollection(), "add_files"); ac = new TDEAction(i18n("Add &Files..."), "queue", 0, this, TQ_SLOT(addFiles()), actionCollection(), "add_files");
ac->setWhatsThis(i18n("Add a reference to a media file on disk to this collection.")); ac->setWhatsThis(i18n("Add a reference to a media file on disk to this collection."));
ac = new TDEAction(i18n("Add Fol&ders..."), "folder", 0, this, TQT_SLOT(addDirectory()), actionCollection(), "add_dir"); ac = new TDEAction(i18n("Add Fol&ders..."), "folder", 0, this, TQ_SLOT(addDirectory()), actionCollection(), "add_dir");
// ac = new TDEAction(i18n("&Reload"), "reload", 0, oblique, TQT_SLOT(reload()), actionCollection(), "reload"); // ac = new TDEAction(i18n("&Reload"), "reload", 0, oblique, TQ_SLOT(reload()), actionCollection(), "reload");
// ac->setWhatsThis(i18n("Reread the collection and meta-information from its files.")); // ac->setWhatsThis(i18n("Reread the collection and meta-information from its files."));
ac = new SliceListAction( ac = new SliceListAction(
i18n("&Slices"), oblique, i18n("&Slices"), oblique,
this, TQT_SLOT(use(Slice*)), TQValueList<File>(), actionCollection(), "slices" this, TQ_SLOT(use(Slice*)), TQValueList<File>(), actionCollection(), "slices"
); );
ac->setWhatsThis(i18n("Select a sub-collection to display")); ac->setWhatsThis(i18n("Select a sub-collection to display"));
mSchemaListAction = new SchemaListAction( mSchemaListAction = new SchemaListAction(
i18n("&Schemas"), this, TQT_SLOT(setSchema(const TQString&)), actionCollection(), "schemas" i18n("&Schemas"), this, TQ_SLOT(setSchema(const TQString&)), actionCollection(), "schemas"
); );
mSchemaListAction->setWhatsThis(i18n("Select a schema to use to collate the tree.")); mSchemaListAction->setWhatsThis(i18n("Select a schema to use to collate the tree."));
ac = new TDEAction( ac = new TDEAction(
i18n("&New Tab"), "tab_new", "CTRL+SHIFT+N;CTRL+T", this, TQT_SLOT(addTab()), i18n("&New Tab"), "tab_new", "CTRL+SHIFT+N;CTRL+T", this, TQ_SLOT(addTab()),
actionCollection(), "newtab" actionCollection(), "newtab"
); );
mRemoveTabAction = new TDEAction( mRemoveTabAction = new TDEAction(
i18n("&Close Current Tab"), "tab_remove", CTRL+Key_W, this, TQT_SLOT(removeTab()), i18n("&Close Current Tab"), "tab_remove", CTRL+Key_W, this, TQ_SLOT(removeTab()),
actionCollection(), "removecurrenttab" actionCollection(), "removecurrenttab"
); );
@ -84,10 +84,10 @@ View::View(Oblique *oblique)
LineEditAction *jumpAction = new LineEditAction(i18n("Jump Bar"), 0, 0, actionCollection(), "jump_text"); LineEditAction *jumpAction = new LineEditAction(i18n("Jump Bar"), 0, 0, actionCollection(), "jump_text");
jumpAction->setWhatsThis(i18n("Only display items which contain this string")); jumpAction->setWhatsThis(i18n("Only display items which contain this string"));
l->setBuddy(jumpAction->lineEdit()); l->setBuddy(jumpAction->lineEdit());
connect(jumpAction->lineEdit(), TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(jumpTextChanged(const TQString&))); connect(jumpAction->lineEdit(), TQ_SIGNAL(textChanged(const TQString&)), TQ_SLOT(jumpTextChanged(const TQString&)));
} }
KStdAction::configureToolbars(this, TQT_SLOT(configureToolBars()), actionCollection()); KStdAction::configureToolbars(this, TQ_SLOT(configureToolBars()), actionCollection());
applyMainWindowSettings(TDEGlobal::config(), "Oblique View"); applyMainWindowSettings(TDEGlobal::config(), "Oblique View");
createGUI("obliqueui.rc"); createGUI("obliqueui.rc");
@ -151,7 +151,7 @@ void View::configureToolBars()
{ {
saveMainWindowSettings(TDEGlobal::config(), "Oblique View"); saveMainWindowSettings(TDEGlobal::config(), "Oblique View");
KEditToolbar dlg(actionCollection(), "obliqueui.rc"); KEditToolbar dlg(actionCollection(), "obliqueui.rc");
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_SLOT(newToolBarConfig())); connect(&dlg, TQ_SIGNAL(newToolbarConfig()), TQ_SLOT(newToolBarConfig()));
dlg.exec(); dlg.exec();
} }

@ -46,10 +46,10 @@ PitchableSpeed::PitchableSpeed() : Plugin(),
offsetInput->setRange(-5,15,1,false); offsetInput->setRange(-5,15,1,false);
offsetInput->setValue(offset); offsetInput->setValue(offset);
setupSliderRange(); setupSliderRange();
connect(napp->player(), TQT_SIGNAL(changed()), connect(napp->player(), TQ_SIGNAL(changed()),
this, TQT_SLOT(newSong())); this, TQ_SLOT(newSong()));
connect(preserveFrequencies, TQT_SIGNAL(toggled(bool)), connect(preserveFrequencies, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(preserveFrequenciesChanged(bool))); this, TQ_SLOT(preserveFrequenciesChanged(bool)));
//show(); //show();
} }
@ -149,7 +149,7 @@ void PitchableSpeed::preserveFrequenciesChanged(bool preserveNow)
void PitchableSpeed::init() void PitchableSpeed::init()
{ {
pluginMenuItem = napp->pluginMenuAdd(i18n("Toggle Speed Slider"), pluginMenuItem = napp->pluginMenuAdd(i18n("Toggle Speed Slider"),
this, TQT_SLOT(toggle(void))); this, TQ_SLOT(toggle(void)));
} }
void PitchableSpeed::toggle(void) void PitchableSpeed::toggle(void)

@ -52,8 +52,8 @@ SynaePrefs::SynaePrefs(TQObject *parent)
layout->addStretch(); layout->addStretch();
changed=false; changed=false;
connect(xRes, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanges())); connect(xRes, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanges()));
connect(yRes, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanges())); connect(yRes, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanges()));
} }
void SynaePrefs::save() void SynaePrefs::save()

@ -26,12 +26,12 @@ SynaeScope::SynaeScope() : Plugin(), scopeExePath(0)
{ {
kdDebug(66666) << k_funcinfo << endl; kdDebug(66666) << k_funcinfo << endl;
restarting=false; restarting=false;
connect(&process, TQT_SIGNAL(processExited(TDEProcess *)), connect(&process, TQ_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(processExited(TDEProcess *))); this, TQ_SLOT(processExited(TDEProcess *)));
connect(&process, TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)), connect(&process, TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),
this, TQT_SLOT(receivedStdout(TDEProcess *,char *,int))); this, TQ_SLOT(receivedStdout(TDEProcess *,char *,int)));
connect(&process, TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)), connect(&process, TQ_SIGNAL(receivedStderr(TDEProcess *,char *,int)),
this, TQT_SLOT(receivedStderr(TDEProcess *,char *,int))); this, TQ_SLOT(receivedStderr(TDEProcess *,char *,int)));
} }
SynaeScope::~SynaeScope() SynaeScope::~SynaeScope()
@ -46,7 +46,7 @@ void SynaeScope::init()
mPrefs = new SynaePrefs(this); mPrefs = new SynaePrefs(this);
mPrefs->reopen(); mPrefs->reopen();
mPrefs->save(); mPrefs->save();
connect(mPrefs, TQT_SIGNAL(configChanged()), this, TQT_SLOT(readConfig())); connect(mPrefs, TQ_SIGNAL(configChanged()), this, TQ_SLOT(readConfig()));
scopeExePath = TDEStandardDirs::findExe("noatunsynaescope.bin"); scopeExePath = TDEStandardDirs::findExe("noatunsynaescope.bin");
if (scopeExePath.isEmpty()) if (scopeExePath.isEmpty())

@ -48,14 +48,14 @@ SynaeScope::SynaeScope()
SynaeScope::~SynaeScope() SynaeScope::~SynaeScope()
{ {
connect(&process, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(processExited(TDEProcess *))); connect(&process, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(processExited(TDEProcess *)));
napp->pluginMenuRemove(pluginMenuItem); napp->pluginMenuRemove(pluginMenuItem);
} }
void SynaeScope::init() void SynaeScope::init()
{ {
connect(&process, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(read(TDEProcess *, char *, int))); connect(&process, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQ_SLOT(read(TDEProcess *, char *, int)));
pluginMenuItem = napp->pluginMenuAdd(i18n("Toggle Tippecanoe"), this, TQT_SLOT(toggle(void))); pluginMenuItem = napp->pluginMenuAdd(i18n("Toggle Tippecanoe"), this, TQ_SLOT(toggle(void)));
process << TDEStandardDirs::findExe("noatuntippecanoe.bin"); process << TDEStandardDirs::findExe("noatuntippecanoe.bin");

@ -40,7 +40,7 @@ Tyler::~Tyler()
void Tyler::init() void Tyler::init()
{ {
process << TDEStandardDirs::findExe("noatuntyler.bin"); process << TDEStandardDirs::findExe("noatuntyler.bin");
connect(&process, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(processExited(TDEProcess *))); connect(&process, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(processExited(TDEProcess *)));
// Note that process.start() will fail if findExe fails, so there's no real need // Note that process.start() will fail if findExe fails, so there's no real need
// for two separate checks. // for two separate checks.

@ -68,12 +68,12 @@ WaveCapture::WaveCapture() : TQObject(0,0), Plugin(),
newSong(); newSong();
connect( _timer, TQT_SIGNAL( timeout() ), TQT_SLOT( saveAs() ) ); connect( _timer, TQ_SIGNAL( timeout() ), TQ_SLOT( saveAs() ) );
connect(napp->player(), TQT_SIGNAL(changed()), TQT_SLOT(newSong())); connect(napp->player(), TQ_SIGNAL(changed()), TQ_SLOT(newSong()));
connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(stopped())); connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(stopped()));
connect(napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(playing())); connect(napp->player(), TQ_SIGNAL(playing()), TQ_SLOT(playing()));
connect(napp->player(), TQT_SIGNAL( paused()), TQT_SLOT( paused())); connect(napp->player(), TQ_SIGNAL( paused()), TQ_SLOT( paused()));
} }
WaveCapture::~WaveCapture() WaveCapture::~WaveCapture()
@ -91,7 +91,7 @@ WaveCapture::~WaveCapture()
void WaveCapture::init() void WaveCapture::init()
{ {
pluginMenuItem = napp->pluginMenuAdd( i18n( "Wave Capture" ), this, TQT_SLOT( toggle() ) ); pluginMenuItem = napp->pluginMenuAdd( i18n( "Wave Capture" ), this, TQ_SLOT( toggle() ) );
napp->pluginMenu()->setCheckable( true ); napp->pluginMenu()->setCheckable( true );
} }
@ -142,7 +142,7 @@ void WaveCapture::saveAs()
TDERecentDocument::add( url ); TDERecentDocument::add( url );
m_job = TDEIO::file_move( KURL( filename2 ), url, -1, true ); m_job = TDEIO::file_move( KURL( filename2 ), url, -1, true );
connect( m_job, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( copyFinished( TDEIO::Job* ) ) ); connect( m_job, TQ_SIGNAL( result( TDEIO::Job* ) ), TQ_SLOT( copyFinished( TDEIO::Job* ) ) );
} }
else else
{ {

@ -53,7 +53,7 @@ AudioPreview::AudioPreview( TQWidget *parent, const char *name, const TQString &
KURLLabel *label = new KURLLabel( this ); KURLLabel *label = new KURLLabel( this );
label->setText(i18n("This audio file isn't stored\non the local host.\nClick on this label to load it.\n" ) ); label->setText(i18n("This audio file isn't stored\non the local host.\nClick on this label to load it.\n" ) );
label->setURL( url.prettyURL() ); label->setURL( url.prettyURL() );
connect(label, TQT_SIGNAL(leftClickedURL(const TQString&)), TQT_SLOT(downloadFile(const TQString&))); connect(label, TQ_SIGNAL(leftClickedURL(const TQString&)), TQ_SLOT(downloadFile(const TQString&)));
pic = label; pic = label;
} else { } else {
description = new TQLabel(this ); description = new TQLabel(this );

@ -45,7 +45,7 @@ ImageVisualizer::ImageVisualizer( TQWidget *parent, const char *name, const TQSt
KURLLabel *label = new KURLLabel( this ); KURLLabel *label = new KURLLabel( this );
label->setText(i18n("This picture isn't stored\non the local host.\nClick on this label to load it.\n" ) ); label->setText(i18n("This picture isn't stored\non the local host.\nClick on this label to load it.\n" ) );
label->setURL( url.prettyURL() ); label->setURL( url.prettyURL() );
connect(label, TQT_SIGNAL(leftClickedURL(const TQString&)), TQT_SLOT(downloadImage(const TQString&))); connect(label, TQ_SIGNAL(leftClickedURL(const TQString&)), TQ_SLOT(downloadImage(const TQString&)));
pic = label; pic = label;
description = new TQLabel(this); description = new TQLabel(this);
description->adjustSize( ); description->adjustSize( );

@ -109,8 +109,8 @@ int LNKForwarder::run(TDECmdLineArgs *args)
kdDebug(7034) << "running:" << path << endl; kdDebug(7034) << "running:" << path << endl;
KRun * run = new KRun(path); KRun * run = new KRun(path);
TQObject::connect(run, TQT_SIGNAL(finished()), this, TQT_SLOT(delayedQuit())); TQObject::connect(run, TQ_SIGNAL(finished()), this, TQ_SLOT(delayedQuit()));
TQObject::connect(run, TQT_SIGNAL(error()), this, TQT_SLOT(delayedQuit())); TQObject::connect(run, TQ_SIGNAL(error()), this, TQ_SLOT(delayedQuit()));
return exec(); return exec();
} }
@ -122,7 +122,7 @@ void LNKForwarder::delayedQuit()
{ {
// Quit in 2 seconds. This leaves time for KRun to pop up // Quit in 2 seconds. This leaves time for KRun to pop up
// "app not found" in TDEProcessRunner, if that was the case. // "app not found" in TDEProcessRunner, if that was the case.
TQTimer::singleShot(2000, this, TQT_SLOT(deref())); TQTimer::singleShot(2000, this, TQ_SLOT(deref()));
} }
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------

Loading…
Cancel
Save