QtiPlot  0.9.8.2
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AddWidgetTool Class Reference

#include <AddWidgetTool.h>

Inheritance diagram for AddWidgetTool:
PlotToolInterface

Public Types

enum  WidgetType {
  Text = 0, TexEquation, Rectangle, Ellipse,
  UserWidget = 1000
}
 
- Public Types inherited from PlotToolInterface
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. More...
 
virtual ~AddWidgetTool ()
 
- Public Member Functions inherited from PlotToolInterface
 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
 
FrameWidgetd_fw
 
WidgetType d_widget_type
 
- Protected Attributes inherited from PlotToolInterface
Graphd_graph
 
const char * d_status_slot
 
const QObject * d_status_target
 

Detailed Description

Plot tool for adding enrichements.

Provides selection of points on a Graph.

Member Enumeration Documentation

Enumerator
Text 
TexEquation 
Rectangle 
Ellipse 
UserWidget 

Constructor & Destructor Documentation

AddWidgetTool::AddWidgetTool ( WidgetType  type,
Graph graph,
QAction *  d_action,
const QObject *  status_target = NULL,
const char *  status_slot = "" 
)
AddWidgetTool::~AddWidgetTool ( )
virtual

Member Function Documentation

void AddWidgetTool::addEllipse ( const QPoint &  point)
protected
void AddWidgetTool::addEquation ( const QPoint &  point)
protected
void AddWidgetTool::addRectangle ( const QPoint &  point)
protected
void AddWidgetTool::addText ( const QPoint &  point)
protected
void AddWidgetTool::addWidget ( const QPoint &  point)
protected
bool AddWidgetTool::eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedvirtual
virtual int AddWidgetTool::rtti ( ) const
inlinevirtual
void AddWidgetTool::statusText ( const QString &  )
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(), widgetType(), and ~AddWidgetTool().

WidgetType AddWidgetTool::widgetType ( )
inline

Returns the type of widget to be added.

References addEllipse(), addEquation(), addRectangle(), addText(), addWidget(), d_widget_type, eventFilter(), and statusText().

Member Data Documentation

QAction* AddWidgetTool::d_action
protected

Referenced by ~AddWidgetTool().

FrameWidget* AddWidgetTool::d_fw
protected
WidgetType AddWidgetTool::d_widget_type
protected

Referenced by addWidget(), eventFilter(), and widgetType().


The documentation for this class was generated from the following files: