diff options
Diffstat (limited to 'kdict/toplevel.cpp')
-rw-r--r-- | kdict/toplevel.cpp | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/kdict/toplevel.cpp b/kdict/toplevel.cpp index d6ac7302..eb1af9c9 100644 --- a/kdict/toplevel.cpp +++ b/kdict/toplevel.cpp @@ -61,26 +61,26 @@ TopLevel::TopLevel(TQWidget* parent, const char* name) global->topLevel = this; global->read(); interface = new DictInterface(); - connect(interface,TQT_SIGNAL(infoReady()),TQT_SLOT(stratDbChanged())); - connect(interface,TQT_SIGNAL(started(const TQString&)),TQT_SLOT(clientStarted(const TQString&))); - connect(interface,TQT_SIGNAL(stopped(const TQString&)),TQT_SLOT(clientStopped(const TQString&))); + connect(interface,TQ_SIGNAL(infoReady()),TQ_SLOT(stratDbChanged())); + connect(interface,TQ_SIGNAL(started(const TQString&)),TQ_SLOT(clientStarted(const TQString&))); + connect(interface,TQ_SIGNAL(stopped(const TQString&)),TQ_SLOT(clientStopped(const TQString&))); queryView = new QueryView(this); - connect(queryView,TQT_SIGNAL(defineRequested(const TQString&)),TQT_SLOT(define(const TQString&))); - connect(queryView,TQT_SIGNAL(matchRequested(const TQString&)),TQT_SLOT(match(const TQString&))); - connect(queryView,TQT_SIGNAL(clipboardRequested()),TQT_SLOT(defineClipboard())); - connect(queryView,TQT_SIGNAL(enableCopy(bool)),TQT_SLOT(enableCopy(bool))); - connect(queryView,TQT_SIGNAL(enablePrintSave()),TQT_SLOT(enablePrintSave())); - connect(queryView,TQT_SIGNAL(renderingStarted()),TQT_SLOT(renderingStarted())); - connect(queryView,TQT_SIGNAL(renderingStopped()),TQT_SLOT(renderingStopped())); - connect(queryView,TQT_SIGNAL(newCaption(const TQString&)),TQT_SLOT(newCaption(const TQString&))); + connect(queryView,TQ_SIGNAL(defineRequested(const TQString&)),TQ_SLOT(define(const TQString&))); + connect(queryView,TQ_SIGNAL(matchRequested(const TQString&)),TQ_SLOT(match(const TQString&))); + connect(queryView,TQ_SIGNAL(clipboardRequested()),TQ_SLOT(defineClipboard())); + connect(queryView,TQ_SIGNAL(enableCopy(bool)),TQ_SLOT(enableCopy(bool))); + connect(queryView,TQ_SIGNAL(enablePrintSave()),TQ_SLOT(enablePrintSave())); + connect(queryView,TQ_SIGNAL(renderingStarted()),TQ_SLOT(renderingStarted())); + connect(queryView,TQ_SIGNAL(renderingStopped()),TQ_SLOT(renderingStopped())); + connect(queryView,TQ_SIGNAL(newCaption(const TQString&)),TQ_SLOT(newCaption(const TQString&))); matchView = new MatchView(); - connect(matchView,TQT_SIGNAL(defineRequested(const TQString&)),TQT_SLOT(define(const TQString&))); - connect(matchView,TQT_SIGNAL(matchRequested(const TQString&)),TQT_SLOT(match(const TQString&))); - connect(matchView,TQT_SIGNAL(clipboardRequested()),TQT_SLOT(matchClipboard())); - connect(matchView,TQT_SIGNAL(windowClosed()),TQT_SLOT(toggleMatchListShow())); - connect(&resetStatusbarTimer,TQT_SIGNAL(timeout()),TQT_SLOT(resetStatusbar())); + connect(matchView,TQ_SIGNAL(defineRequested(const TQString&)),TQ_SLOT(define(const TQString&))); + connect(matchView,TQ_SIGNAL(matchRequested(const TQString&)),TQ_SLOT(match(const TQString&))); + connect(matchView,TQ_SIGNAL(clipboardRequested()),TQ_SLOT(matchClipboard())); + connect(matchView,TQ_SIGNAL(windowClosed()),TQ_SLOT(toggleMatchListShow())); + connect(&resetStatusbarTimer,TQ_SIGNAL(timeout()),TQ_SLOT(resetStatusbar())); setupStatusBar(); setupActions(); @@ -314,80 +314,80 @@ bool TopLevel::queryClose() void TopLevel::setupActions() { // file menu... - actSave = KStdAction::save(queryView, TQT_SLOT(saveQuery()), actionCollection()); + actSave = KStdAction::save(queryView, TQ_SLOT(saveQuery()), actionCollection()); actSave->setText(i18n("&Save As...")); actSave->setEnabled(false); - actPrint = KStdAction::print(queryView, TQT_SLOT(printQuery()), actionCollection()); + actPrint = KStdAction::print(queryView, TQ_SLOT(printQuery()), actionCollection()); actPrint->setEnabled(false); actStartQuery = new TDEAction(i18n("St&art Query"),"reload", 0 , this, - TQT_SLOT(doDefine()), actionCollection(), "start_query"); + TQ_SLOT(doDefine()), actionCollection(), "start_query"); actStopQuery = new TDEAction(i18n("St&op Query"),"process-stop", 0 , this, - TQT_SLOT(stopClients()), actionCollection(), "stop_query"); + TQ_SLOT(stopClients()), actionCollection(), "stop_query"); actStopQuery->setEnabled(false); - KStdAction::quit(kapp, TQT_SLOT(closeAllWindows()), actionCollection()); + KStdAction::quit(kapp, TQ_SLOT(closeAllWindows()), actionCollection()); // edit menu... - actCopy = KStdAction::copy(queryView, TQT_SLOT(copySelection()), actionCollection()); + actCopy = KStdAction::copy(queryView, TQ_SLOT(copySelection()), actionCollection()); actCopy->setEnabled(false); - KStdAction::selectAll(queryView, TQT_SLOT(selectAll()), actionCollection()); + KStdAction::selectAll(queryView, TQ_SLOT(selectAll()), actionCollection()); new TDEAction(i18n("&Define Clipboard Content"), "define_clip", 0 , this, - TQT_SLOT(defineClipboard()), actionCollection(), "define_clipboard"); + TQ_SLOT(defineClipboard()), actionCollection(), "define_clipboard"); new TDEAction(i18n("&Match Clipboard Content"), 0 , this, - TQT_SLOT(matchClipboard()), actionCollection(), "match_clipboard"); - KStdAction::find(queryView, TQT_SLOT(showFindDialog()), actionCollection()); + TQ_SLOT(matchClipboard()), actionCollection(), "match_clipboard"); + KStdAction::find(queryView, TQ_SLOT(showFindDialog()), actionCollection()); // history menu... actBack = new TDEToolBarPopupAction(i18n("&Back"), "back", TDEStdAccel::shortcut(TDEStdAccel::Back), - queryView, TQT_SLOT(browseBack()), actionCollection(),"browse_back"); + queryView, TQ_SLOT(browseBack()), actionCollection(),"browse_back"); actBack->setDelayed(true); actBack->setStickyMenu(false); actBack->setEnabled(false); actForward = new TDEToolBarPopupAction(i18n("&Forward"), "forward", TDEStdAccel::shortcut(TDEStdAccel::Forward), - queryView, TQT_SLOT(browseForward()), actionCollection(),"browse_forward"); + queryView, TQ_SLOT(browseForward()), actionCollection(),"browse_forward"); actForward->setDelayed(true); actForward->setStickyMenu(false); actForward->setEnabled(false); new TDEAction(i18n("&Clear History"), 0 , this, - TQT_SLOT(clearQueryHistory()), actionCollection(), "clear_history"); + TQ_SLOT(clearQueryHistory()), actionCollection(), "clear_history"); // server menu... new TDEAction(i18n("&Get Capabilities"), 0 , interface, - TQT_SLOT(updateServer()), actionCollection(), "get_capabilities"); + TQ_SLOT(updateServer()), actionCollection(), "get_capabilities"); new TDEAction(i18n("Edit &Database Sets..."), "edit", 0 , this, - TQT_SLOT(showSetsDialog()), actionCollection(), "edit_sets"); + TQ_SLOT(showSetsDialog()), actionCollection(), "edit_sets"); new TDEAction(i18n("&Summary"), 0 , interface, - TQT_SLOT(showDatabases()), actionCollection(), "db_summary"); + TQ_SLOT(showDatabases()), actionCollection(), "db_summary"); new TDEAction(i18n("S&trategy Information"), 0 , interface, - TQT_SLOT(showStrategies()), actionCollection(), "strategy_info"); + TQ_SLOT(showStrategies()), actionCollection(), "strategy_info"); new TDEAction(i18n("&Server Information"), 0 , interface, - TQT_SLOT(showInfo()), actionCollection(), "server_info"); + TQ_SLOT(showInfo()), actionCollection(), "server_info"); // settings menu... createStandardStatusBarAction(); setStandardToolBarMenuEnabled(true); actShowMatchList = new TDEToggleAction(i18n("Show &Match List"), 0 , this, - TQT_SLOT(toggleMatchListShow()), actionCollection(), "show_match"); + TQ_SLOT(toggleMatchListShow()), actionCollection(), "show_match"); actShowMatchList->setCheckedState(i18n("Hide &Match List")); actShowMatchList->setChecked(global->showMatchList); - KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()), + KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()), actionCollection()); - KStdAction::configureToolbars(this, TQT_SLOT(slotConfToolbar()), actionCollection()); - KStdAction::preferences(this, TQT_SLOT(showOptionsDialog()), actionCollection()); + KStdAction::configureToolbars(this, TQ_SLOT(slotConfToolbar()), actionCollection()); + KStdAction::preferences(this, TQ_SLOT(showOptionsDialog()), actionCollection()); // toolbar... new TDEAction(i18n("Clear Input Field"), "query_erase", 0 , this, - TQT_SLOT(clearInput()), actionCollection(), "clear_query"); + TQ_SLOT(clearInput()), actionCollection(), "clear_query"); actQueryLabel = new DictLabelAction(i18n("&Look for:"), actionCollection(), "look_label"); actQueryCombo = new DictComboAction(i18n("Query"), actionCollection(), "query_combo",true,true); - connect(actQueryCombo,TQT_SIGNAL(activated(const TQString &)), TQT_SLOT(define(const TQString&))); + connect(actQueryCombo,TQ_SIGNAL(activated(const TQString &)), TQ_SLOT(define(const TQString&))); actQueryCombo->setCompletionMode(global->queryComboCompletionMode); actDbLabel = new DictLabelAction(i18n("&in"), actionCollection(), "in_label"); actDbCombo = new DictComboAction(i18n("Databases"), actionCollection(), "db_combo",false,false); - connect(actDbCombo,TQT_SIGNAL(activated(int)),TQT_SLOT(databaseSelected(int))); - actDefineBtn = new DictButtonAction(i18n("&Define"), this, TQT_SLOT(doDefine()), actionCollection(), "define_btn"); - actMatchBtn = new DictButtonAction(i18n("&Match"), this, TQT_SLOT(doMatch()), actionCollection(), "match_btn"); + connect(actDbCombo,TQ_SIGNAL(activated(int)),TQ_SLOT(databaseSelected(int))); + actDefineBtn = new DictButtonAction(i18n("&Define"), this, TQ_SLOT(doDefine()), actionCollection(), "define_btn"); + actMatchBtn = new DictButtonAction(i18n("&Match"), this, TQ_SLOT(doMatch()), actionCollection(), "match_btn"); queryView->setActions(actBack,actForward,actQueryCombo); } @@ -509,7 +509,7 @@ void TopLevel::buildHistMenu() unsigned int i = 0; while ((i<10)&&(i<global->queryHistory.count())) { - historyActionList.append( new TDEAction(getShortString(global->queryHistory[i],70), 0, this, TQT_SLOT(queryHistMenu()), + historyActionList.append( new TDEAction(getShortString(global->queryHistory[i],70), 0, this, TQ_SLOT(queryHistMenu()), (TQObject*)0, global->queryHistory[i].utf8().data()) ); i++; } @@ -548,7 +548,7 @@ void TopLevel::stratDbChanged() dbActionList.clear(); for (unsigned int i=0;i<global->serverDatabases.count();i++) - dbActionList.append( new TDEAction(global->serverDatabases[i], 0, this, TQT_SLOT(dbInfoMenuClicked()), + dbActionList.append( new TDEAction(global->serverDatabases[i], 0, this, TQ_SLOT(dbInfoMenuClicked()), (TQObject*)0, global->serverDatabases[i].utf8().data()) ); plugActionList("db_detail", dbActionList); @@ -684,7 +684,7 @@ void TopLevel::slotConfToolbar() { saveMainWindowSettings(TDEGlobal::config(),"toplevel_options"); KEditToolbar dlg(actionCollection(), "kdictui.rc"); - connect(&dlg,TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() )); + connect(&dlg,TQ_SIGNAL( newToolbarConfig() ), this, TQ_SLOT( slotNewToolbarConfig() )); dlg.exec(); } @@ -702,8 +702,8 @@ void TopLevel::showSetsDialog() { if (!setsDlg) { setsDlg = new DbSetsDialog(this); - connect(setsDlg,TQT_SIGNAL(setsChanged()),this,TQT_SLOT(setsChanged())); - connect(setsDlg,TQT_SIGNAL(dialogClosed()),this,TQT_SLOT(hideSetsDialog())); + connect(setsDlg,TQ_SIGNAL(setsChanged()),this,TQ_SLOT(setsChanged())); + connect(setsDlg,TQ_SIGNAL(dialogClosed()),this,TQ_SLOT(hideSetsDialog())); setsDlg->show(); } else { KWin::activateWindow(setsDlg->winId()); @@ -731,8 +731,8 @@ void TopLevel::showOptionsDialog() { if (!optDlg) { optDlg = new OptionsDialog(this); - connect(optDlg,TQT_SIGNAL(optionsChanged()),this,TQT_SLOT(optionsChanged())); - connect(optDlg,TQT_SIGNAL(finished()),this,TQT_SLOT(hideOptionsDialog())); + connect(optDlg,TQ_SIGNAL(optionsChanged()),this,TQ_SLOT(optionsChanged())); + connect(optDlg,TQ_SIGNAL(finished()),this,TQ_SLOT(hideOptionsDialog())); optDlg->show(); } else { KWin::activateWindow(optDlg->winId()); |