• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

cantor/src/lib

  • sources
  • kde-4.12
  • kdeedu
  • cantor
  • src
  • lib
  • directives
plotdirectives.h
Go to the documentation of this file.
1 /*
2  This program is free software; you can redistribute it and/or
3  modify it under the terms of the GNU General Public License
4  as published by the Free Software Foundation; either version 2
5  of the License, or (at your option) any later version.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor,
15  Boston, MA 02110-1301, USA.
16 
17  ---
18  Copyright (C) 2010 Oleksiy Protas <elfy.ua@gmail.com>
19  */
20 
21 #ifndef _PLOT_DIRECTIVES_H
22 #define _PLOT_DIRECTIVES_H
23 
24 #include "extension.h"
25 #include "cantor_export.h"
26 
27 //TODO: comments
28 namespace Cantor
29 {
30  class CANTOR_EXPORT PlotTitleDirective : public AdvancedPlotExtension::PlotDirective
31  {
32  public:
33  PLOT_DIRECTIVE_DISPATCHING(PlotTitleDirective);
34  const QString& title() const;
35  PlotTitleDirective(const QString& str);
36  static AdvancedPlotExtension::DirectiveProducer* widget(QWidget* parent);
37 
38  private:
39  QString m_title;
40 
41  };
42 
43  class CANTOR_EXPORT AbstractScaleDirective : public AdvancedPlotExtension::PlotDirective
44  {
45  public:
46  PLOT_DIRECTIVE_DISPATCHING(AbstractScaleDirective);
47  double min() const;
48  double max() const;
49 
50  protected:
51  AbstractScaleDirective(double a,double b);
52 
53  private:
54  double m_min;
55  double m_max;
56  };
57 
58  class CANTOR_EXPORT OrdinateScaleDirective : public AbstractScaleDirective
59  {
60  public:
61  PLOT_DIRECTIVE_DISPATCHING(OrdinateScaleDirective);
62  OrdinateScaleDirective(double a,double b);
63  static AdvancedPlotExtension::DirectiveProducer* widget(QWidget* parent);
64  };
65 
66  class CANTOR_EXPORT AbscissScaleDirective : public AbstractScaleDirective
67  {
68  public:
69  PLOT_DIRECTIVE_DISPATCHING(AbscissScaleDirective);
70  AbscissScaleDirective(double a,double b);
71  static AdvancedPlotExtension::DirectiveProducer* widget(QWidget* parent);
72  };
73 }
74 
75 #endif // _PLOT_DIRECTIVES_H
CANTOR_EXPORT
#define CANTOR_EXPORT
Definition: cantor_export.h:33
QWidget
Cantor::AbscissScaleDirective
Definition: plotdirectives.h:66
Cantor::AdvancedPlotExtension::PlotDirective
Definition: extension.h:300
Cantor::AbstractScaleDirective
Definition: plotdirectives.h:43
extension.h
PLOT_DIRECTIVE_DISPATCHING
#define PLOT_DIRECTIVE_DISPATCHING(x)
Definition: extension.h:219
Cantor::PlotTitleDirective
Definition: plotdirectives.h:30
Cantor::AdvancedPlotExtension::DirectiveProducer
Definition: extension.h:242
Cantor::OrdinateScaleDirective
Definition: plotdirectives.h:58
cantor_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

cantor/src/lib

Skip menu "cantor/src/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal