FontSizeComboBox Class Reference

A widget used to choose a font size from an editable combo box. More...

#include <FontSizeComboBox.h>

List of all members.

Signals

void valueEdited (int fontSize)
void valueActivated (int fontSize)
void valueChanged (int fontSize)

Public Member Functions

 FontSizeComboBox (QWidget *pParent)
virtual ~FontSizeComboBox ()
void setCurrentValue (int fontSize)
int getCurrentValue () const


Detailed Description

A widget used to choose a font size from an editable combo box.

Definition at line 18 of file FontSizeComboBox.h.


Constructor & Destructor Documentation

FontSizeComboBox::FontSizeComboBox ( QWidget *  pParent  ) 

Creates a font size combo box.

The QFontDatabase will be queried to determine valid font sizes.

Parameters:
pParent The parent widget.

virtual FontSizeComboBox::~FontSizeComboBox (  )  [virtual]

Destroys the font size combo box and all child items.


Member Function Documentation

void FontSizeComboBox::setCurrentValue ( int  fontSize  ) 

Sets the font size.

Parameters:
fontSize The font size to use. If this value is greater than zero and does not exist in the combo box, it will be added and selected. If this value is not greater than zero, the combo box will be cleared and set to an invalid index.

int FontSizeComboBox::getCurrentValue (  )  const

Returns the selected font size.

Returns:
The selected font size or -1 if no font size is selected.

void FontSizeComboBox::valueEdited ( int  fontSize  )  [signal]

Emitted when the user presses the Enter key with the combo box active.

Parameters:
fontSize The selected font size.

void FontSizeComboBox::valueActivated ( int  fontSize  )  [signal]

Emitted when a new combo box item is activated by the user.

Parameters:
fontSize The selected font size.

void FontSizeComboBox::valueChanged ( int  fontSize  )  [signal]

Emitted when the user changes the value of the combo box.

Parameters:
fontSize The selected font size.


Software Development Kit - Opticks 4.9.0 Build 16218