Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 4 months ago
parent d399e3a2c6
commit 11f3716a1c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -35,8 +35,8 @@ BookmarksDlg::BookmarksDlg(TQWidget* pParent, const char* szName) :
m_pView->setColumnWidth(0, 0); m_pView->setColumnWidth(0, 0);
// Handle requests for source locations // Handle requests for source locations
connect(m_pView, SIGNAL(lineRequested(const TQString&, uint)), this, connect(m_pView, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SLOT(slotLineRequested(const TQString&, uint))); TQ_SLOT(slotLineRequested(const TQString&, uint)));
} }
BookmarksDlg::~BookmarksDlg() BookmarksDlg::~BookmarksDlg()

@ -70,12 +70,12 @@ CallTreeDlg::CallTreeDlg(TQWidget* pParent, const char* szName) :
m_pPrefButton->setPixmap(GET_PIXMAP(ButtonPref)); m_pPrefButton->setPixmap(GET_PIXMAP(ButtonPref));
// Open the location of a call // Open the location of a call
connect(m_pGraphWidget, SIGNAL(lineRequested(const TQString&, uint)), connect(m_pGraphWidget, TQ_SIGNAL(lineRequested(const TQString&, uint)),
this, SIGNAL(lineRequested(const TQString&, uint))); this, TQ_SIGNAL(lineRequested(const TQString&, uint)));
connect(m_pCalledWidget, SIGNAL(lineRequested(const TQString&, uint)), connect(m_pCalledWidget, TQ_SIGNAL(lineRequested(const TQString&, uint)),
this, SIGNAL(lineRequested(const TQString&, uint))); this, TQ_SIGNAL(lineRequested(const TQString&, uint)));
connect(m_pCallingWidget, SIGNAL(lineRequested(const TQString&, uint)), connect(m_pCallingWidget, TQ_SIGNAL(lineRequested(const TQString&, uint)),
this, SIGNAL(lineRequested(const TQString&, uint))); this, TQ_SIGNAL(lineRequested(const TQString&, uint)));
m_pCallingWidget->setMode(TreeWidget::Calling); m_pCallingWidget->setMode(TreeWidget::Calling);

@ -104,12 +104,12 @@ CallTreeDlg* CallTreeManager::addDialog()
m_lstDialogs.append(pDlg); m_lstDialogs.append(pDlg);
// Open an editor whenever a function name is double-clicked // Open an editor whenever a function name is double-clicked
connect(pDlg, SIGNAL(lineRequested(const TQString&, uint)), connect(pDlg, TQ_SIGNAL(lineRequested(const TQString&, uint)),
this, SIGNAL(lineRequested(const TQString&, uint))); this, TQ_SIGNAL(lineRequested(const TQString&, uint)));
// Track the closing of the call tree dialog // Track the closing of the call tree dialog
connect(pDlg, SIGNAL(closed(const CallTreeDlg*)), this, connect(pDlg, TQ_SIGNAL(closed(const CallTreeDlg*)), this,
SLOT(slotRemoveDialog(const CallTreeDlg*))); TQ_SLOT(slotRemoveDialog(const CallTreeDlg*)));
return pDlg; return pDlg;
} }

@ -426,7 +426,7 @@ void CscopeProgress::setProgress(int nProgress, int nTotal)
m_pLabel->setPaletteForegroundColor( m_pLabel->setPaletteForegroundColor(
TDEGlobalSettings::highlightedTextColor()); TDEGlobalSettings::highlightedTextColor());
TQTimer::singleShot(1000, this, SLOT(slotShowLabel())); TQTimer::singleShot(1000, this, TQ_SLOT(slotShowLabel()));
} }
return; return;
@ -438,7 +438,7 @@ void CscopeProgress::setProgress(int nProgress, int nTotal)
// on very short queries. // on very short queries.
if (m_pProgressBar == NULL) { if (m_pProgressBar == NULL) {
m_pProgressBar = new TQProgressBar(m_pMainWidget); m_pProgressBar = new TQProgressBar(m_pMainWidget);
TQTimer::singleShot(1000, this, SLOT(slotShowProgressBar())); TQTimer::singleShot(1000, this, TQ_SLOT(slotShowProgressBar()));
} }
// Set the current progress value // Set the current progress value
@ -490,9 +490,9 @@ void CscopeVerifier::verify()
ConfigFrontend* pConf; ConfigFrontend* pConf;
pConf = new ConfigFrontend(true); pConf = new ConfigFrontend(true);
connect(pConf, SIGNAL(result(uint, const TQString&)), this, connect(pConf, TQ_SIGNAL(result(uint, const TQString&)), this,
SLOT(slotConfigResult(uint, const TQString&))); TQ_SLOT(slotConfigResult(uint, const TQString&)));
connect(pConf, SIGNAL(finished(uint)), this, SLOT(slotFinished())); connect(pConf, TQ_SIGNAL(finished(uint)), this, TQ_SLOT(slotFinished()));
pConf->run(Config().getCscopePath(), "", "", true); pConf->run(Config().getCscopePath(), "", "", true);
} }

@ -38,10 +38,10 @@ CscopeMsgDlg::CscopeMsgDlg(TQWidget* pParent, const char* szName)
: CscopeMsgLayout(pParent, szName, false, 0) : CscopeMsgLayout(pParent, szName, false, 0)
{ {
// Hide the dialog when the "Hide" button is clicked // Hide the dialog when the "Hide" button is clicked
connect(m_pHideButton, SIGNAL(clicked()), this, SLOT(hide())); connect(m_pHideButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(hide()));
// Clear all messages when the "Clear" button is clicked // Clear all messages when the "Clear" button is clicked
connect(m_pClearButton, SIGNAL(clicked()), m_pMsgText, SLOT(clear())); connect(m_pClearButton, TQ_SIGNAL(clicked()), m_pMsgText, TQ_SLOT(clear()));
} }
/** /**

@ -113,8 +113,8 @@ CtagsList::CtagsList(TQWidget* pParent, const char* szName) :
m_nPendLine(0) m_nPendLine(0)
{ {
m_pList->setShowSortIndicator(true); m_pList->setShowSortIndicator(true);
connect(m_pList->header(), SIGNAL(clicked(int)), this, connect(m_pList->header(), TQ_SIGNAL(clicked(int)), this,
SLOT(slotSortChanged(int))); TQ_SLOT(slotSortChanged(int)));
// Determine the default sorting order // Determine the default sorting order
switch (Config().getCtagSortOrder()) { switch (Config().getCtagSortOrder()) {

@ -72,27 +72,27 @@ EditorPage::EditorPage(KTextEditor::Document* pDoc, TQPopupMenu* pMenu,
m_pSplit->setResizeMode(m_pCtagsList, TQSplitter::KeepSize); m_pSplit->setResizeMode(m_pCtagsList, TQSplitter::KeepSize);
// Perform tasks only when the document has been loaded completely // Perform tasks only when the document has been loaded completely
connect(m_pDoc, SIGNAL(completed()), this, SLOT(slotFileOpened())); connect(m_pDoc, TQ_SIGNAL(completed()), this, TQ_SLOT(slotFileOpened()));
// Be notified when the text in the editor changes // Be notified when the text in the editor changes
connect(m_pDoc, SIGNAL(textChanged()), this, SLOT(slotSetModified())); connect(m_pDoc, TQ_SIGNAL(textChanged()), this, TQ_SLOT(slotSetModified()));
connect(m_pDoc, SIGNAL(undoChanged()), this, SLOT(slotUndoChanged())); connect(m_pDoc, TQ_SIGNAL(undoChanged()), this, TQ_SLOT(slotUndoChanged()));
// Store the sizes of the child windows when the tag list is resized // Store the sizes of the child windows when the tag list is resized
// (since it may imply a move of the splitter divider) // (since it may imply a move of the splitter divider)
connect(m_pCtagsList, SIGNAL(resized()), this, SLOT(slotChildResized())); connect(m_pCtagsList, TQ_SIGNAL(resized()), this, TQ_SLOT(slotChildResized()));
// Go to a symbol's line if it is selected in the tag list // Go to a symbol's line if it is selected in the tag list
connect(m_pCtagsList, SIGNAL(lineRequested(uint)), this, connect(m_pCtagsList, TQ_SIGNAL(lineRequested(uint)), this,
SLOT(slotGotoLine(uint))); TQ_SLOT(slotGotoLine(uint)));
// Add Ctag records to the tag list // Add Ctag records to the tag list
connect(&m_ctags, SIGNAL(dataReady(FrontendToken*)), m_pCtagsList, connect(&m_ctags, TQ_SIGNAL(dataReady(FrontendToken*)), m_pCtagsList,
SLOT(slotDataReady(FrontendToken*))); TQ_SLOT(slotDataReady(FrontendToken*)));
// Monitor Ctags' operation // Monitor Ctags' operation
connect(&m_ctags, SIGNAL(finished(uint)), m_pCtagsList, connect(&m_ctags, TQ_SIGNAL(finished(uint)), m_pCtagsList,
SLOT(slotCtagsFinished(uint))); TQ_SLOT(slotCtagsFinished(uint)));
// Set the context menu // Set the context menu
pMenuIf = dynamic_cast<KTextEditor::PopupMenuInterface*>(m_pView); pMenuIf = dynamic_cast<KTextEditor::PopupMenuInterface*>(m_pView);
@ -102,8 +102,8 @@ EditorPage::EditorPage(KTextEditor::Document* pDoc, TQPopupMenu* pMenu,
// Emit a signal whenever the cursor's position changes // Emit a signal whenever the cursor's position changes
pCursorIf = dynamic_cast<KTextEditor::ViewCursorInterface*>(m_pView); pCursorIf = dynamic_cast<KTextEditor::ViewCursorInterface*>(m_pView);
if (pCursorIf) { if (pCursorIf) {
connect(m_pView, SIGNAL(cursorPositionChanged()), this, connect(m_pView, TQ_SIGNAL(cursorPositionChanged()), this,
SLOT(slotCursorPosChange())); TQ_SLOT(slotCursorPosChange()));
} }
} }

@ -53,16 +53,16 @@ EditorTabs::EditorTabs(TQWidget* pParent, const char* szName) :
setAcceptDrops(true); setAcceptDrops(true);
// Close an editor page when its close button is clicked // Close an editor page when its close button is clicked
connect(this, SIGNAL(closeRequest(TQWidget*)), this, connect(this, TQ_SIGNAL(closeRequest(TQWidget*)), this,
SLOT(slotRemovePage(TQWidget*))); TQ_SLOT(slotRemovePage(TQWidget*)));
// Set an editor page as the active part, when its tab is selected // Set an editor page as the active part, when its tab is selected
connect(this, SIGNAL(currentChanged(TQWidget*)), this, connect(this, TQ_SIGNAL(currentChanged(TQWidget*)), this,
SLOT(slotCurrentChanged(TQWidget*))); TQ_SLOT(slotCurrentChanged(TQWidget*)));
// Start dragging a file from a tab // Start dragging a file from a tab
connect(this, SIGNAL(initiateDrag(TQWidget*)), this, connect(this, TQ_SIGNAL(initiateDrag(TQWidget*)), this,
SLOT(slotInitiateDrag(TQWidget*))); TQ_SLOT(slotInitiateDrag(TQWidget*)));
} }
/** /**
@ -79,10 +79,10 @@ EditorTabs::~EditorTabs()
void EditorTabs::setWindowMenu(TQPopupMenu* pWindowMenu) void EditorTabs::setWindowMenu(TQPopupMenu* pWindowMenu)
{ {
m_pWindowMenu = pWindowMenu; m_pWindowMenu = pWindowMenu;
connect(pWindowMenu, SIGNAL(aboutToShow()), this, connect(pWindowMenu, TQ_SIGNAL(aboutToShow()), this,
SLOT(slotFillWindowMenu())); TQ_SLOT(slotFillWindowMenu()));
connect(pWindowMenu, SIGNAL(activated(int)), this, connect(pWindowMenu, TQ_SIGNAL(activated(int)), this,
SLOT(slotSetCurrentPage(int))); TQ_SLOT(slotSetCurrentPage(int)));
} }
/** /**
@ -97,16 +97,16 @@ void EditorTabs::addEditorPage(EditorPage* pNewPage)
// Add the file edited by this page to the map, and display its name, // Add the file edited by this page to the map, and display its name,
// once the file is opened // once the file is opened
connect(pNewPage, SIGNAL(fileOpened(EditorPage*, const TQString&)), this, connect(pNewPage, TQ_SIGNAL(fileOpened(EditorPage*, const TQString&)), this,
SLOT(slotAttachFile(EditorPage*, const TQString&))); TQ_SLOT(slotAttachFile(EditorPage*, const TQString&)));
// Handle new unnamed files // Handle new unnamed files
connect(pNewPage, SIGNAL(newFile(EditorPage*)), this, connect(pNewPage, TQ_SIGNAL(newFile(EditorPage*)), this,
SLOT(slotNewFile(EditorPage*))); TQ_SLOT(slotNewFile(EditorPage*)));
// Change tab icon when a file is modified // Change tab icon when a file is modified
connect(pNewPage, SIGNAL(modified(EditorPage*, bool)), this, connect(pNewPage, TQ_SIGNAL(modified(EditorPage*, bool)), this,
SLOT(slotFileModified(EditorPage*, bool))); TQ_SLOT(slotFileModified(EditorPage*, bool)));
// If this is the first page, the current page will not be set by the // If this is the first page, the current page will not be set by the
// signal handler, so we need to do it manually // signal handler, so we need to do it manually

@ -57,12 +57,12 @@ FileView::FileView(TQWidget* pParent, const char* szName, WFlags fl) :
// Send the fileRequested() signal whenever a file is selected in either // Send the fileRequested() signal whenever a file is selected in either
// the list or the tree // the list or the tree
connect(m_pFileList, SIGNAL(fileRequested(const TQString&, uint)), this, connect(m_pFileList, TQ_SIGNAL(fileRequested(const TQString&, uint)), this,
SIGNAL(fileRequested(const TQString&, uint))); TQ_SIGNAL(fileRequested(const TQString&, uint)));
connect(m_pFileTree, SIGNAL(doubleClicked(TQListViewItem*)), connect(m_pFileTree, TQ_SIGNAL(doubleClicked(TQListViewItem*)),
this, SLOT(slotTreeItemSelected(TQListViewItem*))); this, TQ_SLOT(slotTreeItemSelected(TQListViewItem*)));
connect(m_pFileTree, SIGNAL(returnPressed(TQListViewItem*)), this, connect(m_pFileTree, TQ_SIGNAL(returnPressed(TQListViewItem*)), this,
SLOT(slotTreeItemSelected(TQListViewItem*))); TQ_SLOT(slotTreeItemSelected(TQListViewItem*)));
} }
/** /**

@ -46,16 +46,16 @@ Frontend::Frontend(uint nRecordSize, bool bAutoDelete) : TDEProcess(),
m_nRecordSize(nRecordSize) m_nRecordSize(nRecordSize)
{ {
// Parse data on the standard output // Parse data on the standard output
connect(this, SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, connect(this, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this,
SLOT(slotReadStdout(TDEProcess*, char*, int))); TQ_SLOT(slotReadStdout(TDEProcess*, char*, int)));
// Parse data on the standard error // Parse data on the standard error
connect(this, SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, connect(this, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this,
SLOT(slotReadStderr(TDEProcess*, char*, int))); TQ_SLOT(slotReadStderr(TDEProcess*, char*, int)));
// Delete the process object when the process exits // Delete the process object when the process exits
connect(this, SIGNAL(processExited(TDEProcess*)), this, connect(this, TQ_SIGNAL(processExited(TDEProcess*)), this,
SLOT(slotProcessExit(TDEProcess*))); TQ_SLOT(slotProcessExit(TDEProcess*)));
} }
/** /**

@ -137,23 +137,23 @@ GraphWidget::GraphWidget(TQWidget* pParent, const char* szName) :
m_pCscope = new CscopeFrontend(); m_pCscope = new CscopeFrontend();
// Add records output by the Cscope process // Add records output by the Cscope process
connect(m_pCscope, SIGNAL(dataReady(FrontendToken*)), this, connect(m_pCscope, TQ_SIGNAL(dataReady(FrontendToken*)), this,
SLOT(slotDataReady(FrontendToken*))); TQ_SLOT(slotDataReady(FrontendToken*)));
// Display query progress information // Display query progress information
connect(m_pCscope, SIGNAL(progress(int, int)), this, connect(m_pCscope, TQ_SIGNAL(progress(int, int)), this,
SLOT(slotProgress(int, int))); TQ_SLOT(slotProgress(int, int)));
// Draw the graph when the process has finished // Draw the graph when the process has finished
connect(m_pCscope, SIGNAL(finished(uint)), this, connect(m_pCscope, TQ_SIGNAL(finished(uint)), this,
SLOT(slotFinished(uint))); TQ_SLOT(slotFinished(uint)));
// Show a multi-call node when a query results in too many records // Show a multi-call node when a query results in too many records
connect(m_pCscope, SIGNAL(aborted()), this, connect(m_pCscope, TQ_SIGNAL(aborted()), this,
SLOT(slotAborted())); TQ_SLOT(slotAborted()));
// Redraw the graph when Dot exits // Redraw the graph when Dot exits
connect(&m_dot, SIGNAL(finished(uint)), this, SLOT(slotDotFinished())); connect(&m_dot, TQ_SIGNAL(finished(uint)), this, TQ_SLOT(slotDotFinished()));
// Create the node popup menu // Create the node popup menu
m_pNodePopup = new TQPopupMenu(this); m_pNodePopup = new TQPopupMenu(this);
@ -161,38 +161,38 @@ GraphWidget::GraphWidget(TQWidget* pParent, const char* szName) :
m_pNodePopup->insertItem(new MenuLabel(i18n("<b>Called Functions</b>"), m_pNodePopup->insertItem(new MenuLabel(i18n("<b>Called Functions</b>"),
m_pNodePopup)); m_pNodePopup));
m_pNodePopup->insertItem(i18n("Show"), this, m_pNodePopup->insertItem(i18n("Show"), this,
SLOT(slotShowCalled())); TQ_SLOT(slotShowCalled()));
m_pNodePopup->insertItem(i18n("List/Filter..."), this, m_pNodePopup->insertItem(i18n("List/Filter..."), this,
SLOT(slotListCalled())); TQ_SLOT(slotListCalled()));
m_pNodePopup->insertItem(i18n("Hide"), this, m_pNodePopup->insertItem(i18n("Hide"), this,
SLOT(slotHideCalled())); TQ_SLOT(slotHideCalled()));
m_pNodePopup->insertItem(new MenuLabel(i18n("<b>Calling Functions</b>"), m_pNodePopup->insertItem(new MenuLabel(i18n("<b>Calling Functions</b>"),
m_pNodePopup)); m_pNodePopup));
m_pNodePopup->insertItem(i18n("Show"), this, m_pNodePopup->insertItem(i18n("Show"), this,
SLOT(slotShowCalling())); TQ_SLOT(slotShowCalling()));
m_pNodePopup->insertItem(i18n("List/Filter..."), this, m_pNodePopup->insertItem(i18n("List/Filter..."), this,
SLOT(slotListCalling())); TQ_SLOT(slotListCalling()));
m_pNodePopup->insertItem(i18n("Hide"), this, m_pNodePopup->insertItem(i18n("Hide"), this,
SLOT(slotHideCalling())); TQ_SLOT(slotHideCalling()));
m_pNodePopup->insertItem(new MenuLabel(i18n("<b>This Function</b>"), m_pNodePopup->insertItem(new MenuLabel(i18n("<b>This Function</b>"),
m_pNodePopup)); m_pNodePopup));
m_pNodePopup->insertItem(i18n("Find Definition"), this, m_pNodePopup->insertItem(i18n("Find Definition"), this,
SLOT(slotFindDef())); TQ_SLOT(slotFindDef()));
m_pNodePopup->insertItem(i18n("Remove"), this, SLOT(slotRemoveNode())); m_pNodePopup->insertItem(i18n("Remove"), this, TQ_SLOT(slotRemoveNode()));
// Create the multi-call node popup menu // Create the multi-call node popup menu
m_pMultiCallPopup = new TQPopupMenu(this); m_pMultiCallPopup = new TQPopupMenu(this);
m_pMultiCallPopup->insertItem(i18n("List..."), this, m_pMultiCallPopup->insertItem(i18n("List..."), this,
SLOT(slotMultiCallDetails())); TQ_SLOT(slotMultiCallDetails()));
m_pMultiCallPopup->insertSeparator(); m_pMultiCallPopup->insertSeparator();
m_pMultiCallPopup->insertItem(i18n("Remove"), this, m_pMultiCallPopup->insertItem(i18n("Remove"), this,
SLOT(slotRemoveNode())); TQ_SLOT(slotRemoveNode()));
// Create the edge menu // Create the edge menu
m_pEdgePopup = new TQPopupMenu(this); m_pEdgePopup = new TQPopupMenu(this);
m_pEdgePopup->insertItem(i18n("Open Call"), this, SLOT(slotOpenCall())); m_pEdgePopup->insertItem(i18n("Open Call"), this, TQ_SLOT(slotOpenCall()));
(void)new GraphTip(this); (void)new GraphTip(this);
} }
@ -1085,8 +1085,8 @@ void GraphWidget::slotFindDef()
pDlg = new QueryViewDlg(QueryViewDlg::DestroyOnSelect, this); pDlg = new QueryViewDlg(QueryViewDlg::DestroyOnSelect, this);
// Display a line when it is selected in the dialogue // Display a line when it is selected in the dialogue
connect(pDlg, SIGNAL(lineRequested(const TQString&, uint)), this, connect(pDlg, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SIGNAL(lineRequested(const TQString&, uint))); TQ_SIGNAL(lineRequested(const TQString&, uint)));
// Start the query // Start the query
pDlg->query(CscopeFrontend::Definition, pNode->getFunc()); pDlg->query(CscopeFrontend::Definition, pNode->getFunc());

@ -42,8 +42,8 @@ HistoryPage::HistoryPage(TQWidget* pParent, const char* szName) :
{ {
m_pView = new HistoryView(this); m_pView = new HistoryView(this);
connect(m_pView, SIGNAL(lineRequested(const TQString&, uint)), this, connect(m_pView, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SIGNAL(lineRequested(const TQString&, uint))); TQ_SIGNAL(lineRequested(const TQString&, uint)));
// Set colours and font // Set colours and font
applyPrefs(); applyPrefs();

@ -121,35 +121,35 @@ KScope::KScope(TQWidget* pParent, const char* szName) :
// Open a file for editing when selected in the project's file list or the // Open a file for editing when selected in the project's file list or the
// file tree // file tree
connect(m_pFileView, SIGNAL(fileRequested(const TQString&, uint)), this, connect(m_pFileView, TQ_SIGNAL(fileRequested(const TQString&, uint)), this,
SLOT(slotShowEditor(const TQString&, uint))); TQ_SLOT(slotShowEditor(const TQString&, uint)));
// Delete an editor page object after it is removed // Delete an editor page object after it is removed
connect(m_pEditTabs, SIGNAL(editorRemoved(EditorPage*)), connect(m_pEditTabs, TQ_SIGNAL(editorRemoved(EditorPage*)),
this, SLOT(slotDeleteEditor(EditorPage*))); this, TQ_SLOT(slotDeleteEditor(EditorPage*)));
connect(m_pEditTabs, SIGNAL(filesDropped(TQDropEvent*)), this, connect(m_pEditTabs, TQ_SIGNAL(filesDropped(TQDropEvent*)), this,
SLOT(slotDropEvent(TQDropEvent*))); TQ_SLOT(slotDropEvent(TQDropEvent*)));
// Set an editor as the active part whenever its owner tab is selected // Set an editor as the active part whenever its owner tab is selected
connect(m_pEditTabs, SIGNAL(editorChanged(EditorPage*, EditorPage*)), connect(m_pEditTabs, TQ_SIGNAL(editorChanged(EditorPage*, EditorPage*)),
this, SLOT(slotChangeEditor(EditorPage*, EditorPage*))); this, TQ_SLOT(slotChangeEditor(EditorPage*, EditorPage*)));
// Display a file at a specific line when selected in a query list // Display a file at a specific line when selected in a query list
connect(m_pQueryWidget, SIGNAL(lineRequested(const TQString&, uint)), connect(m_pQueryWidget, TQ_SIGNAL(lineRequested(const TQString&, uint)),
this, SLOT(slotQueryShowEditor(const TQString&, uint))); this, TQ_SLOT(slotQueryShowEditor(const TQString&, uint)));
// Display the symbol dialogue when the user opens a new query page // Display the symbol dialogue when the user opens a new query page
connect(m_pQueryWidget, SIGNAL(newQuery()), connect(m_pQueryWidget, TQ_SIGNAL(newQuery()),
this, SLOT(slotQueryReference())); this, TQ_SLOT(slotQueryReference()));
// Rebuild the project database after a certain time period has elapsed // Rebuild the project database after a certain time period has elapsed
// since the last save // since the last save
connect(&m_timerRebuild, SIGNAL(timeout()), this, SLOT(slotRebuildDB())); connect(&m_timerRebuild, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotRebuildDB()));
// Display a file at a specific line when selected in a call tree dialogue // Display a file at a specific line when selected in a call tree dialogue
connect(m_pCallTreeMgr, SIGNAL(lineRequested(const TQString&, uint)), connect(m_pCallTreeMgr, TQ_SIGNAL(lineRequested(const TQString&, uint)),
this, SLOT(slotQueryShowEditor(const TQString&, uint))); this, TQ_SLOT(slotQueryShowEditor(const TQString&, uint)));
// Store main window settings when closed // Store main window settings when closed
setAutoSaveSettings(); setAutoSaveSettings();
@ -223,8 +223,8 @@ void KScope::initMainWindow()
// Update the relevant shell action when the dock is hidden through its // Update the relevant shell action when the dock is hidden through its
// close button // close button
connect(m_pQueryDock, SIGNAL(headerCloseButtonClicked()), m_pActions, connect(m_pQueryDock, TQ_SIGNAL(headerCloseButtonClicked()), m_pActions,
SLOT(slotQueryDockClosed())); TQ_SLOT(slotQueryDockClosed()));
// Create the file view dock // Create the file view dock
m_pFileViewDock->setWidget(m_pFileView); m_pFileViewDock->setWidget(m_pFileView);
@ -232,8 +232,8 @@ void KScope::initMainWindow()
// Update the relevant shell action when the dock is hidden through its // Update the relevant shell action when the dock is hidden through its
// close button // close button
connect(m_pFileViewDock, SIGNAL(headerCloseButtonClicked()), m_pActions, connect(m_pFileViewDock, TQ_SIGNAL(headerCloseButtonClicked()), m_pActions,
SLOT(slotFileViewDockClosed())); TQ_SLOT(slotFileViewDockClosed()));
// Associate the "Window" menu with the editor tabs widdget // Associate the "Window" menu with the editor tabs widdget
pPopup = (TQPopupMenu*)factory()->container("window", this); pPopup = (TQPopupMenu*)factory()->container("window", this);
@ -534,8 +534,8 @@ void KScope::slotQueryQuickDef()
pDlg = new QueryViewDlg(QueryViewDlg::DestroyOnSelect, this); pDlg = new QueryViewDlg(QueryViewDlg::DestroyOnSelect, this);
// Display a line when it is selected in the dialogue // Display a line when it is selected in the dialogue
connect(pDlg, SIGNAL(lineRequested(const TQString&, uint)), this, connect(pDlg, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SLOT(slotShowEditor(const TQString&, uint))); TQ_SLOT(slotShowEditor(const TQString&, uint)));
// Start the query // Start the query
pDlg->query(nType, sSymbol); pDlg->query(nType, sSymbol);
@ -593,7 +593,7 @@ void KScope::slotConfigure()
// Apply the preferences if either the "Apply" or the "OK" buttons are // Apply the preferences if either the "Apply" or the "OK" buttons are
// clicked // clicked
connect(&dlg, SIGNAL(applyPref()), this, SLOT(slotApplyPref())); connect(&dlg, TQ_SIGNAL(applyPref()), this, TQ_SLOT(slotApplyPref()));
// Show the dialog // Show the dialog
if (dlg.exec() == TQDialog::Accepted) { if (dlg.exec() == TQDialog::Accepted) {
@ -945,8 +945,8 @@ void KScope::verifyCscope()
statusBar()->message(i18n("Verifying Cscope installation...")); statusBar()->message(i18n("Verifying Cscope installation..."));
pVer = new CscopeVerifier(); pVer = new CscopeVerifier();
connect(pVer, SIGNAL(done(bool, uint)), this, connect(pVer, TQ_SIGNAL(done(bool, uint)), this,
SLOT(slotCscopeVerified(bool, uint))); TQ_SLOT(slotCscopeVerified(bool, uint)));
pVer->verify(); pVer->verify();
} }
@ -971,18 +971,18 @@ void KScope::initCscope()
m_pCscopeBuild = new CscopeFrontend(); m_pCscopeBuild = new CscopeFrontend();
// Show build progress information in the main status bar // Show build progress information in the main status bar
connect(m_pCscopeBuild, SIGNAL(progress(int, int)), this, connect(m_pCscopeBuild, TQ_SIGNAL(progress(int, int)), this,
SLOT(slotBuildProgress(int, int))); TQ_SLOT(slotBuildProgress(int, int)));
connect(m_pCscopeBuild, SIGNAL(buildInvIndex()), this, connect(m_pCscopeBuild, TQ_SIGNAL(buildInvIndex()), this,
SLOT(slotBuildInvIndex())); TQ_SLOT(slotBuildInvIndex()));
connect(m_pCscopeBuild, SIGNAL(finished(uint)), this, connect(m_pCscopeBuild, TQ_SIGNAL(finished(uint)), this,
SLOT(slotBuildFinished(uint))); TQ_SLOT(slotBuildFinished(uint)));
connect(m_pCscopeBuild, SIGNAL(aborted()), this, connect(m_pCscopeBuild, TQ_SIGNAL(aborted()), this,
SLOT(slotBuildAborted())); TQ_SLOT(slotBuildAborted()));
// Show errors in a modeless dialogue // Show errors in a modeless dialogue
connect(m_pCscopeBuild, SIGNAL(error(const TQString&)), this, connect(m_pCscopeBuild, TQ_SIGNAL(error(const TQString&)), this,
SLOT(slotCscopeError(const TQString&))); TQ_SLOT(slotCscopeError(const TQString&)));
} }
/** /**
@ -1174,8 +1174,8 @@ void KScope::slotProjectMake()
m_pMakeDlg->setDir(sDir); m_pMakeDlg->setDir(sDir);
// Show the relevant source location when an error link is clicked // Show the relevant source location when an error link is clicked
connect(m_pMakeDlg, SIGNAL(fileRequested(const TQString&, uint)), this, connect(m_pMakeDlg, TQ_SIGNAL(fileRequested(const TQString&, uint)), this,
SLOT(slotShowEditor(const TQString&, uint))); TQ_SLOT(slotShowEditor(const TQString&, uint)));
// Show the dialogue // Show the dialogue
m_pMakeDlg->show(); m_pMakeDlg->show();
@ -1327,20 +1327,20 @@ EditorPage* KScope::createEditorPage()
m_pEditTabs->addEditorPage(pPage); m_pEditTabs->addEditorPage(pPage);
// Show the file's path in the main title // Show the file's path in the main title
connect(pPage, SIGNAL(fileOpened(EditorPage*, const TQString&)), this, connect(pPage, TQ_SIGNAL(fileOpened(EditorPage*, const TQString&)), this,
SLOT(slotFileOpened(EditorPage*, const TQString&))); TQ_SLOT(slotFileOpened(EditorPage*, const TQString&)));
// Show cursor position in the status bar // Show cursor position in the status bar
connect(pPage, SIGNAL(cursorPosChanged(uint, uint)), this, connect(pPage, TQ_SIGNAL(cursorPosChanged(uint, uint)), this,
SLOT(slotShowCursorPos(uint, uint))); TQ_SLOT(slotShowCursorPos(uint, uint)));
// Rebuild the database after a file has changed // Rebuild the database after a file has changed
connect(pPage, SIGNAL(fileSaved(const TQString&, bool)), this, connect(pPage, TQ_SIGNAL(fileSaved(const TQString&, bool)), this,
SLOT(slotFileSaved(const TQString&, bool))); TQ_SLOT(slotFileSaved(const TQString&, bool)));
// Handle file drops // Handle file drops
connect(pPage->getView(), SIGNAL(dropEventPass(TQDropEvent*)), this, connect(pPage->getView(), TQ_SIGNAL(dropEventPass(TQDropEvent*)), this,
SLOT(slotDropEvent(TQDropEvent*))); TQ_SLOT(slotDropEvent(TQDropEvent*)));
// Apply per-project configuration // Apply per-project configuration
pProj = m_pProjMgr->curProject(); pProj = m_pProjMgr->curProject();

@ -50,24 +50,24 @@ KScopeActions::~KScopeActions()
void KScopeActions::init() void KScopeActions::init()
{ {
// File menu // File menu
KStdAction::openNew(m_pWindow, SLOT(slotNewFile()), m_pCollection); KStdAction::openNew(m_pWindow, TQ_SLOT(slotNewFile()), m_pCollection);
KStdAction::open(m_pWindow, SLOT(slotOpenFile()), m_pCollection); KStdAction::open(m_pWindow, TQ_SLOT(slotOpenFile()), m_pCollection);
KStdAction::close(m_pWindow, SLOT(slotCloseEditor()), m_pCollection); KStdAction::close(m_pWindow, TQ_SLOT(slotCloseEditor()), m_pCollection);
KStdAction::quit(m_pWindow, SLOT(slotClose()), m_pCollection); KStdAction::quit(m_pWindow, TQ_SLOT(slotClose()), m_pCollection);
addAction(i18n("Go to File List"), addAction(i18n("Go to File List"),
NULL, NULL,
"Ctrl+Shift+O", "Ctrl+Shift+O",
m_pWindow->m_pFileList, m_pWindow->m_pFileList,
SLOT(slotSetFocus()), TQ_SLOT(slotSetFocus()),
"file_open_file_from_list", "file_open_file_from_list",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("Save Al&l"), addAction(i18n("Save Al&l"),
"save_all", "save_all",
"Ctrl+L", "Ctrl+L",
m_pWindow->m_pEditTabs, m_pWindow->m_pEditTabs,
SLOT(slotSaveAll()), TQ_SLOT(slotSaveAll()),
"file_save_all", "file_save_all",
NULL); NULL);
@ -76,32 +76,32 @@ void KScopeActions::init()
NULL, NULL,
"Ctrl+E", "Ctrl+E",
m_pWindow, m_pWindow,
SLOT(slotExtEdit()), TQ_SLOT(slotExtEdit()),
"edit_external_editor", "edit_external_editor",
SIGNAL(toggleFile(bool))); TQ_SIGNAL(toggleFile(bool)));
addAction(i18n("Go To Tag"), addAction(i18n("Go To Tag"),
NULL, NULL,
"Ctrl+Shift+T", "Ctrl+Shift+T",
m_pWindow, m_pWindow,
SLOT(slotGotoTag()), TQ_SLOT(slotGotoTag()),
"edit_goto_tag", "edit_goto_tag",
SIGNAL(toggleFile(bool))); TQ_SIGNAL(toggleFile(bool)));
addAction(i18n("Complete Symbol"), addAction(i18n("Complete Symbol"),
NULL, NULL,
"Ctrl+Space", "Ctrl+Space",
m_pWindow, m_pWindow,
SLOT(slotCompleteSymbol()), TQ_SLOT(slotCompleteSymbol()),
"edit_comp_symbol", "edit_comp_symbol",
SIGNAL(toggleFile(bool))); TQ_SIGNAL(toggleFile(bool)));
// Project menu // Project menu
addAction(i18n("&New Project..."), addAction(i18n("&New Project..."),
NULL, NULL,
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotCreateProject()), TQ_SLOT(slotCreateProject()),
"project_new", "project_new",
NULL); NULL);
@ -109,7 +109,7 @@ void KScopeActions::init()
"project_open", "project_open",
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotOpenProject()), TQ_SLOT(slotOpenProject()),
"project_open", "project_open",
NULL); NULL);
@ -117,7 +117,7 @@ void KScopeActions::init()
NULL, NULL,
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotProjectCscopeOut()), TQ_SLOT(slotProjectCscopeOut()),
"project_cscope_out", "project_cscope_out",
NULL); NULL);
@ -125,153 +125,153 @@ void KScopeActions::init()
NULL, NULL,
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotProjectFiles()), TQ_SLOT(slotProjectFiles()),
"project_add_rem_files", "project_add_rem_files",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Properties..."), addAction(i18n("&Properties..."),
NULL, NULL,
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotProjectProps()), TQ_SLOT(slotProjectProps()),
"project_properties", "project_properties",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Make Project"), addAction(i18n("&Make Project"),
"make_tdevelop", "make_tdevelop",
"Ctrl+M", "Ctrl+M",
m_pWindow, m_pWindow,
SLOT(slotProjectMake()), TQ_SLOT(slotProjectMake()),
"project_make", "project_make",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Remake Project"), addAction(i18n("&Remake Project"),
"rebuild", "rebuild",
"Ctrl+Shift+M", "Ctrl+Shift+M",
m_pWindow, m_pWindow,
SLOT(slotProjectRemake()), TQ_SLOT(slotProjectRemake()),
"project_remake", "project_remake",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Close Project"), addAction(i18n("&Close Project"),
"window-close", "window-close",
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotCloseProject()), TQ_SLOT(slotCloseProject()),
"project_close", "project_close",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
// Cscope menu // Cscope menu
addAction(i18n("&References..."), addAction(i18n("&References..."),
NULL, NULL,
"Ctrl+0", "Ctrl+0",
m_pWindow, m_pWindow,
SLOT(slotQueryReference()), TQ_SLOT(slotQueryReference()),
"cscope_references", "cscope_references",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Definition..."), addAction(i18n("&Definition..."),
NULL, NULL,
"Ctrl+1", "Ctrl+1",
m_pWindow, m_pWindow,
SLOT(slotQueryDefinition()), TQ_SLOT(slotQueryDefinition()),
"cscope_definition", "cscope_definition",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Called Functions..."), addAction(i18n("&Called Functions..."),
NULL, NULL,
"Ctrl+2", "Ctrl+2",
m_pWindow, m_pWindow,
SLOT(slotQueryCalled()), TQ_SLOT(slotQueryCalled()),
"cscope_called", "cscope_called",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("C&alling Functions..."), addAction(i18n("C&alling Functions..."),
NULL, NULL,
"Ctrl+3", "Ctrl+3",
m_pWindow, m_pWindow,
SLOT(slotQueryCalling()), TQ_SLOT(slotQueryCalling()),
"cscope_calling", "cscope_calling",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("Find &Text..."), addAction(i18n("Find &Text..."),
NULL, NULL,
"Ctrl+4", "Ctrl+4",
m_pWindow, m_pWindow,
SLOT(slotQueryText()), TQ_SLOT(slotQueryText()),
"cscope_text", "cscope_text",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("Find &EGrep Pattern..."), addAction(i18n("Find &EGrep Pattern..."),
NULL, NULL,
"Ctrl+5", "Ctrl+5",
m_pWindow, m_pWindow,
SLOT(slotQueryPattern()), TQ_SLOT(slotQueryPattern()),
"cscope_pattern", "cscope_pattern",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("Find &File..."), addAction(i18n("Find &File..."),
NULL, NULL,
"Ctrl+7", "Ctrl+7",
m_pWindow, m_pWindow,
SLOT(slotQueryFile()), TQ_SLOT(slotQueryFile()),
"cscope_file", "cscope_file",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Including Files..."), addAction(i18n("&Including Files..."),
NULL, NULL,
"Ctrl+8", "Ctrl+8",
m_pWindow, m_pWindow,
SLOT(slotQueryIncluding()), TQ_SLOT(slotQueryIncluding()),
"cscope_including", "cscope_including",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Quick Definition"), addAction(i18n("&Quick Definition"),
NULL, NULL,
"Ctrl+]", "Ctrl+]",
m_pWindow, m_pWindow,
SLOT(slotQueryQuickDef()), TQ_SLOT(slotQueryQuickDef()),
"cscope_quick_def", "cscope_quick_def",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("Call &Graph..."), addAction(i18n("Call &Graph..."),
NULL, NULL,
"Ctrl+\\", "Ctrl+\\",
m_pWindow, m_pWindow,
SLOT(slotCallTree()), TQ_SLOT(slotCallTree()),
"cscope_call_tree", "cscope_call_tree",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("Re&build database"), addAction(i18n("Re&build database"),
"vcs_update", "vcs_update",
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotRebuildDB()), TQ_SLOT(slotRebuildDB()),
"cscope_rebuild", "cscope_rebuild",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
// Go menu // Go menu
addAction(i18n("P&revious Result"), addAction(i18n("P&revious Result"),
"go-up", "go-up",
"Alt+Up", "Alt+Up",
m_pWindow->m_pQueryWidget, m_pWindow->m_pQueryWidget,
SLOT(slotPrevResult()), TQ_SLOT(slotPrevResult()),
"go_prev_result", "go_prev_result",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("N&ext Result"), addAction(i18n("N&ext Result"),
"go-down", "go-down",
"Alt+Down", "Alt+Down",
m_pWindow->m_pQueryWidget, m_pWindow->m_pQueryWidget,
SLOT(slotNextResult()), TQ_SLOT(slotNextResult()),
"go_next_result", "go_next_result",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Previous Position"), addAction(i18n("&Previous Position"),
"back", "back",
"Alt+Left", "Alt+Left",
m_pWindow->m_pQueryWidget, m_pWindow->m_pQueryWidget,
SLOT(slotHistoryPrev()), TQ_SLOT(slotHistoryPrev()),
"go_prev_pos", "go_prev_pos",
NULL); NULL);
@ -279,7 +279,7 @@ void KScopeActions::init()
"forward", "forward",
"Alt+Right", "Alt+Right",
m_pWindow->m_pQueryWidget, m_pWindow->m_pQueryWidget,
SLOT(slotHistoryNext()), TQ_SLOT(slotHistoryNext()),
"go_next_pos", "go_next_pos",
NULL); NULL);
@ -287,7 +287,7 @@ void KScopeActions::init()
"history", "history",
"Ctrl+h", "Ctrl+h",
m_pWindow, m_pWindow,
SLOT(slotHistoryShow()), TQ_SLOT(slotHistoryShow()),
"go_history", "go_history",
NULL); NULL);
@ -295,7 +295,7 @@ void KScopeActions::init()
"bookmark", "bookmark",
"Ctrl+Shift+G", "Ctrl+Shift+G",
m_pWindow, m_pWindow,
SLOT(slotShowBookmarks()), TQ_SLOT(slotShowBookmarks()),
"go_bookmarks", "go_bookmarks",
NULL); NULL);
@ -304,7 +304,7 @@ void KScopeActions::init()
"view_sidetree", "view_sidetree",
"Ctrl+/", "Ctrl+/",
m_pWindow->m_pFileViewDock, m_pWindow->m_pFileViewDock,
SLOT(changeHideShowState()), TQ_SLOT(changeHideShowState()),
"view_toggle_filelist_dock", "view_toggle_filelist_dock",
NULL); NULL);
@ -312,7 +312,7 @@ void KScopeActions::init()
"view_top_bottom", "view_top_bottom",
"Ctrl+.", "Ctrl+.",
m_pWindow->m_pQueryDock, m_pWindow->m_pQueryDock,
SLOT(changeHideShowState()), TQ_SLOT(changeHideShowState()),
"view_toggle_query_dock", "view_toggle_query_dock",
NULL); NULL);
@ -320,7 +320,7 @@ void KScopeActions::init()
"view_detailed", "view_detailed",
"Ctrl+'", "Ctrl+'",
m_pWindow->m_pEditTabs, m_pWindow->m_pEditTabs,
SLOT(slotToggleTagList()), TQ_SLOT(slotToggleTagList()),
"view_toggle_tag_list", "view_toggle_tag_list",
NULL); NULL);
@ -329,7 +329,7 @@ void KScopeActions::init()
"window-close", "window-close",
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotCloseAllWindows()), TQ_SLOT(slotCloseAllWindows()),
"window_close_all", "window_close_all",
NULL); NULL);
@ -337,7 +337,7 @@ void KScopeActions::init()
"back", "back",
"Alt+Shift+Left", "Alt+Shift+Left",
m_pWindow->m_pEditTabs, m_pWindow->m_pEditTabs,
SLOT(slotGoLeft()), TQ_SLOT(slotGoLeft()),
"window_go_left", "window_go_left",
NULL); NULL);
@ -345,20 +345,20 @@ void KScopeActions::init()
"forward", "forward",
"Alt+Shift+Right", "Alt+Shift+Right",
m_pWindow->m_pEditTabs, m_pWindow->m_pEditTabs,
SLOT(slotGoRight()), TQ_SLOT(slotGoRight()),
"window_go_right", "window_go_right",
NULL); NULL);
// Settings menu // Settings menu
KStdAction::preferences(m_pWindow, SLOT(slotConfigure()), m_pCollection); KStdAction::preferences(m_pWindow, TQ_SLOT(slotConfigure()), m_pCollection);
KStdAction::keyBindings(m_pWindow, SLOT(slotShortcuts()), m_pCollection); KStdAction::keyBindings(m_pWindow, TQ_SLOT(slotShortcuts()), m_pCollection);
// Help menu // Help menu
addAction(i18n("Show &Welcome Message..."), addAction(i18n("Show &Welcome Message..."),
NULL, NULL,
NULL, NULL,
m_pWindow, m_pWindow,
SLOT(slotShowWelcome()), TQ_SLOT(slotShowWelcome()),
"help_welcome", "help_welcome",
NULL); NULL);
@ -367,33 +367,33 @@ void KScopeActions::init()
"document-new", "document-new",
NULL, NULL,
m_pWindow->m_pQueryWidget, m_pWindow->m_pQueryWidget,
SLOT(slotNewQueryPage()), TQ_SLOT(slotNewQueryPage()),
"query_new", "query_new",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Refresh"), addAction(i18n("&Refresh"),
"reload", "reload",
NULL, NULL,
m_pWindow->m_pQueryWidget, m_pWindow->m_pQueryWidget,
SLOT(slotRefreshCurrent()), TQ_SLOT(slotRefreshCurrent()),
"query_refresh", "query_refresh",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
m_pLockAction = addToggle(i18n("&Lock/Unlock"), m_pLockAction = addToggle(i18n("&Lock/Unlock"),
"encrypted", "encrypted",
NULL, NULL,
m_pWindow->m_pQueryWidget, m_pWindow->m_pQueryWidget,
SLOT(slotLockCurrent()), TQ_SLOT(slotLockCurrent()),
"query_toggle_locked", "query_toggle_locked",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
addAction(i18n("&Close"), addAction(i18n("&Close"),
"window-close", "window-close",
NULL, NULL,
m_pWindow->m_pQueryWidget, m_pWindow->m_pQueryWidget,
SLOT(slotCloseCurrent()), TQ_SLOT(slotCloseCurrent()),
"query_close", "query_close",
SIGNAL(toggleProject(bool))); TQ_SIGNAL(toggleProject(bool)));
m_pExtEditAction->setEnabled(Config().useExtEditor()); m_pExtEditAction->setEnabled(Config().useExtEditor());
} }
@ -491,7 +491,7 @@ TDEAction* KScopeActions::addAction(const TQString& sCaption, const char* szIcon
// Add to the given action list, if any // Add to the given action list, if any
if (szSignal) if (szSignal)
connect(this, szSignal, pAction, SLOT(setEnabled(bool))); connect(this, szSignal, pAction, TQ_SLOT(setEnabled(bool)));
return pAction; return pAction;
} }
@ -525,7 +525,7 @@ TDEToggleAction* KScopeActions::addToggle(const TQString& sCaption,
// Add to the given action list, if any // Add to the given action list, if any
if (szSignal) if (szSignal)
connect(this, szSignal, pAction, SLOT(setEnabled(bool))); connect(this, szSignal, pAction, TQ_SLOT(setEnabled(bool)));
return pAction; return pAction;
} }

@ -55,25 +55,25 @@ MakeDlg::MakeDlg(TQWidget* pParent, const char* szName) :
// Create a new make front-end // Create a new make front-end
m_pMake = new MakeFrontend(); m_pMake = new MakeFrontend();
connect(m_pMake, SIGNAL(dataReady(FrontendToken*)), this, connect(m_pMake, TQ_SIGNAL(dataReady(FrontendToken*)), this,
SLOT(slotShowOutput(FrontendToken*))); TQ_SLOT(slotShowOutput(FrontendToken*)));
connect(m_pMake, SIGNAL(finished(uint)), this, SLOT(slotFinished(uint))); connect(m_pMake, TQ_SIGNAL(finished(uint)), this, TQ_SLOT(slotFinished(uint)));
connect(m_pMake, connect(m_pMake,
SIGNAL(error(const TQString&, const TQString&, const TQString&)), TQ_SIGNAL(error(const TQString&, const TQString&, const TQString&)),
this, this,
SLOT(slotAddError(const TQString&, const TQString&, const TQString&))); TQ_SLOT(slotAddError(const TQString&, const TQString&, const TQString&)));
// The Root URL control should browse directories // The Root URL control should browse directories
m_pRootURL->setMode(KFile::Directory); m_pRootURL->setMode(KFile::Directory);
// Handle URL links in the browser // Handle URL links in the browser
m_pOutputBrowser->setNotifyClick(true); m_pOutputBrowser->setNotifyClick(true);
connect(m_pOutputBrowser, SIGNAL(urlClick(const TQString&)), this, connect(m_pOutputBrowser, TQ_SIGNAL(urlClick(const TQString&)), this,
SLOT(slotBrowserClicked(const TQString&))); TQ_SLOT(slotBrowserClicked(const TQString&)));
// Handle selections in the error view // Handle selections in the error view
connect(m_pErrorView, SIGNAL(lineRequested(const TQString& , uint)), this, connect(m_pErrorView, TQ_SIGNAL(lineRequested(const TQString& , uint)), this,
SIGNAL(fileRequested(const TQString&, uint))); TQ_SIGNAL(fileRequested(const TQString&, uint)));
// Do not allow duplicates in the command history // Do not allow duplicates in the command history
m_pCommandHistory->setDuplicatesEnabled(false); m_pCommandHistory->setDuplicatesEnabled(false);

@ -60,11 +60,11 @@ NewProjectDlg::NewProjectDlg(bool bNewProj, TQWidget* pParent,
KFile::LocalOnly); KFile::LocalOnly);
// Set up the Create/Cancel buttons // Set up the Create/Cancel buttons
connect(m_pCreateButton, SIGNAL(clicked()), this, SLOT(accept())); connect(m_pCreateButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
connect(m_pCancelButton, SIGNAL(clicked()), this, SLOT(reject())); connect(m_pCancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()));
// Show the auto-completion properties dialogue // Show the auto-completion properties dialogue
connect(m_pACButton, SIGNAL(clicked()), m_pAutoCompDlg, SLOT(exec())); connect(m_pACButton, TQ_SIGNAL(clicked()), m_pAutoCompDlg, TQ_SLOT(exec()));
// Perform actions specific to the type of dialog (new project or // Perform actions specific to the type of dialog (new project or
// project properties) // project properties)
@ -306,8 +306,8 @@ AutoCompletionDlg::AutoCompletionDlg(TQWidget* pParent,
const char* szName ) : const char* szName ) :
AutoCompletionLayout(pParent, szName) AutoCompletionLayout(pParent, szName)
{ {
connect(m_pOKButton, SIGNAL(clicked()), this, SLOT(accept())); connect(m_pOKButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
connect(m_pCancelButton, SIGNAL(clicked()), this, SLOT(reject())); connect(m_pCancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()));
} }
/** /**

@ -93,11 +93,11 @@ PreferencesDlg::PreferencesDlg(uint nPage, TQWidget* pParent,
enableButtonApply(false); enableButtonApply(false);
// Enable the "Apply" button when a parameter changes its value // Enable the "Apply" button when a parameter changes its value
connect(m_pPrefFrontend, SIGNAL(modified()), this, connect(m_pPrefFrontend, TQ_SIGNAL(modified()), this,
SLOT(slotModified())); TQ_SLOT(slotModified()));
connect(m_pPrefColor, SIGNAL(modified()), this, SLOT(slotModified())); connect(m_pPrefColor, TQ_SIGNAL(modified()), this, TQ_SLOT(slotModified()));
connect(m_pPrefFont, SIGNAL(modified()), this, SLOT(slotModified())); connect(m_pPrefFont, TQ_SIGNAL(modified()), this, TQ_SLOT(slotModified()));
connect(m_pPrefOpt, SIGNAL(modified()), this, SLOT(slotModified())); connect(m_pPrefOpt, TQ_SIGNAL(modified()), this, TQ_SLOT(slotModified()));
// Set the active page // Set the active page
showPage(nPage); showPage(nPage);

@ -47,16 +47,16 @@ PrefFrontend::PrefFrontend(TQWidget* pParent, const char* szName) :
load(); load();
// Attempt to guess paths based on the user's PATH environment variable // Attempt to guess paths based on the user's PATH environment variable
connect(m_pGuessButton, SIGNAL(clicked()), this, connect(m_pGuessButton, TQ_SIGNAL(clicked()), this,
SLOT(slotGuessPaths())); TQ_SLOT(slotGuessPaths()));
// Emit the modified() signal when a new path is set // Emit the modified() signal when a new path is set
connect(m_pCscopeURL, SIGNAL(textChanged(const TQString&)), this, connect(m_pCscopeURL, TQ_SIGNAL(textChanged(const TQString&)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pCtagsURL, SIGNAL(textChanged(const TQString&)), this, connect(m_pCtagsURL, TQ_SIGNAL(textChanged(const TQString&)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pDotURL, SIGNAL(textChanged(const TQString&)), this, connect(m_pDotURL, TQ_SIGNAL(textChanged(const TQString&)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
} }
/** /**
@ -115,10 +115,10 @@ void PrefFrontend::slotGuessPaths()
pConf = new ConfigFrontend(true); pConf = new ConfigFrontend(true);
// Show tests and results in the text widget // Show tests and results in the text widget
connect(pConf, SIGNAL(test(uint)), this, connect(pConf, TQ_SIGNAL(test(uint)), this,
SLOT(slotAutoConfigTest(uint))); TQ_SLOT(slotAutoConfigTest(uint)));
connect(pConf, SIGNAL(result(uint, const TQString&)), this, connect(pConf, TQ_SIGNAL(result(uint, const TQString&)), this,
SLOT(slotAutoConfigResult(uint, const TQString&))); TQ_SLOT(slotAutoConfigResult(uint, const TQString&)));
// Run the script // Run the script
pConf->run(m_pCscopeURL->url(), m_pCtagsURL->url(), pConf->run(m_pCscopeURL->url(), m_pCtagsURL->url(),

@ -46,24 +46,24 @@ PrefOpt::PrefOpt(TQWidget* pParent, const char* szName)
// Emit the "modified" signal whenever any of the widgets changes its // Emit the "modified" signal whenever any of the widgets changes its
// its. This will notify the parent dialogue to enable its "Apply" // its. This will notify the parent dialogue to enable its "Apply"
// button // button
connect(m_pReadOnlyCheck, SIGNAL(toggled(bool)), this, connect(m_pReadOnlyCheck, TQ_SIGNAL(toggled(bool)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pLastProjCheck, SIGNAL(toggled(bool)), this, connect(m_pLastProjCheck, TQ_SIGNAL(toggled(bool)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pTagHlCheck, SIGNAL(toggled(bool)), this, connect(m_pTagHlCheck, TQ_SIGNAL(toggled(bool)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pBriefQueryCaptCheck, SIGNAL(toggled(bool)), this, connect(m_pBriefQueryCaptCheck, TQ_SIGNAL(toggled(bool)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pWarnModifiedOnDiskCheck, SIGNAL(toggled(bool)), this, connect(m_pWarnModifiedOnDiskCheck, TQ_SIGNAL(toggled(bool)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pAutoSortCheck, SIGNAL(toggled(bool)), this, connect(m_pAutoSortCheck, TQ_SIGNAL(toggled(bool)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pExtEditorEdit, SIGNAL(textChanged(const TQString&)), this, connect(m_pExtEditorEdit, TQ_SIGNAL(textChanged(const TQString&)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pSysProfileCB, SIGNAL(activated(int)), this, connect(m_pSysProfileCB, TQ_SIGNAL(activated(int)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
connect(m_pEditorPopupCB, SIGNAL(activated(int)), this, connect(m_pEditorPopupCB, TQ_SIGNAL(activated(int)), this,
SIGNAL(modified())); TQ_SIGNAL(modified()));
} }
/** /**

@ -46,7 +46,7 @@ ProgressDlg::ProgressDlg(const TQString& sCaption, const TQString& sText,
m_pIdleTimer = new TQTimer(this); m_pIdleTimer = new TQTimer(this);
// Display a busy indicator by increasing the value of the idle counter // Display a busy indicator by increasing the value of the idle counter
connect (m_pIdleTimer, SIGNAL(timeout()), this, SLOT(slotShowBusy())); connect (m_pIdleTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotShowBusy()));
} }
/** /**

@ -65,24 +65,24 @@ ProjectFilesDlg::ProjectFilesDlg(Project* pProj, TQWidget* pParent,
m_pFileList->setSortColumn(m_pFileList->columns() + 1); m_pFileList->setSortColumn(m_pFileList->columns() + 1);
// Add file/directory/tree when the appropriate button is clicked // Add file/directory/tree when the appropriate button is clicked
connect(m_pAddFilesButton, SIGNAL(clicked()), this, connect(m_pAddFilesButton, TQ_SIGNAL(clicked()), this,
SLOT(slotAddFiles())); TQ_SLOT(slotAddFiles()));
connect(m_pAddDirButton, SIGNAL(clicked()), this, SLOT(slotAddDir())); connect(m_pAddDirButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAddDir()));
connect(m_pAddTreeButton, SIGNAL(clicked()), this, SLOT(slotAddTree())); connect(m_pAddTreeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAddTree()));
// Remove selected files/directory/tree when the appropriate button is // Remove selected files/directory/tree when the appropriate button is
// clicked // clicked
connect(m_pRemSelButton, SIGNAL(clicked()), this, SLOT(slotRemSel())); connect(m_pRemSelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemSel()));
connect(m_pRemDirButton, SIGNAL(clicked()), this, SLOT(slotRemDir())); connect(m_pRemDirButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemDir()));
connect(m_pRemTreeButton, SIGNAL(clicked()), this, SLOT(slotRemTree())); connect(m_pRemTreeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemTree()));
// Hide/show files according to filter // Hide/show files according to filter
connect(m_pFilterButton, SIGNAL(clicked()), this, SLOT(slotFilter())); connect(m_pFilterButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFilter()));
connect(m_pShowAllButton, SIGNAL(clicked()), this, SLOT(slotShowAll())); connect(m_pShowAllButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotShowAll()));
// Close the dialog when OK/Cancel are clicked // Close the dialog when OK/Cancel are clicked
connect(m_pOKButton, SIGNAL(clicked()), this, SLOT(accept())); connect(m_pOKButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
connect(m_pCancelButton, SIGNAL(clicked()), this, SLOT(reject())); connect(m_pCancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()));
// Fill the list with the project's files // Fill the list with the project's files
m_pFileList->setUpdatesEnabled(false); m_pFileList->setUpdatesEnabled(false);
@ -172,8 +172,8 @@ void ProjectFilesDlg::customEvent(TQCustomEvent* pEvent)
// Create the scan progress dialog, if required // Create the scan progress dialog, if required
if (m_pScanDlg == NULL) { if (m_pScanDlg == NULL) {
m_pScanDlg = new ScanProgressDlg(this); m_pScanDlg = new ScanProgressDlg(this);
connect(m_pScanDlg, SIGNAL(cancelled()), this, connect(m_pScanDlg, TQ_SIGNAL(cancelled()), this,
SLOT(slotCancelDirScan())); TQ_SLOT(slotCancelDirScan()));
} }
// Set progress indication // Set progress indication

@ -56,8 +56,8 @@ QueryPage::QueryPage(TQWidget* pParent, const char * szName) :
m_pView = new QueryView(this); m_pView = new QueryView(this);
m_pDriver = new QueryViewDriver(m_pView, this); m_pDriver = new QueryViewDriver(m_pView, this);
connect(m_pView, SIGNAL(lineRequested(const TQString&, uint)), this, connect(m_pView, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SIGNAL(lineRequested(const TQString&, uint))); TQ_SIGNAL(lineRequested(const TQString&, uint)));
// Set colours and font // Set colours and font
applyPrefs(); applyPrefs();

@ -38,17 +38,17 @@ QueryResultsMenu::QueryResultsMenu(TQWidget* pParent, const char* szName) :
m_pItem(NULL) m_pItem(NULL)
{ {
// Create the menu // Create the menu
insertItem(i18n("&View Source"), this, SLOT(slotViewSource()), 0, insertItem(i18n("&View Source"), this, TQ_SLOT(slotViewSource()), 0,
ViewSource); ViewSource);
insertItem(i18n("Find &Definition"), this, SLOT(slotFindDef()), 0, insertItem(i18n("Find &Definition"), this, TQ_SLOT(slotFindDef()), 0,
FindDef); FindDef);
insertSeparator(); insertSeparator();
insertItem(i18n("&Copy"), this, SLOT(slotCopy()), 0, Copy); insertItem(i18n("&Copy"), this, TQ_SLOT(slotCopy()), 0, Copy);
insertSeparator(); insertSeparator();
insertItem(i18n("&Filter..."), this, SLOT(slotFilter()), 0, Filter); insertItem(i18n("&Filter..."), this, TQ_SLOT(slotFilter()), 0, Filter);
insertItem(i18n("&Show All"), this, SIGNAL(showAll()), 0, ShowAll); insertItem(i18n("&Show All"), this, TQ_SIGNAL(showAll()), 0, ShowAll);
insertSeparator(); insertSeparator();
insertItem(i18n("&Remove Item"), this, SLOT(slotRemove()), 0, Remove); insertItem(i18n("&Remove Item"), this, TQ_SLOT(slotRemove()), 0, Remove);
} }
/** /**

@ -58,28 +58,28 @@ QueryView::QueryView(TQWidget* pParent, const char* szName) :
// A record is selected if it is either double-clicked, or the ENTER // A record is selected if it is either double-clicked, or the ENTER
// key is pressed while the record is highlighted // key is pressed while the record is highlighted
connect(this, SIGNAL(doubleClicked(TQListViewItem*)), this, connect(this, TQ_SIGNAL(doubleClicked(TQListViewItem*)), this,
SLOT(slotRecordSelected(TQListViewItem*))); TQ_SLOT(slotRecordSelected(TQListViewItem*)));
connect(this, SIGNAL(returnPressed(TQListViewItem*)), this, connect(this, TQ_SIGNAL(returnPressed(TQListViewItem*)), this,
SLOT(slotRecordSelected(TQListViewItem*))); TQ_SLOT(slotRecordSelected(TQListViewItem*)));
// Show the popup-menu when requested // Show the popup-menu when requested
connect(this, connect(this,
SIGNAL(contextMenuRequested(TQListViewItem*, const TQPoint&, int)), TQ_SIGNAL(contextMenuRequested(TQListViewItem*, const TQPoint&, int)),
m_pQueryMenu, SLOT(slotShow(TQListViewItem*, const TQPoint&, int))); m_pQueryMenu, TQ_SLOT(slotShow(TQListViewItem*, const TQPoint&, int)));
// Handle popup-menu commands // Handle popup-menu commands
connect(m_pQueryMenu, SIGNAL(viewSource(TQListViewItem*)), this, connect(m_pQueryMenu, TQ_SIGNAL(viewSource(TQListViewItem*)), this,
SLOT(slotRecordSelected(TQListViewItem*))); TQ_SLOT(slotRecordSelected(TQListViewItem*)));
connect(m_pQueryMenu, SIGNAL(findDef(const TQString&)), this, connect(m_pQueryMenu, TQ_SIGNAL(findDef(const TQString&)), this,
SLOT(slotFindDef(const TQString&))); TQ_SLOT(slotFindDef(const TQString&)));
connect(m_pQueryMenu, SIGNAL(copy(TQListViewItem*, int)), this, connect(m_pQueryMenu, TQ_SIGNAL(copy(TQListViewItem*, int)), this,
SLOT(slotCopy(TQListViewItem*, int))); TQ_SLOT(slotCopy(TQListViewItem*, int)));
connect(m_pQueryMenu, SIGNAL(filter(int)), this, SLOT(slotFilter(int))); connect(m_pQueryMenu, TQ_SIGNAL(filter(int)), this, TQ_SLOT(slotFilter(int)));
connect(m_pQueryMenu, SIGNAL(showAll()), this, connect(m_pQueryMenu, TQ_SIGNAL(showAll()), this,
SLOT(slotShowAll())); TQ_SLOT(slotShowAll()));
connect(m_pQueryMenu, SIGNAL(remove(TQListViewItem*)), this, connect(m_pQueryMenu, TQ_SIGNAL(remove(TQListViewItem*)), this,
SLOT(slotRemoveItem(TQListViewItem*))); TQ_SLOT(slotRemoveItem(TQListViewItem*)));
} }
/** /**
@ -290,8 +290,8 @@ void QueryView::slotFindDef(const TQString& sFunc)
pDlg = new QueryViewDlg(QueryViewDlg::DestroyOnSelect, this); pDlg = new QueryViewDlg(QueryViewDlg::DestroyOnSelect, this);
// Display a line when it is selected in the dialogue // Display a line when it is selected in the dialogue
connect(pDlg, SIGNAL(lineRequested(const TQString&, uint)), this, connect(pDlg, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SIGNAL(lineRequested(const TQString&, uint))); TQ_SIGNAL(lineRequested(const TQString&, uint)));
// Start the query // Start the query
pDlg->query(CscopeFrontend::Definition, sFunc); pDlg->query(CscopeFrontend::Definition, sFunc);

@ -47,11 +47,11 @@ QueryViewDlg::QueryViewDlg(uint nFlags, TQWidget* pParent,
m_pDriver = new QueryViewDriver(m_pView, this); m_pDriver = new QueryViewDriver(m_pView, this);
// Show the dialogue when instructed by the driver // Show the dialogue when instructed by the driver
connect(m_pView, SIGNAL(needToShow()), this, SLOT(slotShow())); connect(m_pView, TQ_SIGNAL(needToShow()), this, TQ_SLOT(slotShow()));
// Propagate the lineRequested() signal from the QueryView object // Propagate the lineRequested() signal from the QueryView object
connect(m_pView, SIGNAL(lineRequested(const TQString&, uint)), this, connect(m_pView, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SLOT(slotLineRequested(const TQString&, uint))); TQ_SLOT(slotLineRequested(const TQString&, uint)));
// Make the dialogue modal // Make the dialogue modal
setModal(true); setModal(true);

@ -46,18 +46,18 @@ QueryViewDriver::QueryViewDriver(QueryView* pView, TQObject* pParent,
m_pCscope = new CscopeFrontend(); m_pCscope = new CscopeFrontend();
// Add records to the page when Cscope outputs them // Add records to the page when Cscope outputs them
connect(m_pCscope, SIGNAL(dataReady(FrontendToken*)), this, connect(m_pCscope, TQ_SIGNAL(dataReady(FrontendToken*)), this,
SLOT(slotDataReady(FrontendToken*))); TQ_SLOT(slotDataReady(FrontendToken*)));
// Report progress information // Report progress information
connect(m_pCscope, SIGNAL(progress(int, int)), this, connect(m_pCscope, TQ_SIGNAL(progress(int, int)), this,
SLOT(slotProgress(int, int))); TQ_SLOT(slotProgress(int, int)));
// Perform tasks when the query process terminates // Perform tasks when the query process terminates
connect(m_pCscope, SIGNAL(finished(uint)), this, connect(m_pCscope, TQ_SIGNAL(finished(uint)), this,
SLOT(slotFinished(uint))); TQ_SLOT(slotFinished(uint)));
connect(m_pView, SIGNAL(destroyed()), this, SLOT(slotViewClosed())); connect(m_pView, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotViewClosed()));
} }
/** /**

@ -50,18 +50,18 @@ QueryWidget::QueryWidget(TQWidget* pParent, const char* szName) :
m_pQueryTabs->setHoverCloseButton(true); m_pQueryTabs->setHoverCloseButton(true);
// Change the lock action state according to the current page // Change the lock action state according to the current page
connect(m_pQueryTabs, SIGNAL(currentChanged(TQWidget*)), this, connect(m_pQueryTabs, TQ_SIGNAL(currentChanged(TQWidget*)), this,
SLOT(slotCurrentChanged(TQWidget*))); TQ_SLOT(slotCurrentChanged(TQWidget*)));
// Close a query when its tab button is clicked // Close a query when its tab button is clicked
connect(m_pQueryTabs, SIGNAL(closeRequest(TQWidget*)), this, connect(m_pQueryTabs, TQ_SIGNAL(closeRequest(TQWidget*)), this,
SLOT(slotClosePage(TQWidget*))); TQ_SLOT(slotClosePage(TQWidget*)));
// Show the menu when requested // Show the menu when requested
connect(m_pQueryTabs, SIGNAL(contextMenu(const TQPoint&)), this, connect(m_pQueryTabs, TQ_SIGNAL(contextMenu(const TQPoint&)), this,
SLOT(slotContextMenu(const TQPoint&))); TQ_SLOT(slotContextMenu(const TQPoint&)));
connect(m_pQueryTabs, SIGNAL(contextMenu(TQWidget*, const TQPoint&)), this, connect(m_pQueryTabs, TQ_SIGNAL(contextMenu(TQWidget*, const TQPoint&)), this,
SLOT(slotContextMenu(TQWidget*, const TQPoint&))); TQ_SLOT(slotContextMenu(TQWidget*, const TQPoint&)));
} }
/** /**
@ -228,8 +228,8 @@ void QueryWidget::addQueryPage()
// Emit the lineRequested() signal when a query record is selected on // Emit the lineRequested() signal when a query record is selected on
// this page // this page
connect(pPage, SIGNAL(lineRequested(const TQString&, uint)), this, connect(pPage, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SLOT(slotRequestLine(const TQString&, uint))); TQ_SLOT(slotRequestLine(const TQString&, uint)));
} }
/** /**
@ -594,8 +594,8 @@ void QueryWidget::findHistoryPage()
// Emit the lineRequested() signal when a query record is selected on // Emit the lineRequested() signal when a query record is selected on
// this page // this page
connect(m_pHistPage, SIGNAL(lineRequested(const TQString&, uint)), this, connect(m_pHistPage, TQ_SIGNAL(lineRequested(const TQString&, uint)), this,
SLOT(slotRequestLine(const TQString&, uint))); TQ_SLOT(slotRequestLine(const TQString&, uint)));
} }
#include "querywidget.moc" #include "querywidget.moc"

@ -43,7 +43,7 @@ ScanProgressDlg::ScanProgressDlg(TQWidget* pParent, const char* szName) :
show(); show();
// Emit the cancelled() signal when the "Cancel" button is clicked // Emit the cancelled() signal when the "Cancel" button is clicked
connect(m_pCancelButton, SIGNAL(clicked()), this, SIGNAL(cancelled())); connect(m_pCancelButton, TQ_SIGNAL(clicked()), this, TQ_SIGNAL(cancelled()));
} }
/** /**

@ -114,16 +114,16 @@ SearchList::SearchList(int nSearchCol, TQWidget* pParent, const char* szName) :
TQToolTip::remove(m_pList); TQToolTip::remove(m_pList);
m_pToolTip = new ListToolTip(this); m_pToolTip = new ListToolTip(this);
connect(m_pEdit, SIGNAL(textChanged(const TQString&)), this, connect(m_pEdit, TQ_SIGNAL(textChanged(const TQString&)), this,
SLOT(slotFindItem(const TQString&))); TQ_SLOT(slotFindItem(const TQString&)));
connect(m_pList, SIGNAL(doubleClicked(TQListViewItem*)), this, connect(m_pList, TQ_SIGNAL(doubleClicked(TQListViewItem*)), this,
SLOT(slotItemSelected(TQListViewItem*))); TQ_SLOT(slotItemSelected(TQListViewItem*)));
connect(m_pList, SIGNAL(returnPressed(TQListViewItem*)), this, connect(m_pList, TQ_SIGNAL(returnPressed(TQListViewItem*)), this,
SLOT(slotItemSelected(TQListViewItem*))); TQ_SLOT(slotItemSelected(TQListViewItem*)));
connect(m_pEdit, SIGNAL(returnPressed()), this, connect(m_pEdit, TQ_SIGNAL(returnPressed()), this,
SLOT(slotItemSelected())); TQ_SLOT(slotItemSelected()));
connect(m_pEdit, SIGNAL(keyPressed(TQKeyEvent*)), this, connect(m_pEdit, TQ_SIGNAL(keyPressed(TQKeyEvent*)), this,
SLOT(slotKeyPressed(TQKeyEvent*))); TQ_SLOT(slotKeyPressed(TQKeyEvent*)));
} }
/** /**

@ -64,8 +64,8 @@ SearchResultsDlg::SearchResultsDlg(TQWidget* pParent, const char* szName) :
// Terminate the dialogue when either the "OK" or "Cancel" buttons are // Terminate the dialogue when either the "OK" or "Cancel" buttons are
// clicked // clicked
connect(m_pOKButton, SIGNAL(clicked()), this, SLOT(accept())); connect(m_pOKButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
connect(m_pCancelButton, SIGNAL(clicked()), this, SLOT(reject())); connect(m_pCancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()));
} }
/** /**

@ -51,16 +51,16 @@ SymbolCompletion::SymbolCompletion(SymbolCompletion::Interface* pEditor,
m_pAutoCompTimer = new TQTimer(this); m_pAutoCompTimer = new TQTimer(this);
// Add entries to the completion list when they are available // Add entries to the completion list when they are available
connect(m_pCscope, SIGNAL(dataReady(FrontendToken*)), this, connect(m_pCscope, TQ_SIGNAL(dataReady(FrontendToken*)), this,
SLOT(slotAddEntry(FrontendToken*))); TQ_SLOT(slotAddEntry(FrontendToken*)));
// Show the completion list when the query finishes // Show the completion list when the query finishes
connect(m_pCscope, SIGNAL(finished(uint)), this, connect(m_pCscope, TQ_SIGNAL(finished(uint)), this,
SLOT(slotQueryFinished(uint))); TQ_SLOT(slotQueryFinished(uint)));
// Initiate automatic symbol completion when timer expires // Initiate automatic symbol completion when timer expires
connect(m_pAutoCompTimer, SIGNAL(timeout()), this, connect(m_pAutoCompTimer, TQ_SIGNAL(timeout()), this,
SLOT(slotAutoCompleteTimeout())); TQ_SLOT(slotAutoCompleteTimeout()));
} }
/** /**
@ -262,9 +262,9 @@ void SymbolCompletion::slotQueryFinished(uint /* nRecords */)
// Insert the correct part of the completed symbol, when chosen by the // Insert the correct part of the completed symbol, when chosen by the
// user // user
connect(m_pCCObject, connect(m_pCCObject,
SIGNAL(filterInsertString(KTextEditor::CompletionEntry*, TQString*)), TQ_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*, TQString*)),
this, this,
SLOT(slotFilterInsert(KTextEditor::CompletionEntry*, TQString*))); TQ_SLOT(slotFilterInsert(KTextEditor::CompletionEntry*, TQString*)));
// Check the number of entries in the list // Check the number of entries in the list
if (nEntryCount == 0) { if (nEntryCount == 0) {

@ -59,41 +59,41 @@ SymbolDlg::SymbolDlg(TQWidget* pParent, const char* szName) :
adjustSize(); adjustSize();
// Close the dialogue when either the "OK" or "Cancel" button are clicked // Close the dialogue when either the "OK" or "Cancel" button are clicked
connect(m_pOKButton, SIGNAL(clicked()), this, SLOT(accept())); connect(m_pOKButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
connect(m_pCancelButton, SIGNAL(clicked()), this, SLOT(reject())); connect(m_pCancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()));
// Run a symbol completion query when the "Hint" button is clicked // Run a symbol completion query when the "Hint" button is clicked
connect(m_pHintButton, SIGNAL(clicked()), this, SLOT(slotHintClicked())); connect(m_pHintButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotHintClicked()));
// Add results to the hint list // Add results to the hint list
connect(m_pCscope, SIGNAL(dataReady(FrontendToken*)), this, connect(m_pCscope, TQ_SIGNAL(dataReady(FrontendToken*)), this,
SLOT(slotHintDataReady(FrontendToken*))); TQ_SLOT(slotHintDataReady(FrontendToken*)));
// Set hint button availability based on the type of query // Set hint button availability based on the type of query
connect(m_pTypeCombo, SIGNAL(activated(int)), this, connect(m_pTypeCombo, TQ_SIGNAL(activated(int)), this,
SLOT(slotTypeChanged(int))); TQ_SLOT(slotTypeChanged(int)));
// Selecting an item in the hint list sets it as the current text // Selecting an item in the hint list sets it as the current text
connect(m_pHintList, SIGNAL(selectionChanged(TQListViewItem*)), this, connect(m_pHintList, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this,
SLOT(slotHintItemSelected(TQListViewItem*))); TQ_SLOT(slotHintItemSelected(TQListViewItem*)));
// Double-clicking an item in the hint list accepts that item as the // Double-clicking an item in the hint list accepts that item as the
// result of the query (i.e., the item is selcted and the dialogue is // result of the query (i.e., the item is selcted and the dialogue is
// closed) // closed)
connect(m_pHintList, SIGNAL(doubleClicked(TQListViewItem*)), this, connect(m_pHintList, TQ_SIGNAL(doubleClicked(TQListViewItem*)), this,
SLOT(accept())); TQ_SLOT(accept()));
// Refresh the hint list when the hint options change // Refresh the hint list when the hint options change
connect(m_pBeginWithRadio, SIGNAL(toggled(bool)), this, connect(m_pBeginWithRadio, TQ_SIGNAL(toggled(bool)), this,
SLOT(slotHintOptionChanged(bool))); TQ_SLOT(slotHintOptionChanged(bool)));
connect(m_pContainRadio, SIGNAL(toggled(bool)), this, connect(m_pContainRadio, TQ_SIGNAL(toggled(bool)), this,
SLOT(slotHintOptionChanged(bool))); TQ_SLOT(slotHintOptionChanged(bool)));
// Show hint query progress information // Show hint query progress information
connect(m_pCscope, SIGNAL(progress(int, int)), this, connect(m_pCscope, TQ_SIGNAL(progress(int, int)), this,
SLOT(slotHintProgress(int, int))); TQ_SLOT(slotHintProgress(int, int)));
connect(m_pCscope, SIGNAL(finished(uint)), this, connect(m_pCscope, TQ_SIGNAL(finished(uint)), this,
SLOT(slotHintFinished(uint))); TQ_SLOT(slotHintFinished(uint)));
} }
/** /**

@ -42,7 +42,7 @@ TabWidget::TabWidget(TQWidget* pParent, const char* szName) :
m_pMenu = new TQPopupMenu(this); m_pMenu = new TQPopupMenu(this);
// Set the current tab based on the menu selection // Set the current tab based on the menu selection
connect(m_pMenu, SIGNAL(activated(int)), this, SLOT(setCurrentPage(int))); connect(m_pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setCurrentPage(int)));
// Create a button at the top-right corner of the tab widget // Create a button at the top-right corner of the tab widget
m_pButton = new TQToolButton(this); m_pButton = new TQToolButton(this);
@ -52,7 +52,7 @@ TabWidget::TabWidget(TQWidget* pParent, const char* szName) :
setCornerWidget(m_pButton, TopRight); setCornerWidget(m_pButton, TopRight);
// Show the popup-menu when the button is clicked // Show the popup-menu when the button is clicked
connect(m_pButton, SIGNAL(clicked()), this, SLOT(slotShowTabList())); connect(m_pButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotShowTabList()));
} }
/** /**

@ -43,8 +43,8 @@ TreeWidget::TreeWidget(TQWidget* pParent, const char* szName) :
m_pDriver = new QueryViewDriver(this, this); m_pDriver = new QueryViewDriver(this, this);
// Query a tree item when it is expanded for the first time // Query a tree item when it is expanded for the first time
connect(this, SIGNAL(expanded(TQListViewItem*)), this, connect(this, TQ_SIGNAL(expanded(TQListViewItem*)), this,
SLOT(slotQueryItem(TQListViewItem*))); TQ_SLOT(slotQueryItem(TQListViewItem*)));
} }
/** /**

Loading…
Cancel
Save