summaryrefslogtreecommitdiffstats
path: root/kmplot/kmplot/kminmax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmplot/kmplot/kminmax.cpp')
-rw-r--r--kmplot/kmplot/kminmax.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kmplot/kmplot/kminmax.cpp b/kmplot/kmplot/kminmax.cpp
index 3f8db2c8..a67d8f9b 100644
--- a/kmplot/kmplot/kminmax.cpp
+++ b/kmplot/kmplot/kminmax.cpp
@@ -36,8 +36,8 @@
#include "kminmax.h"
#include "xparser.h"
-KMinMax::KMinMax(View *v, TQWidget *parent, const char *name)
- : QMinMax(parent, name), m_view(v)
+KMinMax::KMinMax(View *v, TQWidget *tqparent, const char *name)
+ : QMinMax(tqparent, name), m_view(v)
{
m_mode=-1;
connect( cmdClose, TQT_SIGNAL( clicked() ), this, TQT_SLOT( close() ));
@@ -148,7 +148,7 @@ void KMinMax::updateFunctions()
if ( it->f1_mode ) //1st derivative
{
TQString function (it->fstr);
- int i= function.find('(');
+ int i= function.tqfind('(');
function.truncate(i);
function +="\'";
list->insertItem(function );
@@ -156,7 +156,7 @@ void KMinMax::updateFunctions()
if ( it->f2_mode )//2nd derivative
{
TQString function (it->fstr);
- int i= function.find('(');
+ int i= function.tqfind('(');
function.truncate(i);
function +="\'\'";
list->insertItem(function );
@@ -164,7 +164,7 @@ void KMinMax::updateFunctions()
if ( it->integral_mode )//integral
{
TQString function (it->fstr);
- int i= function.find('(');
+ int i= function.tqfind('(');
function.truncate(i);
function = function.upper();
list->insertItem(function );
@@ -177,7 +177,7 @@ void KMinMax::updateFunctions()
else
cmdFind->setEnabled(true);
selectItem();
- TQListBoxItem *found_item = list->findItem(selected_item,Qt::ExactMatch);
+ TQListBoxItem *found_item = list->tqfindItem(selected_item,TQt::ExactMatch);
if ( found_item && m_view->csmode < 0)
list->setSelected(found_item,true);
}
@@ -192,18 +192,18 @@ void KMinMax::selectItem()
TQString function = ufkt->fstr;
if ( m_view->cstype == 2)
{
- int i= function.find('(');
+ int i= function.tqfind('(');
function.truncate(i);
function +="\'\'";
}
else if ( m_view->cstype == 1)
{
- int i= function.find('(');
+ int i= function.tqfind('(');
function.truncate(i);
function +="\'";
}
//kdDebug() << "function: " << function << endl;
- TQListBoxItem *item = list->findItem(function,Qt::ExactMatch);
+ TQListBoxItem *item = list->tqfindItem(function,TQt::ExactMatch);
list->setSelected(item,true);
if ( !ufkt->parameters.isEmpty() )
@@ -248,7 +248,7 @@ void KMinMax::cmdFind_clicked()
if ( dmin<View::xmin || dmax>View::xmax )
{
- KMessageBox::error(this,i18n("Please insert a minimum and maximum range between %1 and %2").arg(View::xmin).arg(View::xmax) );
+ KMessageBox::error(this,i18n("Please insert a minimum and maximum range between %1 and %2").tqarg(View::xmin).tqarg(View::xmax) );
min->setFocus();
min->selectAll();
return;
@@ -258,22 +258,22 @@ void KMinMax::cmdFind_clicked()
TQString function( list->currentText() );
char p_mode = 0;
- if ( function.contains('\'') == 1)
+ if ( function.tqcontains('\'') == 1)
{
p_mode = 1;
- int pos = function.find('\'');
+ int pos = function.tqfind('\'');
function.remove(pos,1);
}
- else if ( function.contains('\'') == 2)
+ else if ( function.tqcontains('\'') == 2)
{
p_mode = 2;
- int pos = function.find('\'');
+ int pos = function.tqfind('\'');
function.remove(pos,2);
}
else if ( function.at(0).category() == TQChar::Letter_Uppercase)
{
p_mode = 3;
- function.at(0) = function.at(0).lower();
+ function.tqat(0) = function.tqat(0).lower();
}
TQString fname, fstr;
@@ -308,13 +308,13 @@ void KMinMax::cmdFind_clicked()
{
m_view->findMinMaxValue(ufkt,p_mode,true,dmin,dmax,parameter);
if ( !m_view->isCalculationStopped() )
- KMessageBox::information(this,i18n("Minimum value:\nx: %1\ny: %2").arg(dmin).arg(dmax) );
+ KMessageBox::information(this,i18n("Minimum value:\nx: %1\ny: %2").tqarg(dmin).tqarg(dmax) );
}
else if ( m_mode == 1)
{
m_view->findMinMaxValue(ufkt,p_mode,false,dmin,dmax,parameter);
if ( !m_view->isCalculationStopped() )
- KMessageBox::information(this,i18n("Maximum value:\nx: %1\ny: %2").arg(dmin).arg(dmax));
+ KMessageBox::information(this,i18n("Maximum value:\nx: %1\ny: %2").tqarg(dmin).tqarg(dmax));
}
else if ( m_mode == 2)
{
@@ -336,7 +336,7 @@ void KMinMax::cmdFind_clicked()
{
m_view->setFocus();
m_view->update();
- KMessageBox::information(this,i18n("The integral in the interval [%1, %2] is:\n%3").arg(dmin_tmp).arg(dmax).arg(dmin));
+ KMessageBox::information(this,i18n("The integral in the interval [%1, %2] is:\n%3").tqarg(dmin_tmp).tqarg(dmax).tqarg(dmin));
}
}
@@ -352,22 +352,22 @@ void KMinMax::list_highlighted(TQListBoxItem* item)
}
TQString function( list->currentText() );
char p_mode = 0;
- if ( function.contains('\'') == 1)
+ if ( function.tqcontains('\'') == 1)
{
p_mode = 1;
- int pos = function.find('\'');
+ int pos = function.tqfind('\'');
function.remove(pos,1);
}
- else if ( function.contains('\'') == 2)
+ else if ( function.tqcontains('\'') == 2)
{
p_mode = 2;
- int pos = function.find('\'');
+ int pos = function.tqfind('\'');
function.remove(pos,2);
}
else if ( function.at(0).category() == TQChar::Letter_Uppercase)
{
p_mode = 3;
- function.at(0) = function.at(0).lower();
+ function.tqat(0) = function.tqat(0).lower();
}
TQString const sec_function = function.section('(',0,0);
for(TQValueVector<Ufkt>::iterator it = m_view->parser()->ufkt.begin(); it!=m_view->parser()->ufkt.end(); ++it)
@@ -390,22 +390,22 @@ void KMinMax::cmdParameter_clicked()
{
TQString function( list->currentText() );
char p_mode = 0;
- if ( function.contains('\'') == 1)
+ if ( function.tqcontains('\'') == 1)
{
p_mode = 1;
- int pos = function.find('\'');
+ int pos = function.tqfind('\'');
function.remove(pos,1);
}
- else if ( function.contains('\'') == 2)
+ else if ( function.tqcontains('\'') == 2)
{
p_mode = 2;
- int pos = function.find('\'');
+ int pos = function.tqfind('\'');
function.remove(pos,2);
}
else if ( function.at(0).category() == TQChar::Letter_Uppercase)
{
p_mode = 3;
- function.at(0) = function.at(0).lower();
+ function.tqat(0) = function.tqat(0).lower();
}
TQString const sec_function = function.section('(',0,0);