[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kofficecore
From: Thomas Zander <zander () kde ! org>
Date: 2007-01-16 23:28:06
Message-ID: 1168990086.777824.18824.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 624303 by zander:
Fix missing debug areas
M +2 -2 KoDocumentAdaptor.cpp
M +10 -10 KoDocumentChild.cpp
M +16 -16 KoGenStyle.cpp
M +4 -4 KoGenStyles.cpp
M +2 -2 KoOasisSettings.cpp
M +1 -1 KoOpenPane.cpp
M +3 -3 KoPictureImage.cpp
M +3 -4 KoView.cpp
M +3 -3 KoViewChild.cpp
--- trunk/koffice/libs/kofficecore/KoDocumentAdaptor.cpp #624302:624303
@@ -141,7 +141,7 @@
QString KoDocumentAdaptor::documentInfoTelephone() const
{
- kDebug()<<" Keep compatibility with koffice <= 1.3 : use \
documentInfoTelephoneWork\n"; + kDebug(30003)<<" Keep compatibility with koffice \
<= 1.3 : use documentInfoTelephoneWork\n"; return documentInfoTelephoneWork();
}
@@ -243,7 +243,7 @@
void KoDocumentAdaptor::setDocumentInfoTelephone(const QString &text)
{
- kDebug()<<"Keep compatibility with koffice <= 1.3 : use \
setDocumentInfoTelephoneWork\n"; + kDebug(30003)<<"Keep compatibility with koffice \
<= 1.3 : use setDocumentInfoTelephoneWork\n"; setDocumentInfoTelephoneWork(text);
}
--- trunk/koffice/libs/kofficecore/KoDocumentChild.cpp #624302:624303
@@ -89,7 +89,7 @@
void KoDocumentChild::setDocument( KoDocument *doc, const QRect &geometry )
{
- kDebug()<<k_funcinfo<<"doc: "<<doc->url().url()<<endl;
+ kDebug(30003)<<k_funcinfo<<"doc: "<<doc->url().url()<<endl;
d->m_doc = doc;
setGeometry( geometry );
@@ -135,7 +135,7 @@
m_tmpURL = QString( INTERNAL_PROTOCOL ) + ":/" + url.mid( 2 );
else
m_tmpURL = url;
- kDebug() << k_funcinfo << m_tmpURL << endl;
+ kDebug(30003) << k_funcinfo << m_tmpURL << endl;
}
@@ -216,7 +216,7 @@
if ( !path.endsWith( "/" ) )
path += '/';
const QString mimeType = KoOasisStore::mimeForPath( manifestDoc, path );
- kDebug() << k_funcinfo << "path for manifest file=" << path << " mimeType=" << \
mimeType << endl; + kDebug(30003) << k_funcinfo << "path for manifest file=" << \
path << " mimeType=" << mimeType << endl; if ( mimeType.isEmpty() ) {
kError(30003) << "Manifest doesn't have media-type for " << path << endl;
return false;
@@ -225,7 +225,7 @@
const bool oasis = mimeType.startsWith( "application/vnd.oasis.opendocument" );
if ( !oasis ) {
m_tmpURL += "/maindoc.xml";
- kDebug() << " m_tmpURL adjusted to " << m_tmpURL << endl;
+ kDebug(30003) << " m_tmpURL adjusted to " << m_tmpURL << endl;
}
return createAndLoadDocument( store, true /*open url*/, oasis, mimeType );
}
@@ -396,11 +396,11 @@
// parent document).
assert( d->m_doc->url().protocol() == INTERNAL_PROTOCOL );
const QString name = d->m_doc->url().path();
- kDebug() << k_funcinfo << "saving " << name << endl;
+ kDebug(30003) << k_funcinfo << "saving " << name << endl;
if ( d->m_doc->nativeOasisMimeType().isEmpty() ) {
// Embedded object doesn't support OASIS OpenDocument, save in the old \
format.
- kDebug() << k_funcinfo << "Embedded object doesn't support OASIS \
OpenDocument, save in the old format." << endl; + kDebug(30003) << \
k_funcinfo << "Embedded object doesn't support OASIS OpenDocument, save in the old \
format." << endl;
if ( !d->m_doc->saveToStore( store, name ) )
return false;
@@ -448,7 +448,7 @@
KUrl u;
u.setProtocol( INTERNAL_PROTOCOL );
u.setPath( name );
- kDebug() << k_funcinfo << u << endl;
+ kDebug(30003) << k_funcinfo << u << endl;
d->m_doc->setURL( u );
}
@@ -469,14 +469,14 @@
QDomElement e = doc.createElement( ( uppercase ? "OBJECT" : "object" ) );
if ( d->m_doc->url().protocol() != INTERNAL_PROTOCOL ) {
e.setAttribute( "url", d->m_doc->url().url() );
- kDebug() << "KoDocumentChild::save url=" << d->m_doc->url().url() << \
endl; + kDebug(30003) << "KoDocumentChild::save url=" << \
d->m_doc->url().url() << endl; }
else {
e.setAttribute( "url", d->m_doc->url().path().mid( 1 ) );
- kDebug() << "KoDocumentChild::save url=" << d->m_doc->url().path().mid( \
1 ) << endl; + kDebug(30003) << "KoDocumentChild::save url=" << \
d->m_doc->url().path().mid( 1 ) << endl; }
e.setAttribute( "mime", QString( d->m_doc->nativeFormatMimeType() ) );
- kDebug() << "KoDocumentChild::save mime=" << \
d->m_doc->nativeFormatMimeType() << endl; + kDebug(30003) << \
"KoDocumentChild::save mime=" << d->m_doc->nativeFormatMimeType() << \
endl;
QDomElement rect = doc.createElement( ( uppercase ? "RECT" : "rect" ) );
rect.setAttribute( "x", geometry().left() );
rect.setAttribute( "y", geometry().top() );
--- trunk/koffice/libs/kofficecore/KoGenStyle.cpp #624302:624303
@@ -103,10 +103,10 @@
}
#if 0 // #ifndef NDEBUG
- kDebug() << "style: " << name << endl;
+ kDebug(30003) << "style: " << name << endl;
printDebug();
if ( parentStyle ) {
- kDebug() << " parent: " << m_parentName << endl;
+ kDebug(30003) << " parent: " << m_parentName << endl;
parentStyle->printDebug();
}
#endif
@@ -187,37 +187,37 @@
void KoGenStyle::printDebug() const
{
int i = DefaultType;
- kDebug() << m_properties[i].count() << " properties." << endl;
+ kDebug(30003) << m_properties[i].count() << " properties." << endl;
for( QMap<QString,QString>::ConstIterator it = m_properties[i].begin(); it != \
m_properties[i].end(); ++it ) {
- kDebug() << " " << it.key() << " = " << it.value() << endl;
+ kDebug(30003) << " " << it.key() << " = " << it.value() << endl;
}
i = TextType;
- kDebug() << m_properties[i].count() << " text properties." << endl;
+ kDebug(30003) << m_properties[i].count() << " text properties." << endl;
for( QMap<QString,QString>::ConstIterator it = m_properties[i].begin(); it != \
m_properties[i].end(); ++it ) {
- kDebug() << " " << it.key() << " = " << it.value() << endl;
+ kDebug(30003) << " " << it.key() << " = " << it.value() << endl;
}
i = ParagraphType;
- kDebug() << m_properties[i].count() << " paragraph properties." << endl;
+ kDebug(30003) << m_properties[i].count() << " paragraph properties." << endl;
for( QMap<QString,QString>::ConstIterator it = m_properties[i].begin(); it != \
m_properties[i].end(); ++it ) {
- kDebug() << " " << it.key() << " = " << it.value() << endl;
+ kDebug(30003) << " " << it.key() << " = " << it.value() << endl;
}
i = ChildElement;
- kDebug() << m_properties[i].count() << " child elements." << endl;
+ kDebug(30003) << m_properties[i].count() << " child elements." << endl;
for( QMap<QString,QString>::ConstIterator it = m_properties[i].begin(); it != \
m_properties[i].end(); ++it ) {
- kDebug() << " " << it.key() << " = " << it.value() << endl;
+ kDebug(30003) << " " << it.key() << " = " << it.value() << endl;
}
- kDebug() << m_attributes.count() << " attributes." << endl;
+ kDebug(30003) << m_attributes.count() << " attributes." << endl;
for( QMap<QString,QString>::ConstIterator it = m_attributes.begin(); it != \
m_attributes.end(); ++it ) {
- kDebug() << " " << it.key() << " = " << it.value() << endl;
+ kDebug(30003) << " " << it.key() << " = " << it.value() << endl;
}
- kDebug() << m_maps.count() << " maps." << endl;
+ kDebug(30003) << m_maps.count() << " maps." << endl;
for ( int i = 0; i < m_maps.count(); ++i ) {
- kDebug() << "map " << i << ":" << endl;
+ kDebug(30003) << "map " << i << ":" << endl;
for( QMap<QString,QString>::ConstIterator it = m_maps[i].begin(); it != \
m_maps[i].end(); ++it ) {
- kDebug() << " " << it.key() << " = " << it.value() << endl;
+ kDebug(30003) << " " << it.key() << " = " << it.value() << endl;
}
}
- kDebug() << endl;
+ kDebug(30003) << endl;
}
#endif
--- trunk/koffice/libs/kofficecore/KoGenStyles.cpp #624302:624303
@@ -140,17 +140,17 @@
void KoGenStyles::dump()
{
- kDebug() << "Style array:" << endl;
+ kDebug(30003) << "Style array:" << endl;
StyleArray::const_iterator it = m_styleArray.begin();
const StyleArray::const_iterator end = m_styleArray.end();
for ( ; it != end ; ++it ) {
- kDebug() << (*it).name << endl;
+ kDebug(30003) << (*it).name << endl;
}
for ( NameMap::const_iterator it = m_styleNames.begin(); it != \
m_styleNames.end(); ++it ) {
- kDebug() << "style: " << it.key() << endl;
+ kDebug(30003) << "style: " << it.key() << endl;
}
for ( NameMap::const_iterator it = m_autoStylesInStylesDotXml.begin(); it != \
m_autoStylesInStylesDotXml.end(); ++it ) {
- kDebug() << "auto style for style.xml: " << it.key() << endl;
+ kDebug(30003) << "auto style for style.xml: " << it.key() << endl;
const KoGenStyle* s = style( it.key() );
Q_ASSERT( s );
Q_ASSERT( s->autoStyleInStylesDotXml() );
--- trunk/koffice/libs/kofficecore/KoOasisSettings.cpp #624302:624303
@@ -28,7 +28,7 @@
{
const KoXmlElement contents = doc.documentElement();
if ( m_settingsElement.isNull() )
- kDebug() << " document doesn't have tag 'office:settings'\n";
+ kDebug(30003) << " document doesn't have tag 'office:settings'\n";
}
KoOasisSettings::KoOasisSettings( const KoXmlDocument& doc, const char* officeNSURI, \
const char* configNSURI ) @@ -37,7 +37,7 @@
{
const KoXmlElement contents = doc.documentElement();
if ( m_settingsElement.isNull() )
- kDebug() << " document doesn't have tag 'office:settings'\n";
+ kDebug(30003) << " document doesn't have tag 'office:settings'\n";
}
KoOasisSettings::Items KoOasisSettings::itemSet( const QString& itemSetName ) const
--- trunk/koffice/libs/kofficecore/KoOpenPane.cpp #624302:624303
@@ -164,7 +164,7 @@
if (mimeFilter.isEmpty())
{
- kDebug() << "No mime types found!\n";
+ kDebug(30003) << "No mime types found!\n";
return;
}
KUrl url = KFileDialog::getOpenUrl(KUrl("kfiledialog:///OpenDialog"), \
mimeFilter.join(" "), this);
--- trunk/koffice/libs/kofficecore/KoPictureImage.cpp #624302:624303
@@ -93,7 +93,7 @@
void KoPictureImage::draw(QPainter& painter, int x, int y, int width, int height, \
int sx, int sy, int sw, int sh, bool fastMode) {
- //kDebug() << "KoImage::draw currentSize:" << currentSize.width() << "x" << \
currentSize.height() << endl; + //kDebug(30003) << "KoImage::draw currentSize:" << \
currentSize.width() << "x" << currentSize.height() << endl; if ( !width || !height )
return;
QSize origSize = getOriginalSize();
@@ -117,7 +117,7 @@
else
{
QSize screenSize( width, height );
- //kDebug() << "KoPictureImage::draw screenSize=" << screenSize.width() << \
"x" << screenSize.height() << endl; + //kDebug(30003) << "KoPictureImage::draw \
screenSize=" << screenSize.width() << "x" << screenSize.height() << endl;
scaleAndCreatePixmap(screenSize, fastMode);
@@ -149,7 +149,7 @@
bool KoPictureImage::save(QIODevice* io) const
{
- kDebug() << k_funcinfo << "writing raw data. size=" << m_rawData.size() << endl;
+ kDebug(30003) << k_funcinfo << "writing raw data. size=" << m_rawData.size() << \
endl;
// We save the raw data, to avoid damaging the file by many load/save cycles \
(especially for JPEG)
qint64 size = io->write(m_rawData); // WARNING: writeBlock returns Q_LONG but \
size() Q_ULONG! return ( size==m_rawData.size() );
--- trunk/koffice/libs/kofficecore/KoView.cpp #624302:624303
@@ -162,7 +162,6 @@
actionCollection()->setAssociatedWidget(this);
- actionCollection()->setDefaultShortcutContext(Qt::ApplicationShortcut);
setupGlobalActions();
/**** not needed anymore, according to David (Werner)
KActionCollection *coll = actionCollection();
@@ -481,7 +480,7 @@
QDockWidget * KoView::createDock(const QString & title, QWidget * w)
{
- kDebug() << "Creating palette " << title << endl;
+ kDebug(30003) << "Creating palette " << title << endl;
QDockWidget * d = new QDockWidget(title, mainWindow());
d->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
d->setWidget(w);
@@ -693,12 +692,12 @@
void KoView::setupPrinter( KPrinter & )
{
- kDebug() << "KoView::setupPrinter not implemented by the application!" << endl;
+ kDebug(30003) << "KoView::setupPrinter not implemented by the application!" << \
endl; }
void KoView::print( KPrinter & )
{
- kDebug() << "KoView::print not implemented by the application!" << endl;
+ kDebug(30003) << "KoView::print not implemented by the application!" << endl;
}
void KoView::newView() {
--- trunk/koffice/libs/kofficecore/KoViewChild.cpp #624302:624303
@@ -119,7 +119,7 @@
// We don't want to trigger slotDocGeometryChanged again
lock();
QRect childGeom = parentView()->reverseViewTransformations( borderLessRect \
);
- kDebug() << "KoChild::slotFrameGeometryChanged child geometry "
+ kDebug(30003) << "KoChild::slotFrameGeometryChanged child geometry "
<< ( geometry() == childGeom ? "already " : "set to " )
<< childGeom << endl;
m_child->setGeometry( childGeom );
@@ -138,7 +138,7 @@
geom.y() - m_frame->topBorder() - \
parentView()->canvasYOffset(),
geom.width() + m_frame->leftBorder() + m_frame->rightBorder(),
geom.height() + m_frame->topBorder() + m_frame->bottomBorder() \
);
- kDebug() << "KoViewChild::slotDocGeometryChanged frame geometry "
+ kDebug(30003) << "KoViewChild::slotDocGeometryChanged frame geometry "
<< ( m_frame->geometry() == borderRect ? "already " : "set to " )
<< borderRect << endl;
@@ -147,7 +147,7 @@
void KoViewChild::setInitialFrameGeometry()
{
- kDebug() << k_funcinfo << endl;
+ kDebug(30003) << k_funcinfo << endl;
// Connect only now, so that the GUI building doesn't move us around.
connect( m_frame, SIGNAL( geometryChanged() ),
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic