Commit 66aef9fd authored by Pino Toscano's avatar Pino Toscano

kdDebug -> kDebug

svn path=/trunk/KDE/kdeedu/kmplot/; revision=506360
parent 9d34a03c
......@@ -69,7 +69,7 @@ MainDlg::MainDlg(QWidget *parentWidget, const char *, QObject *parent, const cha
// we need an instance
setInstance( KmPlotPartFactory::instance() );
kdDebug() << "parentWidget->name():" << parentWidget->name() << endl;
kDebug() << "parentWidget->name():" << parentWidget->name() << endl;
if ( QString(parentWidget->name()).startsWith("KmPlot") )
{
setXMLFile("kmplot_part.rc");
......@@ -253,7 +253,7 @@ void MainDlg::slotSave()
return;
}
kmplotio->save( m_url.url() );
kdDebug() << "saved" << endl;
kDebug() << "saved" << endl;
m_modified = false;
}
......@@ -626,9 +626,9 @@ void MainDlg::loadConstants()
tmp.setNum(i);
tmp_constant = conf.readEntry("nameConstant"+tmp, QString(" "));
tmp_value = conf.readEntry("valueConstant"+tmp, QString(" "));
// kdDebug() << "konstant: " << tmp_constant.latin1() << endl;
// kdDebug() << "value: " << value << endl;
// kdDebug() << "**************" << endl;
// kDebug() << "konstant: " << tmp_constant.latin1() << endl;
// kDebug() << "value: " << value << endl;
// kDebug() << "**************" << endl;
if ( tmp_constant == " " || tmp_constant == " ")
return;
......@@ -667,9 +667,9 @@ void MainDlg::loadConstants()
}
}
}
/*kdDebug() << "**************" << endl;
kdDebug() << "C:" << constant << endl;
kdDebug() << "V:" << value << endl;*/
/*kDebug() << "**************" << endl;
kDebug() << "C:" << constant << endl;
kDebug() << "V:" << value << endl;*/
view->parser()->constant.append(Constant(constant, value) );
}
......
......@@ -266,7 +266,7 @@ void View::plotfkt(Ufkt *ufkt, QPainter *pDC)
ke=ufkt->parameters.count();
do
{
kdDebug() << "drawing " << ufkt->id << endl;
kDebug() << "drawing " << ufkt->id << endl;
if ( p_mode == 3 && stop_calculating)
break;
if( ufkt->use_slider == -1 )
......@@ -863,7 +863,7 @@ void View::mousePressEvent(QMouseEvent *e)
if ( function_type=='y' || function_type=='r' || it->fname.isEmpty()) continue;
if (!(((!it->usecustomxmin) || (it->usecustomxmin && csxpos>it->dmin)) && ((!it->usecustomxmax)||(it->usecustomxmax && csxpos<it->dmax)) ))
continue;
kdDebug() << "it:" << it->fstr << endl;
kDebug() << "it:" << it->fstr << endl;
int k=0;
int const ke=it->parameters.count();
do
......@@ -1286,8 +1286,8 @@ void View::findMinMaxValue(Ufkt *ufkt, char p_mode, bool minimum, double &dmin,
}
if ( !isnan(x) && !isnan(y) )
{
kdDebug() << "x " << x << endl;
kdDebug() << "y " << y << endl;
kDebug() << "x " << x << endl;
kDebug() << "y " << y << endl;
if (x>=dmin && x<=dmax)
{
if ( start)
......@@ -1487,7 +1487,7 @@ void View::keyPressEvent( QKeyEvent * e)
cstype=old_cstype;
break;
}
kdDebug() << "csmode: " << csmode << endl;
kDebug() << "csmode: " << csmode << endl;
switch(it->fstr[0].latin1())
{
case 'x':
......@@ -1506,7 +1506,7 @@ void View::keyPressEvent( QKeyEvent * e)
cstype=old_cstype+1;
start=false;
}
kdDebug() << " cstype: " << (int)cstype << endl;
kDebug() << " cstype: " << (int)cstype << endl;
switch (cstype)
{
case (0):
......@@ -1537,10 +1537,10 @@ void View::keyPressEvent( QKeyEvent * e)
}
}
kdDebug() << "************************" << endl;
kdDebug() << "csmode: " << (int)csmode << endl;
kdDebug() << "cstype: " << (int)cstype << endl;
kdDebug() << "csparam: " << csparam << endl;
kDebug() << "************************" << endl;
kDebug() << "csmode: " << (int)csmode << endl;
kDebug() << "cstype: " << (int)cstype << endl;
kDebug() << "csparam: " << csparam << endl;
//change function in the statusbar
switch (cstype )
......@@ -1729,10 +1729,10 @@ void View::areaUnderGraph( Ufkt *ufkt, char const p_mode, double &dmin, double
rectheight = -1*( p.y()-origoy);
calculated_area = calculated_area + (dx*y);
/*kdDebug() << "Area: " << area << endl;
kdDebug() << "x:" << p.height() << endl;
kdDebug() << "y:" << p.y() << endl;
kdDebug() << "*************" << endl;*/
/*kDebug() << "Area: " << area << endl;
kDebug() << "x:" << p.height() << endl;
kDebug() << "y:" << p.y() << endl;
kDebug() << "*************" << endl;*/
DC->fillRect(p.x(),p.y(),rectwidth,rectheight,color);
}
......
......@@ -178,7 +178,7 @@ void KEditPolar::accept()
else
{
int const id = m_parser->addfkt(f_str );
kdDebug() << "id: " << id << endl;
kDebug() << "id: " << id << endl;
if( id == -1 )
{
m_parser->parserError();
......
......@@ -189,7 +189,7 @@ void KMinMax::selectItem()
cmdParameter->hide();
if ( m_view->csmode < 0)
return;
//kdDebug() << "cstype: " << (int)m_view->cstype << endl;
//kDebug() << "cstype: " << (int)m_view->cstype << endl;
Ufkt *ufkt = &m_view->parser()->ufkt[m_view->parser()->ixValue(m_view->csmode)];
QString function = ufkt->fstr;
if ( m_view->cstype == 2)
......@@ -204,7 +204,7 @@ void KMinMax::selectItem()
function.truncate(i);
function +="\'";
}
//kdDebug() << "function: " << function << endl;
//kDebug() << "function: " << function << endl;
Q3ListBoxItem *item = list->findItem(function,Q3ListView::ExactMatch);
list->setSelected(item,true);
......
......@@ -498,7 +498,7 @@ void KmPlotIO::parseThreeDotThreeParameters( XParser *m_parser, const QDomElemen
void KmPlotIO::oldParseFunction( XParser *m_parser, const QDomElement & n )
{
kdDebug() << "parsing old function" << endl;
kDebug() << "parsing old function" << endl;
Ufkt ufkt;
m_parser->prepareAddingFunction(&ufkt);
......
......@@ -111,10 +111,10 @@ void Parser::ps_init()
Parser::~Parser()
{
kdDebug() << "Exiting......" << endl;
kDebug() << "Exiting......" << endl;
for( Q3ValueVector<Ufkt>::iterator it = ufkt.begin(); it != ufkt.end(); ++it)
{
kdDebug() << "Deleting something... :-)" << endl;
kDebug() << "Deleting something... :-)" << endl;
delete [](*it).mem;
}
}
......@@ -355,7 +355,7 @@ int Parser::addfkt(QString str)
if ( ufkt.begin()->fname.isEmpty() )
{
ufkt.begin()->id = 0;
//kdDebug() << "ufkt.begin()->id:" << ufkt.begin()->id << endl;
//kDebug() << "ufkt.begin()->id:" << ufkt.begin()->id << endl;
}
else
{
......@@ -376,7 +376,7 @@ int Parser::addfkt(QString str)
if(p2<p3) temp->fpar=str.mid(p2+1, p3-p2-1);
else temp->fpar=""; //.resize(1);
kdDebug() << "temp.id:" << temp->id << endl;
kDebug() << "temp.id:" << temp->id << endl;
if ( temp->fname != temp->fname.lower() ) //isn't allowed to contain capital letters
{
......@@ -407,7 +407,7 @@ void Parser::reparse(int ix)
void Parser::reparse(Ufkt *item)
{
kdDebug() << "Reparsing: " << item->fstr << endl;
kDebug() << "Reparsing: " << item->fstr << endl;
QString str = item->fstr.latin1();
err=0;
errpos=1;
......@@ -502,12 +502,12 @@ void Parser::fix_expression(QString &str, int const pos)
str_end = str_end.replace(m_decimalsymbol, "."); //replace the locale decimal symbol with a '.'
str.truncate(pos);
str.append(str_end);
//kdDebug() << "str:" << str << endl;
//kDebug() << "str:" << str << endl;
}
bool Parser::delfkt( Ufkt *item)
{
kdDebug() << "Deleting id:" << item->id << endl;
kDebug() << "Deleting id:" << item->id << endl;
if (!item->dep.isEmpty())
{
KMessageBox::error(0,i18n("This function is depending on an other function"));
......@@ -524,12 +524,12 @@ bool Parser::delfkt( Ufkt *item)
if ( ufkt.count()==1 )
{
//kdDebug() << "first item, don't delete" << endl;
//kDebug() << "first item, don't delete" << endl;
item->fname="";
}
else
{
//kdDebug() << "Deleting something" << endl;
//kDebug() << "Deleting something" << endl;
QChar const extstr_c = item->fstr.at(0);
uint const id = item->id;
delete []item->mem;
......
......@@ -160,7 +160,7 @@ void XParser::findFunctionName(QString &function_name, int const id, int const t
}
if ( ok) //a free name was found
{
//kdDebug() << "function_name:" << function_name << endl;
//kDebug() << "function_name:" << function_name << endl;
return;
}
ok = true;
......@@ -765,7 +765,7 @@ bool XParser::sendFunction(int id, const QString &dcopclient_target)
}
Ufkt *item = &ufkt[ixValue(id)];
kdDebug() << "Transferring " << item->fname.latin1() << endl;
kDebug() << "Transferring " << item->fname.latin1() << endl;
QString str_result;
if ( dcopclient_target.isEmpty() && item->fname.at(0) == 'y' )
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment