void
ExtDatePicker::dateChangedSlot(const ExtDate &date)
{
- kdDebug(298) << "ExtDatePicker::dateChangedSlot: date changed (" << date.year() << "/" << date.month() << "/" << date.day() << ")." << endl;
+ kDebug(298) << "ExtDatePicker::dateChangedSlot: date changed (" << date.year() << "/" << date.month() << "/" << date.day() << ")." << endl;
//must remain commented unless ExtDate gets added to kdelibs
void
ExtDatePicker::tableClickedSlot()
{
- kdDebug(298) << "ExtDatePicker::tableClickedSlot: table clicked." << endl;
+ kDebug(298) << "ExtDatePicker::tableClickedSlot: table clicked." << endl;
emit(dateSelected(table->getDate()));
emit(tableClicked());
}
}
else
{
- kdDebug(298) << "ExtDatePicker::setDate: refusing to set invalid date." << endl;
+ kDebug(298) << "ExtDatePicker::setDate: refusing to set invalid date." << endl;
return false;
}
}
// -----
if(val->date(line->text(), temp)==QValidator::Acceptable)
{
- kdDebug(298) << "ExtDatePicker::lineEnterPressed: valid date entered." << endl;
+ kDebug(298) << "ExtDatePicker::lineEnterPressed: valid date entered." << endl;
emit(dateEntered(temp));
setDate(temp);
} else {
KNotifyClient::beep();
- kdDebug(298) << "ExtDatePicker::lineEnterPressed: invalid date entered." << endl;
+ kDebug(298) << "ExtDatePicker::lineEnterPressed: invalid date entered." << endl;
}
}
setFontSize(10);
if(!date_.isValid())
{
- kdDebug() << "ExtDateTable ctor: WARNING: Given date is invalid, using current date." << endl;
+ kDebug() << "ExtDateTable ctor: WARNING: Given date is invalid, using current date." << endl;
date_=ExtDate::currentDate();
}
setFocusPolicy( Qt::StrongFocus );
// -----
if(!date_.isValid())
{
- kdDebug() << "ExtDateTable::setDate: refusing to set invalid date." << endl;
+ kDebug() << "ExtDateTable::setDate: refusing to set invalid date." << endl;
return false;
}
if(date!=date_)
d->calendar->setYMD(temp, d->calendar->year(date), d->calendar->month(date), 1);
//temp.setYMD(date.year(), date.month(), 1);
- //kdDebug() << "firstDayInWeek: " << temp.toString() << endl;
+ //kDebug() << "firstDayInWeek: " << temp.toString() << endl;
firstday=temp.dayOfWeek();
numdays=d->calendar->daysInMonth(date);
return QSize(maxCell.width()*numCols()+2*frameWidth(),
(maxCell.height()+2)*numRows()+2*frameWidth());
} else {
- kdDebug() << "ExtDateTable::sizeHint: obscure failure - " << endl;
+ kDebug() << "ExtDateTable::sizeHint: obscure failure - " << endl;
return QSize(-1, -1);
}
}
\code
ExtDateTime dt = ExtDateTime::currentDateTime();
ExtDateTime xmas( ExtDate(dt.date().year(),12,24), QTime(17,00) );
- kdDebug( ) << "There are " << dt.secsTo(xmas) << " seconds to Christmas" << endl;
+ kDebug( ) << "There are " << dt.secsTo(xmas) << " seconds to Christmas" << endl;
\endcode
\sa addSecs(), daysTo(), QTime::secsTo()
lineEdit()->setSelection( iStart, iLength );
// //DEBUG
-// kdDebug() << "selected text: " << lineEdit()->selectedText() << endl;
+// kDebug() << "selected text: " << lineEdit()->selectedText() << endl;
}
if ( c == 'Y' ) NewField = 2;
// //DEBUG
-// kdDebug() << pos << " " << c << " " << NewField << endl;
+// kDebug() << pos << " " << c << " " << NewField << endl;
}
void ExtDateEdit::focusInEvent( QFocusEvent *e ) {
// //DEBUG
-// kdDebug() << "focusInEvent()" << endl;
+// kDebug() << "focusInEvent()" << endl;
QSpinBox::focusInEvent(e);
highlightActiveField();
void edLineEdit::mouseReleaseEvent( QMouseEvent * ) {
// //DEBUG
-// kdDebug() << "mousePressEvent()" << endl;
+// kDebug() << "mousePressEvent()" << endl;
//assumes no prefix/suffix!
QString sdf = edParent->simpleDateFormat();
else if ( c == 'Y' ) edParent->setActiveField( 2 );
// //DEBUG
-// kdDebug() << "ActiveField = " << edParent->activeField() << endl;
+// kDebug() << "ActiveField = " << edParent->activeField() << endl;
edParent->highlightActiveField();
}
void edLineEdit::keyPressEvent( QKeyEvent *e ) {
// //DEBUG
-// kdDebug() << "keyPressEvent()" << endl;
+// kDebug() << "keyPressEvent()" << endl;
switch ( e->key() ) {
case Qt::Key_Up:
EDTEdit::~EDTEdit() {
//Output current date setting on exit
- kdDebug() << "ExDateEdit: " << ed->date().toString() << endl;
- kdDebug() << "ExDateTimeEdit: " << edt->date().toString() << endl;
+ kDebug() << "ExDateEdit: " << ed->date().toString() << endl;
+ kDebug() << "ExDateTimeEdit: " << edt->date().toString() << endl;
}
#include "edtedit_widget.moc"
break;
default: {
- kdError() << "kvcotrainDoc::saveAs(): unknown filetype" << endl;
+ kError() << "kvcotrainDoc::saveAs(): unknown filetype" << endl;
}
break;
}
if (lm > (int) m_doc->m_lessonDescriptions.size() )
{
// should not be
- kdError() << "index of lesson member too high: " << lm << endl;
+ kError() << "index of lesson member too high: " << lm << endl;
lm = 0;
}
ls.setNum (lm);
void LeitnerSystemView::mousePressEvent(QMouseEvent* e)
{
- kdDebug() << "mouseClick" << endl;
+ kDebug() << "mouseClick" << endl;
//if the user has clicked into a box
if( e->y() > m_imageY && e->y() < m_imageY + 64 && e->x() < width() )
{
QPointF* KPlotObject::point( int index ) {
if ( index < 0 || index >= pList.count() ) {
- kdWarning() << "KPlotObject::object(): index " << index << " out of range!" << endl;
+ kWarning() << "KPlotObject::object(): index " << index << " out of range!" << endl;
return 0;
}
return pList.at(index);
void KPlotObject::removePoint( int index ) {
if ( ( index < 0 ) || ( index >= pList.count() ) ) {
- kdWarning() << "KPlotObject::removePoint(): index " << index << " out of range!" << endl;
+ kWarning() << "KPlotObject::removePoint(): index " << index << " out of range!" << endl;
return;
}
void KPlotWidget::updateTickmarks() {
// Determine the number and spacing of tickmarks for the current plot limits.
if ( dataWidth() == 0.0 ) {
- kdWarning() << "KPlotWidget::updateTickmarks(): X range [" << x() << ", " << x2() << "] invalid!" << endl;
+ kWarning() << "KPlotWidget::updateTickmarks(): X range [" << x() << ", " << x2() << "] invalid!" << endl;
DataRect.setWidth( 1.0 );
return;
}
if ( dataHeight() == 0.0 ) {
- kdWarning() << "KPlotWidget::updateTickmarks(): Y range [" << y() << ", " << y2() << "] invalid!" << endl;
+ kWarning() << "KPlotWidget::updateTickmarks(): Y range [" << y() << ", " << y2() << "] invalid!" << endl;
DataRect.setHeight( 1.0 );
return;
}
KPlotObject *KPlotWidget::object( int i ) {
if ( i < 0 || i >= ObjectList.count() ) {
- kdWarning() << "KPlotWidget::object(): index " << i << " out of range!" << endl;
+ kWarning() << "KPlotWidget::object(): index " << i << " out of range!" << endl;
return 0;
}
return ObjectList.at(i);
case KPlotObject::UNKNOWN_TYPE :
default:
- kdDebug() << "KPlotWidget::drawObjects(): Unknown object type: " << po->type() << endl;
+ kDebug() << "KPlotWidget::drawObjects(): Unknown object type: " << po->type() << endl;
}
}
}
if ( !layoutFile.exists() )
{
- kdDebug() << "no such file: " << layoutFile.name() << endl;
+ kDebug() << "no such file: " << layoutFile.name() << endl;
return false;
}
// check if document is well-formed
if ( !Document.setContent( &layoutFile ) )
{
- kdDebug() << "wrong xml of " << layoutFile.name() << endl;
+ kDebug() << "wrong xml of " << layoutFile.name() << endl;
layoutFile.close();
return false;
}
void Glossary::fixImagePath()
{
- kdDebug() << "Glossary::fixImagePath()" << endl;
+ kDebug() << "Glossary::fixImagePath()" << endl;
QList<GlossaryItem*>::iterator it = m_itemlist.begin();
const QList<GlossaryItem*>::iterator itEnd = m_itemlist.end();
QString imgtag = "<img src=\"" + m_picturepath + "/" + "\\1\" />";
if ( newgloss->isEmpty() ) return;
m_glossaries.append( newgloss );
- kdDebug() << "Count of the new glossary: " << newgloss->itemlist().count() << endl;
- kdDebug() << "Number of glossaries: " << m_glossaries.count() << endl;
+ kDebug() << "Count of the new glossary: " << newgloss->itemlist().count() << endl;
+ kDebug() << "Number of glossaries: " << m_glossaries.count() << endl;
updateTree();
}
bool ChemicalDataObject::operator==( const int v ) const
{
- kdDebug() << "ChemicalDataObject::operator==() with int" << endl;
+ kDebug() << "ChemicalDataObject::operator==() with int" << endl;
if ( d->m_value.type() != QVariant::Int )
return false;
bool ChemicalDataObject::operator==( const bool v ) const
{
- kdDebug() << "ChemicalDataObject::operator==() with bool" << endl;
+ kDebug() << "ChemicalDataObject::operator==() with bool" << endl;
if ( d->m_value.type() != QVariant::Bool )
return false;
bool ChemicalDataObject::operator==( const double v ) const
{
- kdDebug() << "ChemicalDataObject::operator==() with double" << endl;
+ kDebug() << "ChemicalDataObject::operator==() with double" << endl;
if ( d->m_value.type() != QVariant::Double )
return false;
bool ChemicalDataObject::operator==( const QString& v ) const
{
- kdDebug() << "ChemicalDataObject::operator==() with QString" << endl;
+ kDebug() << "ChemicalDataObject::operator==() with QString" << endl;
if ( d->m_value.type() != QVariant::String )
return false;
d->inExactMass = true;
}
} else if (d->inIsotope && localName == "bo:relativeAbundance") {
- kdDebug() << "bo:relativeAbundance" << endl;
+ kDebug() << "bo:relativeAbundance" << endl;
d->inAbundance = true;
}
return true;
*_resultMass = 0.0;
_resultMap->clear();
while (parseTerm(&subMass, &subMap)) {
- //kdDebug() << "Parsed a term, weight = " << subresult << endl;
+ //kDebug() << "Parsed a term, weight = " << subresult << endl;
// Add the mass and composition of the submolecule to the total.
*_resultMass += subMass;
_resultMap->clear();
if (nextToken() == ELEMENT_TOKEN) {
- //kdDebug() << "Parsed an element: " << m_elementVal->symbol() << endl;
+ //kDebug() << "Parsed an element: " << m_elementVal->symbol() << endl;
*_resultMass = m_elementVal->dataAsVariant( ChemicalDataObject::mass ).toDouble();
_resultMap->add(m_elementVal, 1);
// Must end in a ")".
if (nextToken() == ')') {
- //kdDebug() << "Parsed a submolecule. weight = " << *_result << endl;
+ //kDebug() << "Parsed a submolecule. weight = " << *_result << endl;
getNextToken();
}
else
// Optional number.
if (nextToken() == INT_TOKEN) {
- //kdDebug() << "Parsed a number: " << intVal() << endl;
+ //kDebug() << "Parsed a number: " << intVal() << endl;
*_resultMass *= intVal();
_resultMap->multiply(intVal());
getNextToken();
}
- kdDebug() << "Weight of term = " << *_resultMass << endl;
+ kDebug() << "Weight of term = " << *_resultMass << endl;
return true;
}
QString elementName;
#if 0
- kdDebug() << "getNextToken(): Next character = "
+ kDebug() << "getNextToken(): Next character = "
<< nextChar() << endl;
#endif
Element *
MoleculeParser::lookupElement( const QString& _name )
{
- kdDebug() << "looking up " << _name << endl;
+ kDebug() << "looking up " << _name << endl;
foreach( Element* e, m_elementList ){
if ( e->dataAsVariant(ChemicalDataObject::symbol) == _name ) {
- kdDebug() << "Found element " << _name << endl;
+ kDebug() << "Found element " << _name << endl;
return e;
}
}
//if there is an error make m_error true.
m_error = true;
- kdDebug() << k_funcinfo << "no such element, parsing error!: " << _name << endl;
+ kDebug() << k_funcinfo << "no such element, parsing error!: " << _name << endl;
return NULL;
}
int
Parser::getNextChar()
{
-// kdDebug() << "Parser::getNextChar(): char = " << m_nextChar << endl;
-// kdDebug() << "m_str.size() " << m_str.size() << " with m_str: " << m_str << " and m_index: " << m_index << endl;
+// kDebug() << "Parser::getNextChar(): char = " << m_nextChar << endl;
+// kDebug() << "m_str.size() " << m_str.size() << " with m_str: " << m_str << " and m_index: " << m_index << endl;
m_index++;
//X if ( e )
//X {
//X ChemicalDataObject* o = e->data();
-//X kdDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << " errorMargin: " << e->errorMargin() << " parent Element: " << e->parentElementSymbol() << endl;
+//X kDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << " errorMargin: " << e->errorMargin() << " parent Element: " << e->parentElementSymbol() << endl;
//X }
//X
//X }
if ( e )
{
ChemicalDataObject* o = e->data();
- kdDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << " errorMargin: " << e->errorMargin() << " parent Element: " << e->parentElementSymbol() << endl;
+ kDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << " errorMargin: " << e->errorMargin() << " parent Element: " << e->parentElementSymbol() << endl;
}
}
//Test: Check if the string-comparison works
//X if ( e->data( ChemicalDataObject::name ) == "Helium" )
-//X kdDebug() << "Mass: " << e->dataAsString( ChemicalDataObject::mass ) << endl;
+//X kDebug() << "Mass: " << e->dataAsString( ChemicalDataObject::mass ) << endl;
//Test: Check if the double-comparison works
//X if ( e->data( ChemicalDataObject::mass ) == 4.002602 )
-//X kdDebug() << "Correct mass found" << endl;
+//X kDebug() << "Correct mass found" << endl;
//Test: Give me the name of the element
-//X kdDebug() << "Name: " << e->dataAsString( ChemicalDataObject::name ) << endl;
+//X kDebug() << "Name: " << e->dataAsString( ChemicalDataObject::name ) << endl;
//Test: give me all data available
foreach( ChemicalDataObject*o, list ){
QString unit = o->unitAsString();
if ( unit == "bo:noUnit" )
unit = "";
- kdDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() <<" " << unit << endl;
+ kDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() <<" " << unit << endl;
}
}
}