Rename additional global TQt functions

pull/21/head
Timothy Pearson 12 years ago
parent a684ecdece
commit 17e2ed52db

@ -207,7 +207,7 @@ void CertificateInfoWidgetImpl::startCertificateChainListing() {
return; return;
} }
const char * fpr = mChain.front().primaryFingerprint(); const char * fpr = mChain.front().primaryFingerprint();
if ( qstricmp( fpr, chainID ) == 0 ) { if ( tqstricmp( fpr, chainID ) == 0 ) {
kdDebug() << "CertificateInfoWidgetImpl::startCertificateChainListing(): chain_id equals fingerprint -> found root" << endl; kdDebug() << "CertificateInfoWidgetImpl::startCertificateChainListing(): chain_id equals fingerprint -> found root" << endl;
return; return;
} }

@ -182,7 +182,7 @@ CertificateWizardImpl::~CertificateWizardImpl()
static const char * oidForAttributeName( const TQString & attr ) { static const char * oidForAttributeName( const TQString & attr ) {
TQCString attrUtf8 = attr.utf8(); TQCString attrUtf8 = attr.utf8();
for ( unsigned int i = 0 ; i < numOidMaps ; ++i ) for ( unsigned int i = 0 ; i < numOidMaps ; ++i )
if ( qstricmp( attrUtf8, oidmap[i].name ) == 0 ) if ( tqstricmp( attrUtf8, oidmap[i].name ) == 0 )
return oidmap[i].oid; return oidmap[i].oid;
return 0; return 0;
} }

@ -641,7 +641,7 @@ void CertManager::newCertificate()
*/ */
void CertManager::revokeCertificate() void CertManager::revokeCertificate()
{ {
qDebug("Not Yet Implemented"); tqDebug("Not Yet Implemented");
} }
/** /**
@ -650,7 +650,7 @@ void CertManager::revokeCertificate()
*/ */
void CertManager::extendCertificate() void CertManager::extendCertificate()
{ {
qDebug("Not Yet Implemented"); tqDebug("Not Yet Implemented");
} }
@ -971,7 +971,7 @@ void CertManager::slotStderr( KProcess*, char* buf, int len ) {
*/ */
void CertManager::importCRLFromLDAP() void CertManager::importCRLFromLDAP()
{ {
qDebug("Not Yet Implemented"); tqDebug("Not Yet Implemented");
} }
void CertManager::slotViewCRLs() { void CertManager::slotViewCRLs() {
@ -1008,11 +1008,11 @@ static void showDeleteError( TQWidget * parent, const GpgME::Error & err ) {
} }
static bool ByFingerprint( const GpgME::Key & left, const GpgME::Key & right ) { static bool ByFingerprint( const GpgME::Key & left, const GpgME::Key & right ) {
return qstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) < 0 ; return tqstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) < 0 ;
} }
static bool WithRespectToFingerprints( const GpgME::Key & left, const GpgME::Key & right ) { static bool WithRespectToFingerprints( const GpgME::Key & left, const GpgME::Key & right ) {
return qstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) == 0; return tqstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) == 0;
} }
void CertManager::slotDeleteCertificate() { void CertManager::slotDeleteCertificate() {

@ -378,11 +378,11 @@ public:
RefreshKeysJob * refreshKeysJob() const { return 0; } RefreshKeysJob * refreshKeysJob() const { return 0; }
SpecialJob * specialJob( const char * type, const TQMap<TQString,TQVariant> & args ) const { SpecialJob * specialJob( const char * type, const TQMap<TQString,TQVariant> & args ) const {
if ( qstricmp( type, "x-obtain-keys" ) == 0 && args.size() == 0 ) if ( tqstricmp( type, "x-obtain-keys" ) == 0 && args.size() == 0 )
return new ObtainKeysJob(); return new ObtainKeysJob();
if ( qstricmp( type, "x-encrypt" ) == 0 && args.size() == 0 ) if ( tqstricmp( type, "x-encrypt" ) == 0 && args.size() == 0 )
return new ChiasmusJob( ChiasmusJob::Encrypt ); return new ChiasmusJob( ChiasmusJob::Encrypt );
if ( qstricmp( type, "x-decrypt" ) == 0 && args.size() == 0 ) if ( tqstricmp( type, "x-decrypt" ) == 0 && args.size() == 0 )
return new ChiasmusJob( ChiasmusJob::Decrypt ); return new ChiasmusJob( ChiasmusJob::Decrypt );
kdDebug(5150) << "ChiasmusBackend::Protocol: tried to instantiate unknown job type \"" kdDebug(5150) << "ChiasmusBackend::Protocol: tried to instantiate unknown job type \""
<< type << "\"" << endl; << type << "\"" << endl;
@ -422,7 +422,7 @@ Kleo::CryptoConfig * Kleo::ChiasmusBackend::config() const {
} }
Kleo::CryptoBackend::Protocol * Kleo::ChiasmusBackend::protocol( const char * name ) const { Kleo::CryptoBackend::Protocol * Kleo::ChiasmusBackend::protocol( const char * name ) const {
if ( qstricmp( name, "Chiasmus" ) != 0 ) if ( tqstricmp( name, "Chiasmus" ) != 0 )
return 0; return 0;
if ( !mProtocol ) if ( !mProtocol )
if ( checkForChiasmus() ) if ( checkForChiasmus() )
@ -464,7 +464,7 @@ bool Kleo::ChiasmusBackend::checkForChiasmus( TQString * reason ) const {
} }
bool Kleo::ChiasmusBackend::checkForProtocol( const char * name, TQString * reason ) const { bool Kleo::ChiasmusBackend::checkForProtocol( const char * name, TQString * reason ) const {
if ( qstricmp( name, "Chiasmus" ) == 0 ) if ( tqstricmp( name, "Chiasmus" ) == 0 )
return checkForChiasmus( reason ); return checkForChiasmus( reason );
if ( reason ) if ( reason )
*reason = i18n( "Unsupported protocol \"%1\"" ).arg( name ); *reason = i18n( "Unsupported protocol \"%1\"" ).arg( name );
@ -472,7 +472,7 @@ bool Kleo::ChiasmusBackend::checkForProtocol( const char * name, TQString * reas
} }
bool Kleo::ChiasmusBackend::supportsProtocol( const char * name ) const { bool Kleo::ChiasmusBackend::supportsProtocol( const char * name ) const {
return qstricmp( name, "Chiasmus" ) == 0; return tqstricmp( name, "Chiasmus" ) == 0;
} }
const char * Kleo::ChiasmusBackend::enumerateProtocols( int i ) const { const char * Kleo::ChiasmusBackend::enumerateProtocols( int i ) const {

@ -109,9 +109,9 @@ bool Kleo::QGpgMEBackend::checkForSMIME( TQString * reason ) const {
} }
bool Kleo::QGpgMEBackend::checkForProtocol( const char * name, TQString * reason ) const { bool Kleo::QGpgMEBackend::checkForProtocol( const char * name, TQString * reason ) const {
if ( qstricmp( name, OpenPGP ) == 0 ) if ( tqstricmp( name, OpenPGP ) == 0 )
return check( GpgME::Context::OpenPGP, reason ); return check( GpgME::Context::OpenPGP, reason );
if ( qstricmp( name, SMIME ) == 0 ) if ( tqstricmp( name, SMIME ) == 0 )
return check( GpgME::Context::CMS, reason ); return check( GpgME::Context::CMS, reason );
if ( reason ) if ( reason )
*reason = i18n( "Unsupported protocol \"%1\"" ).arg( name ); *reason = i18n( "Unsupported protocol \"%1\"" ).arg( name );
@ -133,15 +133,15 @@ Kleo::CryptoBackend::Protocol * Kleo::QGpgMEBackend::smime() const {
} }
Kleo::CryptoBackend::Protocol * Kleo::QGpgMEBackend::protocol( const char * name ) const { Kleo::CryptoBackend::Protocol * Kleo::QGpgMEBackend::protocol( const char * name ) const {
if ( qstricmp( name, OpenPGP ) == 0 ) if ( tqstricmp( name, OpenPGP ) == 0 )
return openpgp(); return openpgp();
if ( qstricmp( name, SMIME ) == 0 ) if ( tqstricmp( name, SMIME ) == 0 )
return smime(); return smime();
return 0; return 0;
} }
bool Kleo::QGpgMEBackend::supportsProtocol( const char * name ) const { bool Kleo::QGpgMEBackend::supportsProtocol( const char * name ) const {
return qstricmp( name, OpenPGP ) == 0 || qstricmp( name, SMIME ) == 0; return tqstricmp( name, OpenPGP ) == 0 || tqstricmp( name, SMIME ) == 0;
} }
const char * Kleo::QGpgMEBackend::enumerateProtocols( int i ) const { const char * Kleo::QGpgMEBackend::enumerateProtocols( int i ) const {

@ -211,7 +211,7 @@ static const char * defaultBackend( const char * proto ) {
{ "Chiasmus", "chiasmus" }, { "Chiasmus", "chiasmus" },
}; };
for ( unsigned int i = 0 ; i < sizeof defaults / sizeof *defaults ; ++i ) for ( unsigned int i = 0 ; i < sizeof defaults / sizeof *defaults ; ++i )
if ( qstricmp( proto, defaults[i].proto ) == 0 ) if ( tqstricmp( proto, defaults[i].proto ) == 0 )
return defaults[i].backend; return defaults[i].backend;
return 0; return 0;
} }
@ -238,10 +238,10 @@ namespace {
CaseInsensitiveString( const char * s ) : m( s ) {} CaseInsensitiveString( const char * s ) : m( s ) {}
#define make_operator( op ) \ #define make_operator( op ) \
bool operator op( const CaseInsensitiveString & other ) const { \ bool operator op( const CaseInsensitiveString & other ) const { \
return qstricmp( m, other.m ) op 0; \ return tqstricmp( m, other.m ) op 0; \
} \ } \
bool operator op( const char * other ) const { \ bool operator op( const char * other ) const { \
return qstricmp( m, other ) op 0; \ return tqstricmp( m, other ) op 0; \
} }
make_operator( == ) make_operator( == )
make_operator( != ) make_operator( != )

@ -52,7 +52,7 @@ namespace Kleo {
struct lt_i_str { struct lt_i_str {
bool operator()( const char * one, const char * two ) const { bool operator()( const char * one, const char * two ) const {
return qstricmp( one, two ) < 0; return tqstricmp( one, two ) < 0;
} }
}; };

@ -124,7 +124,7 @@ static int inquire( void * void_ctx, const char * keyword ) {
return gpg_error( GPG_ERR_NOT_IMPLEMENTED ); return gpg_error( GPG_ERR_NOT_IMPLEMENTED );
if ( const gpg_error_t err = assuan_send_data( ctx, it->second.c_str(), it->second.size() ) ) { if ( const gpg_error_t err = assuan_send_data( ctx, it->second.c_str(), it->second.size() ) ) {
qDebug( "assuan_write_data: %s", gpg_strerror( err ) ); tqDebug( "assuan_write_data: %s", gpg_strerror( err ) );
return err; return err;
} }
@ -196,7 +196,7 @@ int main( int argc, char * argv[] ) {
assuan_context_t ctx = 0; assuan_context_t ctx = 0;
if ( const gpg_error_t err = assuan_socket_connect_ext( &ctx, socket, -1, 1 ) ) { if ( const gpg_error_t err = assuan_socket_connect_ext( &ctx, socket, -1, 1 ) ) {
qDebug( "%s", assuan_exception( err, "assuan_socket_connect_ext" ).what() ); tqDebug( "%s", assuan_exception( err, "assuan_socket_connect_ext" ).what() );
return 1; return 1;
} }
@ -204,12 +204,12 @@ int main( int argc, char * argv[] ) {
for ( std::vector<int>::const_iterator it = inFDs.begin(), end = inFDs.end() ; it != end ; ++it ) { for ( std::vector<int>::const_iterator it = inFDs.begin(), end = inFDs.end() ; it != end ; ++it ) {
if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) { if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) {
qDebug( "%s", assuan_exception( err, "assuan_sendfd( inFD )" ).what() ); tqDebug( "%s", assuan_exception( err, "assuan_sendfd( inFD )" ).what() );
return 1; return 1;
} }
if ( const gpg_error_t err = assuan_transact( ctx, "INPUT FD", 0, 0, 0, 0, 0, 0 ) ) { if ( const gpg_error_t err = assuan_transact( ctx, "INPUT FD", 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, "INPUT FD" ).what() ); tqDebug( "%s", assuan_exception( err, "INPUT FD" ).what() );
return 1; return 1;
} }
} }
@ -220,7 +220,7 @@ int main( int argc, char * argv[] ) {
sprintf( buffer, "INPUT FILE=%s", hexencode( *it ).c_str() ); sprintf( buffer, "INPUT FILE=%s", hexencode( *it ).c_str() );
if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) { if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, buffer ).what() ); tqDebug( "%s", assuan_exception( err, buffer ).what() );
return 1; return 1;
} }
} }
@ -228,12 +228,12 @@ int main( int argc, char * argv[] ) {
for ( std::vector<int>::const_iterator it = msgFDs.begin(), end = msgFDs.end() ; it != end ; ++it ) { for ( std::vector<int>::const_iterator it = msgFDs.begin(), end = msgFDs.end() ; it != end ; ++it ) {
if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) { if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) {
qDebug( "%s", assuan_exception( err, "assuan_sendfd( msgFD )" ).what() ); tqDebug( "%s", assuan_exception( err, "assuan_sendfd( msgFD )" ).what() );
return 1; return 1;
} }
if ( const gpg_error_t err = assuan_transact( ctx, "MESSAGE FD", 0, 0, 0, 0, 0, 0 ) ) { if ( const gpg_error_t err = assuan_transact( ctx, "MESSAGE FD", 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, "MESSAGE FD" ).what() ); tqDebug( "%s", assuan_exception( err, "MESSAGE FD" ).what() );
return 1; return 1;
} }
} }
@ -244,7 +244,7 @@ int main( int argc, char * argv[] ) {
sprintf( buffer, "MESSAGE FILE=%s", hexencode( *it ).c_str() ); sprintf( buffer, "MESSAGE FILE=%s", hexencode( *it ).c_str() );
if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) { if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, buffer ).what() ); tqDebug( "%s", assuan_exception( err, buffer ).what() );
return 1; return 1;
} }
} }
@ -252,12 +252,12 @@ int main( int argc, char * argv[] ) {
for ( std::vector<int>::const_iterator it = outFDs.begin(), end = outFDs.end() ; it != end ; ++it ) { for ( std::vector<int>::const_iterator it = outFDs.begin(), end = outFDs.end() ; it != end ; ++it ) {
if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) { if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) {
qDebug( "%s", assuan_exception( err, "assuan_sendfd( outFD )" ).what() ); tqDebug( "%s", assuan_exception( err, "assuan_sendfd( outFD )" ).what() );
return 1; return 1;
} }
if ( const gpg_error_t err = assuan_transact( ctx, "OUTPUT FD", 0, 0, 0, 0, 0, 0 ) ) { if ( const gpg_error_t err = assuan_transact( ctx, "OUTPUT FD", 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, "OUTPUT FD" ).what() ); tqDebug( "%s", assuan_exception( err, "OUTPUT FD" ).what() );
return 1; return 1;
} }
} }
@ -268,7 +268,7 @@ int main( int argc, char * argv[] ) {
sprintf( buffer, "OUTPUT FILE=%s", hexencode( *it ).c_str() ); sprintf( buffer, "OUTPUT FILE=%s", hexencode( *it ).c_str() );
if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) { if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, buffer ).what() ); tqDebug( "%s", assuan_exception( err, buffer ).what() );
return 1; return 1;
} }
} }
@ -279,13 +279,13 @@ int main( int argc, char * argv[] ) {
std::string line = "OPTION "; std::string line = "OPTION ";
line += opt; line += opt;
if ( const gpg_error_t err = assuan_transact( ctx, line.c_str(), 0, 0, 0, 0, 0, 0 ) ) { if ( const gpg_error_t err = assuan_transact( ctx, line.c_str(), 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, line ).what() ); tqDebug( "%s", assuan_exception( err, line ).what() );
return 1; return 1;
} }
} }
if ( const gpg_error_t err = assuan_transact( ctx, command.c_str(), data, ctx, inquire, ctx, status, ctx ) ) { if ( const gpg_error_t err = assuan_transact( ctx, command.c_str(), data, ctx, inquire, ctx, status, ctx ) ) {
qDebug( "%s", assuan_exception( err, command ).what() ); tqDebug( "%s", assuan_exception( err, command ).what() );
return 1; return 1;
} }

