summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-26 02:18:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-26 02:18:34 +0900
commit753b5724e1fdbfb87852395722717a9c1643baa3 (patch)
tree880851e9a79a9e990e318adf0fe78cea203fb44f /src
parente556daea65624b0fa363f8d305fd1c4996f3ee5e (diff)
downloadpiklab-753b5724e1fdbfb87852395722717a9c1643baa3.tar.gz
piklab-753b5724e1fdbfb87852395722717a9c1643baa3.zip
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src')
-rw-r--r--src/libgui/breakpoint_view.cpp4
-rw-r--r--src/libgui/editor_manager.cpp2
-rw-r--r--src/libgui/gui_debug_manager.cpp14
-rw-r--r--src/libgui/project_manager.cpp2
-rw-r--r--src/tools/list/compile_process.cpp2
5 files changed, 12 insertions, 12 deletions
diff --git a/src/libgui/breakpoint_view.cpp b/src/libgui/breakpoint_view.cpp
index 5375cf4..a8454ea 100644
--- a/src/libgui/breakpoint_view.cpp
+++ b/src/libgui/breakpoint_view.cpp
@@ -71,13 +71,13 @@ void Breakpoint::View::itemClicked(TQListViewItem *item)
if ( item==0 ) return;
const Data &data = static_cast<ListViewItem *>(item)->data();
Address address = Breakpoint::list().address(data);
- TextEditor *editor = ::tqqt_cast<TextEditor *>(Main::currentEditor());
+ TextEditor *editor = ::tqt_cast<TextEditor *>(Main::currentEditor());
const Coff::TextObject *coff = Debugger::manager->coff();
int line = -1;
if ( coff && editor && editor->fileType()==PURL::Coff && address.isValid() )
line = coff->lineForAddress(editor->url(), address);
if ( line==-1 ) {
- editor = ::tqqt_cast<TextEditor *>(Main::editorManager().openEditor(data.url));
+ editor = ::tqt_cast<TextEditor *>(Main::editorManager().openEditor(data.url));
line = data.line;
}
if ( editor==0 ) return;
diff --git a/src/libgui/editor_manager.cpp b/src/libgui/editor_manager.cpp
index 14da332..d6747f3 100644
--- a/src/libgui/editor_manager.cpp
+++ b/src/libgui/editor_manager.cpp
@@ -161,7 +161,7 @@ void EditorManager::updateTitles()
static_cast<EditorTabBar *>(tabBar())->setReadOnly(indexOf(*it), (*it)->isReadOnly());
TQPixmap pixmap;
if ( (*it)->isModified() ) pixmap = modified;
- else if ( ::tqqt_cast< ::DeviceEditor *>(*it)==0 ) pixmap = PURL::icon((*it)->fileType());
+ else if ( ::tqt_cast< ::DeviceEditor *>(*it)==0 ) pixmap = PURL::icon((*it)->fileType());
else pixmap = chip;
changeTab(*it, pixmap.isNull() ? def : pixmap, title(**it));
}
diff --git a/src/libgui/gui_debug_manager.cpp b/src/libgui/gui_debug_manager.cpp
index 365d37e..4b607ab 100644
--- a/src/libgui/gui_debug_manager.cpp
+++ b/src/libgui/gui_debug_manager.cpp
@@ -93,7 +93,7 @@ Breakpoint::Data Debugger::GuiManager::currentBreakpointData()
{
const Breakpoint::Data *data = Main::breakpointsView().currentData();
if (data) return *data;
- TextEditor *editor = ::tqqt_cast<TextEditor *>(Main::currentEditor());
+ TextEditor *editor = ::tqt_cast<TextEditor *>(Main::currentEditor());
Q_ASSERT(editor);
return Breakpoint::Data(editor->url(), editor->cursorLine());
}
@@ -183,7 +183,7 @@ void Debugger::GuiManager::updateView(bool gotoPC)
bool currentHasPC = false;
TQValueList<Editor *>::iterator ite;
for (ite=_editors.begin(); ite!=_editors.end(); ++ite) {
- TextEditor *e = ::tqqt_cast<TextEditor *>(*ite);
+ TextEditor *e = ::tqt_cast<TextEditor *>(*ite);
if ( e==0 ) continue;
updateEditorMarks(*e);
if ( !_currentSourceLines.contains(e->url()) ) continue;
@@ -202,9 +202,9 @@ void Debugger::GuiManager::updateView(bool gotoPC)
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()));
+ TextEditor *e = ::tqt_cast<TextEditor *>(Main::editorManager().findEditor(it.key()));
if ( e==0 ) {
- if (gotoPC) e = ::tqqt_cast<TextEditor *>(Main::editorManager().openEditor(it.key()));
+ if (gotoPC) e = ::tqt_cast<TextEditor *>(Main::editorManager().openEditor(it.key()));
if ( e==0 ) continue;
}
updateEditorMarks(*e);
@@ -221,7 +221,7 @@ Register::MainView *Debugger::GuiManager::registerView() const
{
TQValueList<Editor *>::const_iterator it = _editors.begin();
for (; it!=_editors.end(); ++it) {
- Register::MainView *rv = ::tqqt_cast<Register::MainView *>(*it);
+ Register::MainView *rv = ::tqt_cast<Register::MainView *>(*it);
if (rv) return rv;
}
return 0;
@@ -234,7 +234,7 @@ bool Debugger::GuiManager::isProjectSource(const PURL::Url &url) const
void Debugger::GuiManager::showDisassemblyLocation()
{
- TextEditor *editor = ::tqqt_cast<TextEditor *>(Main::currentEditor());
+ TextEditor *editor = ::tqt_cast<TextEditor *>(Main::currentEditor());
Q_ASSERT(editor);
Q_ASSERT(_coff);
TQValueVector<Address> addresses = _coff->addresses(editor->url(), editor->cursorLine());
@@ -244,6 +244,6 @@ void Debugger::GuiManager::showDisassemblyLocation()
}
int line = _coff->lineForAddress(_coff->url(), addresses[0]);
if ( line==-1 ) return; // possible ?
- TextEditor *e = ::tqqt_cast<TextEditor *>(Main::editorManager().openEditor(_coff->url()));
+ TextEditor *e = ::tqt_cast<TextEditor *>(Main::editorManager().openEditor(_coff->url()));
if (e) e->setCursor(line, 0);
}
diff --git a/src/libgui/project_manager.cpp b/src/libgui/project_manager.cpp
index 68bf72c..bacf98a 100644
--- a/src/libgui/project_manager.cpp
+++ b/src/libgui/project_manager.cpp
@@ -458,7 +458,7 @@ void ProjectManager::View::clicked(int button, TQListViewItem *item, const TQPoi
if ( fi->ftype()==PURL::Coff && _project==0 && !fi->url().exists() ) {
PURL::Url url = findFileItem(PURL::Hex)->url();
if ( url.isEmpty() ) {
- HexEditor *he = ::tqqt_cast<HexEditor *>(Main::currentEditor());
+ HexEditor *he = ::tqt_cast<HexEditor *>(Main::currentEditor());
if ( he==0 ) break;
e = new DisassemblyEditor(*he, *data, this);
} else e = new DisassemblyEditor(url, *data, this);
diff --git a/src/tools/list/compile_process.cpp b/src/tools/list/compile_process.cpp
index 7ba74a2..b19bc54 100644
--- a/src/tools/list/compile_process.cpp
+++ b/src/tools/list/compile_process.cpp
@@ -95,7 +95,7 @@ void Compile::LogWidget::lineClicked(int line)
{
if ( !_map.contains(line) ) return;
PURL::Url url = PURL::Url::fromPathOrUrl(_map[line].filepath);
- TextEditor *e = ::tqqt_cast<TextEditor *>(Main::editorManager().openEditor(url));
+ TextEditor *e = ::tqt_cast<TextEditor *>(Main::editorManager().openEditor(url));
if ( e==0 ) return;
e->setCursor(_map[line].line, 0);
}