QtiPlot
0.9.8.2
|
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 Rtti_ImageProfilesTool, 00076 Rtti_SubtractLineTool, 00077 Rtti_PlotUserTool = 1000 00078 }; 00079 00080 PlotToolInterface(Graph *graph, const QObject *status_target = NULL, const char *status_slot = "") {d_status_target = status_target; d_status_slot = status_slot; d_graph = graph;}; 00081 virtual ~PlotToolInterface() {}; 00082 00083 virtual int rtti() const { return Rtti_PlotTool;}; 00084 00085 protected: 00086 Graph *d_graph; 00087 const QObject *d_status_target; 00088 const char *d_status_slot; 00089 }; 00090 00091 #endif // ifndef PLOT_TOOL_INTERFACE_H