"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/splinedlg.h" between
kpl-4.1.tar.gz and kpl-5.0.tar.gz

About: Kpl is a KDE program for two- and three-dimensional graphical presentation (plots) of data sets and functions. Multidimensional nonlinear parameter and general linear least square parameter fits can be performed.

splinedlg.h  (kpl-4.1):splinedlg.h  (kpl-5.0)
/*************************************************************************** /***************************************************************************
splinedlg.h - description splinedlg.h - description
------------------- -------------------
begin : Sun Mar 3 2002 begin : Sun Mar 3 2002
copyright : (C) 2015 by Werner Stille copyright : (C) 2017 by Werner Stille
email : stille@uni-freiburg.de email : kpl@werner-stille.de
***************************************************************************/ ***************************************************************************/
/*************************************************************************** /***************************************************************************
* * * *
* This program is free software; you can redistribute it and/or modify * * This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
***************************************************************************/ ***************************************************************************/
#ifndef SPLINEDLG_H #ifndef SPLINEDLG_H
#define SPLINEDLG_H #define SPLINEDLG_H
#include <KDialog> #include <QDialog>
class QDialogButtonBox;
class QComboBox; class QComboBox;
class KColorButton; class KColorButton;
class BrushButton; class BrushButton;
class DoubleEdit; class DoubleEdit;
class DoubleSpinBox; class DoubleSpinBox;
class KplDoc; class KplDoc;
class SpinBox; class SpinBox;
class SplineItem; class SplineItem;
class SymbolButton; class SymbolButton;
/** /**
* Spline settings dialog class. Provides a dialog for the settings * Spline settings dialog class. Provides a dialog for the settings
* of a smoothing spline. * of a smoothing spline.
* @author Werner Stille * @author Werner Stille
*/ */
class SplineDlg : public KDialog class SplineDlg : public QDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**
* Constructor. * Constructor.
* @param parent pointer to parent widget. * @param parent pointer to parent widget.
* @param model pointer to KplDoc model object. * @param model pointer to KplDoc model object.
* @param fd pointer to spline object. * @param fd pointer to spline object.
* @param pos dialog position. * @param pos dialog position.
*/ */
SplineDlg(QWidget* parent, KplDoc* model, SplineItem* fd, const QPoint& pos); SplineDlg(QWidget* parent, KplDoc* model, SplineItem* fd, const QPoint& pos);
/** Destructor. */ /** Destructor. */
~SplineDlg(); ~SplineDlg();
protected: protected:
/**
* Applies settings.
* @param ok true to close the dialog.
*/
void apply(bool ok = false);
/** Copies settings to temporary spline object. */ /** Copies settings to temporary spline object. */
void getTemp(); void getTemp();
/**
* Reimplemented to display help when key F1 is pressed.
* @param e Key event.
*/
virtual void keyPressEvent(QKeyEvent* e);
KplDoc* m; KplDoc* m;
SplineItem *si, *sit; SplineItem *si, *sit;
QDialogButtonBox* buttonBox;
QComboBox *eDeriv; QComboBox *eDeriv;
BrushButton *fill; BrushButton *fill;
SymbolButton* bSymb; SymbolButton* bSymb;
DoubleEdit *exLow, *exMin, *exMax, *exStep, *efx, *efy; DoubleEdit *exLow, *exMin, *exMax, *exStep, *efx, *efy;
DoubleSpinBox *ex0, *ey0; DoubleSpinBox *ex0, *ey0;
SpinBox *symb, *eRelSize; SpinBox *symb, *eRelSize;
KColorButton* colData; KColorButton* colData;
protected slots: protected slots:
/** Applies settings without leaving the dialog. */ /** Applies settings without leaving the dialog. */
void slotApply(); void slotApply();
/** Reimplemented from KDialog. */ /**
virtual void slotButtonClicked(int button); * Handles button clicks.
* @param button pointer to button.
*/
virtual void slotButtonClicked(QAbstractButton* button);
/** /**
* Enables lower boundary widget for integrals. * Enables lower boundary widget for integrals.
* @param index index of selected derivative box item. * @param index index of selected derivative box item.
*/ */
void slotDerivChanged(int index); void slotDerivChanged(int index);
/** Enables buttons. */ /** Enables buttons. */
void slotEdited(); void slotEdited();
/** Exports to file. */
void slotExport();
/** /**
* Adjusts state of widgets when fill pattern is changed. * Adjusts state of widgets when fill pattern is changed.
* @param brush new pattern number. * @param brush new pattern number.
*/ */
void slotFillChanged(int brush); void slotFillChanged(int brush);
/** Caculates roots. */
void slotRoots();
}; };
#endif #endif
 End of changes. 10 change blocks. 
6 lines changed or deleted 25 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS