QtiPlot
0.9.8.2
|
#include <AddWidgetTool.h>
Public Types | |
enum | WidgetType { Text = 0, TexEquation, Rectangle, Ellipse, UserWidget = 1000 } |
![]() | |
enum | RttiValues { Rtti_PlotTool = 0, Rtti_RangeSelector, Rtti_DataPicker, Rtti_TranslateCurveTool, Rtti_MultiPeakFitTool, Rtti_LineProfileTool, Rtti_AddWidgetTool, Rtti_DrawDataPoints, Rtti_ImageProfilesTool, Rtti_SubtractLineTool, Rtti_PlotUserTool = 1000 } |
Signals | |
void | statusText (const QString &) |
Public Member Functions | |
AddWidgetTool (WidgetType type, Graph *graph, QAction *d_action, const QObject *status_target=NULL, const char *status_slot="") | |
virtual int | rtti () const |
WidgetType | widgetType () |
Returns the type of widget to be added. | |
virtual | ~AddWidgetTool () |
![]() | |
PlotToolInterface (Graph *graph, const QObject *status_target=NULL, const char *status_slot="") | |
virtual | ~PlotToolInterface () |
Protected Member Functions | |
void | addEllipse (const QPoint &point) |
void | addEquation (const QPoint &point) |
void | addRectangle (const QPoint &point) |
void | addText (const QPoint &point) |
void | addWidget (const QPoint &point) |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Protected Attributes | |
QAction * | d_action |
FrameWidget * | d_fw |
WidgetType | d_widget_type |
![]() | |
Graph * | d_graph |
const char * | d_status_slot |
const QObject * | d_status_target |
Plot tool for adding enrichements.
Provides selection of points on a Graph.
AddWidgetTool::AddWidgetTool | ( | WidgetType | type, |
Graph * | graph, | ||
QAction * | d_action, | ||
const QObject * | status_target = NULL , |
||
const char * | status_slot = "" |
||
) |
|
virtual |
|
protected |
References Graph::add(), d_fw, PlotToolInterface::d_graph, FrameWidget::move(), Graph::notifyChanges(), FrameWidget::setFrameColor(), FrameWidget::setSize(), and statusText().
Referenced by addWidget().
|
protected |
References Graph::add(), MdiSubWindow::applicationWindow(), ApplicationWindow::d_frame_widget_pen, PlotToolInterface::d_graph, FrameWidget::move(), Graph::multiLayer(), Graph::notifyChanges(), Graph::setActiveTool(), TexWidget::setFormula(), FrameWidget::setFramePen(), FrameWidget::setFrameStyle(), and FrameWidget::showPropertiesDialog().
Referenced by addWidget().
|
protected |
References Graph::add(), d_fw, PlotToolInterface::d_graph, FrameWidget::move(), Graph::notifyChanges(), FrameWidget::setFrameColor(), FrameWidget::setSize(), and statusText().
Referenced by addWidget().
|
protected |
References Graph::add(), MdiSubWindow::applicationWindow(), ApplicationWindow::d_frame_widget_pen, PlotToolInterface::d_graph, ApplicationWindow::d_legend_default_angle, ApplicationWindow::legendBackground, ApplicationWindow::legendFrameStyle, ApplicationWindow::legendTextColor, FrameWidget::move(), Graph::multiLayer(), Graph::notifyChanges(), ApplicationWindow::plotLegendFont, Graph::setActiveTool(), LegendWidget::setAngle(), FrameWidget::setBackgroundColor(), LegendWidget::setFont(), FrameWidget::setFramePen(), FrameWidget::setFrameStyle(), LegendWidget::setText(), LegendWidget::setTextColor(), and FrameWidget::showPropertiesDialog().
Referenced by addWidget().
|
protected |
References addEllipse(), addEquation(), addRectangle(), addText(), d_widget_type, Ellipse, Rectangle, TexEquation, and Text.
Referenced by eventFilter().
|
protectedvirtual |
References addWidget(), MdiSubWindow::applicationWindow(), MultiLayer::canvas(), ApplicationWindow::d_frame_widget_pen, d_fw, PlotToolInterface::d_graph, ApplicationWindow::d_rect_default_background, ApplicationWindow::d_rect_default_brush, d_widget_type, Ellipse, ApplicationWindow::legendFrameStyle, Graph::multiLayer(), Graph::setActiveTool(), FrameWidget::setBackgroundColor(), FrameWidget::setBrush(), FrameWidget::setFramePen(), FrameWidget::setFrameStyle(), statusText(), and FrameWidget::updateCoordinates().
|
inlinevirtual |
Reimplemented from PlotToolInterface.
References PlotToolInterface::Rtti_AddWidgetTool.
|
signal |
Emitted whenever a new message should be presented to the user.
You don't have to connect to this signal if you alreay specified a reciever during initialization.
Referenced by addEllipse(), addRectangle(), AddWidgetTool(), eventFilter(), and ~AddWidgetTool().
|
inline |
Returns the type of widget to be added.
References d_widget_type.
|
protected |
Referenced by ~AddWidgetTool().
|
protected |
Referenced by addEllipse(), addRectangle(), and eventFilter().
|
protected |
Referenced by addWidget(), eventFilter(), and widgetType().