"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/funcdlg.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.

funcdlg.h  (kpl-4.1):funcdlg.h  (kpl-5.0)
/*************************************************************************** /***************************************************************************
funcdlg.h - description funcdlg.h - description
------------------- -------------------
This file is a part of kpl - a program for graphical presentation of This file is a part of kpl - a program for graphical presentation of
data sets and functions. data sets and functions.
begin : Sun Apr 25 1999 begin : Sun Apr 25 1999
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 FUNCDLG_H #ifndef FUNCDLG_H
#define FUNCDLG_H #define FUNCDLG_H
#include <KDialog> #include <QDialog>
class QDialogButtonBox;
class QLineEdit; class QLineEdit;
class KColorButton; class KColorButton;
class KUrlRequester; class KUrlRequester;
class BrushButton; class BrushButton;
class DoubleEdit; class DoubleEdit;
class DoubleSpinBox; class DoubleSpinBox;
class FunItem; class FunItem;
class KplDoc; class KplDoc;
class ParFunItem; class ParFunItem;
class SpinBox; class SpinBox;
class SymbolButton; class SymbolButton;
/** /**
* Function settings dialog class. Provides a dialog for the settings * Function settings dialog class. Provides a dialog for the settings
* of an ordinary function. * of an ordinary function.
* @author Werner Stille * @author Werner Stille
*/ */
class FuncDlg : public KDialog class FuncDlg : 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 fi pointer to function object. * @param fi pointer to function object.
* @param pos dialog position. * @param pos dialog position.
*/ */
FuncDlg(QWidget* parent, KplDoc* model, FunItem* fi, const QPoint& pos); FuncDlg(QWidget* parent, KplDoc* model, FunItem* fi, const QPoint& pos);
/** Destructor. */ /** Destructor. */
~FuncDlg(); ~FuncDlg();
/**
* Opens a function selection dialog.
* @param parent parent widget.
* @param name URL of the library.
* @param func QLineEdit widget to display the function name.
*/
static void getFunc(QWidget* parent, const KUrl& url, QLineEdit* func);
protected: protected:
/** /**
* Applies settings.
* @param ok true to close the dialog.
*/
void apply(bool ok = false);
/**
* Copies settings to temporary function object. * Copies settings to temporary function object.
* @return false for error. * @return false for error.
*/ */
bool getTemp(); bool getTemp();
/**
* Reimplemented to display help when key F1 is pressed.
* @param e Key event.
*/
virtual void keyPressEvent(QKeyEvent* e);
KplDoc* m; KplDoc* m;
FunItem *fi, *fit; FunItem *fi, *fit;
KUrlRequester* fileName; KUrlRequester* fileName;
QLineEdit* func; QLineEdit* func;
QDialogButtonBox* buttonBox;
BrushButton* fill; BrushButton* fill;
SymbolButton* bSymb; SymbolButton* bSymb;
DoubleEdit *exMin, *exMax, *exStep, *efx, *efy; DoubleEdit *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. */ /** Reimplemented from QDialog. */
virtual void slotButtonClicked(int button); virtual void slotButtonClicked(QAbstractButton* button);
/** Enables buttons. */ /** Enables buttons. */
void slotEdited(); void slotEdited();
/** Displays the dialog for parameter editing. */ /** Displays the dialog for parameter editing. */
void slotEditParameter(); void slotEditParameter();
/** 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);
/** Displays the dialog for selection of a function. */ /** Displays the dialog for selection of a function. */
void slotFunc(); void slotFunc();
/** Displays the dialog for selection of a parameter file to read. */ /** Displays the dialog for selection of a parameter file to read. */
void slotGetParameter(); void slotGetParameter();
/** Restores window size. */
void slotRestoreSize();
/** Caculates roots. */
void slotRoots();
/** Displays the dialog for selection of a parameter file to save. */ /** Displays the dialog for selection of a parameter file to save. */
void slotSaveParameter(); void slotSaveParameter();
}; };
/** /**
* Parametric function settings dialog class. Provides a dialog for the setting s * Parametric function settings dialog class. Provides a dialog for the setting s
* of parametric functions. * of parametric functions.
* @author Werner Stille * @author Werner Stille
*/ */
class ParFuncDlg : public KDialog class ParFuncDlg : 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 fi pointer to parametric function object. * @param fi pointer to parametric function object.
* @param pos dialog position. * @param pos dialog position.
*/ */
ParFuncDlg(QWidget* parent, KplDoc* model, ParFunItem* fi, ParFuncDlg(QWidget* parent, KplDoc* model, ParFunItem* fi,
const QPoint& pos); const QPoint& pos);
/** Destructor. */ /** Destructor. */
~ParFuncDlg(); ~ParFuncDlg();
protected: protected:
/** /**
* Applies settings.
* @param ok true to close the dialog.
*/
void apply(bool ok = false);
/**
* Copies settings to temporary parametric function object. * Copies settings to temporary parametric function object.
* @return false for error. * @return false for error.
*/ */
bool getTemp(); bool getTemp();
/**
* Reimplemented to display help when key F1 is pressed.
* @param e Key event.
*/
virtual void keyPressEvent(QKeyEvent* e);
KplDoc* m; KplDoc* m;
ParFunItem *fi, *fit; ParFunItem *fi, *fit;
KUrlRequester *fileNameX, *fileNameY; KUrlRequester *fileNameX, *fileNameY;
QDialogButtonBox* buttonBox;
QLineEdit *funcX, *funcY; QLineEdit *funcX, *funcY;
BrushButton* fill; BrushButton* fill;
SymbolButton* bSymb; SymbolButton* bSymb;
DoubleEdit *etMin, *etMax, *etStep, *efx, *efy; DoubleEdit *etMin, *etMax, *etStep, *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 buttons. */ /** Enables buttons. */
void slotEdited(); void slotEdited();
/** Displays the dialog for parameter editing for the x axis function. */ /** Displays the dialog for parameter editing for the x axis function. */
void slotEditParameterX(); void slotEditParameterX();
/** Displays the dialog for parameter editing for the y axis function. */ /** Displays the dialog for parameter editing for the y axis function. */
void slotEditParameterY(); void slotEditParameterY();
/** 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);
/** Displays the dialog for selection of a function for the x axis. */ /** Displays the dialog for selection of a function for the x axis. */
void slotFuncX(); void slotFuncX();
/** Displays the dialog for selection of a function for the y axis. */ /** Displays the dialog for selection of a function for the y axis. */
void slotFuncY(); void slotFuncY();
/** Displays the dialog for selection of a parameter file to read for the x ax is function. */ /** Displays the dialog for selection of a parameter file to read for the x ax is function. */
void slotGetParameterX(); void slotGetParameterX();
/** Displays the dialog for selection of a parameter file to read for the y ax is function. */ /** Displays the dialog for selection of a parameter file to read for the y ax is function. */
void slotGetParameterY(); void slotGetParameterY();
/** Restores window size. */
void slotRestoreSize();
/** Displays the dialog for selection of a parameter file to save for the x ax is function. */ /** Displays the dialog for selection of a parameter file to save for the x ax is function. */
void slotSaveParameterX(); void slotSaveParameterX();
/** Displays the dialog for selection of a parameter file to save for the y ax is function. */ /** Displays the dialog for selection of a parameter file to save for the y ax is function. */
void slotSaveParameterY(); void slotSaveParameterY();
}; };
#endif #endif
 End of changes. 18 change blocks. 
16 lines changed or deleted 45 lines changed or added

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