moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kmplot / kmplot / parseriface.h
blob7266ad666290655fbf05c7ec13d65a5c6fae2d55
1 /*
2 * KmPlot - a math. function plotter for the KDE-Desktop
4 * Copyright (C) 2004 Fredrik Edemar
5 * f_edemar@linux.se
6 *
7 * This file is part of the KDE Project.
8 * KmPlot is part of the KDE-EDU Project.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #ifndef XPARSERIFACE_H
27 #define XPARSERIFACE_H
29 #include <dcopobject.h>
30 #include <qcolor.h>
31 #include <qstringlist.h>
33 /**
34 @author Fredrik Edemar
36 /// All functions in ParserIface are accessible with DCOP. For descriptions about the functions, see Parser and XParser.
37 class ParserIface : virtual public DCOPObject
39 K_DCOP
40 k_dcop:
41 virtual bool addFunction(const QString &extstr, bool f_mode, bool f1_mode, bool f2_mode, bool integral_mode, bool integral_use_precision, int linewidth, int f1_linewidth, int f2_linewidth, int integral_linewidth, const QString &str_dmin, const QString &str_dmax, const QString &str_startx, const QString &str_starty, double integral_precision, QRgb color, QRgb f1_color, QRgb f2_color, QRgb integral_color, QStringList str_parameter, int use_slider) = 0;
43 virtual int addFunction(const QString &f_str) = 0;
44 virtual bool delfkt(uint id) = 0;
45 virtual bool setFunctionExpression(const QString &f_str, uint id) = 0;
46 virtual uint countFunctions() = 0;
47 virtual QStringList listFunctionNames() = 0;
48 virtual int fnameToId(const QString &name) = 0;
49 virtual double fkt(uint id, double x) = 0;
50 virtual bool functionFVisible(uint id) = 0;
51 virtual bool functionF1Visible(uint id) = 0;
52 virtual bool functionF2Visible(uint id) = 0;
53 virtual bool functionIntVisible(uint id) = 0;
54 virtual bool setFunctionFVisible(bool visible, uint id) = 0;
55 virtual bool setFunctionF1Visible(bool visible, uint id) = 0;
56 virtual bool setFunctionF2Visible(bool visible, uint id) = 0;
57 virtual bool setFunctionIntVisible(bool visible, uint id) = 0;
58 virtual QString functionStr(uint id) = 0;
59 virtual QColor functionFColor(uint id) = 0;
60 virtual QColor functionF1Color(uint id) = 0;
61 virtual QColor functionF2Color(uint id) = 0;
62 virtual QColor functionIntColor(uint id) = 0;
63 virtual bool setFunctionFColor(const QColor &color, uint id) = 0;
64 virtual bool setFunctionF1Color(const QColor &color, uint id) = 0;
65 virtual bool setFunctionF2Color(const QColor &color, uint id) = 0;
66 virtual bool setFunctionIntColor(const QColor &color, uint id) = 0;
67 virtual int functionFLineWidth(uint id) = 0;
68 virtual int functionF1LineWidth(uint id) = 0;
69 virtual int functionF2LineWidth(uint id) = 0;
70 virtual int functionIntLineWidth(uint id) = 0;
71 virtual bool setFunctionFLineWidth(int linewidth, uint id) = 0;
72 virtual bool setFunctionF1LineWidth(int linewidth, uint id) = 0;
73 virtual bool setFunctionF2LineWidth(int linewidth, uint id) = 0;
74 virtual bool setFunctionIntLineWidth(int linewidth, uint id) = 0;
75 virtual QStringList functionParameterList(uint id) = 0;
76 virtual bool functionAddParameter(const QString &new_parameter, uint id) = 0;
77 virtual bool functionRemoveParameter(const QString &remove_parameter, uint id) = 0;
78 virtual QString functionMinValue(uint id) = 0;
79 virtual QString functionMaxValue(uint id) = 0;
80 virtual bool setFunctionMinValue(const QString &min, uint id) = 0;
81 virtual bool setFunctionMaxValue(const QString &max, uint id) = 0;
82 virtual QString functionStartXValue(uint id) = 0;
83 virtual QString functionStartYValue(uint id) = 0;
84 virtual bool setFunctionStartXValue(const QString &x, uint id) = 0;
85 virtual bool setFunctionStartYValue(const QString &y, uint id) = 0;
89 #endif