summaryrefslogtreecommitdiffstats
path: root/src/libgui/gui_debug_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgui/gui_debug_manager.cpp')
-rw-r--r--src/libgui/gui_debug_manager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libgui/gui_debug_manager.cpp b/src/libgui/gui_debug_manager.cpp
index fdf0979..9ddf0e0 100644
--- a/src/libgui/gui_debug_manager.cpp
+++ b/src/libgui/gui_debug_manager.cpp
@@ -25,7 +25,7 @@
bool Debugger::GuiManager::addEditor(Editor &editor)
{
- if ( _editors.tqfind(&editor)!=_editors.end() ) return false;
+ if ( _editors.find(&editor)!=_editors.end() ) return false;
connect(&editor, TQT_SIGNAL(destroyed()), TQT_SLOT(editorDestroyed()));
_editors.append(&editor);
return true;
@@ -74,7 +74,7 @@ PURL::Url Debugger::GuiManager::coffUrl() const
bool Debugger::GuiManager::internalInit()
{
if ( !Manager::internalInit() ) return false;
- if ( !Main::projectManager().tqcontains(coffUrl()) )
+ if ( !Main::projectManager().contains(coffUrl()) )
Main::projectManager().addExternalFile(coffUrl(), ProjectManager::Generated);
Main::watchView().init(true);
if ( registerView() ) registerView()->view()->updateView();
@@ -105,7 +105,7 @@ void Debugger::GuiManager::toggleBreakpoint()
return;
}
Breakpoint::Data data = currentBreakpointData();
- if ( Breakpoint::list().tqcontains(data) ) {
+ if ( Breakpoint::list().contains(data) ) {
Breakpoint::list().remove(data);
return;
}
@@ -148,7 +148,7 @@ void Debugger::GuiManager::updateEditorMarks(TextEditor &editor) const
}
// update pc
if ( _coff && programmer() && programmer()->isActive() && pc().isInitialized() && !reached
- && _currentSourceLines.tqcontains(editor.url()) ) {
+ && _currentSourceLines.contains(editor.url()) ) {
int pcline = _currentSourceLines[editor.url()];
if ( programmer()->state()==Programmer::Halted ) editor.setMark(pcline, Breakpoint::ProgramCounterActive);
else editor.setMark(pcline, Breakpoint::ProgramCounterDisabled);
@@ -186,7 +186,7 @@ void Debugger::GuiManager::updateView(bool gotoPC)
TextEditor *e = ::tqqt_cast<TextEditor *>(*ite);
if ( e==0 ) continue;
updateEditorMarks(*e);
- if ( !_currentSourceLines.tqcontains(e->url()) ) continue;
+ if ( !_currentSourceLines.contains(e->url()) ) continue;
if (gotoPC) e->setCursor(_currentSourceLines[e->url()], 0);
if ( e==Main::currentEditor() ) currentHasPC = true;
}
@@ -198,8 +198,8 @@ void Debugger::GuiManager::updateView(bool gotoPC)
TQMap<PURL::Url, uint>::const_iterator it;
for (it=_currentSourceLines.begin(); it!=_currentSourceLines.end(); ++it) {
switch (i) {
- case 0: if ( !Main::projectManager().tqcontains(it.key()) || Main::projectManager().isExternalFile(it.key()) ) continue; break;
- case 1: if ( !Main::projectManager().tqcontains(it.key()) ) continue; break;
+ case 0: if ( !Main::projectManager().contains(it.key()) || Main::projectManager().isExternalFile(it.key()) ) continue; break;
+ case 1: if ( !Main::projectManager().contains(it.key()) ) continue; break;
case 2: if ( !it.key().exists() ) continue; break;
}
TextEditor *e = ::tqqt_cast<TextEditor *>(Main::editorManager().findEditor(it.key()));
@@ -229,7 +229,7 @@ Register::MainView *Debugger::GuiManager::registerView() const
bool Debugger::GuiManager::isProjectSource(const PURL::Url &url) const
{
- return ( Main::projectManager().tqcontains(url) && !Main::projectManager().isExternalFile(url) );
+ return ( Main::projectManager().contains(url) && !Main::projectManager().isExternalFile(url) );
}
void Debugger::GuiManager::showDisassemblyLocation()