@ -142,8 +142,8 @@ private:
// Helper for the constructor. // Helper for the constructor.
static TQString itemText( const char * protocolName, const CryptoBackend::Protocol* protocol ) { static TQString itemText( const char * protocolName, const CryptoBackend::Protocol* protocol ) {
// First one is the generic name (find a nice one for OpenPGP, SMIME) // First one is the generic name (find a nice one for OpenPGP, SMIME)
const TQString protoName = qstricmp( protocolName, "openpgp" ) != 0 const TQString protoName = tqstricmp( protocolName, "openpgp" ) != 0
? qstricmp( protocolName, "smime" ) != 0 ? tqstricmp( protocolName, "smime" ) != 0
? TQString::fromLatin1( protocolName ) ? TQString::fromLatin1( protocolName )
: i18n( "S/MIME" ) : i18n( "S/MIME" )
: i18n( "OpenPGP" ); : i18n( "OpenPGP" );
@ -174,7 +174,7 @@ const Kleo::CryptoBackend* Kleo::BackendListView::chosenBackend( const char * pr
for ( TQListViewItemIterator it( this /*, TQListViewItemIterator::Checked doesn't work*/ ) ; for ( TQListViewItemIterator it( this /*, TQListViewItemIterator::Checked doesn't work*/ ) ;
it.current() ; ++it ) it.current() ; ++it )
if ( ProtocolCheckListItem * p = lvi_cast<ProtocolCheckListItem>( it.current() ) ) if ( ProtocolCheckListItem * p = lvi_cast<ProtocolCheckListItem>( it.current() ) )
if ( p->isOn() && qstricmp( p->protocolName(), protocolName ) == 0 ) { if ( p->isOn() && tqstricmp( p->protocolName(), protocolName ) == 0 ) {
// OK that's the one. Now go up to the parent backend // OK that's the one. Now go up to the parent backend
// (need to do that in the listview since Protocol doesn't know it) // (need to do that in the listview since Protocol doesn't know it)
if ( const BackendListViewItem * parItem = lvi_cast<BackendListViewItem>( it.current()->parent() ) ) if ( const BackendListViewItem * parItem = lvi_cast<BackendListViewItem>( it.current()->parent() ) )
@ -189,7 +189,7 @@ void Kleo::BackendListView::deselectAll( const char * protocolName, TQCheckListI
it.current() ; ++it ) { it.current() ; ++it ) {
if ( it.current() == except ) continue; if ( it.current() == except ) continue;
if ( ProtocolCheckListItem * p = lvi_cast<ProtocolCheckListItem>( it.current() ) ) if ( ProtocolCheckListItem * p = lvi_cast<ProtocolCheckListItem>( it.current() ) )
if ( p->isOn() && qstricmp( p->protocolName(), protocolName ) == 0 ) if ( p->isOn() && tqstricmp( p->protocolName(), protocolName ) == 0 )
p->setOn( false ); p->setOn( false );
} }
} }

@ -94,7 +94,7 @@ void KDHorizontalLine::calculateFrame() {
break; break;
mLenVisible--; mLenVisible--;
} }
qDebug( "mLenVisible = %d (of %d)", mLenVisible, mTitle.length() ); tqDebug( "mLenVisible = %d (of %d)", mLenVisible, mTitle.length() );
if ( mLenVisible ) { // but do we also have a visible label? if ( mLenVisible ) { // but do we also have a visible label?
TQRect r = rect(); TQRect r = rect();
const int va = style().styleHint( TQStyle::SH_GroupBox_TextLabelVerticalAlignment, this ); const int va = style().styleHint( TQStyle::SH_GroupBox_TextLabelVerticalAlignment, this );

@ -862,10 +862,10 @@ static TQString businit(void)
data.imei = imei; data.imei = imei;
TQCString unknown(GN_TO(i18n("Unknown"))); TQCString unknown(GN_TO(i18n("Unknown")));
qstrncpy(manufacturer, unknown, sizeof(manufacturer)-1); tqstrncpy(manufacturer, unknown, sizeof(manufacturer)-1);
qstrncpy(model, unknown, sizeof(model)-1); tqstrncpy(model, unknown, sizeof(model)-1);
qstrncpy(revision, unknown, sizeof(revision)-1); tqstrncpy(revision, unknown, sizeof(revision)-1);
qstrncpy(imei, unknown, sizeof(imei)-1); tqstrncpy(imei, unknown, sizeof(imei)-1);
if (m_progressDlg->wasCancelled()) if (m_progressDlg->wasCancelled())
return TQString(); return TQString();

@ -1193,7 +1193,7 @@ void KDGanttMinimizeSplitter::setHidden( TQWidget *w, bool hide )
w2show = !hide; w2show = !hide;
} else { } else {
#ifdef TQT_CHECK_RANGE #ifdef TQT_CHECK_RANGE
qWarning( "KDGanttMinimizeSplitter::setHidden(), unknown widget" ); tqWarning( "KDGanttMinimizeSplitter::setHidden(), unknown widget" );
#endif #endif
return; return;
} }
@ -1217,7 +1217,7 @@ bool KDGanttMinimizeSplitter::isHidden( TQWidget *w ) const
return !w2show; return !w2show;
#ifdef TQT_CHECK_RANGE #ifdef TQT_CHECK_RANGE
else else
qWarning( "KDGanttMinimizeSplitter::isHidden(), unknown widget" ); tqWarning( "KDGanttMinimizeSplitter::isHidden(), unknown widget" );
#endif #endif
return FALSE; return FALSE;
} }
@ -1377,7 +1377,7 @@ void kdganttGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int count, i
if ( spacerCount ) if ( spacerCount )
spacerCount--; // only spacers between things spacerCount--; // only spacers between things
if ( space < cMin + spacerCount * spacer ) { if ( space < cMin + spacerCount * spacer ) {
// qDebug("not enough space"); // tqDebug("not enough space");
for ( i = start; i < start+count; i++ ) { for ( i = start; i < start+count; i++ ) {
chain[i].size = chain[i].minimumSize; chain[i].size = chain[i].minimumSize;
chain[i].done = TRUE; chain[i].done = TRUE;

@ -303,7 +303,7 @@ void KDGanttView::show()
bool KDGanttView::close ( bool alsoDelete ) bool KDGanttView::close ( bool alsoDelete )
{ {
//qDebug("close "); //tqDebug("close ");
if ( closingBlocked ) if ( closingBlocked )
return false; return false;
return TQWidget::close ( alsoDelete ); return TQWidget::close ( alsoDelete );
@ -346,7 +346,7 @@ TQSize KDGanttView::sizeHint() const
//hintWid += myTimeHeader->mySizeHint+myCanvasView->verticalScrollBar()->width(); //hintWid += myTimeHeader->mySizeHint+myCanvasView->verticalScrollBar()->width();
hintWid += myCanvasView->sizeHint().width(); hintWid += myCanvasView->sizeHint().width();
// add 10 for the splitter-bars // add 10 for the splitter-bars
// qDebug("sizehint %d %d ",hintWid+10, hintHeight ); // tqDebug("sizehint %d %d ",hintWid+10, hintHeight );
myTimeTable->setBlockUpdating( block ); myTimeTable->setBlockUpdating( block );
return TQSize( hintWid+10, hintHeight ); return TQSize( hintWid+10, hintHeight );
} }
@ -574,7 +574,7 @@ void KDGanttView::forceRepaint( int )
{ {
if ( myTimeTable->blockUpdating() ) if ( myTimeTable->blockUpdating() )
return; return;
// qDebug("forceRepaint( int ) "); // tqDebug("forceRepaint( int ) ");
myTimeTable->setAllChanged(); myTimeTable->setAllChanged();
myTimeTable->update(); myTimeTable->update();
} }
@ -814,8 +814,8 @@ bool KDGanttView::loadProject( TQIODevice* device )
TQString err; TQString err;
int errline, errcol; int errline, errcol;
if ( !doc.setContent( device, &err, &errline, &errcol ) ) { if ( !doc.setContent( device, &err, &errline, &errcol ) ) {
qDebug("KDGantt::Error parsing XML data at line %d. Message is:", errline ); tqDebug("KDGantt::Error parsing XML data at line %d. Message is:", errline );
qDebug("%s ", err.latin1()); tqDebug("%s ", err.latin1());
device->close(); device->close();
return false; return false;
} }
@ -2671,7 +2671,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) ) if( KDGanttXML::readColorNode( element, value ) )
color = value; color = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2736,7 +2736,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" ) if ( value == "Undefined" )
undefinedShape = true; undefinedShape = true;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2775,7 +2775,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" ) if ( value == "Undefined" )
undefinedShape = true; undefinedShape = true;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2813,7 +2813,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" ) if ( value == "Undefined" )
undefinedShape = true; undefinedShape = true;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2824,7 +2824,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
middleShape, endShape, false ); middleShape, endShape, false );
undefinedShape = false; undefinedShape = false;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2856,7 +2856,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) ) if( KDGanttXML::readColorNode( element, value ) )
endColor = value; endColor = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2884,7 +2884,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) ) if( KDGanttXML::readColorNode( element, value ) )
endColor = value; endColor = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2912,7 +2912,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) ) if( KDGanttXML::readColorNode( element, value ) )
endColor = value; endColor = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2921,7 +2921,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setColors( KDGanttViewItem::Summary, startColor, setColors( KDGanttViewItem::Summary, startColor,
middleColor, endColor , false); middleColor, endColor , false);
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2949,7 +2949,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setDefaultColor( KDGanttViewItem::Summary, setDefaultColor( KDGanttViewItem::Summary,
value , false); value , false);
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -2982,7 +2982,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) ) if( KDGanttXML::readColorNode( element, value ) )
endColor = value; endColor = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3011,7 +3011,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) ) if( KDGanttXML::readColorNode( element, value ) )
endColor = value; endColor = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3040,7 +3040,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) ) if( KDGanttXML::readColorNode( element, value ) )
endColor = value; endColor = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3050,7 +3050,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
startColor, startColor,
middleColor, endColor, false ); middleColor, endColor, false );
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3078,7 +3078,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setDefaultHighlightColor( KDGanttViewItem::Summary, setDefaultHighlightColor( KDGanttViewItem::Summary,
value, false ); value, false );
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3105,7 +3105,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
element ); element );
previous = newItem; previous = newItem;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3121,7 +3121,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( tagName == "TaskLink" ) if( tagName == "TaskLink" )
KDGanttViewTaskLink::createFromDomElement( element ); KDGanttViewTaskLink::createFromDomElement( element );
else { else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3137,7 +3137,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( tagName == "TaskLink" ) if( tagName == "TaskLink" )
KDGanttViewTaskLinkGroup::createFromDomElement( element ); KDGanttViewTaskLinkGroup::createFromDomElement( element );
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
@ -3168,7 +3168,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) ) if( KDGanttXML::readColorNode( element, value ) )
color = value; color = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3177,7 +3177,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
} }
setColumnBackgroundColor( dateTime, color ); setColumnBackgroundColor( dateTime, color );
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3220,7 +3220,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
else else
ok = false; ok = false;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -3230,17 +3230,17 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
addLegendItem( tempLegendShape, addLegendItem( tempLegendShape,
tempLegendColor, tempLegendColor,
tempLegendString ); tempLegendString );
qDebug( "Adding legend item %s", tempLegendString.latin1() ); tqDebug( "Adding legend item %s", tempLegendString.latin1() );
} }
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
node = node.nextSibling(); node = node.nextSibling();
} }
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -4607,7 +4607,7 @@ void KDGanttView::setLvVScrollBarMode( TQScrollView::ScrollBarMode m )
void KDGanttView::setGvVScrollBarMode( TQScrollView::ScrollBarMode m ) void KDGanttView::setGvVScrollBarMode( TQScrollView::ScrollBarMode m )
{ {
if ( m == TQScrollView::Auto ) if ( m == TQScrollView::Auto )
qDebug("KDGanttView::setListViewVScrollBarMode: TQScrollView::Auto not supported. Nothing changed. "); tqDebug("KDGanttView::setListViewVScrollBarMode: TQScrollView::Auto not supported. Nothing changed. ");
else else
{ {
myCanvasView->setVScrollBarMode ( m ); myCanvasView->setVScrollBarMode ( m );

@ -139,7 +139,7 @@ KDGanttViewEventItem::~KDGanttViewEventItem()
void KDGanttViewEventItem::setStartTime( const TQDateTime& start ) void KDGanttViewEventItem::setStartTime( const TQDateTime& start )
{ {
if (! start.isValid() ) { if (! start.isValid() ) {
qDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set"); tqDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set");
return; return;
} }
myStartTime = start; myStartTime = start;

@ -563,16 +563,16 @@ void KDGanttViewItem::setEndTime( const TQDateTime& end )
{ {
switch( type() ) { switch( type() ) {
case Event: case Event:
qDebug( "KDGantt:Event Item has no end time" ); tqDebug( "KDGantt:Event Item has no end time" );
break; break;
case Summary: case Summary:
((KDGanttViewSummaryItem*)this)->setEndTime( end ); ((KDGanttViewSummaryItem*)this)->setEndTime( end );
break; break;
case Task: case Task:
qDebug( "KDGantt:Task Item has no end time" ); tqDebug( "KDGantt:Task Item has no end time" );
break; break;
default: default:
qDebug( "Unknown type in KDGanttViewItem::typeToString()" ); tqDebug( "Unknown type in KDGanttViewItem::typeToString()" );
} }
} }
@ -1325,7 +1325,7 @@ void KDGanttViewItem::updateCanvasItems()
} else { } else {
b.setStyle(Qt::SolidPattern); b.setStyle(Qt::SolidPattern);
b.setColor(myStartColor); b.setColor(myStartColor);
// qDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() ); // tqDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() );
startShape->setBrush(b); startShape->setBrush(b);
b.setColor(myMiddleColor); b.setColor(myMiddleColor);
midShape->setBrush(b); midShape->setBrush(b);
@ -1472,12 +1472,12 @@ void KDGanttViewItem::initColorAndShapes(Type t)
// set shapes // set shapes
if (!( shapeDefined = (myGanttView->shapes(myType,myStartShape,myMiddleShape,myEndShape)))) { if (!( shapeDefined = (myGanttView->shapes(myType,myStartShape,myMiddleShape,myEndShape)))) {
//qDebug("KDGantt::KDGanttViewItem created with not user defined shapes"); //tqDebug("KDGantt::KDGanttViewItem created with not user defined shapes");
}; };
setShapes(myStartShape,myMiddleShape,myEndShape); setShapes(myStartShape,myMiddleShape,myEndShape);
if ( type() == Task ) { if ( type() == Task ) {
//qDebug("new task %s ", listViewText().latin1()); //tqDebug("new task %s ", listViewText().latin1());
if ( startShape ) if ( startShape )
delete startShape; delete startShape;
startShape = (KDCanvasPolygonItem*)new KDCanvasRectangle(myGanttView->myTimeTable,this,Type_is_KDGanttViewItem); startShape = (KDCanvasPolygonItem*)new KDCanvasRectangle(myGanttView->myTimeTable,this,Type_is_KDGanttViewItem);
@ -1627,7 +1627,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view,
else if( typeString == "Event" ) else if( typeString == "Event" )
item = new KDGanttViewEventItem( view ); item = new KDGanttViewEventItem( view );
else { else {
qDebug( "Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() ); tqDebug( "Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() );
return 0; return 0;
} }
@ -1659,7 +1659,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view,
else if( typeString == "Event" ) else if( typeString == "Event" )
item = new KDGanttViewEventItem( view, previous ); item = new KDGanttViewEventItem( view, previous );
else { else {
qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
return 0; return 0;
} }
@ -1691,7 +1691,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent,
else if( typeString == "Event" ) else if( typeString == "Event" )
item = new KDGanttViewEventItem( parent ); item = new KDGanttViewEventItem( parent );
else { else {
qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
return 0; return 0;
} }
@ -1723,7 +1723,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent,
else if( typeString == "Event" ) else if( typeString == "Event" )
item = new KDGanttViewEventItem( parent, previous ); item = new KDGanttViewEventItem( parent, previous );
else { else {
qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
return 0; return 0;
} }
@ -1859,7 +1859,7 @@ void KDGanttViewItem::loadFromDomElement( TQDomElement& element )
element ); element );
previous = newItem; previous = newItem;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -1867,7 +1867,7 @@ void KDGanttViewItem::loadFromDomElement( TQDomElement& element )
node = node.nextSibling(); node = node.nextSibling();
} }
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -1893,7 +1893,7 @@ TQString KDGanttViewItem::typeToString( Type type )
case Task: case Task:
return "Task"; return "Task";
default: default:
qDebug( "Unknown type in KDGanttViewItem::typeToString()" ); tqDebug( "Unknown type in KDGanttViewItem::typeToString()" );
return "Summary"; return "Summary";
} }
return ""; return "";
@ -2105,7 +2105,7 @@ int KDGanttViewItem::computeHeight()
showItem( false ); showItem( false );
if ( firstChild() ) if ( firstChild() )
firstChild()->hideSubtree(); firstChild()->hideSubtree();
// qDebug("KDGanttViewItem::computeHeight() %s returns 0 ", TQListViewItem::text(0).latin1()); // tqDebug("KDGanttViewItem::computeHeight() %s returns 0 ", TQListViewItem::text(0).latin1());
return 0; return 0;
} }
@ -2146,7 +2146,7 @@ int KDGanttViewItem::computeHeight()
// display closed item as usual // display closed item as usual
// //
if ( isOpen() ) { if ( isOpen() ) {
//qDebug("KDGanttViewItem::computeHeight() %s is open ", TQListViewItem::text(0).latin1()); //tqDebug("KDGanttViewItem::computeHeight() %s is open ", TQListViewItem::text(0).latin1());
temp = firstChild(); temp = firstChild();
// if item opened, iterate over all subitems // if item opened, iterate over all subitems
int tempHeight; int tempHeight;
@ -2157,19 +2157,19 @@ int KDGanttViewItem::computeHeight()
if ( special ) { if ( special ) {
if ( temp->displaySubitemsAsGroup() ) { if ( temp->displaySubitemsAsGroup() ) {
hei += tempHeight; hei += tempHeight;
//qDebug(" hei added "); //tqDebug(" hei added ");
} else { } else {
temp->showSubitemTree( getCoordY() ); temp->showSubitemTree( getCoordY() );
} }
} else { } else {
hei += tempHeight; hei += tempHeight;
//qDebug(" hei added "); //tqDebug(" hei added ");
} }
temp = temp->nextSibling(); temp = temp->nextSibling();
} }
} else { // closed! } else { // closed!
//qDebug("KDGanttViewItem::computeHeight() %s is closed ", TQListViewItem::text(0).latin1()); //tqDebug("KDGanttViewItem::computeHeight() %s is closed ", TQListViewItem::text(0).latin1());
if ( !displaySubitemsAsGroup() ) { if ( !displaySubitemsAsGroup() ) {
if ( firstChild() ) { if ( firstChild() ) {
@ -2187,7 +2187,7 @@ int KDGanttViewItem::computeHeight()
showItem( true ); showItem( true );
hei += height(); hei += height();
//qDebug("KDGanttViewItem::computeHeight() %s returns: %d ", TQListViewItem::text(0).latin1(), hei); //tqDebug("KDGanttViewItem::computeHeight() %s returns: %d ", TQListViewItem::text(0).latin1(), hei);
return hei; return hei;
} }
@ -2219,11 +2219,11 @@ void KDGanttViewItem::paintBranches ( TQPainter* p, const TQColorGroup& cg,
KDGanttViewItem * temp = firstChild(); KDGanttViewItem * temp = firstChild();
while ( temp ) { while ( temp ) {
if ( temp->showNoCross() ) { if ( temp->showNoCross() ) {
//qDebug("paintNoCross %s ", temp->listViewText(0).latin1()); //tqDebug("paintNoCross %s ", temp->listViewText(0).latin1());
int y_coord = temp->itemPos() -height ()- itemPos(); int y_coord = temp->itemPos() -height ()- itemPos();
int hei = temp->height(); int hei = temp->height();
//qDebug(" y %d w %d h %d ", y,w,h); //tqDebug(" y %d w %d h %d ", y,w,h);
//qDebug("yc %d hei %d",y_coord,hei ); //tqDebug("yc %d hei %d",y_coord,hei );
myGanttView->myListView->paintemptyarea( p, TQRect( 0,y+y_coord,w,hei)); myGanttView->myListView->paintemptyarea( p, TQRect( 0,y+y_coord,w,hei));
int x_c = w/2; int x_c = w/2;
int y_c = y+y_coord+ temp->height ()/2; int y_c = y+y_coord+ temp->height ()/2;
@ -2487,7 +2487,7 @@ void KDGanttViewItem::moveTextCanvas(int x, int y)
mx -= 2*myItemSize; // keep old behaviour mx -= 2*myItemSize; // keep old behaviour
textCanvas->move(mx+2*myItemSize,my-myItemSize/2); textCanvas->move(mx+2*myItemSize,my-myItemSize/2);
//qDebug("%s: moveTextCanvas(%d,%d) offset: %d,%d moved to %d,%d",listViewText(0).latin1(),x,y,myTextOffset.x(),myTextOffset.y(),mx+2*myItemSize,my-myItemSize/2); //tqDebug("%s: moveTextCanvas(%d,%d) offset: %d,%d moved to %d,%d",listViewText(0).latin1(),x,y,myTextOffset.x(),myTextOffset.y(),mx+2*myItemSize,my-myItemSize/2);
} }
/*! /*!
@ -2505,7 +2505,7 @@ void KDGanttViewItem::moveTextCanvas()
*/ */
void KDGanttViewItem::setTextOffset(TQPoint p) void KDGanttViewItem::setTextOffset(TQPoint p)
{ {
//qDebug("%s: setTextOffset() offset: %d,%d",listViewText(0).latin1(),p.x(),p.y()); //tqDebug("%s: setTextOffset() offset: %d,%d",listViewText(0).latin1(),p.x(),p.y());
myTextOffset.setX(p.x()); myTextOffset.setX(p.x());
myTextOffset.setY(p.y()); myTextOffset.setY(p.y());
} }

@ -179,7 +179,7 @@ int KDTimeTableWidget::computeHeight()
if (hei == 0) { if (hei == 0) {
hei = 1; hei = 1;
} }
//qDebug("COMPUTED HEI %d ", hei); //tqDebug("COMPUTED HEI %d ", hei);
emit heightComputed( hei ); emit heightComputed( hei );
return hei; return hei;
} }
@ -188,7 +188,7 @@ void KDTimeTableWidget::computeVerticalGrid()
// recompute the vertical grid // recompute the vertical grid
// compute the vertical grid // compute the vertical grid
// if we have too much lines, hide them // if we have too much lines, hide them
//qDebug("computeVerticalGrid() "); //tqDebug("computeVerticalGrid() ");
int cw = myGanttView->myTimeHeader->myGridMinorWidth; int cw = myGanttView->myTimeHeader->myGridMinorWidth;
int i = 0; int i = 0;
int h ; int h ;
@ -434,7 +434,7 @@ void KDTimeTableWidget::computeVerticalGrid()
void KDTimeTableWidget::computeHorizontalGrid() void KDTimeTableWidget::computeHorizontalGrid()
{ {
// compute horizontal grid // compute horizontal grid
//qDebug("computeHorizontalGrid() "); //tqDebug("computeHorizontalGrid() ");
KDGanttViewItem* temp = myGanttView->firstChild(); KDGanttViewItem* temp = myGanttView->firstChild();
int wid; int wid;
if ( pendingWidth ) if ( pendingWidth )
@ -474,7 +474,7 @@ void KDTimeTableWidget::computeHorizontalGrid()
//TQString ts = "asGroup"; //TQString ts = "asGroup";
//if (!temp->displaySubitemsAsGroup() ) //if (!temp->displaySubitemsAsGroup() )
// ts = " NOT asGroup"; // ts = " NOT asGroup";
//qDebug("temp name %s %s", temp->listViewText(0).latin1(), ts.latin1()); //tqDebug("temp name %s %s", temp->listViewText(0).latin1(), ts.latin1());
temp = temp->itemBelow (); temp = temp->itemBelow ();
} }
@ -586,10 +586,10 @@ void KDTimeTableWidget::computeTaskLinks()
void KDTimeTableWidget::updateMyContent() void KDTimeTableWidget::updateMyContent()
{ {
if ( flag_blockUpdating || int_blockUpdating ) { if ( flag_blockUpdating || int_blockUpdating ) {
// qDebug("KDTimeTableWidget::updateMyContent() blocked! "); // tqDebug("KDTimeTableWidget::updateMyContent() blocked! ");
return; return;
} }
//qDebug("KDTimeTableWidget::updateMyContent() ********************************* "); //tqDebug("KDTimeTableWidget::updateMyContent() ********************************* ");
/* /*
// debug output // debug output
KDGanttViewItem* temp = myGanttView->firstChild(); KDGanttViewItem* temp = myGanttView->firstChild();
@ -638,7 +638,7 @@ void KDTimeTableWidget::updateMyContent()
} }
pendingWidth = 0; pendingWidth = 0;
pendingHeight = 0; pendingHeight = 0;
//qDebug("KDTimeTableWidget::updateMyContent() -------------------------"); //tqDebug("KDTimeTableWidget::updateMyContent() -------------------------");
} }
// used for blocking recursive methods // used for blocking recursive methods
// e.g. KDGanttViewItem::setHighlight() and displaySubitemsAsGroup() == true // e.g. KDGanttViewItem::setHighlight() and displaySubitemsAsGroup() == true
@ -1111,12 +1111,12 @@ void KDTimeHeaderWidget::zoomToSelection( TQDateTime start, TQDateTime end)
if (start < myHorizonStart) { if (start < myHorizonStart) {
myHorizonStart = start; myHorizonStart = start;
flagStartTimeSet = true; flagStartTimeSet = true;
//qDebug("myHorizonStart reset"); //tqDebug("myHorizonStart reset");
} }
if (end > myHorizonEnd) { if (end > myHorizonEnd) {
myHorizonEnd = end; myHorizonEnd = end;
flagEndTimeSet = true; flagEndTimeSet = true;
//qDebug("myHorizonEnd reset "); //tqDebug("myHorizonEnd reset ");
} }
flagDoNotRepaintAfterChange = true;//avoid flicker flagDoNotRepaintAfterChange = true;//avoid flicker
zoom(1.0); // set to 100% zoom(1.0); // set to 100%
@ -1134,7 +1134,7 @@ void KDTimeHeaderWidget::zoomToSelection( TQDateTime start, TQDateTime end)
zoom (fac); zoom (fac);
timeWid = getCoordX(end)-getCoordX(start); timeWid = getCoordX(end)-getCoordX(start);
if ( count++ > 10 ) { if ( count++ > 10 ) {
//qDebug("Exiting while loop in zoomToSelection "); //tqDebug("Exiting while loop in zoomToSelection ");
break; break;
} }
} }
@ -1156,7 +1156,7 @@ void KDTimeHeaderWidget::zoom(double factor, bool absolute)
{ {
flagZoomToFit = false; flagZoomToFit = false;
if ( factor < 0.000001 ) { if ( factor < 0.000001 ) {
qDebug("KDGanttView::zoom() : Zoom factor to low. Nothing zoomed. "); tqDebug("KDGanttView::zoom() : Zoom factor to low. Nothing zoomed. ");
return; return;
} }
double newZoom; double newZoom;
@ -1167,12 +1167,12 @@ void KDTimeHeaderWidget::zoom(double factor, bool absolute)
double relativeZoom; double relativeZoom;
relativeZoom = newZoom / myZoomFactor; relativeZoom = newZoom / myZoomFactor;
//qDebug("zooming relative %f ", relativeZoom); //tqDebug("zooming relative %f ", relativeZoom);
//qDebug("zooming absolute %f ", newZoom); //tqDebug("zooming absolute %f ", newZoom);
int viewWid = myGanttView->myCanvasView->viewport()->width(); int viewWid = myGanttView->myCanvasView->viewport()->width();
if ( width() * relativeZoom < viewWid && ( newZoom > 1.01 || newZoom < 0.99 ) ) { if ( width() * relativeZoom < viewWid && ( newZoom > 1.01 || newZoom < 0.99 ) ) {
qDebug("KDGanttView::zoom() : Zoom factor to low for current horizon. "); tqDebug("KDGanttView::zoom() : Zoom factor to low for current horizon. ");
// qDebug("zooming relative %f, zooming absolute %f, viewWidth %d width %d ", relativeZoom, newZoom, viewWid, width() ); // tqDebug("zooming relative %f, zooming absolute %f, viewWidth %d width %d ", relativeZoom, newZoom, viewWid, width() );
return; return;
} }
myZoomFactor = newZoom; myZoomFactor = newZoom;
@ -1819,14 +1819,14 @@ int KDTimeHeaderWidget::minorScaleCount() const
void KDTimeHeaderWidget::resizeEvent ( TQResizeEvent * ) void KDTimeHeaderWidget::resizeEvent ( TQResizeEvent * )
{ {
// qDebug("KDTimeHeaderWidget:: resizeEvent "); // tqDebug("KDTimeHeaderWidget:: resizeEvent ");
paintPix.resize( 800, height () ); paintPix.resize( 800, height () );
} }
void KDTimeHeaderWidget::updateTimeTable() void KDTimeHeaderWidget::updateTimeTable()
{ {
//qDebug("KDTimeHeaderWidget::updateTimeTable() "); //tqDebug("KDTimeHeaderWidget::updateTimeTable() ");
if (flagDoNotRecomputeAfterChange) return; if (flagDoNotRecomputeAfterChange) return;
// setting the scrolling steps // setting the scrolling steps
int scrollLineStep = myGridMinorWidth; int scrollLineStep = myGridMinorWidth;
@ -1969,7 +1969,7 @@ TQDateTime KDTimeHeaderWidget::getEvenTimeDate(TQDateTime tempdatetime ,Scale sc
min = tempdatetime.time().minute(); min = tempdatetime.time().minute();
while (60%tempMinorScaleCount > 0 && 60%tempMinorScaleCount < 60) while (60%tempMinorScaleCount > 0 && 60%tempMinorScaleCount < 60)
++tempMinorScaleCount; ++tempMinorScaleCount;
// qDebug("myMinorScaleCount %d %d %d",myMinorScaleCount, myRealMinorScaleCount, tempMinorScaleCount); // tqDebug("myMinorScaleCount %d %d %d",myMinorScaleCount, myRealMinorScaleCount, tempMinorScaleCount);
min = (min /tempMinorScaleCount)*tempMinorScaleCount; min = (min /tempMinorScaleCount)*tempMinorScaleCount;
tempdatetime = TQDateTime (tempdatetime.date(), TQTime (tempdatetime.time().hour(),min )); tempdatetime = TQDateTime (tempdatetime.date(), TQTime (tempdatetime.time().hour(),min ));
@ -1985,7 +1985,7 @@ void KDTimeHeaderWidget::computeRealScale(TQDateTime start)
{ {
if (myScale ==KDGanttView::Auto) { if (myScale ==KDGanttView::Auto) {
//qDebug("Autoscale "); //tqDebug("Autoscale ");
//double secsPerMinor = (((double)start.daysTo(myHorizonEnd))* 86400.00)/((double)myAutoScaleMinorTickcount); //double secsPerMinor = (((double)start.daysTo(myHorizonEnd))* 86400.00)/((double)myAutoScaleMinorTickcount);
double secsPerMinor = (((double)start.secsTo(myHorizonEnd)))/((double)myAutoScaleMinorTickcount); double secsPerMinor = (((double)start.secsTo(myHorizonEnd)))/((double)myAutoScaleMinorTickcount);
secsPerMinor /= myZoomFactor; secsPerMinor /= myZoomFactor;
@ -2017,7 +2017,7 @@ void KDTimeHeaderWidget::computeRealScale(TQDateTime start)
myRealMajorScaleCount = 1; myRealMajorScaleCount = 1;
} }
else { else {
//qDebug("Fixed scale "); //tqDebug("Fixed scale ");
myRealScale = myScale; myRealScale = myScale;
if (myRealScale > myMaxScale) if (myRealScale > myMaxScale)
myRealScale = myMaxScale; myRealScale = myMaxScale;
@ -2067,7 +2067,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
if (flagDoNotRecomputeAfterChange) return; if (flagDoNotRecomputeAfterChange) return;
bool block = myGanttView->myTimeTable->blockUpdating(); bool block = myGanttView->myTimeTable->blockUpdating();
myGanttView->myTimeTable->setBlockUpdating( true ); myGanttView->myTimeTable->setBlockUpdating( true );
//qDebug("computeticks "); //tqDebug("computeticks ");
majorTicks.clear(); majorTicks.clear();
minorText.clear(); minorText.clear();
majorText.clear(); majorText.clear();
@ -2082,7 +2082,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
tempMajorScaleCount = myRealMajorScaleCount; tempMajorScaleCount = myRealMajorScaleCount;
int minorItems,minorPerMajor = 1; int minorItems,minorPerMajor = 1;
minorItems = (int) (secsFromTo( myRealStart, myHorizonEnd)/60.0); minorItems = (int) (secsFromTo( myRealStart, myHorizonEnd)/60.0);
//qDebug("tempMinorScaleCount %d ", tempMinorScaleCount); //tqDebug("tempMinorScaleCount %d ", tempMinorScaleCount);
TQPainter p(this); TQPainter p(this);
int Width, Height; int Width, Height;
TQString testTextMinor,testTextMajor, tempStr; TQString testTextMinor,testTextMajor, tempStr;
@ -2131,14 +2131,14 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
minorPerMajor = 1200; minorPerMajor = 1200;
break; break;
case KDGanttView::Auto: case KDGanttView::Auto:
qDebug("KDGanttView::Internal Error in KDTimeHeaderWidget::computeTicks() "); tqDebug("KDGanttView::Internal Error in KDTimeHeaderWidget::computeTicks() ");
qDebug(" RealScale == Auto : This may not be! "); tqDebug(" RealScale == Auto : This may not be! ");
break; break;
} }
itemRectMinor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMinor); itemRectMinor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMinor);
itemRectMajor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMajor); itemRectMajor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMajor);
p.end(); p.end();
//qDebug(" tempMinorScaleCount %d ", tempMinorScaleCount); //tqDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
Height = itemRectMinor.height()+itemRectMajor.height()+11; Height = itemRectMinor.height()+itemRectMajor.height()+11;
Width = (itemRectMinor.width()+5); Width = (itemRectMinor.width()+5);
if (Width < minimumColumnWidth()) Width = minimumColumnWidth(); if (Width < minimumColumnWidth()) Width = minimumColumnWidth();
@ -2149,7 +2149,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
maxWid = maximumWidth(); maxWid = maximumWidth();
while((minorItems/tempMinorScaleCount+1)*Width > maxWid) while((minorItems/tempMinorScaleCount+1)*Width > maxWid)
++tempMinorScaleCount; ++tempMinorScaleCount;
//qDebug(" tempMinorScaleCount %d ", tempMinorScaleCount); //tqDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
mySizeHint = (minorItems/tempMinorScaleCount+1)*Width; mySizeHint = (minorItems/tempMinorScaleCount+1)*Width;
switch (myRealScale) switch (myRealScale)
{ {
@ -2162,7 +2162,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myRealMinorScaleCount = tempMinorScaleCount/ 60; myRealMinorScaleCount = tempMinorScaleCount/ 60;
// myRealMinorScaleCount = 1; // myRealMinorScaleCount = 1;
myRealMajorScaleCount = 1; myRealMajorScaleCount = 1;
qDebug("KDGantt::Overzoom:Rescaling from Minute to Hour"); tqDebug("KDGantt::Overzoom:Rescaling from Minute to Hour");
myGanttView->myTimeTable->setBlockUpdating( block ); myGanttView->myTimeTable->setBlockUpdating( block );
emit myGanttView->rescaling( KDGanttView::Hour ); emit myGanttView->rescaling( KDGanttView::Hour );
computeTicks(true); computeTicks(true);
@ -2177,7 +2177,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myRealMinorScaleCount = tempMinorScaleCount/ 24; myRealMinorScaleCount = tempMinorScaleCount/ 24;
//myRealMinorScaleCount = 1; //myRealMinorScaleCount = 1;
myRealMajorScaleCount = 1; myRealMajorScaleCount = 1;
qDebug("KDGantt::Overzoom:Rescaling from Hour to Day"); tqDebug("KDGantt::Overzoom:Rescaling from Hour to Day");
myGanttView->myTimeTable->setBlockUpdating( block ); myGanttView->myTimeTable->setBlockUpdating( block );
emit myGanttView->rescaling( KDGanttView::Day ); emit myGanttView->rescaling( KDGanttView::Day );
computeTicks(true); computeTicks(true);
@ -2339,7 +2339,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myGanttView->myTimeTable->setBlockUpdating( block ); myGanttView->myTimeTable->setBlockUpdating( block );
return; return;
} }
//qDebug("KDTimeHeaderWidget width %d, viewport width %d ",width (), myGanttView->myCanvasView->viewport()->width()); //tqDebug("KDTimeHeaderWidget width %d, viewport width %d ",width (), myGanttView->myCanvasView->viewport()->width());
myGanttView->myTimeTable->setBlockUpdating( block ); myGanttView->myTimeTable->setBlockUpdating( block );
updateTimeTable(); updateTimeTable();
centerDateTime(myCenterDateTime); centerDateTime(myCenterDateTime);
@ -2364,7 +2364,7 @@ void KDTimeHeaderWidget::saveCenterDateTime()
void KDTimeHeaderWidget::centerDateTime( const TQDateTime& center ) void KDTimeHeaderWidget::centerDateTime( const TQDateTime& center )
{ {
moveTimeLineTo(getCoordX( center )-(myGanttView->myCanvasView->viewport()->width() /2)); moveTimeLineTo(getCoordX( center )-(myGanttView->myCanvasView->viewport()->width() /2));
// qDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) ); // tqDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) );
} }
@ -2482,8 +2482,8 @@ void KDTimeHeaderWidget::mouseReleaseEvent ( TQMouseEvent * )
start = 0; start = 0;
if ( end > width() ) if ( end > width() )
end = width(); end = width();
//qDebug("start %s ",getDateTimeForIndex(start).toString().latin1() ); //tqDebug("start %s ",getDateTimeForIndex(start).toString().latin1() );
//qDebug("end %s ",getDateTimeForIndex(end).toString().latin1() ); //tqDebug("end %s ",getDateTimeForIndex(end).toString().latin1() );
emit myGanttView->timeIntervalSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) ); emit myGanttView->timeIntervalSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) );
emit myGanttView->timeIntervallSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) ); emit myGanttView->timeIntervallSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) );
//zoomToSelection( getDateTimeForIndex(start),getDateTimeForIndex(end) ); //zoomToSelection( getDateTimeForIndex(start),getDateTimeForIndex(end) );
@ -2529,7 +2529,7 @@ void KDTimeHeaderWidget::mouseMoveEvent ( TQMouseEvent * e )
} }
myGanttView->myCanvasView->horizontalScrollBar()->setValue( val ); myGanttView->myCanvasView->horizontalScrollBar()->setValue( val );
} }
//qDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y()); //tqDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y());
} }
} }
@ -2708,7 +2708,7 @@ KDListView::KDListView(TQWidget* parent, KDGanttView* gantView):TQListView (pare
void KDListView::dragItem( TQListViewItem * ) void KDListView::dragItem( TQListViewItem * )
{ {
// qDebug("drag "); // tqDebug("drag ");
// startDrag(); // startDrag();
} }
TQString KDListView::getWhatsThisText(TQPoint p) TQString KDListView::getWhatsThisText(TQPoint p)
@ -2746,7 +2746,7 @@ void KDListView::setOpen(TQListViewItem * item, bool open )
} }
else { else {
temp->setVisible( false ); temp->setVisible( false );
//qDebug(" temp->setVisible( false );"); //tqDebug(" temp->setVisible( false );");
} }
temp = temp->nextSibling(); temp = temp->nextSibling();
} }
@ -3009,7 +3009,7 @@ void KDListView::dragMoveEvent ( TQDragMoveEvent * e)
void KDListView::dragLeaveEvent ( TQDragLeaveEvent * ) void KDListView::dragLeaveEvent ( TQDragLeaveEvent * )
{ {
//qDebug("contentsDragLeaveEvent "); //tqDebug("contentsDragLeaveEvent ");
} }
void KDListView::dropEvent ( TQDropEvent *e ) void KDListView::dropEvent ( TQDropEvent *e )
{ {
@ -3028,7 +3028,7 @@ void KDListView::dropEvent ( TQDropEvent *e )
KDGanttViewItem* newItem = 0; KDGanttViewItem* newItem = 0;
if ( gItem == myGanttView->myCanvasView->lastClickedItem && gItem != 0 ) { if ( gItem == myGanttView->myCanvasView->lastClickedItem && gItem != 0 ) {
qDebug("KDGanttView::Possible bug in drag&drop code "); tqDebug("KDGanttView::Possible bug in drag&drop code ");
return; return;
} }
@ -3056,16 +3056,16 @@ void KDListView::dropEvent ( TQDropEvent *e )
newItem = KDGanttViewItem::createFromDomElement( myGanttView, newItem = KDGanttViewItem::createFromDomElement( myGanttView,
element ); element );
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
//qDebug("next node1 "); //tqDebug("next node1 ");
node = node.nextSibling(); node = node.nextSibling();
} }
} }
} }
//qDebug("next node2 "); //tqDebug("next node2 ");
node = node.nextSibling(); node = node.nextSibling();
} }
newItem->setDisplaySubitemsAsGroup(myGanttView->displaySubitemsAsGroup()); newItem->setDisplaySubitemsAsGroup(myGanttView->displaySubitemsAsGroup());
@ -3273,7 +3273,7 @@ void KDGanttCanvasView::myUpdateScrollBars()
} }
void KDGanttCanvasView::setMyContentsHeight( int hei ) void KDGanttCanvasView::setMyContentsHeight( int hei )
{ {
//qDebug("setMyContentsHeight %d %d ", hei, myMyContentsHeight); //tqDebug("setMyContentsHeight %d %d ", hei, myMyContentsHeight);
if ( hei > 0 ) if ( hei > 0 )
myMyContentsHeight = hei; myMyContentsHeight = hei;
verticalScrollBar()->setUpdatesEnabled( true ); // set false in resizeEvent() verticalScrollBar()->setUpdatesEnabled( true ); // set false in resizeEvent()
@ -3294,7 +3294,7 @@ void KDGanttCanvasView::setMyContentsHeight( int hei )
// Call after *internal* resizing (like addTickRight()) // Call after *internal* resizing (like addTickRight())
// Then the new scrollbar maxValue is in myTimeHeader. // Then the new scrollbar maxValue is in myTimeHeader.
void KDGanttCanvasView::updateHorScrollBar() { void KDGanttCanvasView::updateHorScrollBar() {
//qDebug("horizontalScrollBar max=%d, myTimeHeaderScroll=%d", horizontalScrollBar()->maxValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->value()); //tqDebug("horizontalScrollBar max=%d, myTimeHeaderScroll=%d", horizontalScrollBar()->maxValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->value());
horizontalScrollBar()->setRange(mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->minValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->maxValue()); horizontalScrollBar()->setRange(mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->minValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->maxValue());
@ -3332,7 +3332,7 @@ void KDGanttCanvasView::insertItemAfter( KDGanttViewItem* parent , KDGanttViewI
void KDGanttCanvasView::cutItem() void KDGanttCanvasView::cutItem()
{ {
lastClickedItem->hideSubtree(); lastClickedItem->hideSubtree();
//qDebug("last clicked %d parent %d ", lastClickedItem , lastClickedItem->parent()); //tqDebug("last clicked %d parent %d ", lastClickedItem , lastClickedItem->parent());
if ( lastClickedItem->parent() ) if ( lastClickedItem->parent() )
lastClickedItem->parent()->takeItem(lastClickedItem); lastClickedItem->parent()->takeItem(lastClickedItem);
else else
@ -3509,8 +3509,8 @@ KDGanttCanvasView::MovingOperation KDGanttCanvasView::gvItemHitTest( KDGanttView
void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e ) void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e )
{ {
//qDebug("mousepress! %d ", this); //tqDebug("mousepress! %d ", this);
//qDebug("focus %d ",tqApp->focusWidget()); //tqDebug("focus %d ",tqApp->focusWidget());
setFocus(); setFocus();
currentLink = 0; currentLink = 0;
currentItem = 0; currentItem = 0;
@ -3637,9 +3637,9 @@ void KDGanttCanvasView::contentsMouseReleaseEvent ( TQMouseEvent * e )
mouseDown = false; mouseDown = false;
static KDGanttViewItem* lastClicked = 0; static KDGanttViewItem* lastClicked = 0;
mySignalSender->gvMouseButtonClicked( e->button(), currentItem , e->globalPos() ); mySignalSender->gvMouseButtonClicked( e->button(), currentItem , e->globalPos() );
//qDebug("datetime %s ",mySignalSender->getDateTimeForCoordX(e->globalPos().x(), true ).toString().latin1() ); //tqDebug("datetime %s ",mySignalSender->getDateTimeForCoordX(e->globalPos().x(), true ).toString().latin1() );
//qDebug("mousepos %d %d ",e->pos().x(),e->pos().y() ); //tqDebug("mousepos %d %d ",e->pos().x(),e->pos().y() );
//qDebug("mouseup "); //tqDebug("mouseup ");
// if ( currentLink || currentItem ) // if ( currentLink || currentItem )
{ {
switch ( e->button() ) { switch ( e->button() ) {
@ -3873,7 +3873,7 @@ void KDGanttCanvasView::contentsMouseMoveEvent ( TQMouseEvent *e )
if (autoScrollEnabled) if (autoScrollEnabled)
mousePos = e->pos()- TQPoint(contentsX(),contentsY()); // make mousePos relative 0 mousePos = e->pos()- TQPoint(contentsX(),contentsY()); // make mousePos relative 0
if (fromItem) { if (fromItem) {
//qDebug("mousemove: linking %s: %d,%d ",fromItem->listViewText().latin1(), e->pos().x(), e->pos().y()); //tqDebug("mousemove: linking %s: %d,%d ",fromItem->listViewText().latin1(), e->pos().x(), e->pos().y());
linkLine->setPoints(linkLine->startPoint().x(), linkLine->startPoint().y(), e->pos().x(), e->pos().y()); linkLine->setPoints(linkLine->startPoint().x(), linkLine->startPoint().y(), e->pos().x(), e->pos().y());
canvas()->update(); canvas()->update();
} }
@ -3946,7 +3946,7 @@ int KDGanttCanvasView::getItemArea(KDGanttViewItem *item, int x) {
// TODO: middle (move, dnd), front, back (resize) // TODO: middle (move, dnd), front, back (resize)
KDTimeTableWidget *tt = dynamic_cast<KDTimeTableWidget *>(canvas()); KDTimeTableWidget *tt = dynamic_cast<KDTimeTableWidget *>(canvas());
if (!tt) { if (!tt) {
qWarning("Cannot cast canvas to KDTimeTableWidget"); tqWarning("Cannot cast canvas to KDTimeTableWidget");
return 0; return 0;
} }
int area = 0; int area = 0;

@ -138,7 +138,7 @@ KDGanttViewSummaryItem::~KDGanttViewSummaryItem()
void KDGanttViewSummaryItem::setMiddleTime( const TQDateTime& dateTime ) void KDGanttViewSummaryItem::setMiddleTime( const TQDateTime& dateTime )
{ {
if (! dateTime.isValid() ) { if (! dateTime.isValid() ) {
qDebug("KDGanttViewSummaryItem::setMiddleTime():Invalid parameter-no time set"); tqDebug("KDGanttViewSummaryItem::setMiddleTime():Invalid parameter-no time set");
return; return;
} }
if (!myMiddleTime) myMiddleTime = new TQDateTime; if (!myMiddleTime) myMiddleTime = new TQDateTime;
@ -177,7 +177,7 @@ TQDateTime KDGanttViewSummaryItem::middleTime() const
void KDGanttViewSummaryItem::setEndTime( const TQDateTime& end ) void KDGanttViewSummaryItem::setEndTime( const TQDateTime& end )
{ {
if (! end.isValid() ) { if (! end.isValid() ) {
qDebug("KDGanttViewSummaryItem::setEndTime():Invalid parameter-no time set"); tqDebug("KDGanttViewSummaryItem::setEndTime():Invalid parameter-no time set");
return; return;
} }
myEndTime = end; myEndTime = end;
@ -200,7 +200,7 @@ void KDGanttViewSummaryItem::setEndTime( const TQDateTime& end )
void KDGanttViewSummaryItem::setStartTime( const TQDateTime& start ) void KDGanttViewSummaryItem::setStartTime( const TQDateTime& start )
{ {
if (! start.isValid() ) { if (! start.isValid() ) {
qDebug("KDGanttViewSummaryItem::setStartTime():Invalid parameter-no time set"); tqDebug("KDGanttViewSummaryItem::setStartTime():Invalid parameter-no time set");
return; return;
} }
myStartTime = start; myStartTime = start;

@ -171,7 +171,7 @@ void KDGanttViewTaskItem::setEndTime( const TQDateTime& end )
void KDGanttViewTaskItem::setStartTime( const TQDateTime& start ) void KDGanttViewTaskItem::setStartTime( const TQDateTime& start )
{ {
if (! start.isValid() ) { if (! start.isValid() ) {
qDebug("KDGanttViewTaskItem::setStartTime():Invalid parameter-no time set"); tqDebug("KDGanttViewTaskItem::setStartTime():Invalid parameter-no time set");
return; return;
} }
myStartTime = start; myStartTime = start;
@ -199,7 +199,7 @@ void KDGanttViewTaskItem::hideMe()
void KDGanttViewTaskItem::showItem(bool show, int coordY) void KDGanttViewTaskItem::showItem(bool show, int coordY)
{ {
//qDebug("KDGanttViewTaskItem::showItem() %d %s ", (int) show, listViewText().latin1()); //tqDebug("KDGanttViewTaskItem::showItem() %d %s ", (int) show, listViewText().latin1());
isVisibleInGanttView = show; isVisibleInGanttView = show;
invalidateHeight () ; invalidateHeight () ;
if (!show) { if (!show) {
@ -361,7 +361,7 @@ void KDGanttViewTaskItem::initItem()
parent()->setVisible( true ); parent()->setVisible( true );
} else } else
showItem(true); showItem(true);
//qDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() ); //tqDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() );
myGanttView->myTimeTable->updateMyContent(); myGanttView->myTimeTable->updateMyContent();
setDragEnabled( myGanttView->dragEnabled() ); setDragEnabled( myGanttView->dragEnabled() );
setDropEnabled( myGanttView->dropEnabled() ); setDropEnabled( myGanttView->dropEnabled() );

@ -326,7 +326,7 @@ void KDGanttViewTaskLink::showMe( bool visible )
void KDGanttViewTaskLink::showMeType( bool visible ) void KDGanttViewTaskLink::showMeType( bool visible )
{ {
//qDebug("KDGanttViewTaskLink::showMeType %d",linkType()); //tqDebug("KDGanttViewTaskLink::showMeType %d",linkType());
hide(); hide();
isvisible = visible; isvisible = visible;
int wid = 1; int wid = 1;
@ -486,7 +486,7 @@ void KDGanttViewTaskLink::showMeType( bool visible )
break; break;
} }
default: default:
qWarning("KDGanttViewTaskLink: Unknown link type"); tqWarning("KDGanttViewTaskLink: Unknown link type");
break; break;
} }
(*horIt)->show(); (*horIt)->show();
@ -803,7 +803,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el
if( KDGanttXML::readStringNode( element, value ) ) if( KDGanttXML::readStringNode( element, value ) )
fromList << value; fromList << value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -820,7 +820,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el
if( KDGanttXML::readStringNode( element, value ) ) if( KDGanttXML::readStringNode( element, value ) )
toList << value; toList << value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -859,7 +859,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el
if( KDGanttXML::readStringNode( element, value ) ) if( KDGanttXML::readStringNode( element, value ) )
linktype = stringToLinkType( value ); linktype = stringToLinkType( value );
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -882,11 +882,11 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el
} }
// safeguard aginst incorrect names // safeguard aginst incorrect names
if (fromItemList.isEmpty()) { if (fromItemList.isEmpty()) {
qDebug("Cannot create link: fromItemList is empty"); tqDebug("Cannot create link: fromItemList is empty");
return 0; return 0;
} }
if (toItemList.isEmpty()) { if (toItemList.isEmpty()) {
qDebug("Cannot create link: toItemList is empty"); tqDebug("Cannot create link: toItemList is empty");
return 0; return 0;
} }
KDGanttViewTaskLink* tl = new KDGanttViewTaskLink( fromItemList, KDGanttViewTaskLink* tl = new KDGanttViewTaskLink( fromItemList,

@ -337,7 +337,7 @@ KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::createFromDomElement( TQDomE
if( KDGanttXML::readStringNode( element, value ) ) if( KDGanttXML::readStringNode( element, value ) )
name = value; name = value;
} else { } else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() ); tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false ); Q_ASSERT( false );
} }
} }
@ -382,6 +382,6 @@ void KDGanttViewTaskLinkGroup::generateAndInsertName( const TQString& name )
} }
sGroupDict.insert( newName, this ); sGroupDict.insert( newName, this );
_name = newName; _name = newName;
//qDebug("KDGanttViewTaskLinkGroup::generateAndInsertName: inserted '%s'",newName.latin1()); //tqDebug("KDGanttViewTaskLinkGroup::generateAndInsertName: inserted '%s'",newName.latin1());
} }

@ -415,7 +415,7 @@ bool readBrushNode( const TQDomElement& element, TQBrush& brush )
} else if( tagName == "Pixmap" ) { } else if( tagName == "Pixmap" ) {
ok = ok & readPixmapNode( element, tempPixmap ); ok = ok & readPixmapNode( element, tempPixmap );
} else { } else {
qDebug( "Unknown tag in brush" ); tqDebug( "Unknown tag in brush" );
} }
} }
node = node.nextSibling(); node = node.nextSibling();
@ -447,14 +447,14 @@ bool readPixmapNode( const TQDomElement& element, TQPixmap& pixmap )
ok = ok & readStringNode( element, formatName ); ok = ok & readStringNode( element, formatName );
#ifndef NDEBUG #ifndef NDEBUG
if( formatName != "XPM.GZ" ) if( formatName != "XPM.GZ" )
qDebug( "Unsupported pixmap format in XML file" ); tqDebug( "Unsupported pixmap format in XML file" );
#endif #endif
} else if( tagName == "Length" ) { } else if( tagName == "Length" ) {
ok = ok & readIntNode( element, tempLengthi ); ok = ok & readIntNode( element, tempLengthi );
} else if( tagName == "Data" ) { } else if( tagName == "Data" ) {
ok = ok & readStringNode( element, tempData ); ok = ok & readStringNode( element, tempData );
} else { } else {
qDebug( "Unknown tag in Pixmap" ); tqDebug( "Unknown tag in Pixmap" );
} }
} }
node = node.nextSibling(); node = node.nextSibling();
@ -521,7 +521,7 @@ bool readPenNode( const TQDomElement& element, TQPen& pen )
ok = ok & readStringNode( element, value ); ok = ok & readStringNode( element, value );
tempStyle = stringToPenStyle( value ); tempStyle = stringToPenStyle( value );
} else { } else {
qDebug( "Unknown tag in brush" ); tqDebug( "Unknown tag in brush" );
} }
} }
node = node.nextSibling(); node = node.nextSibling();
@ -561,7 +561,7 @@ bool readFontNode( const TQDomElement& element, TQFont& font )
} else if( tagName == "CharSet" ) { } else if( tagName == "CharSet" ) {
ok = ok & readIntNode( element, charSet ); ok = ok & readIntNode( element, charSet );
} else { } else {
qDebug( "Unknown tag in color map" ); tqDebug( "Unknown tag in color map" );
} }
} }
node = node.nextSibling(); node = node.nextSibling();
@ -596,7 +596,7 @@ bool readRectNode( const TQDomElement& element, TQRect& value )
} else if( tagName == "Y" ) { } else if( tagName == "Y" ) {
ok = ok & readIntNode( element, y ); ok = ok & readIntNode( element, y );
} else { } else {
qDebug( "Unknown tag in rect" ); tqDebug( "Unknown tag in rect" );
} }
} }
node = node.nextSibling(); node = node.nextSibling();
@ -629,7 +629,7 @@ bool readDateTimeNode( const TQDomElement& element, TQDateTime& datetime )
} else if( tagName == "Time" ) { } else if( tagName == "Time" ) {
ok = ok & readTimeNode( element, tempTime ); ok = ok & readTimeNode( element, tempTime );
} else { } else {
qDebug( "Unknown tag in datetime" ); tqDebug( "Unknown tag in datetime" );
} }
} }
node = node.nextSibling(); node = node.nextSibling();

@ -1808,7 +1808,7 @@ void
imapParser::parseRelay (const TQByteArray & buffer) imapParser::parseRelay (const TQByteArray & buffer)
{ {
Q_UNUSED(buffer); Q_UNUSED(buffer);
qWarning tqWarning
("imapParser::parseRelay - virtual function not reimplemented - data lost"); ("imapParser::parseRelay - virtual function not reimplemented - data lost");
} }
@ -1816,7 +1816,7 @@ void
imapParser::parseRelay (ulong len) imapParser::parseRelay (ulong len)
{ {
Q_UNUSED(len); Q_UNUSED(len);
qWarning tqWarning
("imapParser::parseRelay - virtual function not reimplemented - announcement lost"); ("imapParser::parseRelay - virtual function not reimplemented - announcement lost");
} }
@ -1825,7 +1825,7 @@ bool imapParser::parseRead (TQByteArray & buffer, ulong len, ulong relay)
Q_UNUSED(buffer); Q_UNUSED(buffer);
Q_UNUSED(len); Q_UNUSED(len);
Q_UNUSED(relay); Q_UNUSED(relay);
qWarning tqWarning
("imapParser::parseRead - virtual function not reimplemented - no data read"); ("imapParser::parseRead - virtual function not reimplemented - no data read");
return FALSE; return FALSE;
} }
@ -1834,7 +1834,7 @@ bool imapParser::parseReadLine (TQByteArray & buffer, ulong relay)
{ {
Q_UNUSED(buffer); Q_UNUSED(buffer);
Q_UNUSED(relay); Q_UNUSED(relay);
qWarning tqWarning
("imapParser::parseReadLine - virtual function not reimplemented - no data read"); ("imapParser::parseReadLine - virtual function not reimplemented - no data read");
return FALSE; return FALSE;
} }
@ -1843,7 +1843,7 @@ void
imapParser::parseWriteLine (const TQString & str) imapParser::parseWriteLine (const TQString & str)
{ {
Q_UNUSED(str); Q_UNUSED(str);
qWarning tqWarning
("imapParser::parseWriteLine - virtual function not reimplemented - no data written"); ("imapParser::parseWriteLine - virtual function not reimplemented - no data written");
} }

@ -39,54 +39,54 @@ mailHeader::addHdrLine (mimeHdrLine * inLine)
const TQCString label(addLine->getLabel()); const TQCString label(addLine->getLabel());
TQCString value(addLine->getValue()); TQCString value(addLine->getValue());
if (!qstricmp (label, "Return-Path")) { if (!tqstricmp (label, "Return-Path")) {
returnpathAdr.parseAddress (value.data ()); returnpathAdr.parseAddress (value.data ());
goto out; goto out;
} }
if (!qstricmp (label, "Sender")) { if (!tqstricmp (label, "Sender")) {
senderAdr.parseAddress (value.data ()); senderAdr.parseAddress (value.data ());
goto out; goto out;
} }
if (!qstricmp (label, "From")) { if (!tqstricmp (label, "From")) {
fromAdr.parseAddress (value.data ()); fromAdr.parseAddress (value.data ());
goto out; goto out;
} }
if (!qstricmp (label, "Reply-To")) { if (!tqstricmp (label, "Reply-To")) {
replytoAdr.parseAddress (value.data ()); replytoAdr.parseAddress (value.data ());
goto out; goto out;
} }
if (!qstricmp (label, "To")) { if (!tqstricmp (label, "To")) {
mailHeader::parseAddressList (value, &toAdr); mailHeader::parseAddressList (value, &toAdr);
goto out; goto out;
} }
if (!qstricmp (label, "CC")) { if (!tqstricmp (label, "CC")) {
mailHeader::parseAddressList (value, &ccAdr); mailHeader::parseAddressList (value, &ccAdr);
goto out; goto out;
} }
if (!qstricmp (label, "BCC")) { if (!tqstricmp (label, "BCC")) {
mailHeader::parseAddressList (value, &bccAdr); mailHeader::parseAddressList (value, &bccAdr);
goto out; goto out;
} }
if (!qstricmp (label, "Subject")) { if (!tqstricmp (label, "Subject")) {
_subject = value.simplifyWhiteSpace(); _subject = value.simplifyWhiteSpace();
goto out; goto out;
} }
if (!qstricmp (label.data (), "Date")) { if (!tqstricmp (label.data (), "Date")) {
mDate = value; mDate = value;
goto out; goto out;
} }
if (!qstricmp (label.data (), "Message-ID")) { if (!tqstricmp (label.data (), "Message-ID")) {
int start = value.findRev ('<'); int start = value.findRev ('<');
int end = value.findRev ('>'); int end = value.findRev ('>');
if (start < end) if (start < end)
messageID = value.mid (start, end - start + 1); messageID = value.mid (start, end - start + 1);
else { else {
qWarning("bad Message-ID"); tqWarning("bad Message-ID");
/* messageID = value; */ /* messageID = value; */
} }
goto out; goto out;
} }
if (!qstricmp (label.data (), "In-Reply-To")) { if (!tqstricmp (label.data (), "In-Reply-To")) {
int start = value.findRev ('<'); int start = value.findRev ('<');
int end = value.findRev ('>'); int end = value.findRev ('>');
if (start < end) if (start < end)

@ -77,7 +77,7 @@ mimeHeader::addHdrLine (mimeHdrLine * aHdrLine)
if (addLine) if (addLine)
{ {
originalHdrLines.append (addLine); originalHdrLines.append (addLine);
if (qstrnicmp (addLine->getLabel (), "Content-", 8)) if (tqstrnicmp (addLine->getLabel (), "Content-", 8))
{ {
additionalHdrLines.append (addLine); additionalHdrLines.append (addLine);
} }
@ -105,34 +105,34 @@ mimeHeader::addHdrLine (mimeHdrLine * aHdrLine)
TQCString mimeValue = TQCString (aCStr, skip - cut + 1); // cutting of one because of 0x00 TQCString mimeValue = TQCString (aCStr, skip - cut + 1); // cutting of one because of 0x00
if (!qstricmp (addLine->getLabel (), "Content-Disposition")) if (!tqstricmp (addLine->getLabel (), "Content-Disposition"))
{ {
aList = &dispositionList; aList = &dispositionList;
_contentDisposition = mimeValue; _contentDisposition = mimeValue;
} }
else if (!qstricmp (addLine->getLabel (), "Content-Type")) else if (!tqstricmp (addLine->getLabel (), "Content-Type"))
{ {
aList = &typeList; aList = &typeList;
contentType = mimeValue; contentType = mimeValue;
} }
else else
if (!qstricmp (addLine->getLabel (), "Content-Transfer-Encoding")) if (!tqstricmp (addLine->getLabel (), "Content-Transfer-Encoding"))
{ {
contentEncoding = mimeValue; contentEncoding = mimeValue;
} }
else if (!qstricmp (addLine->getLabel (), "Content-ID")) else if (!tqstricmp (addLine->getLabel (), "Content-ID"))
{ {
contentID = mimeValue; contentID = mimeValue;
} }
else if (!qstricmp (addLine->getLabel (), "Content-Description")) else if (!tqstricmp (addLine->getLabel (), "Content-Description"))
{ {
_contentDescription = mimeValue; _contentDescription = mimeValue;
} }
else if (!qstricmp (addLine->getLabel (), "Content-MD5")) else if (!tqstricmp (addLine->getLabel (), "Content-MD5"))
{ {
contentMD5 = mimeValue; contentMD5 = mimeValue;
} }
else if (!qstricmp (addLine->getLabel (), "Content-Length")) else if (!tqstricmp (addLine->getLabel (), "Content-Length"))
{ {
contentLength = mimeValue.toULong (); contentLength = mimeValue.toULong ();
} }
@ -463,7 +463,7 @@ mimeHeader::parsePart (mimeIO & useIO, const TQString& boundary)
mbox = parseHeader (useIO); mbox = parseHeader (useIO);
kdDebug(7116) << "mimeHeader::parsePart - parsing part '" << getType () << "'" << endl; kdDebug(7116) << "mimeHeader::parsePart - parsing part '" << getType () << "'" << endl;
if (!qstrnicmp (getType (), "Multipart", 9)) if (!tqstrnicmp (getType (), "Multipart", 9))
{ {
retVal = parseBody (useIO, preNested, getTypeParm ("boundary")); //this is a message in mime format stuff retVal = parseBody (useIO, preNested, getTypeParm ("boundary")); //this is a message in mime format stuff
setPreBody (preNested); setPreBody (preNested);
@ -473,7 +473,7 @@ mimeHeader::parsePart (mimeIO & useIO, const TQString& boundary)
mimeHeader *aHeader = new mimeHeader; mimeHeader *aHeader = new mimeHeader;
// set default type for multipart/digest // set default type for multipart/digest
if (!qstrnicmp (getType (), "Multipart/Digest", 16)) if (!tqstrnicmp (getType (), "Multipart/Digest", 16))
aHeader->setType ("Message/RFC822"); aHeader->setType ("Message/RFC822");
localRetVal = aHeader->parsePart (useIO, getTypeParm ("boundary")); localRetVal = aHeader->parsePart (useIO, getTypeParm ("boundary"));
@ -481,7 +481,7 @@ mimeHeader::parsePart (mimeIO & useIO, const TQString& boundary)
} }
while (localRetVal); //get nested stuff while (localRetVal); //get nested stuff
} }
if (!qstrnicmp (getType (), "Message/RFC822", 14)) if (!tqstrnicmp (getType (), "Message/RFC822", 14))
{ {
mailHeader *msgHeader = new mailHeader; mailHeader *msgHeader = new mailHeader;
retVal = msgHeader->parsePart (useIO, boundary); retVal = msgHeader->parsePart (useIO, boundary);
@ -515,13 +515,13 @@ mimeHeader::parseBody (mimeIO & useIO, TQCString & messageBody,
{ {
//check for the end of all parts //check for the end of all parts
if (!partEnd.isEmpty () if (!partEnd.isEmpty ()
&& !qstrnicmp (inputStr, partEnd.latin1 (), partEnd.length () - 1)) && !tqstrnicmp (inputStr, partEnd.latin1 (), partEnd.length () - 1))
{ {
retVal = 0; //end of these parts retVal = 0; //end of these parts
break; break;
} }
else if (!partBoundary.isEmpty () else if (!partBoundary.isEmpty ()
&& !qstrnicmp (inputStr, partBoundary.latin1 (), && !tqstrnicmp (inputStr, partBoundary.latin1 (),
partBoundary.length () - 1)) partBoundary.length () - 1))
{ {
retVal = 1; //continue with next part retVal = 1; //continue with next part

@ -56,7 +56,7 @@ TQStringList GroupConfig::activeObjectTypes() const
TQString message; TQString message;
if ( !document.setContent( &file, &message ) ) { if ( !document.setContent( &file, &message ) ) {
qDebug( "Error on loading %s: %s", fileName.latin1(), message.latin1() ); tqDebug( "Error on loading %s: %s", fileName.latin1(), message.latin1() );
return TQStringList(); return TQStringList();
} }
file.close(); file.close();

@ -105,7 +105,7 @@ Group GroupEnv::addGroup( const TQString &name )
if ( !osync_group_env_add_group( mGroupEnv, ogroup, &error ) ) { if ( !osync_group_env_add_group( mGroupEnv, ogroup, &error ) ) {
Result res( &error ); Result res( &error );
qDebug( "Error on adding group: %s", res.message().latin1() ); tqDebug( "Error on adding group: %s", res.message().latin1() );
} }
return group; return group;

@ -43,7 +43,7 @@ bool Member::isValid() const
return false; return false;
if ( !osync_member_instance_plugin( mMember, pluginName().utf8(), &error ) ) { if ( !osync_member_instance_plugin( mMember, pluginName().utf8(), &error ) ) {
qDebug( "Plugin %s is not valid: %s", pluginName().latin1(), osync_error_print( &error ) ); tqDebug( "Plugin %s is not valid: %s", pluginName().latin1(), osync_error_print( &error ) );
osync_error_free( &error ); osync_error_free( &error );
return false; return false;
} }

@ -47,12 +47,12 @@ void OpenSyncService::setConnection( TQDBusConnection *connection )
bool OpenSyncService::handleMethodCall( const TQDBusMessage &message ) bool OpenSyncService::handleMethodCall( const TQDBusMessage &message )
{ {
qDebug( "OpenSyncService::handleMethodCall()" ); tqDebug( "OpenSyncService::handleMethodCall()" );
qDebug( " Interface: %s", message.interface().latin1() ); tqDebug( " Interface: %s", message.interface().latin1() );
qDebug( " Path: %s", message.path().latin1() ); tqDebug( " Path: %s", message.path().latin1() );
qDebug( " Member: %s", message.member().latin1() ); tqDebug( " Member: %s", message.member().latin1() );
qDebug( " Sender: %s", message.sender().latin1() ); tqDebug( " Sender: %s", message.sender().latin1() );
if ( message.interface() != "org.opensync.SyncEngine" ) return false; if ( message.interface() != "org.opensync.SyncEngine" ) return false;
@ -258,7 +258,7 @@ int main( int argc, char *argv[] )
TQDBusConnection::SessionBus ); TQDBusConnection::SessionBus );
if ( !connection.isConnected() ) { if ( !connection.isConnected() ) {
qFatal("Cannot connect to session bus"); tqFatal("Cannot connect to session bus");
} }
connection.requestName( "org.opensync.SyncEngine", connection.requestName( "org.opensync.SyncEngine",

@ -175,9 +175,9 @@ void MainWidget::sync( SyncProcess *syncProcess )
syncProcess->reinitEngine(); syncProcess->reinitEngine();
QSync::Result result = syncProcess->engine()->synchronize(); QSync::Result result = syncProcess->engine()->synchronize();
if ( result ) { if ( result ) {
qDebug( "%s", result.message().latin1() ); tqDebug( "%s", result.message().latin1() );
} else { } else {
qDebug( "synchronization worked" ); tqDebug( "synchronization worked" );
} }
} }
} }

@ -110,7 +110,7 @@ void SyncProcessManager::addGroup( const TQString &name )
emit changed(); emit changed();
} else } else
qDebug( "Try to add duplicate" ); tqDebug( "Try to add duplicate" );
} }
void SyncProcessManager::remove( SyncProcess *syncProcess ) void SyncProcessManager::remove( SyncProcess *syncProcess )

@ -47,7 +47,7 @@ namespace KMail {
namespace BodyPartFormatterFactoryPrivate { namespace BodyPartFormatterFactoryPrivate {
struct ltstr { struct ltstr {
bool operator()( const char * s1, const char * s2 ) const { bool operator()( const char * s1, const char * s2 ) const {
return qstricmp( s1, s2 ) < 0; return tqstricmp( s1, s2 ) < 0;
} }
}; };

@ -960,7 +960,7 @@ int KMKernel::dcopAddMessage( const TQString & foldername,const KURL & msgUrl,
msg = 0; msg = 0;
} }
} else { } else {
//qDebug( "duplicate: " + msgId + "; subj: " + msg->subject() + ", from: " + msgId = msg->fromStrip()); //tqDebug( "duplicate: " + msgId + "; subj: " + msg->subject() + ", from: " + msgId = msg->fromStrip());
retval = -4; retval = -4;
} }
} else { } else {

@ -3050,9 +3050,9 @@ void applyHeadersToMessagePart( DwHeaders& headers, KMMessagePart* aPart )
DwParameter *param = ct.FirstParameter(); DwParameter *param = ct.FirstParameter();
while(param) while(param)
{ {
if (!qstricmp(param->Attribute().c_str(), "charset")) if (!tqstricmp(param->Attribute().c_str(), "charset"))
aPart->setCharset(TQCString(param->Value().c_str()).lower()); aPart->setCharset(TQCString(param->Value().c_str()).lower());
else if (!qstrnicmp(param->Attribute().c_str(), "name*", 5)) else if (!tqstrnicmp(param->Attribute().c_str(), "name*", 5))
aPart->setName(KMMsgBase::decodeRFC2231String(KMMsgBase::extractRFC2231HeaderField( param->Value().c_str(), "name" ))); aPart->setName(KMMsgBase::decodeRFC2231String(KMMsgBase::extractRFC2231HeaderField( param->Value().c_str(), "name" )));
else { else {
additionalCTypeParams += ';'; additionalCTypeParams += ';';

@ -148,7 +148,7 @@ KMSearchRule::Function KMSearchRule::configValueToFunc( const char * str ) {
return FuncNone; return FuncNone;
for ( int i = 0 ; i < numFuncConfigNames ; ++i ) for ( int i = 0 ; i < numFuncConfigNames ; ++i )
if ( qstricmp( funcConfigNames[i], str ) == 0 ) return (Function)i; if ( tqstricmp( funcConfigNames[i], str ) == 0 ) return (Function)i;
return FuncNone; return FuncNone;
} }

@ -266,8 +266,8 @@ static bool messageIsDispositionNotificationReport( KMMessage *msg )
DwMediaType& ct = msg->dwContentType(); DwMediaType& ct = msg->dwContentType();
DwParameter *param = ct.FirstParameter(); DwParameter *param = ct.FirstParameter();
while( param ) { while( param ) {
if ( !qstricmp( param->Attribute().c_str(), "report-type") if ( !tqstricmp( param->Attribute().c_str(), "report-type")
&& !qstricmp( param->Value().c_str(), "disposition-notification" ) ) && !tqstricmp( param->Value().c_str(), "disposition-notification" ) )
return true; return true;
else else
param = param->Next(); param = param->Next();

@ -140,7 +140,7 @@ TQString FilterKMail_maildir::getMessageFlags( FilterInfo *info, const TQString&
status_flag = seperate; status_flag = seperate;
status_flag.remove("X-Status: "); status_flag.remove("X-Status: ");
status_flag = status_flag.stripWhiteSpace(); status_flag = status_flag.stripWhiteSpace();
// qDebug("status_flag: %s", status_flag.latin1() ); // tqDebug("status_flag: %s", status_flag.latin1() );
break; break;
} }
} }

@ -47,7 +47,7 @@ void FilterMailApp::import(FilterInfo *info)
TQString directory = KFileDialog::getExistingDirectory( TQDir::homeDirPath(), info->parent() ); TQString directory = KFileDialog::getExistingDirectory( TQDir::homeDirPath(), info->parent() );
//qDebug("starting by looking in directory: %s", directory.latin1()); //tqDebug("starting by looking in directory: %s", directory.latin1());
if ( directory.isEmpty() ) { if ( directory.isEmpty() ) {
info->addLog( i18n("No directory selected.")); info->addLog( i18n("No directory selected."));
info->addLog( i18n("No files found for import.")); info->addLog( i18n("No files found for import."));

@ -95,7 +95,7 @@ void FilterMBox::import(FilterInfo *info)
x_status_flag = seperate; x_status_flag = seperate;
x_status_flag.remove("X-Status: "); x_status_flag.remove("X-Status: ");
x_status_flag = x_status_flag.stripWhiteSpace(); x_status_flag = x_status_flag.stripWhiteSpace();
// qDebug("x_status_flag: %s", x_status_flag.latin1() ); // tqDebug("x_status_flag: %s", x_status_flag.latin1() );
} }
// workaround to fix hang if a corrupted mbox contains some // workaround to fix hang if a corrupted mbox contains some

@ -147,8 +147,8 @@ static gn_connection_type connectionToValue( TQString connectionName )
bool KMobileGnokii::setGnokiiStateMachine() bool KMobileGnokii::setGnokiiStateMachine()
{ {
// set the state machine to our configuration // set the state machine to our configuration
qstrncpy( state.config.model, m_modelnr.utf8(), sizeof(state.config.model)-1 ); tqstrncpy( state.config.model, m_modelnr.utf8(), sizeof(state.config.model)-1 );
qstrncpy( state.config.port_device, m_port.utf8(), sizeof(state.config.port_device)-1 ); tqstrncpy( state.config.port_device, m_port.utf8(), sizeof(state.config.port_device)-1 );
state.config.connection_type = connectionToValue(m_connection); state.config.connection_type = connectionToValue(m_connection);
state.config.serial_baudrate = m_baud.toUInt(); state.config.serial_baudrate = m_baud.toUInt();
return true; return true;

@ -254,7 +254,7 @@ int KNArticleVector::indexForId(int id)
return mid; return mid;
else { else {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNArticleVector::indexForId() : id=%d not found", id); tqDebug("knode: KNArticleVector::indexForId() : id=%d not found", id);
#endif #endif
return -1; return -1;
} }
@ -288,13 +288,13 @@ int KNArticleVector::indexForMsgId(const TQCString &id)
if(found) { if(found) {
/*#ifndef NDEBUG /*#ifndef NDEBUG
qDebug("KNArticleVector::indexForMsgID() : msgID=%s found after %d compares", id.data(), cnt); tqDebug("KNArticleVector::indexForMsgID() : msgID=%s found after %d compares", id.data(), cnt);
#endif*/ #endif*/
return mid; return mid;
} }
else { else {
/*#ifndef NDEBUG /*#ifndef NDEBUG
qDebug("knode: KNArticleVector::indexForMsgID() : msgID=%s not found", id.data()); tqDebug("knode: KNArticleVector::indexForMsgID() : msgID=%s not found", id.data());
#endif*/ #endif*/
return -1; return -1;
} }

@ -692,7 +692,7 @@ void KNGroup::buildThreads(int cnt, KNProtocolClient *client)
// this method is called from the nntp-thread!!! // this method is called from the nntp-thread!!!
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNGroup::buildThreads() : start = %d end = %d",start,end); tqDebug("knode: KNGroup::buildThreads() : start = %d end = %d",start,end);
#endif #endif
//resort old hdrs //resort old hdrs
@ -705,7 +705,7 @@ void KNGroup::buildThreads(int cnt, KNProtocolClient *client)
if(ref) { if(ref) {
// this method is called from the nntp-thread!!! // this method is called from the nntp-thread!!!
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: %d: old %d new %d",art->id(), oldRef, art->idRef()); tqDebug("knode: %d: old %d new %d",art->id(), oldRef, art->idRef());
#endif #endif
resortCnt++; resortCnt++;
art->setChanged(true); art->setChanged(true);
@ -826,7 +826,7 @@ void KNGroup::buildThreads(int cnt, KNProtocolClient *client)
if(isLoop) { if(isLoop) {
// this method is called from the nntp-thread!!! // this method is called from the nntp-thread!!!
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: Sorting : loop in %d",startId); tqDebug("knode: Sorting : loop in %d",startId);
#endif #endif
art=at(idx); art=at(idx);
art->setIdRef(0); art->setIdRef(0);
@ -859,9 +859,9 @@ void KNGroup::buildThreads(int cnt, KNProtocolClient *client)
// this method is called from the nntp-thread!!! // this method is called from the nntp-thread!!!
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: Sorting : %d headers resorted", resortCnt); tqDebug("knode: Sorting : %d headers resorted", resortCnt);
qDebug("knode: Sorting : %d references of %d found", foundCnt, refCnt); tqDebug("knode: Sorting : %d references of %d found", foundCnt, refCnt);
qDebug("knode: Sorting : %d references of %d sorted by subject", bySubCnt, refCnt); tqDebug("knode: Sorting : %d references of %d sorted by subject", bySubCnt, refCnt);
#endif #endif
} }

@ -61,7 +61,7 @@ void KNNntpClient::processJob()
break; break;
default: default:
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNNntpClient::processJob(): mismatched job"); tqDebug("knode: KNNntpClient::processJob(): mismatched job");
#endif #endif
break; break;
} }
@ -108,7 +108,7 @@ void KNNntpClient::doFetchGroups()
s = strchr(line,' '); s = strchr(line,' ');
if(!s) { if(!s) {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: retrieved broken group-line - ignoring"); tqDebug("knode: retrieved broken group-line - ignoring");
#endif #endif
} else { } else {
s[0] = 0; // cut string s[0] = 0; // cut string
@ -175,7 +175,7 @@ void KNNntpClient::doFetchGroups()
while (*s != '\0' && *s != '\t' && *s != ' ') s++; while (*s != '\0' && *s != '\t' && *s != ' ') s++;
if (*s == '\0') { if (*s == '\0') {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: retrieved broken group-description - ignoring"); tqDebug("knode: retrieved broken group-description - ignoring");
#endif #endif
} else { } else {
s[0] = 0; // terminate groupname s[0] = 0; // terminate groupname
@ -244,7 +244,7 @@ void KNNntpClient::doCheckNewGroups()
s = strchr(line,' '); s = strchr(line,' ');
if(!s) { if(!s) {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: retrieved broken group-line - ignoring"); tqDebug("knode: retrieved broken group-line - ignoring");
#endif #endif
} else { } else {
s[0] = 0; // cut string s[0] = 0; // cut string
@ -297,7 +297,7 @@ void KNNntpClient::doCheckNewGroups()
while (*s !=- '\0' && *s != '\t' && *s != ' ') s++; while (*s !=- '\0' && *s != '\t' && *s != ' ') s++;
if (*s == '\0') { if (*s == '\0') {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: retrieved broken group-description - ignoring"); tqDebug("knode: retrieved broken group-description - ignoring");
#endif #endif
} else { } else {
while (*s == ' ' || *s == '\t') s++; // go on to the description while (*s == ' ' || *s == '\t') s++; // go on to the description
@ -378,17 +378,17 @@ void KNNntpClient::doFetchNewHeaders()
oldlast=target->lastNr(); oldlast=target->lastNr();
toFetch=last-oldlast; toFetch=last-oldlast;
//qDebug("knode: last %d oldlast %d toFetch %d\n",last,oldlast,toFetch); //tqDebug("knode: last %d oldlast %d toFetch %d\n",last,oldlast,toFetch);
if(toFetch<=0) { if(toFetch<=0) {
//qDebug("knode: No new Articles in group\n"); //tqDebug("knode: No new Articles in group\n");
target->setLastNr(last); // don't get stuck when the article numbers wrap target->setLastNr(last); // don't get stuck when the article numbers wrap
return; return;
} }
if(toFetch>target->maxFetch()) { if(toFetch>target->maxFetch()) {
toFetch=target->maxFetch(); toFetch=target->maxFetch();
//qDebug("knode: Fetching only %d articles\n",toFetch); //tqDebug("knode: Fetching only %d articles\n",toFetch);
} }
progressValue = 100; progressValue = 100;
@ -413,7 +413,7 @@ void KNNntpClient::doFetchNewHeaders()
} }
} }
//qDebug("knode: KNNntpClient::doFetchNewHeaders() : xover %d-%d", last-toFetch+1, last); //tqDebug("knode: KNNntpClient::doFetchNewHeaders() : xover %d-%d", last-toFetch+1, last);
cmd.sprintf("xover %d-%d",last-toFetch+1,last); cmd.sprintf("xover %d-%d",last-toFetch+1,last);
if (!sendCommand(cmd,rep)) if (!sendCommand(cmd,rep))
return; return;
@ -512,7 +512,7 @@ void KNNntpClient::doPostArticle()
if (rep==223) { // 223 n <a> article retrieved - request text separately if (rep==223) { // 223 n <a> article retrieved - request text separately
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: STAT successful, we have probably already sent this article."); tqDebug("knode: STAT successful, we have probably already sent this article.");
#endif #endif
return; // the article is already on the server, lets put it silently into the send folder return; // the article is already on the server, lets put it silently into the send folder
} }
@ -529,7 +529,7 @@ void KNNntpClient::doPostArticle()
art->messageID()->from7BitString(s.mid(start,end-start+1)); art->messageID()->from7BitString(s.mid(start,end-start+1));
art->assemble(); art->assemble();
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: using the message-id recommended by the server: %s",s.mid(start,end-start+1).data()); tqDebug("knode: using the message-id recommended by the server: %s",s.mid(start,end-start+1).data());
#endif #endif
} }
} }
@ -595,7 +595,7 @@ bool KNNntpClient::openConnection()
if (rep==500) { if (rep==500) {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: \"MODE READER\" command not recognized."); tqDebug("knode: \"MODE READER\" command not recognized.");
#endif #endif
} else } else
if ( ( rep < 200 ) || ( rep > 299 ) ) { // RFC977: 2xx - Command ok if ( ( rep < 200 ) || ( rep > 299 ) ) { // RFC977: 2xx - Command ok
@ -607,7 +607,7 @@ bool KNNntpClient::openConnection()
// logon now, some newsserver send a incomplete group list otherwise // logon now, some newsserver send a incomplete group list otherwise
if (account.needsLogon() && !account.user().isEmpty()) { if (account.needsLogon() && !account.user().isEmpty()) {
//qDebug("knode: user: %s",account.user().latin1()); //tqDebug("knode: user: %s",account.user().latin1());
TQCString command = "AUTHINFO USER "; TQCString command = "AUTHINFO USER ";
command += account.user().local8Bit(); command += account.user().local8Bit();
@ -615,7 +615,7 @@ bool KNNntpClient::openConnection()
return false; return false;
if (rep==381) { // 381 PASS required if (rep==381) { // 381 PASS required
//qDebug("knode: Password required"); //tqDebug("knode: Password required");
if (!account.pass().length()) { if (!account.pass().length()) {
job->setErrorString(i18n("Authentication failed.\nCheck your username and password.")); job->setErrorString(i18n("Authentication failed.\nCheck your username and password."));
@ -623,7 +623,7 @@ bool KNNntpClient::openConnection()
return false; return false;
} }
//qDebug("knode: pass: %s",account.pass().latin1()); //tqDebug("knode: pass: %s",account.pass().latin1());
command = "AUTHINFO PASS "; command = "AUTHINFO PASS ";
command += account.pass().local8Bit(); command += account.pass().local8Bit();
@ -632,11 +632,11 @@ bool KNNntpClient::openConnection()
if (rep==281) { // 281 authorization success if (rep==281) { // 281 authorization success
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: Authorization successful"); tqDebug("knode: Authorization successful");
#endif #endif
} else { } else {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: Authorization failed"); tqDebug("knode: Authorization failed");
#endif #endif
job->setErrorString(i18n("Authentication failed.\nCheck your username and password.\n\n%1").arg(getCurrentLine())); job->setErrorString(i18n("Authentication failed.\nCheck your username and password.\n\n%1").arg(getCurrentLine()));
job->setAuthError(true); job->setAuthError(true);
@ -646,12 +646,12 @@ bool KNNntpClient::openConnection()
} else { } else {
if (rep==281) { // 281 authorization success if (rep==281) { // 281 authorization success
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: Authorization successful"); tqDebug("knode: Authorization successful");
#endif #endif
} else { } else {
if ((rep==482)||(rep==500)) { //482 Authentication rejected if ((rep==482)||(rep==500)) { //482 Authentication rejected
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: Authorization failed"); // we don't care, the server can refuse the info tqDebug("knode: Authorization failed"); // we don't care, the server can refuse the info
#endif #endif
} else { } else {
handleErrors(); handleErrors();
@ -675,7 +675,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep)
return false; return false;
if (rep==480) { // 480 requesting authorization if (rep==480) { // 480 requesting authorization
//qDebug("knode: Authorization requested"); //tqDebug("knode: Authorization requested");
if (!account.user().length()) { if (!account.user().length()) {
job->setErrorString(i18n("Authentication failed.\nCheck your username and password.")); job->setErrorString(i18n("Authentication failed.\nCheck your username and password."));
@ -684,7 +684,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep)
return false; return false;
} }
//qDebug("knode: user: %s",account.user().data()); //tqDebug("knode: user: %s",account.user().data());
TQCString command = "AUTHINFO USER "; TQCString command = "AUTHINFO USER ";
command += account.user().local8Bit(); command += account.user().local8Bit();
@ -692,7 +692,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep)
return false; return false;
if (rep==381) { // 381 PASS required if (rep==381) { // 381 PASS required
//qDebug("knode: Password required"); //tqDebug("knode: Password required");
if (!account.pass().length()) { if (!account.pass().length()) {
job->setErrorString(i18n("Authentication failed.\nCheck your username and password.\n\n%1").arg(getCurrentLine())); job->setErrorString(i18n("Authentication failed.\nCheck your username and password.\n\n%1").arg(getCurrentLine()));
@ -701,7 +701,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep)
return false; return false;
} }
//qDebug("knode: pass: %s",account.pass().data()); //tqDebug("knode: pass: %s",account.pass().data());
command = "AUTHINFO PASS "; command = "AUTHINFO PASS ";
command += account.pass().local8Bit(); command += account.pass().local8Bit();
@ -711,7 +711,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep)
if (rep==281) { // 281 authorization success if (rep==281) { // 281 authorization success
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: Authorization successful"); tqDebug("knode: Authorization successful");
#endif #endif
if (!KNProtocolClient::sendCommand(cmd,rep)) // retry the original command if (!KNProtocolClient::sendCommand(cmd,rep)) // retry the original command
return false; return false;

@ -57,9 +57,9 @@ KNProtocolClient::~KNProtocolClient()
void KNProtocolClient::run() void KNProtocolClient::run()
{ {
if (0!=pthread_setcancelstate(PTHREAD_CANCEL_ENABLE,NULL)) if (0!=pthread_setcancelstate(PTHREAD_CANCEL_ENABLE,NULL))
qWarning("pthread_setcancelstate failed!"); tqWarning("pthread_setcancelstate failed!");
if (0!= pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL)) if (0!= pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL))
qWarning("pthread_setcanceltype failed!"); tqWarning("pthread_setcanceltype failed!");
signal(SIGPIPE,SIG_IGN); // ignore sigpipe signal(SIGPIPE,SIG_IGN); // ignore sigpipe
waitForWork(); waitForWork();
@ -112,13 +112,13 @@ void KNProtocolClient::waitForWork()
// if select() returns early because of a signal // if select() returns early because of a signal
if (selectRet == 0) { if (selectRet == 0) {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNProtocolClient::waitForWork(): hold time elapsed, closing connection."); tqDebug("knode: KNProtocolClient::waitForWork(): hold time elapsed, closing connection.");
#endif #endif
closeConnection(); // nothing happend... closeConnection(); // nothing happend...
} else { } else {
if (((selectRet > 0)&&(!FD_ISSET(fdPipeIn,&fdsR)))||(selectRet == -1)) { if (((selectRet > 0)&&(!FD_ISSET(fdPipeIn,&fdsR)))||(selectRet == -1)) {
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNProtocolClient::waitForWork(): connection broken, closing it"); tqDebug("knode: KNProtocolClient::waitForWork(): connection broken, closing it");
#endif #endif
closeSocket(); closeSocket();
} }
@ -139,7 +139,7 @@ void KNProtocolClient::waitForWork()
sendSignal(TSjobStarted); sendSignal(TSjobStarted);
if (job) { if (job) {
// qDebug("knode: KNProtocolClient::waitForWork(): got job"); // tqDebug("knode: KNProtocolClient::waitForWork(): got job");
if (job->net()&&!(account == *job->account())) { // server changed if (job->net()&&!(account == *job->account())) { // server changed
account = *job->account(); account = *job->account();
@ -185,7 +185,7 @@ bool KNProtocolClient::openConnection()
sendSignal(TSconnect); sendSignal(TSconnect);
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNProtocolClient::openConnection(): opening connection"); tqDebug("knode: KNProtocolClient::openConnection(): opening connection");
#endif #endif
if (account.server().isEmpty()) { if (account.server().isEmpty()) {
@ -225,7 +225,7 @@ void KNProtocolClient::closeConnection()
timeval tv; timeval tv;
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNProtocolClient::closeConnection(): closing connection"); tqDebug("knode: KNProtocolClient::closeConnection(): closing connection");
#endif #endif
FD_ZERO(&fdsW); FD_ZERO(&fdsW);
@ -335,7 +335,7 @@ bool KNProtocolClient::getNextLine()
thisLine = input; thisLine = input;
inputEnd = input+div-1; inputEnd = input+div-1;
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNProtocolClient::getNextLine(): input buffer enlarged"); tqDebug("knode: KNProtocolClient::getNextLine(): input buffer enlarged");
#endif #endif
} }
if (!waitForRead()) if (!waitForRead())
@ -443,7 +443,7 @@ void KNProtocolClient::handleErrors()
void KNProtocolClient::sendSignal(threadSignal s) void KNProtocolClient::sendSignal(threadSignal s)
{ {
int signal=(int)s; int signal=(int)s;
// qDebug("knode: KNProtcolClient::sendSignal() : sending signal to main thread"); // tqDebug("knode: KNProtcolClient::sendSignal() : sending signal to main thread");
write(fdPipeOut, &signal, sizeof(int)); write(fdPipeOut, &signal, sizeof(int));
} }
@ -485,7 +485,7 @@ bool KNProtocolClient::waitForRead()
if (ret > 0) { if (ret > 0) {
if (FD_ISSET(fdPipeIn,&fdsR)) { // stop signal if (FD_ISSET(fdPipeIn,&fdsR)) { // stop signal
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNProtocolClient::waitForRead(): got stop signal"); tqDebug("knode: KNProtocolClient::waitForRead(): got stop signal");
#endif #endif
closeConnection(); closeConnection();
return false; return false;
@ -547,7 +547,7 @@ bool KNProtocolClient::waitForWrite()
if (ret > 0) { if (ret > 0) {
if (FD_ISSET(fdPipeIn,&fdsR)) { // stop signal if (FD_ISSET(fdPipeIn,&fdsR)) { // stop signal
#ifndef NDEBUG #ifndef NDEBUG
qDebug("knode: KNProtocolClient::waitForWrite(): got stop signal"); tqDebug("knode: KNProtocolClient::waitForWrite(): got stop signal");
#endif #endif
closeConnection(); closeConnection();
return false; return false;

@ -70,7 +70,7 @@ void Compiler::download()
if ( provider.get( mWSDLUrl, fileName ) ) { if ( provider.get( mWSDLUrl, fileName ) ) {
TQFile file( fileName ); TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) ) { if ( !file.open( IO_ReadOnly ) ) {
qDebug( "Unable to download schema file %s", mWSDLUrl.latin1() ); tqDebug( "Unable to download schema file %s", mWSDLUrl.latin1() );
provider.cleanUp(); provider.cleanUp();
return; return;
} }
@ -79,7 +79,7 @@ void Compiler::download()
int errorLine, errorCol; int errorLine, errorCol;
TQDomDocument doc; TQDomDocument doc;
if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) { if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) {
qDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); tqDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol );
return; return;
} }

@ -48,7 +48,7 @@ BinaryInputField::BinaryInputField( const TQString &name, const TQString &typeNa
void BinaryInputField::setXMLData( const TQDomElement &element ) void BinaryInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "BinaryInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "BinaryInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }

@ -32,7 +32,7 @@ BoolInputField::BoolInputField( const TQString &name, const Schema::SimpleType *
void BoolInputField::setXMLData( const TQDomElement &element ) void BoolInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "BoolInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "BoolInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }

@ -38,7 +38,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema
bool isList = ((*elemIt).maxOccurs() == UNBOUNDED); bool isList = ((*elemIt).maxOccurs() == UNBOUNDED);
InputField *field = InputFieldFactory::self()->createField( (*elemIt).name(), (*elemIt).typeName(), isList ); InputField *field = InputFieldFactory::self()->createField( (*elemIt).name(), (*elemIt).typeName(), isList );
if ( !field ) { if ( !field ) {
qDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); tqDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() );
} else { } else {
appendChild( field ); appendChild( field );
} }
@ -49,7 +49,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema
for ( attrIt = attributes.begin(); attrIt != attributes.end(); ++attrIt ) { for ( attrIt = attributes.begin(); attrIt != attributes.end(); ++attrIt ) {
InputField *field = InputFieldFactory::self()->createField( (*attrIt).name(), (*attrIt).typeName() ); InputField *field = InputFieldFactory::self()->createField( (*attrIt).name(), (*attrIt).typeName() );
if ( !field ) { if ( !field ) {
qDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); tqDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() );
} else { } else {
appendChild( field ); appendChild( field );
} }
@ -59,7 +59,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema
void ComplexBaseInputField::setXMLData( const TQDomElement &element ) void ComplexBaseInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "ComplexBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "ComplexBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }
@ -74,7 +74,7 @@ void ComplexBaseInputField::setXMLData( const TQDomElement &element )
if ( !child.isNull() ) { if ( !child.isNull() ) {
InputField *field = childField( child.tagName() ); InputField *field = childField( child.tagName() );
if ( !field ) { if ( !field ) {
qDebug( "ComplexBaseInputField: Child field %s does not exists", child.tagName().latin1() ); tqDebug( "ComplexBaseInputField: Child field %s does not exists", child.tagName().latin1() );
} else { } else {
field->setXMLData( child ); field->setXMLData( child );
} }
@ -92,7 +92,7 @@ void ComplexBaseInputField::setXMLData( const TQDomElement &element )
InputField *field = childField( attr.name() ); InputField *field = childField( attr.name() );
if ( !field ) { if ( !field ) {
qDebug( "ComplexBaseInputField: Child field %s does not exists", attr.name().latin1() ); tqDebug( "ComplexBaseInputField: Child field %s does not exists", attr.name().latin1() );
} else { } else {
field->setData( attr.value() ); field->setData( attr.value() );
} }
@ -108,7 +108,7 @@ void ComplexBaseInputField::xmlData( TQDomDocument &document, TQDomElement &pare
for ( elemIt = elements.begin(); elemIt != elements.end(); ++elemIt ) { for ( elemIt = elements.begin(); elemIt != elements.end(); ++elemIt ) {
InputField *field = childField( (*elemIt).name() ); InputField *field = childField( (*elemIt).name() );
if ( !field ) { if ( !field ) {
qDebug( "ComplexBaseInputField: No child found" ); tqDebug( "ComplexBaseInputField: No child found" );
} else { } else {
field->xmlData( document, element ); field->xmlData( document, element );
} }
@ -119,7 +119,7 @@ void ComplexBaseInputField::xmlData( TQDomDocument &document, TQDomElement &pare
for ( attrIt = attributes.begin(); attrIt != attributes.end(); ++attrIt ) { for ( attrIt = attributes.begin(); attrIt != attributes.end(); ++attrIt ) {
InputField *field = childField( (*attrIt).name() ); InputField *field = childField( (*attrIt).name() );
if ( !field ) { if ( !field ) {
qDebug( "ComplexBaseInputField: No child found" ); tqDebug( "ComplexBaseInputField: No child found" );
} else { } else {
element.setAttribute( field->name(), field->data() ); element.setAttribute( field->name(), field->data() );
} }

@ -32,7 +32,7 @@ DateInputField::DateInputField( const TQString &name, const Schema::SimpleType *
void DateInputField::setXMLData( const TQDomElement &element ) void DateInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "DateInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "DateInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }

@ -71,7 +71,7 @@ void Dispatcher::run()
void Dispatcher::nextMessage() void Dispatcher::nextMessage()
{ {
if ( !mConversationManager ) { if ( !mConversationManager ) {
qDebug( "No conversation manager set... aborting" ); tqDebug( "No conversation manager set... aborting" );
return; return;
} }
@ -115,7 +115,7 @@ void Dispatcher::nextMessage()
body.appendChild( method ); body.appendChild( method );
if ( mTransport ) { if ( mTransport ) {
qDebug( "%s", doc.toString( 2 ).latin1() ); tqDebug( "%s", doc.toString( 2 ).latin1() );
mTransport->query( doc.toString( 2 ) ); mTransport->query( doc.toString( 2 ) );
} }
} else } else
@ -124,7 +124,7 @@ void Dispatcher::nextMessage()
void Dispatcher::result( const TQString &xml ) void Dispatcher::result( const TQString &xml )
{ {
qDebug( "Got data %s", xml.latin1() ); tqDebug( "Got data %s", xml.latin1() );
KWSDL::Message message = mWSDL.findOutputMessage( mCurrentMessage ); KWSDL::Message message = mWSDL.findOutputMessage( mCurrentMessage );
InputField *field = new PageInputField( message.name(), message ); InputField *field = new PageInputField( message.name(), message );

@ -34,7 +34,7 @@ DoubleInputField::DoubleInputField( const TQString &name, const TQString &typeNa
void DoubleInputField::setXMLData( const TQDomElement &element ) void DoubleInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "DoubleInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "DoubleInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }

@ -36,7 +36,7 @@ EnumInputField::EnumInputField( const TQString &name, const Schema::SimpleType *
void EnumInputField::setXMLData( const TQDomElement &element ) void EnumInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "EnumInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "EnumInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }

@ -109,7 +109,7 @@ InputField *InputFieldFactory::createBasicField( const TQString &name, const TQS
} else if ( typeName == "base64Binary" ) { } else if ( typeName == "base64Binary" ) {
return new BinaryInputField( name, typeName, type ); return new BinaryInputField( name, typeName, type );
} else { } else {
qDebug( "InputFieldFactory: Unknown type %s", typeName.latin1() ); tqDebug( "InputFieldFactory: Unknown type %s", typeName.latin1() );
return 0; return 0;
} }
} }

@ -36,7 +36,7 @@ IntegerInputField::IntegerInputField( const TQString &name, const TQString &type
void IntegerInputField::setXMLData( const TQDomElement &element ) void IntegerInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "IntegerInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "IntegerInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }

@ -55,7 +55,7 @@ void ListInputField::setXMLData( const TQDomElement &element )
field->setXMLData( child ); field->setXMLData( child );
appendChild( field ); appendChild( field );
} else } else
qDebug( "ListInputField: Unable to create field of type %s", mTypeName.latin1() ); tqDebug( "ListInputField: Unable to create field of type %s", mTypeName.latin1() );
} }
node = node.nextSibling(); node = node.nextSibling();
@ -131,7 +131,7 @@ void ListWidget::add()
{ {
InputField *field = InputFieldFactory::self()->createField( mName, mType ); InputField *field = InputFieldFactory::self()->createField( mName, mType );
if ( !field ) { if ( !field ) {
qDebug( "ListInputField: Unable to create field of type %s", mType.latin1() ); tqDebug( "ListInputField: Unable to create field of type %s", mType.latin1() );
return; return;
} }

@ -53,7 +53,7 @@ void Loader::download()
if ( provider.get( mWSDLUrl, fileName ) ) { if ( provider.get( mWSDLUrl, fileName ) ) {
TQFile file( fileName ); TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) ) { if ( !file.open( IO_ReadOnly ) ) {
qDebug( "Unable to download wsdl file %s", mWSDLUrl.latin1() ); tqDebug( "Unable to download wsdl file %s", mWSDLUrl.latin1() );
provider.cleanUp(); provider.cleanUp();
return; return;
} }
@ -62,7 +62,7 @@ void Loader::download()
int errorLine, errorCol; int errorLine, errorCol;
TQDomDocument doc; TQDomDocument doc;
if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) { if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) {
qDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); tqDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol );
return; return;
} }

@ -35,7 +35,7 @@ PageInputField::PageInputField( const TQString &name, const KWSDL::Message &mess
for ( it = parts.begin(); it != parts.end(); ++it ) { for ( it = parts.begin(); it != parts.end(); ++it ) {
InputField *field = InputFieldFactory::self()->createField( (*it).name(), (*it).type() ); InputField *field = InputFieldFactory::self()->createField( (*it).name(), (*it).type() );
if ( !field ) { if ( !field ) {
qDebug( "PageInputField: Unable to create input field for %s (%s)", (*it).name().latin1(), (*it).type().latin1() ); tqDebug( "PageInputField: Unable to create input field for %s (%s)", (*it).name().latin1(), (*it).type().latin1() );
} else { } else {
appendChild( field ); appendChild( field );
} }
@ -45,7 +45,7 @@ PageInputField::PageInputField( const TQString &name, const KWSDL::Message &mess
void PageInputField::setXMLData( const TQDomElement &element ) void PageInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "PageInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "PageInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }
@ -55,7 +55,7 @@ void PageInputField::setXMLData( const TQDomElement &element )
if ( !child.isNull() ) { if ( !child.isNull() ) {
InputField *field = childField( child.tagName() ); InputField *field = childField( child.tagName() );
if ( !field ) { if ( !field ) {
qDebug( "PageInputField: Child field %s does not exists", child.tagName().latin1() ); tqDebug( "PageInputField: Child field %s does not exists", child.tagName().latin1() );
} else { } else {
field->setXMLData( child ); field->setXMLData( child );
} }

@ -31,31 +31,31 @@ SimpleBaseInputField::SimpleBaseInputField( const TQString &name, const Schema::
if ( type->subType() == Schema::SimpleType::TypeRestriction ) { if ( type->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = InputFieldFactory::self()->createBasicField( name, type->baseTypeName(), type ); InputField *field = InputFieldFactory::self()->createBasicField( name, type->baseTypeName(), type );
if ( !field ) { if ( !field ) {
qDebug( "SimpleBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); tqDebug( "SimpleBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() );
} else { } else {
appendChild( field ); appendChild( field );
} }
} else { } else {
qDebug( "SimpleBaseInputField: Unsupported subtype" ); tqDebug( "SimpleBaseInputField: Unsupported subtype" );
} }
} }
void SimpleBaseInputField::setXMLData( const TQDomElement &element ) void SimpleBaseInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "SimpleBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "SimpleBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = childField( element.tagName() ); InputField *field = childField( element.tagName() );
if ( !field ) { if ( !field ) {
qDebug( "SimpleBaseInputField: Child field %s does not exists", element.tagName().latin1() ); tqDebug( "SimpleBaseInputField: Child field %s does not exists", element.tagName().latin1() );
} else { } else {
field->setXMLData( element ); field->setXMLData( element );
} }
} else { } else {
qDebug( "SimpleBaseInputField: Unsupported subtype" ); tqDebug( "SimpleBaseInputField: Unsupported subtype" );
} }
} }
@ -64,12 +64,12 @@ void SimpleBaseInputField::xmlData( TQDomDocument &document, TQDomElement &paren
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = mFields.first(); InputField *field = mFields.first();
if ( !field ) { if ( !field ) {
qDebug( "SimpleBaseInputField: No child found" ); tqDebug( "SimpleBaseInputField: No child found" );
} else { } else {
field->xmlData( document, parent ); field->xmlData( document, parent );
} }
} else { } else {
qDebug( "SimpleBaseInputField: Unsupported subtype" ); tqDebug( "SimpleBaseInputField: Unsupported subtype" );
} }
} }
@ -78,12 +78,12 @@ void SimpleBaseInputField::setData( const TQString &data )
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = mFields.first(); InputField *field = mFields.first();
if ( !field ) { if ( !field ) {
qDebug( "SimpleBaseInputField: No child found" ); tqDebug( "SimpleBaseInputField: No child found" );
} else { } else {
field->setData( data ); field->setData( data );
} }
} else { } else {
qDebug( "SimpleBaseInputField: Unsupported subtype" ); tqDebug( "SimpleBaseInputField: Unsupported subtype" );
} }
} }
@ -92,12 +92,12 @@ TQString SimpleBaseInputField::data() const
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = mFields.first(); InputField *field = mFields.first();
if ( !field ) { if ( !field ) {
qDebug( "SimpleBaseInputField: No child found" ); tqDebug( "SimpleBaseInputField: No child found" );
} else { } else {
field->data(); field->data();
} }
} else { } else {
qDebug( "SimpleBaseInputField: Unsupported subtype" ); tqDebug( "SimpleBaseInputField: Unsupported subtype" );
} }
return TQString(); return TQString();
@ -108,13 +108,13 @@ TQWidget *SimpleBaseInputField::createWidget( TQWidget *parent )
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = mFields.first(); InputField *field = mFields.first();
if ( !field ) { if ( !field ) {
qDebug( "SimpleBaseInputField: No child found" ); tqDebug( "SimpleBaseInputField: No child found" );
return 0; return 0;
} else { } else {
return field->createWidget( parent ); return field->createWidget( parent );
} }
} else { } else {
qDebug( "SimpleBaseInputField: Unsupported subtype" ); tqDebug( "SimpleBaseInputField: Unsupported subtype" );
return 0; return 0;
} }
} }

@ -35,7 +35,7 @@ StringInputField::StringInputField( const TQString &name, const TQString &typeNa
void StringInputField::setXMLData( const TQDomElement &element ) void StringInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "StringInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "StringInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }

@ -32,7 +32,7 @@ TimeInputField::TimeInputField( const TQString &name, const Schema::SimpleType *
void TimeInputField::setXMLData( const TQDomElement &element ) void TimeInputField::setXMLData( const TQDomElement &element )
{ {
if ( mName != element.tagName() ) { if ( mName != element.tagName() ) {
qDebug( "TimeInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); tqDebug( "TimeInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return; return;
} }

@ -25,7 +25,7 @@
Transport::Transport( const TQString &url ) Transport::Transport( const TQString &url )
{ {
mUrl = url; mUrl = url;
qDebug( "url=%s", url.latin1() ); tqDebug( "url=%s", url.latin1() );
} }
void Transport::query( const TQString &xml ) void Transport::query( const TQString &xml )

@ -55,7 +55,7 @@ int main( int argc, char **argv )
KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if ( args->count() < 1 || args->count() > 1 ) { if ( args->count() < 1 || args->count() > 1 ) {
qDebug( "Invalid arguments, try --help." ); tqDebug( "Invalid arguments, try --help." );
return 1; return 1;
} }

@ -171,7 +171,7 @@ const Element *ComplexType::element( const TQString &name )
Element *ComplexType::element( int id ) Element *ComplexType::element( int id )
{ {
if ( id < 0 || id >= (int)mElements.count() ) { if ( id < 0 || id >= (int)mElements.count() ) {
qDebug( "tried to access non existent element" ); tqDebug( "tried to access non existent element" );
return 0; return 0;
} }
@ -197,7 +197,7 @@ const Attribute *ComplexType::attribute( const TQString &name )
Attribute *ComplexType::attribute( int id ) Attribute *ComplexType::attribute( int id )
{ {
if ( id < 0 || id >= (int)mAttributes.count() ) { if ( id < 0 || id >= (int)mAttributes.count() ) {
qDebug( "tried to access non existent attributes" ); tqDebug( "tried to access non existent attributes" );
return 0; return 0;
} }
@ -269,7 +269,7 @@ void ComplexType::setContentModel( int model )
mContentModel = model; mContentModel = model;
if ( mContentModel == MIXED ) { if ( mContentModel == MIXED ) {
mMixed = true; mMixed = true;
qDebug( "Mixed content not supported" ); tqDebug( "Mixed content not supported" );
} else } else
mMixed = false; mMixed = false;
} }
@ -279,7 +279,7 @@ void ComplexType::addAttribute( const TQString &name, int type_id, bool qualifie
bool use ) bool use )
{ {
if ( type_id == 0 ) { if ( type_id == 0 ) {
qDebug( "ComplexType:addAttribute(): No type given for attribute" ); tqDebug( "ComplexType:addAttribute(): No type given for attribute" );
return; return;
} }
@ -306,12 +306,12 @@ void ComplexType::addElement( const TQString &name, int type_id, int minOccurs,
const TQString &documentation ) const TQString &documentation )
{ {
if ( type_id == 0 ) { if ( type_id == 0 ) {
qDebug( "ComplexType:addElement() :No type given for element " ); tqDebug( "ComplexType:addElement() :No type given for element " );
return; return;
} }
if ( mTopLevelGroup == ALL && maxOccurs > 1 && mIsArray == false ) { if ( mTopLevelGroup == ALL && maxOccurs > 1 && mIsArray == false ) {
qDebug( "Inside an <all> group elements can occur only once" ); tqDebug( "Inside an <all> group elements can occur only once" );
return; return;
} }
@ -366,17 +366,17 @@ void ComplexType::setCompositor( Compositor type, bool open, int minOccurs, int
if ( mPreviousGroup == 0 ) if ( mPreviousGroup == 0 )
mTopLevelGroup = type; mTopLevelGroup = type;
else if ( mTopLevelGroup == this->ALL ) { else if ( mTopLevelGroup == this->ALL ) {
qDebug( "This cannot occur inside a top level <all> compositor" ); tqDebug( "This cannot occur inside a top level <all> compositor" );
return; return;
} }
if ( type == this->ALL && mPreviousGroup != 0 ) { if ( type == this->ALL && mPreviousGroup != 0 ) {
qDebug( "<all> can occur only at the top level" ); tqDebug( "<all> can occur only at the top level" );
return; return;
} }
if ( type == this->ALL && (minOccurs != 1 || maxOccurs != 1) ) { if ( type == this->ALL && (minOccurs != 1 || maxOccurs != 1) ) {
qDebug( "<all> can have min/max of only 1 " ); tqDebug( "<all> can have min/max of only 1 " );
return; return;
} }

@ -50,7 +50,7 @@ bool FileProvider::get( const TQString &url, TQString &target )
mData.truncate( 0 ); mData.truncate( 0 );
qDebug( "Downloading external schema '%s'", url.latin1() ); tqDebug( "Downloading external schema '%s'", url.latin1() );
KIO::TransferJob* job = KIO::get( KURL( url ), false, false ); KIO::TransferJob* job = KIO::get( KURL( url ), false, false );
connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ),
@ -83,17 +83,17 @@ void FileProvider::slotData( KIO::Job*, const TQByteArray &data )
void FileProvider::slotResult( KIO::Job *job ) void FileProvider::slotResult( KIO::Job *job )
{ {
if ( job->error() ) { if ( job->error() ) {
qDebug( "%s", job->errorText().latin1() ); tqDebug( "%s", job->errorText().latin1() );
return; return;
} }
TQFile file( mFileName ); TQFile file( mFileName );
if ( !file.open( IO_WriteOnly ) ) { if ( !file.open( IO_WriteOnly ) ) {
qDebug( "Unable to create temporary file" ); tqDebug( "Unable to create temporary file" );
return; return;
} }
qDebug( "Download successful" ); tqDebug( "Download successful" );
file.writeBlock( mData ); file.writeBlock( mData );
file.close(); file.close();

@ -603,7 +603,7 @@ XSDType *Parser::parseSimpleType( const TQDomElement &element )
parseRestriction( childElement, st ); parseRestriction( childElement, st );
} else if ( name.localName() == "union" ) { } else if ( name.localName() == "union" ) {
st->setSubType( SimpleType::TypeUnion ); st->setSubType( SimpleType::TypeUnion );
qDebug( "simpletype::union not supported" ); tqDebug( "simpletype::union not supported" );
} else if ( name.localName() == "list" ) { } else if ( name.localName() == "list" ) {
st->setSubType( SimpleType::TypeList ); st->setSubType( SimpleType::TypeList );
if ( childElement.hasAttribute( "itemType" ) ) { if ( childElement.hasAttribute( "itemType" ) ) {
@ -627,7 +627,7 @@ XSDType *Parser::parseSimpleType( const TQDomElement &element )
void Parser::parseRestriction( const TQDomElement &element, SimpleType *st ) void Parser::parseRestriction( const TQDomElement &element, SimpleType *st )
{ {
if ( st->baseType() == 0 ) if ( st->baseType() == 0 )
qDebug( "<restriction>:unkown BaseType" ); tqDebug( "<restriction>:unkown BaseType" );
TQDomNode node = element.firstChild(); TQDomNode node = element.firstChild();
while ( !node.isNull() ) { while ( !node.isNull() ) {
@ -635,7 +635,7 @@ void Parser::parseRestriction( const TQDomElement &element, SimpleType *st )
if ( !childElement.isNull() ) { if ( !childElement.isNull() ) {
if ( !st->isValidFacet( childElement.tagName() ) ) { if ( !st->isValidFacet( childElement.tagName() ) ) {
qDebug( "<restriction>: %s is not a valid facet for the simple type", childElement.tagName().latin1() ); tqDebug( "<restriction>: %s is not a valid facet for the simple type", childElement.tagName().latin1() );
continue; continue;
} }
@ -651,7 +651,7 @@ void Parser::parseComplexContent( const TQDomElement &element, ComplexType *ct )
QualifiedName typeName; QualifiedName typeName;
if ( element.attribute( "mixed" ) == "true" ) { if ( element.attribute( "mixed" ) == "true" ) {
qDebug( "<complexContent>: No support for mixed=true" ); tqDebug( "<complexContent>: No support for mixed=true" );
return; return;
} }
@ -737,7 +737,7 @@ void Parser::parseSimpleContent( const TQDomElement &element, ComplexType *ct )
parseRestriction( childElement, st ); parseRestriction( childElement, st );
int typeId = mTypesTable.addType( st ); int typeId = mTypesTable.addType( st );
if ( typeId == 0 ) { if ( typeId == 0 ) {
qDebug( "Could not add type in types table" ); tqDebug( "Could not add type in types table" );
return; return;
} }
@ -852,7 +852,7 @@ void Parser::resolveForwardElementRefs()
if ( e ) if ( e )
mTypesTable.resolveForwardElementRefs( (*it).localName(), *e ); mTypesTable.resolveForwardElementRefs( (*it).localName(), *e );
else else
qDebug( "Could not resolve element reference %s ", (*it).localName().latin1() ); tqDebug( "Could not resolve element reference %s ", (*it).localName().latin1() );
} }
} }
@ -868,7 +868,7 @@ void Parser::resolveForwardAttributeRefs()
if ( a ) if ( a )
mTypesTable.resolveForwardAttributeRefs( (*it).localName(), *a ); mTypesTable.resolveForwardAttributeRefs( (*it).localName(), *a );
else else
qDebug( "Could not resolve attribute reference %s ", (*it).localName().latin1() ); tqDebug( "Could not resolve attribute reference %s ", (*it).localName().latin1() );
} }
} }
@ -970,7 +970,7 @@ int Parser::attributeId( const QualifiedName &type ) const
typeName.setNameSpace( typens = mNameSpace ); typeName.setNameSpace( typens = mNameSpace );
if ( typens != mNameSpace && typens != SchemaUri ) { if ( typens != mNameSpace && typens != SchemaUri ) {
qDebug( "Namespace does not match" ); tqDebug( "Namespace does not match" );
return -1; return -1;
} }
@ -1067,7 +1067,7 @@ void Parser::importSchema( const TQString &location )
if ( provider.get( schemaLocation, fileName ) ) { if ( provider.get( schemaLocation, fileName ) ) {
TQFile file( fileName ); TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) ) { if ( !file.open( IO_ReadOnly ) ) {
qDebug( "Unable to open file %s", file.name().latin1() ); tqDebug( "Unable to open file %s", file.name().latin1() );
return; return;
} }
@ -1076,7 +1076,7 @@ void Parser::importSchema( const TQString &location )
int errorLine, errorColumn; int errorLine, errorColumn;
bool ok = doc.setContent( &file, true, &errorMsg, &errorLine, &errorColumn ); bool ok = doc.setContent( &file, true, &errorMsg, &errorLine, &errorColumn );
if ( !ok ) { if ( !ok ) {
qDebug( "Error[%d:%d] %s", errorLine, errorColumn, errorMsg.latin1() ); tqDebug( "Error[%d:%d] %s", errorLine, errorColumn, errorMsg.latin1() );
return; return;
} }
@ -1085,7 +1085,7 @@ void Parser::importSchema( const TQString &location )
TQDomElement schemaElement = nodes.item( 0 ).toElement(); TQDomElement schemaElement = nodes.item( 0 ).toElement();
parseSchemaTag( schemaElement ); parseSchemaTag( schemaElement );
} else { } else {
qDebug( "No schema tag found in schema file" ); tqDebug( "No schema tag found in schema file" );
} }
file.close(); file.close();

@ -153,7 +153,7 @@ bool SimpleType::isAnonymous() const
bool SimpleType::isValidFacet( const TQString &facet ) bool SimpleType::isValidFacet( const TQString &facet )
{ {
if ( mBaseType == 0 ) { if ( mBaseType == 0 ) {
qDebug( "isValidFacet:Unknown base type" ); tqDebug( "isValidFacet:Unknown base type" );
return false; return false;
} }
@ -205,7 +205,7 @@ void SimpleType::setFacetValue( const TQString &value )
else if ( value == "replace" ) else if ( value == "replace" )
mFacetValue.wsp = REPLACE; mFacetValue.wsp = REPLACE;
else { else {
qDebug( "Invalid facet value for whitespace" ); tqDebug( "Invalid facet value for whitespace" );
return; return;
} }
} else { } else {

@ -60,33 +60,33 @@ void GoogleSearch::googleSearch( const TQString &query, int start, int maxResult
void GoogleSearch::cachedPageResult( TQByteArray *array ) void GoogleSearch::cachedPageResult( TQByteArray *array )
{ {
qDebug( "--------------- Cached Page Results ---------------------" ); tqDebug( "--------------- Cached Page Results ---------------------" );
qDebug( "%s", array->data() ); tqDebug( "%s", array->data() );
qDebug( "---------------------------------------------------------" ); tqDebug( "---------------------------------------------------------" );
delete array; delete array;
} }
void GoogleSearch::spellingSuggestionResult( TQString *word ) void GoogleSearch::spellingSuggestionResult( TQString *word )
{ {
qDebug( "--------------- Spelling Suggestion ---------------------" ); tqDebug( "--------------- Spelling Suggestion ---------------------" );
qDebug( "%s", word->latin1() ); tqDebug( "%s", word->latin1() );
qDebug( "---------------------------------------------------------" ); tqDebug( "---------------------------------------------------------" );
delete word; delete word;
} }
void GoogleSearch::googleSearchResult( GoogleSearchResult *result ) void GoogleSearch::googleSearchResult( GoogleSearchResult *result )
{ {
qDebug( "--------------------- Search Results ---------------------" ); tqDebug( "--------------------- Search Results ---------------------" );
ResultElementArray *array = result->resultElements(); ResultElementArray *array = result->resultElements();
TQPtrList<ResultElement> *list = array->items(); TQPtrList<ResultElement> *list = array->items();
TQPtrListIterator<ResultElement> it( *list ); TQPtrListIterator<ResultElement> it( *list );
while ( it.current() != 0 ) { while ( it.current() != 0 ) {
qDebug( "%s: %s", it.current()->summary()->latin1(), it.current()->uRL()->latin1() ); tqDebug( "%s: %s", it.current()->summary()->latin1(), it.current()->uRL()->latin1() );
++it; ++it;
} }
qDebug( "---------------------------------------------------------" ); tqDebug( "---------------------------------------------------------" );
delete result; delete result;
} }

@ -46,7 +46,7 @@ void GoogleSearchService::doGetCachedPage( TQString* key, TQString* url )
delete key; delete key;
Serializer::marshal( doc, method, "url", url ); Serializer::marshal( doc, method, "url", url );
delete url; delete url;
qDebug( "%s", doc.toString().latin1() ); tqDebug( "%s", doc.toString().latin1() );
mDoGetCachedPageTransport->query( doc.toString() ); mDoGetCachedPageTransport->query( doc.toString() );
} }
@ -56,10 +56,10 @@ void GoogleSearchService::doGetCachedPageResponseSlot( const TQString &xml )
TQString errorMsg; TQString errorMsg;
int column, row; int column, row;
qDebug( "%s", xml.latin1() ); tqDebug( "%s", xml.latin1() );
if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) {
qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column );
return; return;
} }
@ -92,7 +92,7 @@ void GoogleSearchService::doSpellingSuggestion( TQString* key, TQString* phrase
delete key; delete key;
Serializer::marshal( doc, method, "phrase", phrase ); Serializer::marshal( doc, method, "phrase", phrase );
delete phrase; delete phrase;
qDebug( "%s", doc.toString().latin1() ); tqDebug( "%s", doc.toString().latin1() );
mDoSpellingSuggestionTransport->query( doc.toString() ); mDoSpellingSuggestionTransport->query( doc.toString() );
} }
@ -102,10 +102,10 @@ void GoogleSearchService::doSpellingSuggestionResponseSlot( const TQString &xml
TQString errorMsg; TQString errorMsg;
int column, row; int column, row;
qDebug( "%s", xml.latin1() ); tqDebug( "%s", xml.latin1() );
if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) {
qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column );
return; return;
} }
@ -154,7 +154,7 @@ void GoogleSearchService::doGoogleSearch( TQString* key, TQString* q, int* start
delete ie; delete ie;
Serializer::marshal( doc, method, "oe", oe ); Serializer::marshal( doc, method, "oe", oe );
delete oe; delete oe;
qDebug( "%s", doc.toString().latin1() ); tqDebug( "%s", doc.toString().latin1() );
mDoGoogleSearchTransport->query( doc.toString() ); mDoGoogleSearchTransport->query( doc.toString() );
} }
@ -164,10 +164,10 @@ void GoogleSearchService::doGoogleSearchResponseSlot( const TQString &xml )
TQString errorMsg; TQString errorMsg;
int column, row; int column, row;
qDebug( "%s", xml.latin1() ); tqDebug( "%s", xml.latin1() );
if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) {
qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column );
return; return;
} }

@ -40,13 +40,13 @@ void Parser::parse( const TQString &xml )
int errorLine, errorColumn; int errorLine, errorColumn;
bool ok = doc.setContent( xml, true, &errorMsg, &errorLine, &errorColumn ); bool ok = doc.setContent( xml, true, &errorMsg, &errorLine, &errorColumn );
if ( !ok ) { if ( !ok ) {
qDebug( "Error parsing wscl (%d:%d) %s", errorLine, errorColumn, errorMsg.latin1() ); tqDebug( "Error parsing wscl (%d:%d) %s", errorLine, errorColumn, errorMsg.latin1() );
return; return;
} }
TQDomNodeList nodes = doc.elementsByTagName( "Conversation" ); TQDomNodeList nodes = doc.elementsByTagName( "Conversation" );
if ( nodes.count() <= 0 ) { if ( nodes.count() <= 0 ) {
qDebug( "No conversation tag found in wscl data" ); tqDebug( "No conversation tag found in wscl data" );
return; return;
} }
@ -72,7 +72,7 @@ void Parser::parse( const TQString &xml )
TQDomElement interactionElement = interactionNode.toElement(); TQDomElement interactionElement = interactionNode.toElement();
if ( !interactionElement.isNull() ) { if ( !interactionElement.isNull() ) {
if ( interactionElement.tagName() != "Interaction" ) { if ( interactionElement.tagName() != "Interaction" ) {
qDebug( "Expected tag name 'Interaction', got '%s'", interactionElement.tagName().latin1() ); tqDebug( "Expected tag name 'Interaction', got '%s'", interactionElement.tagName().latin1() );
continue; continue;
} }
@ -90,7 +90,7 @@ void Parser::parse( const TQString &xml )
else if ( type == "Empty" ) else if ( type == "Empty" )
interaction.setType( Interaction::Empty ); interaction.setType( Interaction::Empty );
else else
qDebug( "Unknown interaction type '%s'", type.latin1() ); tqDebug( "Unknown interaction type '%s'", type.latin1() );
XMLDocument::List inputDocuments; XMLDocument::List inputDocuments;
XMLDocument::List outputDocuments; XMLDocument::List outputDocuments;
@ -175,7 +175,7 @@ void Parser::parse( const TQString &xml )
TQDomElement transitionElement = transitionNode.toElement(); TQDomElement transitionElement = transitionNode.toElement();
if ( !transitionElement.isNull() ) { if ( !transitionElement.isNull() ) {
if ( transitionElement.tagName() != "Transition" ) { if ( transitionElement.tagName() != "Transition" ) {
qDebug( "Expected tag name 'Transition', got '%s'", transitionElement.tagName().latin1() ); tqDebug( "Expected tag name 'Transition', got '%s'", transitionElement.tagName().latin1() );
continue; continue;
} }
@ -193,7 +193,7 @@ void Parser::parse( const TQString &xml )
else if ( tagName == "SourceInteractionCondition" ) else if ( tagName == "SourceInteractionCondition" )
transition.setSourceInteractionCondition( contentElement.attribute( "href" ) ); transition.setSourceInteractionCondition( contentElement.attribute( "href" ) );
else else
qDebug( "Unknown transition element %s", tagName.latin1() ); tqDebug( "Unknown transition element %s", tagName.latin1() );
} }
contentNode = contentNode.nextSibling(); contentNode = contentNode.nextSibling();

@ -88,7 +88,7 @@ void DebugDialog::save()
TQFile file( fileName ); TQFile file( fileName );
if ( !file.open( IO_WriteOnly ) ) { if ( !file.open( IO_WriteOnly ) ) {
qWarning( "Couldn't open file %s", file.name().latin1() ); tqWarning( "Couldn't open file %s", file.name().latin1() );
return; return;
} }

@ -194,12 +194,12 @@ int GroupwiseServer::gSoapSendCallback( struct soap * soap, const char *s, size_
} }
if ( getenv("DEBUG_GW_RESOURCE") ) { if ( getenv("DEBUG_GW_RESOURCE") ) {
qDebug("*************************"); tqDebug("*************************");
char p[99999]; char p[99999];
strncpy(p, s, n); strncpy(p, s, n);
p[n]='\0'; p[n]='\0';
qDebug("%s", p ); tqDebug("%s", p );
qDebug("\n*************************"); tqDebug("\n*************************");
} }
log( "SENT", s, n ); log( "SENT", s, n );
@ -249,13 +249,13 @@ size_t GroupwiseServer::gSoapReceiveCallback( struct soap *soap, char *s,
<< " " << m_sock->socketStatus() << " " << m_sock->fd() << endl; << " " << m_sock->socketStatus() << " " << m_sock->fd() << endl;
} else { } else {
if ( getenv("DEBUG_GW_RESOURCE") ) { if ( getenv("DEBUG_GW_RESOURCE") ) {
qDebug("*************************"); tqDebug("*************************");
char p[99999]; char p[99999];
strncpy(p, s, ret); strncpy(p, s, ret);
p[ret]='\0'; p[ret]='\0';
qDebug("%s", p ); tqDebug("%s", p );
qDebug("\n*************************"); tqDebug("\n*************************");
qDebug("kioReceiveCallback return %ld", ret); tqDebug("kioReceiveCallback return %ld", ret);
} }
log( "RECV", s, ret ); log( "RECV", s, ret );
} }

@ -821,7 +821,7 @@ bool Contact::loadXML( const TQDomDocument& document )
mIsDistributionList = top.tagName() == "distribution-list"; mIsDistributionList = top.tagName() == "distribution-list";
if ( top.tagName() != "contact" && !mIsDistributionList ) { if ( top.tagName() != "contact" && !mIsDistributionList ) {
qWarning( "XML error: Top tag was %s instead of the expected contact or distribution-list", tqWarning( "XML error: Top tag was %s instead of the expected contact or distribution-list",
top.tagName().ascii() ); top.tagName().ascii() );
return false; return false;
} }

@ -157,7 +157,7 @@ bool Event::loadXML( const TQDomDocument& document )
TQDomElement top = document.documentElement(); TQDomElement top = document.documentElement();
if ( top.tagName() != "event" ) { if ( top.tagName() != "event" ) {
qWarning( "XML error: Top tag was %s instead of the expected event", tqWarning( "XML error: Top tag was %s instead of the expected event",
top.tagName().ascii() ); top.tagName().ascii() );
return false; return false;
} }

@ -129,7 +129,7 @@ bool Journal::loadXML( const TQDomDocument& document )
TQDomElement top = document.documentElement(); TQDomElement top = document.documentElement();
if ( top.tagName() != "journal" ) { if ( top.tagName() != "journal" ) {
qWarning( "XML error: Top tag was %s instead of the expected Journal", tqWarning( "XML error: Top tag was %s instead of the expected Journal",
top.tagName().ascii() ); top.tagName().ascii() );
return false; return false;
} }
@ -141,10 +141,10 @@ bool Journal::loadXML( const TQDomDocument& document )
TQDomElement e = n.toElement(); TQDomElement e = n.toElement();
if ( !loadAttribute( e ) ) { if ( !loadAttribute( e ) ) {
// Unhandled tag - save for later storage // Unhandled tag - save for later storage
//qDebug( "Unhandled tag: %s", e.toCString().data() ); //tqDebug( "Unhandled tag: %s", e.toCString().data() );
} }
} else } else
qDebug( "Node is not a comment or an element???" ); tqDebug( "Node is not a comment or an element???" );
} }
return true; return true;

