SeExpr
Public Slots | Signals | Public Member Functions | Protected Attributes | List of all members
ExprControl Class Reference

Base class for all controls for Expressions. More...

#include <ExprControl.h>

Inheritance diagram for ExprControl:
AnimCurveControl CCurveControl ColorSwatchControl CurveControl DeepWaterControl NumberControl StringControl VectorControl

Public Slots

void linkStateChange (int state)
 

Signals

void controlChanged (int id)
 
void linkColorEdited (int id, QColor color)
 
void linkColorLink (int id)
 

Public Member Functions

 ExprControl (int id, Editable *editable, bool showColorLink)
 
virtual ~ExprControl ()
 
virtual QColor getColor ()
 Interface for getting the color (used for linked color picking) More...
 
virtual void setColor (QColor color)
 Interface for setting the color (used for linked color picking) More...
 
void linkDisconnect (int newId)
 

Protected Attributes

int _id
 
bool _updating
 
QHBoxLayout * hbox
 
QCheckBox * _colorLinkCB
 
QLabel * _label
 
Editable_editable
 

Detailed Description

Base class for all controls for Expressions.

Definition at line 53 of file ExprControl.h.

Constructor & Destructor Documentation

ExprControl::ExprControl ( int  id,
Editable editable,
bool  showColorLink 
)

Definition at line 263 of file ExprControl.cpp.

References _colorLinkCB, _label, hbox, linkStateChange(), and Editable::name.

virtual ExprControl::~ExprControl ( )
inlinevirtual

Definition at line 68 of file ExprControl.h.

Member Function Documentation

void ExprControl::controlChanged ( int  id)
signal
virtual QColor ExprControl::getColor ( )
inlinevirtual

Interface for getting the color (used for linked color picking)

Reimplemented in CCurveControl, and VectorControl.

Definition at line 71 of file ExprControl.h.

Referenced by linkStateChange().

void ExprControl::linkColorEdited ( int  id,
QColor  color 
)
signal
void ExprControl::linkColorLink ( int  id)
signal

Referenced by linkStateChange().

void ExprControl::linkDisconnect ( int  newId)

Definition at line 305 of file ExprControl.cpp.

References _colorLinkCB, _id, and _updating.

void ExprControl::linkStateChange ( int  state)
slot

Definition at line 293 of file ExprControl.cpp.

References _id, _updating, getColor(), linkColorEdited(), and linkColorLink().

Referenced by ExprControl().

virtual void ExprControl::setColor ( QColor  color)
inlinevirtual

Interface for setting the color (used for linked color picking)

Reimplemented in CCurveControl, and VectorControl.

Definition at line 73 of file ExprControl.h.

Member Data Documentation

QCheckBox* ExprControl::_colorLinkCB
protected

Definition at line 61 of file ExprControl.h.

Referenced by ExprControl(), and linkDisconnect().

Editable* ExprControl::_editable
protected

Definition at line 64 of file ExprControl.h.

int ExprControl::_id
protected
QLabel* ExprControl::_label
protected

Definition at line 62 of file ExprControl.h.

Referenced by ExprControl(), and VectorControl::updateControl().

bool ExprControl::_updating
protected
QHBoxLayout* ExprControl::hbox
protected

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