From 648ba4a456d3aad2825193ff8f3bd52a875783b5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 04:18:52 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1212481 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmplot/kmplot/FktDlgData.ui | 14 ++--- kmplot/kmplot/MainDlg.cpp | 20 +++---- kmplot/kmplot/MainDlg.h | 8 +-- kmplot/kmplot/Makefile.am | 2 +- kmplot/kmplot/View.cpp | 12 ++--- kmplot/kmplot/View.h | 2 +- kmplot/kmplot/diagr.cpp | 6 +-- kmplot/kmplot/editderivativespage.ui | 6 +-- kmplot/kmplot/editfunction.cpp | 2 +- kmplot/kmplot/editfunctionpage.ui | 98 +++++++++++++++++----------------- kmplot/kmplot/editintegralpage.ui | 6 +-- kmplot/kmplot/kconstanteditor.cpp | 2 +- kmplot/kmplot/keditparametric.cpp | 2 +- kmplot/kmplot/kminmax.cpp | 12 ++--- kmplot/kmplot/kmplot.cpp | 2 +- kmplot/kmplot/kprinterdlg.cpp | 12 ++--- kmplot/kmplot/parser.cpp | 6 +-- kmplot/kmplot/parser.h | 4 +- kmplot/kmplot/qconstanteditor.ui | 6 +-- kmplot/kmplot/qeditconstant.ui | 8 +-- kmplot/kmplot/qeditparametric.ui | 12 ++--- kmplot/kmplot/qeditpolar.ui | 6 +-- kmplot/kmplot/qminmax.ui | 8 +-- kmplot/kmplot/qparametereditor.ui | 8 +-- kmplot/kmplot/settingspagecolor.ui | 18 +++---- kmplot/kmplot/settingspagecoords.ui | 24 ++++----- kmplot/kmplot/settingspagefonts.ui | 6 +-- kmplot/kmplot/settingspageprecision.ui | 10 ++-- kmplot/kmplot/settingspagescaling.ui | 8 +-- kmplot/kmplot/sliderwindow.ui | 10 ++-- kmplot/kmplot/xparser.cpp | 2 +- 31 files changed, 171 insertions(+), 171 deletions(-) (limited to 'kmplot') diff --git a/kmplot/kmplot/FktDlgData.ui b/kmplot/kmplot/FktDlgData.ui index 7624f2de..9678e889 100644 --- a/kmplot/kmplot/FktDlgData.ui +++ b/kmplot/kmplot/FktDlgData.ui @@ -4,7 +4,7 @@ FktDlgData - + 0 0 @@ -12,7 +12,7 @@ 355 - + 350 250 @@ -33,7 +33,7 @@ - tqlayout3 + layout3 @@ -57,7 +57,7 @@ Expanding - + 20 20 @@ -262,7 +262,7 @@ Expanding - + 20 20 @@ -329,7 +329,7 @@ Expanding - + 20 20 @@ -417,7 +417,7 @@ slotHelp() slotNewPrime() - + klistview.h diff --git a/kmplot/kmplot/MainDlg.cpp b/kmplot/kmplot/MainDlg.cpp index 83a09080..e8916f93 100644 --- a/kmplot/kmplot/MainDlg.cpp +++ b/kmplot/kmplot/MainDlg.cpp @@ -63,13 +63,13 @@ class KmPlotIO; bool MainDlg::oldfileversion; -MainDlg::MainDlg(TQWidget *tqparentWidget, const char *, TQObject *parent, const char *name) : DCOPObject( "MainDlg" ), KParts::ReadOnlyPart( parent, name ), m_recentFiles( 0 ), m_modified(false), m_parent(tqparentWidget) +MainDlg::MainDlg(TQWidget *parentWidget, const char *, TQObject *parent, const char *name) : DCOPObject( "MainDlg" ), KParts::ReadOnlyPart( parent, name ), m_recentFiles( 0 ), m_modified(false), m_parent(parentWidget) { // we need an instance setInstance( KmPlotPartFactory::instance() ); - kdDebug() << "tqparentWidget->name():" << tqparentWidget->name() << endl; - if ( TQString(tqparentWidget->name()).startsWith("KmPlot") ) + kdDebug() << "parentWidget->name():" << parentWidget->name() << endl; + if ( TQString(parentWidget->name()).startsWith("KmPlot") ) { setXMLFile("kmplot_part.rc"); m_readonly = false; @@ -82,14 +82,14 @@ MainDlg::MainDlg(TQWidget *tqparentWidget, const char *, TQObject *parent, const } fdlg = 0; coordsDialog = 0; - m_popupmenu = new KPopupMenu(tqparentWidget); - view = new View( m_readonly, m_modified, m_popupmenu, tqparentWidget ); + m_popupmenu = new KPopupMenu(parentWidget); + view = new View( m_readonly, m_modified, m_popupmenu, parentWidget ); connect( view, TQT_SIGNAL( setStatusBarText(const TQString &)), this, TQT_SLOT( setReadOnlyStatusBarText(const TQString &) ) ); setWidget( view ); view->setFocusPolicy(TQWidget::ClickFocus); minmaxdlg = new KMinMax(view, m_parent); view->setMinMaxDlg(minmaxdlg); - m_quickEdit = new KLineEdit( tqparentWidget ); + m_quickEdit = new KLineEdit( parentWidget ); m_quickEdit->setFocus(); TQToolTip::add( m_quickEdit, i18n( "Enter a function equation, for example: f(x)=x^2" ) ); setupActions(); @@ -99,7 +99,7 @@ MainDlg::MainDlg(TQWidget *tqparentWidget, const char *, TQObject *parent, const m_recentFiles->loadEntries( m_config ); // Let's create a Configure Diloag - m_settingsDialog = new KConfigDialog( tqparentWidget, "settings", Settings::self() ); + m_settingsDialog = new KConfigDialog( parentWidget, "settings", Settings::self() ); m_settingsDialog->setHelp("general-config"); // create and add the page(s) @@ -538,7 +538,7 @@ void MainDlg::slotQuickEdit(const TQString& f_str_const ) KMessageBox::error( m_parent, i18n("Parametric functions must be definied in the \"New Parametric Plot\"-dialog which you can find in the menubar")); return; } - if ( f_str.tqcontains('y') != 0) + if ( f_str.contains('y') != 0) { KMessageBox::error( m_parent, i18n( "Recursive function is not allowed")); m_quickEdit->setFocus(); @@ -785,12 +785,12 @@ KmPlotPartFactory::~KmPlotPartFactory() s_instance = 0L; } -KParts::Part* KmPlotPartFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, +KParts::Part* KmPlotPartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *, const TQStringList & ) { // Create an instance of our Part - MainDlg* obj = new MainDlg( tqparentWidget, widgetName, parent, name ); + MainDlg* obj = new MainDlg( parentWidget, widgetName, parent, name ); emit objectCreated( obj ); return obj; } diff --git a/kmplot/kmplot/MainDlg.h b/kmplot/kmplot/MainDlg.h index 69520f2a..7b4d83bf 100644 --- a/kmplot/kmplot/MainDlg.h +++ b/kmplot/kmplot/MainDlg.h @@ -64,7 +64,7 @@ class BrowserExtension; /** @short This is the main window of KmPlot. * - * Its central widget view tqcontains the parser, accessable via its parser() function. + * Its central widget view contains the parser, accessable via its parser() function. * @see View, View::m_parser, View::parser */ class MainDlg : public KParts::ReadOnlyPart, virtual public MainDlgIface @@ -73,11 +73,11 @@ class MainDlg : public KParts::ReadOnlyPart, virtual public MainDlgIface public: /** Constuctor. - * @param tqparentWidget parent widget for this part + * @param parentWidget parent widget for this part * @param parent parent object * @param name name of this dialog */ - MainDlg(TQWidget *tqparentWidget, const char *, TQObject *parent, const char *name); + MainDlg(TQWidget *parentWidget, const char *, TQObject *parent, const char *name); /// Cleaning up a bit. virtual ~MainDlg(); /// This class needs access to private members, too. @@ -219,7 +219,7 @@ class KmPlotPartFactory : public KParts::Factory public: KmPlotPartFactory(); virtual ~KmPlotPartFactory(); - virtual KParts::Part* createPartObject( TQWidget *tqparentWidget, const char *widgetName, + virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *classname, const TQStringList &args ); static KInstance* instance(); diff --git a/kmplot/kmplot/Makefile.am b/kmplot/kmplot/Makefile.am index 27b903a4..f5158dc9 100644 --- a/kmplot/kmplot/Makefile.am +++ b/kmplot/kmplot/Makefile.am @@ -45,7 +45,7 @@ kde_module_LTLIBRARIES = libkmplotpart.la # the Part's source, library search path, and link libraries libkmplotpart_la_SOURCES = FktDlgData.ui parser.cpp xparser.cpp diagr.cpp View.cpp MainDlg.cpp FktDlg.cpp kprinterdlg.cpp settings.kcfgc settingspagecolor.ui kconstanteditor.cpp qparametereditor.ui kparametereditor.cpp settingspagecoords.ui settingspagefonts.ui settingspagescaling.ui settingspageprecision.ui qeditparametric.ui keditparametric.cpp qeditpolar.ui keditpolar.cpp editfunctionpage.ui editderivativespage.ui editintegralpage.ui editfunction.cpp qeditconstant.ui qminmax.ui kminmax.cpp qconstanteditor.ui keditconstant.cpp kmplotio.cpp sliderwindow.ui ksliderwindow.cpp MainDlgIface.skel parseriface.skel Viewiface.skel coordsconfigdialog.cpp libkmplotpart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) -libkmplotpart_la_LIBADD = $(LIB_KFILE) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) $(LIBSOCKET) $(LIB_KDEPRINT) -lDCOP $(LIB_KPARTS) +libkmplotpart_la_LIBADD = $(LIB_KFILE) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) $(LIBSOCKET) $(LIB_KDEPRINT) # this is where the desktop file will go partdesktopdir = $(kde_servicesdir) diff --git a/kmplot/kmplot/View.cpp b/kmplot/kmplot/View.cpp index e0b3ac5e..0d45fd2c 100644 --- a/kmplot/kmplot/View.cpp +++ b/kmplot/kmplot/View.cpp @@ -140,7 +140,7 @@ void View::draw(TQPaintDevice *dev, int form) DC.resetXForm(); DC.scale((float)w/(float)(lx+2*ref.x()), (float)w/(float)(lx+2*ref.x())); } - wm=DC.tqworldMatrix(); + wm=DC.worldMatrix(); s=DC.xForm(TQPoint(1000, 0)).x()/1000.; dgr.Create( ref, lx, ly, xmin, xmax, ymin, ymax ); } @@ -531,7 +531,7 @@ void View::setpi(TQString *s) int i; TQChar c(960); - while((i=s->find('p')) != -1) s->tqreplace(i, 2, &c, 1); + while((i=s->find('p')) != -1) s->replace(i, 2, &c, 1); } @@ -639,7 +639,7 @@ void View::mouseMoveEvent(TQMouseEvent *e) csflg=0; } - if(area.tqcontains(e->pos()) || (e->button()==Qt::LeftButton && e->state()==Qt::LeftButton && csxpos>xmin && csxpospos()) || (e->button()==Qt::LeftButton && e->state()==Qt::LeftButton && csxpos>xmin && csxpossetParameter( sw->slider->value() ); } - if ( function_type=='x' && fabs(csxpos-m_parser->fkt(it, csxpos))< g && it->fstr.tqcontains('t')==1) //parametric plot + if ( function_type=='x' && fabs(csxpos-m_parser->fkt(it, csxpos))< g && it->fstr.contains('t')==1) //parametric plot { TQValueVector::iterator ufkt_y = it+1; - if ( fabs(csypos-m_parser->fkt(ufkt_y, csxpos)fstr.tqcontains('t')==1) + if ( fabs(csypos-m_parser->fkt(ufkt_y, csxpos)fstr.contains('t')==1) { if ( csmode == -1) { @@ -1681,7 +1681,7 @@ void View::areaUnderGraph( Ufkt *ufkt, char const p_mode, double &dmin, double else forward_direction = true; - int intervals = tqRound((dmax-dmin)/dx); + int intervals = qRound((dmax-dmin)/dx); int at = 0; while ((at<=intervals) || (p_mode == 3 && x>=dmin && !forward_direction) || (p_mode == 3 && x<=dmax && forward_direction)) diff --git a/kmplot/kmplot/View.h b/kmplot/kmplot/View.h index 63785656..a28aadbc 100644 --- a/kmplot/kmplot/View.h +++ b/kmplot/kmplot/View.h @@ -59,7 +59,7 @@ enum ZoomMode }; /** - * @short This class tqcontains the plots. + * @short This class contains the plots. * * It is the central widget of MainDlg. * @see MainDlg, MainDlg::view diff --git a/kmplot/kmplot/diagr.cpp b/kmplot/kmplot/diagr.cpp index 8f03961a..ba65fce8 100644 --- a/kmplot/kmplot/diagr.cpp +++ b/kmplot/kmplot/diagr.cpp @@ -45,9 +45,9 @@ int isinf(double x) CDiagr::CDiagr() { - frameColor=tqRgb(0, 0, 0); - axesColor=tqRgb(0, 0, 0); - gridColor=tqRgb(192, 192, 192); + frameColor=qRgb(0, 0, 0); + axesColor=qRgb(0, 0, 0); + gridColor=qRgb(192, 192, 192); borderThickness=2; axesLineWidth = Settings::axesLineWidth(); gridLineWidth = Settings::gridLineWidth(); diff --git a/kmplot/kmplot/editderivativespage.ui b/kmplot/kmplot/editderivativespage.ui index 7e257f93..a6a88b78 100644 --- a/kmplot/kmplot/editderivativespage.ui +++ b/kmplot/kmplot/editderivativespage.ui @@ -4,7 +4,7 @@ EditDerivativesPage - + 0 0 @@ -217,7 +217,7 @@ Expanding - + 20 110 @@ -268,7 +268,7 @@ lineWidthDerivative2 colorDerivative2 - + knuminput.h knuminput.h diff --git a/kmplot/kmplot/editfunction.cpp b/kmplot/kmplot/editfunction.cpp index 8100d742..2d75cc49 100644 --- a/kmplot/kmplot/editfunction.cpp +++ b/kmplot/kmplot/editfunction.cpp @@ -296,7 +296,7 @@ void EditFunction::accept() tmp_ufkt.f2_linewidth = editderivativespage->lineWidthDerivative2->value(); tmp_ufkt.f2_color = editderivativespage->colorDerivative2->color().rgb(); - if ( f_str.tqcontains('y') != 0 && ( tmp_ufkt.f_mode || tmp_ufkt.f1_mode || tmp_ufkt.f2_mode) ) + if ( f_str.contains('y') != 0 && ( tmp_ufkt.f_mode || tmp_ufkt.f1_mode || tmp_ufkt.f2_mode) ) { KMessageBox::error( this, i18n( "Recursive function is only allowed when drawing integral graphs") ); return; diff --git a/kmplot/kmplot/editfunctionpage.ui b/kmplot/kmplot/editfunctionpage.ui index 6b8ff03f..31d9bd28 100644 --- a/kmplot/kmplot/editfunctionpage.ui +++ b/kmplot/kmplot/editfunctionpage.ui @@ -7,7 +7,7 @@ true - + 0 0 @@ -366,7 +366,7 @@ Example: f(x)=x^2 Expanding - + 20 20 @@ -418,14 +418,14 @@ Example: f(x)=x^2 update() update(int,int,int,int) update(const QRect&) - tqrepaint() - tqrepaint(bool) - tqrepaint(int,int,int,int) - tqrepaint(int,int,int,int,bool) - tqrepaint(const QRect&) - tqrepaint(const QRect&,bool) - tqrepaint(const QRegion&) - tqrepaint(const QRegion&,bool) + repaint() + repaint(bool) + repaint(int,int,int,int) + repaint(int,int,int,int,bool) + repaint(const QRect&) + repaint(const QRect&,bool) + repaint(const QRegion&) + repaint(const QRegion&,bool) show() hide() setShown(bool) @@ -466,7 +466,7 @@ Example: f(x)=x^2 setPalette(const QPalette&) setSelection(int,int) setCursorPosition(int) - tqsetAlignment(int) + setAlignment(int) cut() copy() paste() @@ -490,10 +490,10 @@ Example: f(x)=x^2 setTextWorkaround(const QString&) name enabled - tqgeometry + geometry sizePolicy - tqminimumSize - tqmaximumSize + minimumSize + maximumSize sizeIncrement baseSize paletteForegroundColor @@ -519,7 +519,7 @@ Example: f(x)=x^2 frame echoMode cursorPosition - tqalignment + alignment dragEnabled readOnly inputMask @@ -565,14 +565,14 @@ Example: f(x)=x^2 update() update(int,int,int,int) update(const QRect&) - tqrepaint() - tqrepaint(bool) - tqrepaint(int,int,int,int) - tqrepaint(int,int,int,int,bool) - tqrepaint(const QRect&) - tqrepaint(const QRect&,bool) - tqrepaint(const QRegion&) - tqrepaint(const QRegion&,bool) + repaint() + repaint(bool) + repaint(int,int,int,int) + repaint(int,int,int,int,bool) + repaint(const QRect&) + repaint(const QRect&,bool) + repaint(const QRegion&) + repaint(const QRegion&,bool) show() hide() setShown(bool) @@ -606,10 +606,10 @@ Example: f(x)=x^2 chooseColor() name enabled - tqgeometry + geometry sizePolicy - tqminimumSize - tqmaximumSize + minimumSize + maximumSize sizeIncrement baseSize paletteForegroundColor @@ -671,14 +671,14 @@ Example: f(x)=x^2 update() update(int,int,int,int) update(const QRect&) - tqrepaint() - tqrepaint(bool) - tqrepaint(int,int,int,int) - tqrepaint(int,int,int,int,bool) - tqrepaint(const QRect&) - tqrepaint(const QRect&,bool) - tqrepaint(const QRegion&) - tqrepaint(const QRegion&,bool) + repaint() + repaint(bool) + repaint(int,int,int,int) + repaint(int,int,int,int,bool) + repaint(const QRect&) + repaint(const QRect&,bool) + repaint(const QRegion&) + repaint(const QRegion&,bool) show() hide() setShown(bool) @@ -713,10 +713,10 @@ Example: f(x)=x^2 slotEmitRelativeValueChanged(int) name enabled - tqgeometry + geometry sizePolicy - tqminimumSize - tqmaximumSize + minimumSize + maximumSize sizeIncrement baseSize paletteForegroundColor @@ -777,14 +777,14 @@ Example: f(x)=x^2 update() update(int,int,int,int) update(const QRect&) - tqrepaint() - tqrepaint(bool) - tqrepaint(int,int,int,int) - tqrepaint(int,int,int,int,bool) - tqrepaint(const QRect&) - tqrepaint(const QRect&,bool) - tqrepaint(const QRegion&) - tqrepaint(const QRegion&,bool) + repaint() + repaint(bool) + repaint(int,int,int,int) + repaint(int,int,int,int,bool) + repaint(const QRect&) + repaint(const QRect&,bool) + repaint(const QRegion&) + repaint(const QRegion&,bool) show() hide() setShown(bool) @@ -818,10 +818,10 @@ Example: f(x)=x^2 slotSettingsChanged(int) name enabled - tqgeometry + geometry sizePolicy - tqminimumSize - tqmaximumSize + minimumSize + maximumSize sizeIncrement baseSize paletteForegroundColor @@ -897,7 +897,7 @@ Example: f(x)=x^2 slotHelp() customRange_toggled( bool ) - + klineedit.h kpushbutton.h diff --git a/kmplot/kmplot/editintegralpage.ui b/kmplot/kmplot/editintegralpage.ui index 3a8be1cf..5180a8d2 100644 --- a/kmplot/kmplot/editintegralpage.ui +++ b/kmplot/kmplot/editintegralpage.ui @@ -4,7 +4,7 @@ EditIntegralPage - + 0 0 @@ -229,7 +229,7 @@ Expanding - + 20 62 @@ -281,7 +281,7 @@ lineWidth color - + knuminput.h diff --git a/kmplot/kmplot/kconstanteditor.cpp b/kmplot/kmplot/kconstanteditor.cpp index dbcd3c18..c2017c8a 100644 --- a/kmplot/kmplot/kconstanteditor.cpp +++ b/kmplot/kmplot/kconstanteditor.cpp @@ -199,7 +199,7 @@ void KConstantEditor::editConstantSlot() int index = 0; for( TQValueVector::iterator it = m_view->parser()->ufkt.begin(); it != m_view->parser()->ufkt.end(); ++it) { - if( it->fstr.tqcontains(constant)!=0 ) + if( it->fstr.contains(constant)!=0 ) m_view->parser()->reparse(index); //reparsing the function ++index; } diff --git a/kmplot/kmplot/keditparametric.cpp b/kmplot/kmplot/keditparametric.cpp index 4136a8f8..67ee0421 100644 --- a/kmplot/kmplot/keditparametric.cpp +++ b/kmplot/kmplot/keditparametric.cpp @@ -103,7 +103,7 @@ void KEditParametric::setWidgets() void KEditParametric::accept() { - if ( kLineEditXFunction->text().tqcontains('y') != 0 || kLineEditYFunction->text().tqcontains('y') != 0) + if ( kLineEditXFunction->text().contains('y') != 0 || kLineEditYFunction->text().contains('y') != 0) { KMessageBox::error( this, i18n( "Recursive function not allowed")); kLineEditXFunction->setFocus(); diff --git a/kmplot/kmplot/kminmax.cpp b/kmplot/kmplot/kminmax.cpp index 659710d9..3f8db2c8 100644 --- a/kmplot/kmplot/kminmax.cpp +++ b/kmplot/kmplot/kminmax.cpp @@ -258,13 +258,13 @@ void KMinMax::cmdFind_clicked() TQString function( list->currentText() ); char p_mode = 0; - if ( function.tqcontains('\'') == 1) + if ( function.contains('\'') == 1) { p_mode = 1; int pos = function.find('\''); function.remove(pos,1); } - else if ( function.tqcontains('\'') == 2) + else if ( function.contains('\'') == 2) { p_mode = 2; int pos = function.find('\''); @@ -352,13 +352,13 @@ void KMinMax::list_highlighted(TQListBoxItem* item) } TQString function( list->currentText() ); char p_mode = 0; - if ( function.tqcontains('\'') == 1) + if ( function.contains('\'') == 1) { p_mode = 1; int pos = function.find('\''); function.remove(pos,1); } - else if ( function.tqcontains('\'') == 2) + else if ( function.contains('\'') == 2) { p_mode = 2; int pos = function.find('\''); @@ -390,13 +390,13 @@ void KMinMax::cmdParameter_clicked() { TQString function( list->currentText() ); char p_mode = 0; - if ( function.tqcontains('\'') == 1) + if ( function.contains('\'') == 1) { p_mode = 1; int pos = function.find('\''); function.remove(pos,1); } - else if ( function.tqcontains('\'') == 2) + else if ( function.contains('\'') == 2) { p_mode = 2; int pos = function.find('\''); diff --git a/kmplot/kmplot/kmplot.cpp b/kmplot/kmplot/kmplot.cpp index 8cc03beb..e6f71013 100644 --- a/kmplot/kmplot/kmplot.cpp +++ b/kmplot/kmplot/kmplot.cpp @@ -82,7 +82,7 @@ KmPlot::KmPlot( KCmdLineArgs* args) } if (!initialGeometrySet()) - resize( TQSize(450, 520).expandedTo(tqminimumSizeHint())); + resize( TQSize(450, 520).expandedTo(minimumSizeHint())); // apply the saved mainwindow settings, if any, and ask the mainwindow // to automatically save settings if changed: window size, toolbar diff --git a/kmplot/kmplot/kprinterdlg.cpp b/kmplot/kmplot/kprinterdlg.cpp index 91036668..aa74a7b5 100644 --- a/kmplot/kmplot/kprinterdlg.cpp +++ b/kmplot/kmplot/kprinterdlg.cpp @@ -37,16 +37,16 @@ KPrinterDlg::KPrinterDlg( TQWidget *parent, const char *name ) : KPrintDialogPage( parent, name ) { setTitle( i18n( "KmPlot Options" ) ); - TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); - tqlayout->setMargin( KDialog::marginHint() ); - tqlayout->setSpacing( KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout( this ); + layout->setMargin( KDialog::marginHint() ); + layout->setSpacing( KDialog::spacingHint() ); printHeaderTable = new TQCheckBox( i18n( "Print header table" ), this ); transparent_background = new TQCheckBox( i18n( "Transparent background" ), this ); - tqlayout->addWidget( printHeaderTable ); - tqlayout->addWidget( transparent_background ); - tqlayout->addStretch( 1 ); + layout->addWidget( printHeaderTable ); + layout->addWidget( transparent_background ); + layout->addStretch( 1 ); } void KPrinterDlg::getOptions( TQMap& opts, bool include_def ) diff --git a/kmplot/kmplot/parser.cpp b/kmplot/kmplot/parser.cpp index efa391ac..ed064b85 100644 --- a/kmplot/kmplot/parser.cpp +++ b/kmplot/kmplot/parser.cpp @@ -190,7 +190,7 @@ double Parser::eval(TQString str) fix_expression(str,0); - if ( str.tqcontains('y')!=0) + if ( str.contains('y')!=0) { err=9; delete []stack; @@ -520,7 +520,7 @@ void Parser::fix_expression(TQString &str, int const pos) } } TQString str_end = str.mid(pos); - str_end = str_end.tqreplace(m_decimalsymbol, "."); //tqreplace the locale decimal symbol with a '.' + 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; @@ -1006,7 +1006,7 @@ int Parser::parserError(bool showMessageBox) TQString Parser::number( double value ) { TQString str = TQString::number( value, 'g', 6 ); - str.tqreplace( 'e', "*10^" ); + str.replace( 'e', "*10^" ); // kDebug() << "returning str="< recursive function call * \li 10 => didn't found the wanted constant * \li 11 => emtpy function - * \li 12 => function name tqcontains a capital letter + * \li 12 => function name contains a capital letter * \li 13 => function could not be found * \li 14 => evalation expression may not use user definded constants */ @@ -254,7 +254,7 @@ private: /// Position where the error occurred. int errpos; - void fix_expression(TQString &, int const); ///adding extra *-characters, remove spaces and tqreplace the locale .-character with '.' + void fix_expression(TQString &, int const); ///adding extra *-characters, remove spaces and replace the locale .-character with '.' void ps_init(), heir1(), diff --git a/kmplot/kmplot/qconstanteditor.ui b/kmplot/kmplot/qconstanteditor.ui index a0139aa0..92baf7e5 100644 --- a/kmplot/kmplot/qconstanteditor.ui +++ b/kmplot/kmplot/qconstanteditor.ui @@ -4,7 +4,7 @@ QConstantEditor - + 0 0 @@ -133,7 +133,7 @@ Expanding - + 20 147 @@ -193,7 +193,7 @@ newNewConstantSlot() varlist_doubleClicked( QListViewItem * ) - + klistview.h diff --git a/kmplot/kmplot/qeditconstant.ui b/kmplot/kmplot/qeditconstant.ui index 301a1c46..1d9bdb0a 100644 --- a/kmplot/kmplot/qeditconstant.ui +++ b/kmplot/kmplot/qeditconstant.ui @@ -4,7 +4,7 @@ QEditConstant - + 0 0 @@ -40,7 +40,7 @@ - tqlayout1 + layout1 @@ -67,7 +67,7 @@ Expanding - + 71 20 @@ -131,7 +131,7 @@ txtVariable_lostFocus() - + klineedit.h klineedit.h diff --git a/kmplot/kmplot/qeditparametric.ui b/kmplot/kmplot/qeditparametric.ui index d66f7c75..b41573ab 100644 --- a/kmplot/kmplot/qeditparametric.ui +++ b/kmplot/kmplot/qeditparametric.ui @@ -4,7 +4,7 @@ QEditParametric - + 0 0 @@ -48,7 +48,7 @@ Name: - + AlignVCenter|AlignRight @@ -93,7 +93,7 @@ The name of a function must be unique. If you leave this line empty KmPlot will - tqlayout9 + layout9 @@ -156,7 +156,7 @@ Example: sin(t) - tqlayout8 + layout8 @@ -340,7 +340,7 @@ Example: sin(t) Expanding - + 20 20 @@ -531,7 +531,7 @@ Example: sin(t) slotHelp() - + klineedit.h klineedit.h diff --git a/kmplot/kmplot/qeditpolar.ui b/kmplot/kmplot/qeditpolar.ui index 9d3d5522..e61c5c6d 100644 --- a/kmplot/kmplot/qeditpolar.ui +++ b/kmplot/kmplot/qeditpolar.ui @@ -4,7 +4,7 @@ QEditPolar - + 0 0 @@ -218,7 +218,7 @@ Example: loop(angle)=ln(angle) Expanding - + 20 20 @@ -395,7 +395,7 @@ Example: loop(angle)=ln(angle) slotHelp() - + klineedit.h kcolorbutton.h diff --git a/kmplot/kmplot/qminmax.ui b/kmplot/kmplot/qminmax.ui index 338d641a..d828cbd6 100644 --- a/kmplot/kmplot/qminmax.ui +++ b/kmplot/kmplot/qminmax.ui @@ -4,7 +4,7 @@ QMinMax - + 0 0 @@ -51,7 +51,7 @@ Search between the x-value: - + AlignCenter @@ -62,7 +62,7 @@ and: - + AlignCenter @@ -138,5 +138,5 @@ - + diff --git a/kmplot/kmplot/qparametereditor.ui b/kmplot/kmplot/qparametereditor.ui index 779d1393..619f4fd7 100644 --- a/kmplot/kmplot/qparametereditor.ui +++ b/kmplot/kmplot/qparametereditor.ui @@ -4,7 +4,7 @@ QParameterEditor - + 0 0 @@ -119,7 +119,7 @@ Expanding - + 20 80 @@ -153,7 +153,7 @@ Expanding - + 20 21 @@ -181,5 +181,5 @@ - + diff --git a/kmplot/kmplot/settingspagecolor.ui b/kmplot/kmplot/settingspagecolor.ui index a883f1ae..e8e85323 100644 --- a/kmplot/kmplot/settingspagecolor.ui +++ b/kmplot/kmplot/settingspagecolor.ui @@ -4,7 +4,7 @@ SettingsPageColor - + 0 0 @@ -33,7 +33,7 @@ - tqlayout2 + layout2 @@ -101,7 +101,7 @@ Expanding - + 20 40 @@ -123,7 +123,7 @@ - tqlayout19 + layout19 @@ -131,7 +131,7 @@ - tqlayout16 + layout16 @@ -274,7 +274,7 @@ Expanding - + 20 20 @@ -283,7 +283,7 @@ - tqlayout17 + layout17 @@ -428,7 +428,7 @@ Expanding - + 20 40 @@ -455,5 +455,5 @@ kcfg_Color8 kcfg_Color9 - + diff --git a/kmplot/kmplot/settingspagecoords.ui b/kmplot/kmplot/settingspagecoords.ui index 7e2a8274..cf2826b3 100644 --- a/kmplot/kmplot/settingspagecoords.ui +++ b/kmplot/kmplot/settingspagecoords.ui @@ -4,7 +4,7 @@ SettingsPageCoords - + 0 0 @@ -33,7 +33,7 @@ - tqlayout23 + layout23 @@ -131,7 +131,7 @@ - tqlayout20 + layout20 @@ -277,7 +277,7 @@ - tqlayout20_2 + layout20_2 @@ -335,7 +335,7 @@ - tqlayout24 + layout24 @@ -375,7 +375,7 @@ - tqlayout25 + layout25 @@ -415,7 +415,7 @@ - tqlayout26 + layout26 @@ -458,7 +458,7 @@ - tqlayout22 + layout22 @@ -544,7 +544,7 @@ Expanding - + 20 30 @@ -626,7 +626,7 @@ - tqlayout24 + layout24 @@ -677,7 +677,7 @@ Expanding - + 20 40 @@ -751,7 +751,7 @@ radioButton14 kcfg_GridLineWidth - + klineedit.h klineedit.h diff --git a/kmplot/kmplot/settingspagefonts.ui b/kmplot/kmplot/settingspagefonts.ui index 10c6b80a..e5f80ccd 100644 --- a/kmplot/kmplot/settingspagefonts.ui +++ b/kmplot/kmplot/settingspagefonts.ui @@ -4,7 +4,7 @@ SettingsPageFonts - + 0 0 @@ -26,7 +26,7 @@ Expanding - + 20 110 @@ -119,7 +119,7 @@ - + kfontcombo.h knuminput.h diff --git a/kmplot/kmplot/settingspageprecision.ui b/kmplot/kmplot/settingspageprecision.ui index a3711c76..25f732ce 100644 --- a/kmplot/kmplot/settingspageprecision.ui +++ b/kmplot/kmplot/settingspageprecision.ui @@ -4,7 +4,7 @@ SettingsPagePrecision - + 0 0 @@ -26,7 +26,7 @@ Expanding - + 20 29 @@ -149,7 +149,7 @@ Expanding - + 81 20 @@ -212,7 +212,7 @@ - tqlayout1 + layout1 @@ -268,7 +268,7 @@ - + knuminput.h knuminput.h diff --git a/kmplot/kmplot/settingspagescaling.ui b/kmplot/kmplot/settingspagescaling.ui index f004b5ac..222359ba 100644 --- a/kmplot/kmplot/settingspagescaling.ui +++ b/kmplot/kmplot/settingspagescaling.ui @@ -4,7 +4,7 @@ SettingsPageScaling - + 0 0 @@ -18,7 +18,7 @@ - tqlayout35 + layout35 @@ -396,7 +396,7 @@ Expanding - + 21 91 @@ -411,5 +411,5 @@ kcfg_YScaling kcfg_YPrinting - + diff --git a/kmplot/kmplot/sliderwindow.ui b/kmplot/kmplot/sliderwindow.ui index daf21345..deff716a 100644 --- a/kmplot/kmplot/sliderwindow.ui +++ b/kmplot/kmplot/sliderwindow.ui @@ -4,7 +4,7 @@ SliderWindow - + 0 0 @@ -23,7 +23,7 @@ slider - + 200 0 @@ -60,7 +60,7 @@ 0 - + 45 0 @@ -69,7 +69,7 @@ 0 - + AlignVCenter|AlignRight @@ -83,5 +83,5 @@ setNum(int) - + diff --git a/kmplot/kmplot/xparser.cpp b/kmplot/kmplot/xparser.cpp index 7d34e58f..18d9a3b3 100644 --- a/kmplot/kmplot/xparser.cpp +++ b/kmplot/kmplot/xparser.cpp @@ -648,7 +648,7 @@ int XParser::addFunction(const TQString &f_str) fixFunctionName(added_function); if ( added_function.at(0)== 'x' || added_function.at(0)== 'y') //TODO: Make it possible to define parametric functions return -1; - if ( added_function.tqcontains('y') != 0) + if ( added_function.contains('y') != 0) return -1; int const id = addfkt( added_function ); if (id==-1) -- cgit v1.2.3