@ -327,7 +327,7 @@ bool Task::loadXML( const TQDomDocument& document )
TQDomElement top = document.documentElement(); TQDomElement top = document.documentElement();
if ( top.tagName() != "task" ) { if ( top.tagName() != "task" ) {
qWarning( "XML error: Top tag was %s instead of the expected task", tqWarning( "XML error: Top tag was %s instead of the expected task",
top.tagName().ascii() ); top.tagName().ascii() );
return false; return false;
} }

@ -150,7 +150,7 @@ bool Note::loadXML( const TQDomDocument& document )
TQDomElement top = document.documentElement(); TQDomElement top = document.documentElement();
if ( top.tagName() != "note" ) { if ( top.tagName() != "note" ) {
qWarning( "XML error: Top tag was %s instead of the expected note", tqWarning( "XML error: Top tag was %s instead of the expected note",
top.tagName().ascii() ); top.tagName().ascii() );
return false; return false;
} }

@ -370,7 +370,7 @@ bool KolabBase::load( const TQString& xml )
bool ok = document.setContent( xml, &errorMsg, &errorLine, &errorColumn ); bool ok = document.setContent( xml, &errorMsg, &errorLine, &errorColumn );
if ( !ok ) { if ( !ok ) {
qWarning( "Error loading document: %s, line %d, column %d", tqWarning( "Error loading document: %s, line %d, column %d",
errorMsg.latin1(), errorLine, errorColumn ); errorMsg.latin1(), errorLine, errorColumn );
return false; return false;
} }
@ -387,7 +387,7 @@ bool KolabBase::load( TQFile& xml )
bool ok = document.setContent( &xml, &errorMsg, &errorLine, &errorColumn ); bool ok = document.setContent( &xml, &errorMsg, &errorLine, &errorColumn );
if ( !ok ) { if ( !ok ) {
qWarning( "Error loading document: %s, line %d, column %d", tqWarning( "Error loading document: %s, line %d, column %d",
errorMsg.latin1(), errorLine, errorColumn ); errorMsg.latin1(), errorLine, errorColumn );
return false; return false;
} }

