Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes

AddWidgetTool Class Reference

#include <AddWidgetTool.h>

Inheritance diagram for AddWidgetTool:
PlotToolInterface

List of all members.

Public Types

enum  WidgetType {
  Text = 0, TexEquation, Rectangle, Ellipse,
  UserWidget = 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 ()

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

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 = "" 
)

Member Function Documentation

void AddWidgetTool::addEllipse ( const QPoint &  point  )  [protected]
void AddWidgetTool::addRectangle ( const QPoint &  point  )  [protected]
void AddWidgetTool::addWidget ( const QPoint &  point  )  [protected]
virtual int AddWidgetTool::rtti (  )  const [inline, virtual]

Reimplemented from PlotToolInterface.

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(), and ~AddWidgetTool().

WidgetType AddWidgetTool::widgetType (  )  [inline]

Returns the type of widget to be added.

References d_widget_type.


Member Data Documentation

QAction* AddWidgetTool::d_action [protected]

Referenced by ~AddWidgetTool().


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