QtiPlot  0.9.8.2
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Attributes | List of all members
SymbolBox Class Reference

A modified QComboBox allowing to choose a QwtSmbol style. More...

#include <SymbolBox.h>

Inheritance diagram for SymbolBox:

Signals

void activated (SymbolBox *)
 Signal emitted when the box gains focus. More...
 

Public Member Functions

QwtSymbol::Style selectedSymbol () const
 
void setStyle (const QwtSymbol::Style &c)
 
 SymbolBox (bool showNoSymbol=true, QWidget *parent=0)
 Constructor. More...
 

Static Public Member Functions

static QList< int > defaultSymbols ()
 
static QwtSymbol::Style style (int index)
 
static int symbolIndex (const QwtSymbol::Style &style)
 

Protected Member Functions

void focusInEvent (QFocusEvent *)
 
void init (bool showNoSymbol)
 

Static Private Attributes

static const QwtSymbol::Style symbols []
 

Detailed Description

A modified QComboBox allowing to choose a QwtSmbol style.

This is a simple hack on top of the QComboBox class.

symbol_box.png

Constructor & Destructor Documentation

§ SymbolBox()

SymbolBox::SymbolBox ( bool  showNoSymbol = true,
QWidget *  parent = 0 
)

Constructor.

Parameters
parentparent widget (only affects placement of the widget)

References init().

Member Function Documentation

§ activated

void SymbolBox::activated ( SymbolBox )
signal

Signal emitted when the box gains focus.

Referenced by focusInEvent().

§ defaultSymbols()

QList< int > SymbolBox::defaultSymbols ( )
static

§ focusInEvent()

void SymbolBox::focusInEvent ( QFocusEvent *  e)
protected

References activated().

§ init()

void SymbolBox::init ( bool  showNoSymbol)
protected

Referenced by SymbolBox().

§ selectedSymbol()

QwtSymbol::Style SymbolBox::selectedSymbol ( ) const

§ setStyle()

void SymbolBox::setStyle ( const QwtSymbol::Style &  c)

§ style()

QwtSymbol::Style SymbolBox::style ( int  index)
static

§ symbolIndex()

int SymbolBox::symbolIndex ( const QwtSymbol::Style &  style)
static

Member Data Documentation

§ symbols

const QwtSymbol::Style SymbolBox::symbols
staticprivate
Initial value:
= {
QwtSymbol::NoSymbol,
QwtSymbol::Ellipse,
QwtSymbol::Rect,
QwtSymbol::Diamond,
QwtSymbol::Triangle,
QwtSymbol::DTriangle,
QwtSymbol::UTriangle,
QwtSymbol::LTriangle,
QwtSymbol::RTriangle,
QwtSymbol::Cross,
QwtSymbol::XCross,
QwtSymbol::HLine,
QwtSymbol::VLine,
QwtSymbol::Star1,
QwtSymbol::Star2,
QwtSymbol::Hexagon
}

Referenced by selectedSymbol(), setStyle(), style(), and symbolIndex().


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