@ -183,7 +183,7 @@ KABC::Addressee Contact::fromXml( const TQString &xml )
TQString errorMsg; TQString errorMsg;
int errorLine, errorColumn; int errorLine, errorColumn;
if ( !document.setContent( xml, true, &errorMsg, &errorLine, &errorColumn ) ) { if ( !document.setContent( xml, true, &errorMsg, &errorLine, &errorColumn ) ) {
qDebug( "Error parsing XML in Scalix::Contact::fromXml: %s (%d,%d)", errorMsg.latin1(), errorLine, errorColumn ); tqDebug( "Error parsing XML in Scalix::Contact::fromXml: %s (%d,%d)", errorMsg.latin1(), errorLine, errorColumn );
return KABC::Addressee(); return KABC::Addressee();
} }
@ -207,7 +207,7 @@ KABC::Addressee Contact::fromXml( const TQString &xml )
return list; return list;
} else { } else {
qDebug( "Error interpreting XML in Scalix::Contact::fromXml: no 'contact' or 'distlist' tag found" ); tqDebug( "Error interpreting XML in Scalix::Contact::fromXml: no 'contact' or 'distlist' tag found" );
return KABC::Addressee(); return KABC::Addressee();
} }
} }

@ -151,7 +151,7 @@ void PasswordPage::finished( KIO::Job* job )
} }
if ( scalixAccount.isEmpty() ) { if ( scalixAccount.isEmpty() ) {
qWarning( "No Scalix Groupware Account found in kmailrc!" ); tqWarning( "No Scalix Groupware Account found in kmailrc!" );
return; return;
} }

@ -333,7 +333,7 @@ bool ScalixBase::load( const TQString& xml )
bool ok = document.setContent( xml, &errorMsg, &errorLine, &errorColumn ); bool ok = document.setContent( xml, &errorMsg, &errorLine, &errorColumn );
if ( !ok ) { if ( !ok ) {
qWarning( "Error loading document: %s, line %d, column %d", tqWarning( "Error loading document: %s, line %d, column %d",
errorMsg.latin1(), errorLine, errorColumn ); errorMsg.latin1(), errorLine, errorColumn );
return false; return false;
} }
@ -350,7 +350,7 @@ bool ScalixBase::load( TQFile& xml )
bool ok = document.setContent( &xml, &errorMsg, &errorLine, &errorColumn ); bool ok = document.setContent( &xml, &errorMsg, &errorLine, &errorColumn );
if ( !ok ) { if ( !ok ) {
qWarning( "Error loading document: %s, line %d, column %d", tqWarning( "Error loading document: %s, line %d, column %d",
errorMsg.latin1(), errorLine, errorColumn ); errorMsg.latin1(), errorLine, errorColumn );
return false; return false;
} }

@ -58,7 +58,7 @@ TQString Service::name() const
bool Service::loadXML( const TQDomElement & top ) bool Service::loadXML( const TQDomElement & top )
{ {
if ( top.tagName() != "ServiceInformation" ) { if ( top.tagName() != "ServiceInformation" ) {
qWarning( "XML error: Top tag was %s instead of the expected service information", tqWarning( "XML error: Top tag was %s instead of the expected service information",
top.tagName().ascii() ); top.tagName().ascii() );
return false; return false;
} }
@ -72,7 +72,7 @@ bool Service::loadXML( const TQDomElement & top )
TQDomElement e = n.toElement(); TQDomElement e = n.toElement();
loadAttribute( e ); loadAttribute( e );
} else } else
qWarning( "Node is not a comment or an element???" ); tqWarning( "Node is not a comment or an element???" );
} }
return true; return true;
} }
@ -105,7 +105,7 @@ TQRegExp ScheduleEvent::sRegExp( "PT(\\d{2})H(\\d{2})M(\\d{2})S" );
bool ScheduleEvent::loadXML( const TQDomElement & top ) bool ScheduleEvent::loadXML( const TQDomElement & top )
{ {
if ( top.tagName() != "ScheduleEvent" ) { if ( top.tagName() != "ScheduleEvent" ) {
qWarning( "XML error: Top tag was %s instead of the expected event", tqWarning( "XML error: Top tag was %s instead of the expected event",
top.tagName().ascii() ); top.tagName().ascii() );
return false; return false;
} }
@ -119,7 +119,7 @@ bool ScheduleEvent::loadXML( const TQDomElement & top )
TQDomElement e = n.toElement(); TQDomElement e = n.toElement();
loadAttribute( e ); loadAttribute( e );
} else } else
qWarning( "Node is not a comment or an element???" ); tqWarning( "Node is not a comment or an element???" );
} }
return true; return true;
} }
@ -169,7 +169,7 @@ ProgramInformation::ProgramInformation( const TQString & title, const TQString &
bool ProgramInformation::loadXML( const TQDomElement & top ) bool ProgramInformation::loadXML( const TQDomElement & top )
{ {
if ( top.tagName() != "ProgramInformation" ) { if ( top.tagName() != "ProgramInformation" ) {
qWarning( "XML error: Top tag was %s instead of the expected program information", tqWarning( "XML error: Top tag was %s instead of the expected program information",
top.tagName().ascii() ); top.tagName().ascii() );
return false; return false;
} }
@ -193,7 +193,7 @@ bool ProgramInformation::loadXML( const TQDomElement & top )
} }
} }
} else } else
qWarning( "Node is not a comment or an element???" ); tqWarning( "Node is not a comment or an element???" );
} }
return true; return true;
} }

@ -379,7 +379,7 @@ void KTNEFMain::slotShowMessageProperties()
void KTNEFMain::slotShowMessageText() void KTNEFMain::slotShowMessageText()
{ {
TQString rtf = parser_->message()->rtfString(); TQString rtf = parser_->message()->rtfString();
qDebug( "%s", rtf.latin1() ); tqDebug( "%s", rtf.latin1() );
KTempFile tmpFile( KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/", "rtf"); KTempFile tmpFile( KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/", "rtf");
*( tmpFile.textStream() ) << rtf; *( tmpFile.textStream() ) << rtf;
tmpFile.close(); tmpFile.close();

@ -33,22 +33,22 @@ int main( int argc, char **argv )
mapper.setRemoteId( "yes", "klar" ); mapper.setRemoteId( "yes", "klar" );
mapper.setRemoteId( "no", "nee" ); mapper.setRemoteId( "no", "nee" );
qDebug( "full:\n%s", mapper.asString().latin1() ); tqDebug( "full:\n%s", mapper.asString().latin1() );
mapper.save(); mapper.save();
mapper.clear(); mapper.clear();
qDebug( "empty:\n%s", mapper.asString().latin1() ); tqDebug( "empty:\n%s", mapper.asString().latin1() );
mapper.load(); mapper.load();
qDebug( "full again:\n%s", mapper.asString().latin1() ); tqDebug( "full again:\n%s", mapper.asString().latin1() );
mapper.save(); mapper.save();
mapper.clear(); mapper.clear();
qDebug( "empty:\n%s", mapper.asString().latin1() ); tqDebug( "empty:\n%s", mapper.asString().latin1() );
mapper.load(); mapper.load();
qDebug( "full again:\n%s", mapper.asString().latin1() ); tqDebug( "full again:\n%s", mapper.asString().latin1() );
return 0; return 0;
} }

@ -29,7 +29,7 @@ Attachment::Attachment( const Attachment &attachment )
mSize = attachment.mSize; mSize = attachment.mSize;
mMimeType = attachment.mMimeType; mMimeType = attachment.mMimeType;
mUri = attachment.mUri; mUri = attachment.mUri;
mData = qstrdup( attachment.mData ); mData = tqstrdup( attachment.mData );
mLabel = attachment.mLabel; mLabel = attachment.mLabel;
mBinary = attachment.mBinary; mBinary = attachment.mBinary;
mLocal = attachment.mLocal; mLocal = attachment.mLocal;
@ -51,7 +51,7 @@ Attachment::Attachment( const char *base64, const TQString &mime )
{ {
mSize = 0; mSize = 0;
mMimeType = mime; mMimeType = mime;
mData = qstrdup( base64 ); mData = tqstrdup( base64 );
mBinary = true; mBinary = true;
mLocal = false; mLocal = false;
mShowInline = false; mShowInline = false;
@ -127,7 +127,7 @@ void Attachment::setDecodedData( const TQByteArray &data )
void Attachment::setData( const char *base64 ) void Attachment::setData( const char *base64 )
{ {
delete[] mData; delete[] mData;
mData = qstrdup( base64 ); mData = tqstrdup( base64 );
mBinary = true; mBinary = true;
mDataCache = TQByteArray(); mDataCache = TQByteArray();
mSize = 0; mSize = 0;

@ -133,7 +133,7 @@ bool CharFreq::hasLeadingFrom() const {
CharFreq::Type CharFreq::type() const { CharFreq::Type CharFreq::type() const {
#if 0 #if 0
qDebug( "Total: %d; NUL: %d; CTL: %d;\n" tqDebug( "Total: %d; NUL: %d; CTL: %d;\n"
"CR: %d; LF: %d; CRLF: %d;\n" "CR: %d; LF: %d; CRLF: %d;\n"
"lineMin: %d; lineMax: %d;\n" "lineMin: %d; lineMax: %d;\n"
"printable: %d; eightBit: %d;\n" "printable: %d; eightBit: %d;\n"

@ -53,7 +53,7 @@ Content::~Content()
void Content::setContent(TQStrList *l) void Content::setContent(TQStrList *l)
{ {
//qDebug("Content::setContent(TQStrList *l) : start"); //tqDebug("Content::setContent(TQStrList *l) : start");
h_ead.resize(0); h_ead.resize(0);
b_ody.resize(0); b_ody.resize(0);
@ -79,7 +79,7 @@ void Content::setContent(TQStrList *l)
hts << '\0'; hts << '\0';
bts << '\0'; bts << '\0';
//qDebug("Content::setContent(TQStrList *l) : finished"); //tqDebug("Content::setContent(TQStrList *l) : finished");
} }
@ -98,7 +98,7 @@ void Content::setContent(const TQCString &s)
//parse the message, split multiple parts //parse the message, split multiple parts
void Content::parse() void Content::parse()
{ {
//qDebug("void Content::parse() : start"); //tqDebug("void Content::parse() : start");
delete h_eaders; delete h_eaders;
h_eaders=0; h_eaders=0;
@ -151,7 +151,7 @@ void Content::parse()
c->parse(); c->parse();
c->contentType()->setCategory(cat); //set category of the sub-part c->contentType()->setCategory(cat); //set category of the sub-part
c_ontents->append(c); c_ontents->append(c);
//qDebug("part:\n%s\n\n%s", c->h_ead.data(), c->b_ody.left(100).data()); //tqDebug("part:\n%s\n\n%s", c->h_ead.data(), c->b_ody.left(100).data());
} }
//the whole content is now split into single parts, so it's safe delete the message-body //the whole content is now split into single parts, so it's safe delete the message-body
@ -249,7 +249,7 @@ void Content::parse()
} }
} }
//qDebug("void Content::parse() : finished"); //tqDebug("void Content::parse() : finished");
} }

@ -1402,7 +1402,7 @@ static bool parseDayName( const char* & scursor, const char * const send )
if ( send - scursor < 3 ) return false; if ( send - scursor < 3 ) return false;
for ( int i = 0 ; i < stdDayNamesLen ; ++i ) for ( int i = 0 ; i < stdDayNamesLen ; ++i )
if ( qstrnicmp( scursor, stdDayNames[i], 3 ) == 0 ) { if ( tqstrnicmp( scursor, stdDayNames[i], 3 ) == 0 ) {
scursor += 3; scursor += 3;
kdDebug() << "found " << stdDayNames[i] << endl; kdDebug() << "found " << stdDayNames[i] << endl;
return true; return true;
@ -1426,7 +1426,7 @@ static bool parseMonthName( const char* & scursor, const char * const send,
if ( send - scursor < 3 ) return false; if ( send - scursor < 3 ) return false;
for ( result = 0 ; result < stdMonthNamesLen ; ++result ) for ( result = 0 ; result < stdMonthNamesLen ; ++result )
if ( qstrnicmp( scursor, stdMonthNames[result], 3 ) == 0 ) { if ( tqstrnicmp( scursor, stdMonthNames[result], 3 ) == 0 ) {
scursor += 3; scursor += 3;
return true; return true;
} }
@ -1495,7 +1495,7 @@ static bool parseAlphaNumericTimeZone( const char* & scursor,
if ( !parseToken( scursor, send, maybeTimeZone, false /*no 8bit*/ ) ) if ( !parseToken( scursor, send, maybeTimeZone, false /*no 8bit*/ ) )
return false; return false;
for ( int i = 0 ; i < timeZonesLen ; ++i ) for ( int i = 0 ; i < timeZonesLen ; ++i )
if ( qstrnicmp( timeZones[i].tzName, if ( tqstrnicmp( timeZones[i].tzName,
maybeTimeZone.first, maybeTimeZone.second ) == 0 ) { maybeTimeZone.first, maybeTimeZone.second ) == 0 ) {
scursor += maybeTimeZone.second; scursor += maybeTimeZone.second;
secsEastOfGMT = timeZones[i].secsEastOfGMT; secsEastOfGMT = timeZones[i].secsEastOfGMT;

@ -138,11 +138,11 @@ int main( int argc, char * argv[] ) {
verbose = true; verbose = true;
break; break;
case 9: // usage-pattern case 9: // usage-pattern
if ( !qstricmp( "kio", optarg ) ) if ( !tqstricmp( "kio", optarg ) )
pattern = Kio; pattern = Kio;
else if ( !qstricmp( "chunkwise", optarg ) ) else if ( !tqstricmp( "chunkwise", optarg ) )
pattern = ChunkWise; pattern = ChunkWise;
else if ( !qstricmp( "convenience-qba", optarg ) ) else if ( !tqstricmp( "convenience-qba", optarg ) )
pattern = ConvenienceTQBA; pattern = ConvenienceTQBA;
else { else {
cerr << "Unknown usage pattern \"" << optarg << "\"" << endl; cerr << "Unknown usage pattern \"" << optarg << "\"" << endl;

@ -116,7 +116,7 @@ int main( int argc, char * argv[] ) {
int index; int index;
for ( index = 0 ; index < tokenTypesLen ; ++index ) for ( index = 0 ; index < tokenTypesLen ; ++index )
if ( !qstricmp( tokenTypes[index], argument ) ) break; if ( !tqstricmp( tokenTypes[index], argument ) ) break;
if ( index >= tokenTypesLen ) usage( "unknown token type" ); if ( index >= tokenTypesLen ) usage( "unknown token type" );

@ -52,7 +52,7 @@ int main( int argc, char * argv[] ) {
long_options, &option_index ); long_options, &option_index );
if ( c == -1 ) break; if ( c == -1 ) break;
#define EQUALS(x) !qstricmp( optarg, x ) #define EQUALS(x) !tqstricmp( optarg, x )
switch ( c ) { switch ( c ) {

@ -134,7 +134,7 @@ namespace KSieve {
const char * beginOfLine() const { return mState.beginOfLine; } const char * beginOfLine() const { return mState.beginOfLine; }
int _strnicmp( const char * left, const char * right, size_t len ) const { int _strnicmp( const char * left, const char * right, size_t len ) const {
return charsLeft() >= len ? qstrnicmp( left, right, len ) : 1 ; return charsLeft() >= len ? tqstrnicmp( left, right, len ) : 1 ;
} }
void clearErrors() { mState.error = Error(); } void clearErrors() { mState.error = Error(); }

@ -46,7 +46,7 @@ QGpgME::TQByteArrayDataProvider::~TQByteArrayDataProvider() {}
ssize_t QGpgME::TQByteArrayDataProvider::read( void * buffer, size_t bufSize ) { ssize_t QGpgME::TQByteArrayDataProvider::read( void * buffer, size_t bufSize ) {
#ifndef NDEBUG #ifndef NDEBUG
//qDebug( "QGpgME::TQByteArrayDataProvider::read( %p, %d )", buffer, bufSize ); //tqDebug( "QGpgME::TQByteArrayDataProvider::read( %p, %d )", buffer, bufSize );
#endif #endif
if ( bufSize == 0 ) if ( bufSize == 0 )
return 0; return 0;
@ -61,7 +61,7 @@ ssize_t QGpgME::TQByteArrayDataProvider::read( void * buffer, size_t bufSize ) {
ssize_t QGpgME::TQByteArrayDataProvider::write( const void * buffer, size_t bufSize ) { ssize_t QGpgME::TQByteArrayDataProvider::write( const void * buffer, size_t bufSize ) {
#ifndef NDEBUG #ifndef NDEBUG
qDebug( "QGpgME::TQByteArrayDataProvider::write( %p, %d )", buffer, bufSize ); tqDebug( "QGpgME::TQByteArrayDataProvider::write( %p, %d )", buffer, bufSize );
#endif #endif
if ( bufSize == 0 ) if ( bufSize == 0 )
return 0; return 0;
@ -79,7 +79,7 @@ ssize_t QGpgME::TQByteArrayDataProvider::write( const void * buffer, size_t bufS
off_t QGpgME::TQByteArrayDataProvider::seek( off_t offset, int whence ) { off_t QGpgME::TQByteArrayDataProvider::seek( off_t offset, int whence ) {
#ifndef NDEBUG #ifndef NDEBUG
qDebug( "QGpgME::TQByteArrayDataProvider::seek( %d, %d )", int(offset), whence ); tqDebug( "QGpgME::TQByteArrayDataProvider::seek( %d, %d )", int(offset), whence );
#endif #endif
int newOffset = mOff; int newOffset = mOff;
switch ( whence ) { switch ( whence ) {
@ -101,7 +101,7 @@ off_t QGpgME::TQByteArrayDataProvider::seek( off_t offset, int whence ) {
void QGpgME::TQByteArrayDataProvider::release() { void QGpgME::TQByteArrayDataProvider::release() {
#ifndef NDEBUG #ifndef NDEBUG
qDebug( "QGpgME::TQByteArrayDataProvider::release()" ); tqDebug( "QGpgME::TQByteArrayDataProvider::release()" );
#endif #endif
mArray = TQByteArray(); mArray = TQByteArray();
} }

@ -54,7 +54,7 @@ QGpgME::EventLoopInteractor * QGpgME::EventLoopInteractor::instance() {
if ( !mSelf ) if ( !mSelf )
#ifndef NDEBUG #ifndef NDEBUG
if ( !tqApp ) if ( !tqApp )
qWarning( "QGpgME::EventLoopInteractor: Need a TQApplication object before calling instance()!" ); tqWarning( "QGpgME::EventLoopInteractor: Need a TQApplication object before calling instance()!" );
else else
#endif #endif
(void)new EventLoopInteractor( 0, "QGpgME::EventLoopInteractor::instance()" ); (void)new EventLoopInteractor( 0, "QGpgME::EventLoopInteractor::instance()" );

@ -162,7 +162,7 @@ void LdapClient::slotData( KIO::Job*, const TQByteArray& data )
void LdapClient::slotInfoMessage( KIO::Job*, const TQString & ) void LdapClient::slotInfoMessage( KIO::Job*, const TQString & )
{ {
//qDebug("Job said \"%s\"", info.latin1()); //tqDebug("Job said \"%s\"", info.latin1());
} }
void LdapClient::slotDone() void LdapClient::slotDone()
@ -171,7 +171,7 @@ void LdapClient::slotDone()
mActive = false; mActive = false;
#if 0 #if 0
for ( TQValueList<LdapObject>::Iterator it = mObjects.begin(); it != mObjects.end(); ++it ) { for ( TQValueList<LdapObject>::Iterator it = mObjects.begin(); it != mObjects.end(); ++it ) {
qDebug( (*it).toString().latin1() ); tqDebug( (*it).toString().latin1() );
} }
#endif #endif
int err = mJob->error(); int err = mJob->error();

@ -180,7 +180,7 @@ public:
// check for 8bit char's: // check for 8bit char's:
// //
if ( ch > 127 ) { if ( ch > 127 ) {
qWarning("TQUtf7Decoder: 8bit char found in input. " tqWarning("TQUtf7Decoder: 8bit char found in input. "
"Parser has been re-initialized!"); "Parser has been re-initialized!");
resetParser(); resetParser();
result += TQChar::replacement; result += TQChar::replacement;
@ -228,12 +228,12 @@ public:
// makes for an ill-formed sequence. // makes for an ill-formed sequence.
// Note that we catch (the valid) "+-" pair // Note that we catch (the valid) "+-" pair
// right at the beginning. // right at the beginning.
qWarning("TQUtf7Decoder: ill-formed input: " tqWarning("TQUtf7Decoder: ill-formed input: "
"non-base64 char after escaping \"+\"!"); "non-base64 char after escaping \"+\"!");
} }
// pending bits from base64 encoding must be all 0: // pending bits from base64 encoding must be all 0:
if (stepNo >= 1 && uc) { if (stepNo >= 1 && uc) {
qWarning("TQUtf7Decoder: ill-formed sequence: " tqWarning("TQUtf7Decoder: ill-formed sequence: "
"non-zero bits in shifted-sequence tail!"); "non-zero bits in shifted-sequence tail!");
} }
resetParser(); resetParser();

@ -46,9 +46,9 @@ DateEdit::DateEdit( TQWidget *parent, const char *name )
void DateEdit::dateChanged( const TQDate &date ) void DateEdit::dateChanged( const TQDate &date )
{ {
if ( date.isValid() ) if ( date.isValid() )
qDebug( "%s", date.toString().latin1() ); tqDebug( "%s", date.toString().latin1() );
else else
qDebug( "invalid date entered" ); tqDebug( "invalid date entered" );
} }
int main(int argc,char **argv) int main(int argc,char **argv)

@ -20,7 +20,7 @@ int main( int argc, char * argv[] ) {
my_cout << buffer; my_cout << buffer;
} else { } else {
qWarning("usage: testutf7decoder string_to_decode\n"); tqWarning("usage: testutf7decoder string_to_decode\n");
} }
TQTextCodec::deleteAllCodecs(); TQTextCodec::deleteAllCodecs();
} }

@ -88,6 +88,6 @@ void main( int argc, char * argv[] ) {
delete codec; delete codec;
} else { } else {
qWarning("usage: testutf7encoder string_to_encode\n"); tqWarning("usage: testutf7encoder string_to_encode\n");
} }
} }

@ -19,7 +19,7 @@ int main( int argc, char * argv[] ) {
TQString buffer = my_cin.read(); TQString buffer = my_cin.read();
// qDebug("buffer == " + buffer); // tqDebug("buffer == " + buffer);
#ifdef USE_STREAM #ifdef USE_STREAM
my_cout << buffer << endl; my_cout << buffer << endl;
@ -39,7 +39,7 @@ int main( int argc, char * argv[] ) {
delete enc; delete enc;
#endif // else USE_STREAM #endif // else USE_STREAM
} else { } else {
qWarning("usage: testutf7encoder2 < infile > outfile\n"); tqWarning("usage: testutf7encoder2 < infile > outfile\n");
} }
TQTextCodec::deleteAllCodecs(); TQTextCodec::deleteAllCodecs();
} }

@ -121,7 +121,7 @@ namespace {
} }
html += "</pre></div>"; html += "</pre></div>";
//qDebug( "%s", html.latin1() ); //tqDebug( "%s", html.latin1() );
writer->queue( html ); writer->queue( html );
return Ok; return Ok;

Loading…
Cancel
Save