Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/34/head
Michele Calgaro 12 months ago
parent b221bea026
commit db4bf05cd9
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -2173,7 +2173,7 @@ void TreeMapWidget::drawTreeMap()
_needsRefresh = 0; _needsRefresh = 0;
} }
bitBlt( TQT_TQPAINTDEVICE(this), 0, 0, TQT_TQPAINTDEVICE(&_pixmap), 0, 0, bitBlt( this, 0, 0, &_pixmap, 0, 0,
TQWidget::width(), TQWidget::height(), CopyROP, true); TQWidget::width(), TQWidget::height(), CopyROP, true);
if (hasFocus()) { if (hasFocus()) {

@ -99,7 +99,7 @@ TDEIO::Job* DocbookGenerator::generateDocbookForProjectInto(const KURL& destDir)
KMessageBox::error(0, i18n("There was a problem saving file: %1").arg(tmpfile.name()), i18n("Save Error")); KMessageBox::error(0, i18n("There was a problem saving file: %1").arg(tmpfile.name()), i18n("Save Error"));
return 0; return 0;
} }
umlDoc->saveToXMI(*TQT_TQIODEVICE(&file)); // save the xmi stuff to it umlDoc->saveToXMI(file); // save the xmi stuff to it
file.close(); file.close();
tmpfile.close(); tmpfile.close();

@ -451,7 +451,7 @@ bool UMLDoc::openDocument(const KURL& url, const char* /*format =0*/) {
newDocument(); newDocument();
return false; return false;
} }
status = loadFromXMI( *TQT_TQIODEVICE(&xmi_file), ENC_UNKNOWN ); status = loadFromXMI( xmi_file, ENC_UNKNOWN );
// close the extracted file and the temporary directory // close the extracted file and the temporary directory
xmi_file.close(); xmi_file.close();
@ -476,9 +476,9 @@ bool UMLDoc::openDocument(const KURL& url, const char* /*format =0*/) {
return false; return false;
} }
if (filetype.endsWith(".mdl")) if (filetype.endsWith(".mdl"))
status = Import_Rose::loadFromMDL(*TQT_TQIODEVICE(&file)); status = Import_Rose::loadFromMDL(file);
else else
status = loadFromXMI( *TQT_TQIODEVICE(&file), ENC_UNKNOWN ); status = loadFromXMI( file, ENC_UNKNOWN );
} }
file.close(); file.close();
@ -565,7 +565,7 @@ bool UMLDoc::saveDocument(const KURL& url, const char * /* format */) {
KMessageBox::error(0, i18n("There was a problem saving file: %1").arg(d.path()), i18n("Save Error")); KMessageBox::error(0, i18n("There was a problem saving file: %1").arg(d.path()), i18n("Save Error"));
return false; return false;
} }
saveToXMI(*TQT_TQIODEVICE(&file)); // save XMI to this file... saveToXMI(file); // save XMI to this file...
file.close(); // ...and close it file.close(); // ...and close it
// now add this file to the archive, but without the extension // now add this file to the archive, but without the extension
@ -620,7 +620,7 @@ bool UMLDoc::saveDocument(const KURL& url, const char * /* format */) {
KMessageBox::error(0, i18n("There was a problem saving file: %1").arg(d.path()), i18n("Save Error")); KMessageBox::error(0, i18n("There was a problem saving file: %1").arg(d.path()), i18n("Save Error"));
return false; return false;
} }
saveToXMI(*TQT_TQIODEVICE(&file)); // save the xmi stuff to it saveToXMI(file); // save the xmi stuff to it
file.close(); file.close();
tmpfile.close(); tmpfile.close();
@ -2148,7 +2148,7 @@ void UMLDoc::addToUndoStack() {
buffer->open(IO_WriteOnly); buffer->open(IO_WriteOnly);
TQDataStream* undoData = new TQDataStream(); TQDataStream* undoData = new TQDataStream();
undoData->setDevice(buffer); undoData->setDevice(buffer);
saveToXMI(*TQT_TQIODEVICE(buffer)); saveToXMI(*buffer);
buffer->close(); buffer->close();
undoStack.prepend(undoData); undoStack.prepend(undoData);
@ -2196,7 +2196,7 @@ void UMLDoc::loadUndoData() {
TQDataStream* undoData = undoStack.getFirst(); TQDataStream* undoData = undoStack.getFirst();
TQBuffer* buffer = static_cast<TQBuffer*>( undoData->device() ); TQBuffer* buffer = static_cast<TQBuffer*>( undoData->device() );
buffer->open(IO_ReadOnly); buffer->open(IO_ReadOnly);
loadFromXMI(*TQT_TQIODEVICE(buffer)); loadFromXMI(*buffer);
buffer->close(); buffer->close();
setModified(true, false); setModified(true, false);
@ -2235,7 +2235,7 @@ void UMLDoc::loadRedoData() {
redoStack.removeFirst(); redoStack.removeFirst();
TQBuffer* buffer = static_cast<TQBuffer*>( redoData->device() ); TQBuffer* buffer = static_cast<TQBuffer*>( redoData->device() );
buffer->open(IO_ReadOnly); buffer->open(IO_ReadOnly);
loadFromXMI(*TQT_TQIODEVICE(buffer)); loadFromXMI(*buffer);
buffer->close(); buffer->close();
setModified(true, false); setModified(true, false);

Loading…
Cancel
Save