PlotToolInterface.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : PlotToolInterface.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2007 by Knut Franke, Ion Vasilief
00006     Email (use @ for *)  : knut.franke*gmx.de, ion_vasilief*yahoo.fr
00007     Description          : Interface for tools operating on a Graph
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *  This program is free software; you can redistribute it and/or modify   *
00014  *  it under the terms of the GNU General Public License as published by   *
00015  *  the Free Software Foundation; either version 2 of the License, or      *
00016  *  (at your option) any later version.                                    *
00017  *                                                                         *
00018  *  This program is distributed in the hope that it will be useful,        *
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00021  *  GNU General Public License for more details.                           *
00022  *                                                                         *
00023  *   You should have received a copy of the GNU General Public License     *
00024  *   along with this program; if not, write to the Free Software           *
00025  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00026  *   Boston, MA  02110-1301  USA                                           *
00027  *                                                                         *
00028  ***************************************************************************/
00029 #ifndef PLOT_TOOL_INTERFACE_H
00030 #define PLOT_TOOL_INTERFACE_H
00031 
00032 class Graph;
00033 #include <QObject>
00034 
00060 class PlotToolInterface
00061 {
00062     public:
00063 
00064     enum RttiValues
00065     {
00066         Rtti_PlotTool = 0,
00067 
00068         Rtti_RangeSelector,
00069         Rtti_DataPicker,
00070         Rtti_TranslateCurveTool,
00071         Rtti_MultiPeakFitTool,
00072         Rtti_LineProfileTool,
00073         Rtti_AddWidgetTool,
00074         Rtti_DrawDataPoints,
00075 
00076         Rtti_PlotUserTool = 1000
00077     };
00078 
00079         PlotToolInterface(Graph *graph, const QObject *status_target = NULL, const char *status_slot = "") {Q_UNUSED(status_target); Q_UNUSED(status_slot); d_graph = graph;};
00080         virtual ~PlotToolInterface() {};
00081 
00082         virtual int rtti() const { return Rtti_PlotTool;};
00083 
00084     protected:
00085         Graph *d_graph;
00086 };
00087 
00088 #endif // ifndef PLOT_TOOL_INTERFACE_H

Generated by  doxygen 1.6.2