ParaView
Public Slots | Signals | Public Member Functions
pqStandardColorButton Class Reference

Color chooser button that adds a menu allowing the user to choose on the standard application-wide colors such as foreground/background etc. More...

#include <pqStandardColorButton.h>

Inheritance diagram for pqStandardColorButton:
Inheritance graph
[legend]
Collaboration diagram for pqStandardColorButton:
Collaboration graph
[legend]

List of all members.

Public Slots

void updateMenu ()
 Called to rebuild the menu.
virtual void chooseColor ()
 show a dialog to choose the color
void setStandardColor (const QString &)
 set the current standard color if any.

Signals

void standardColorChanged (const QString &standardColorName)
 Fired in conjunction with chosenColorChanged().

Public Member Functions

 pqStandardColorButton (QWidget *parent)
virtual ~pqStandardColorButton ()
QString standardColor ()
 Returns the name of the standard color the user choose, otherwise empty.

Detailed Description

Color chooser button that adds a menu allowing the user to choose on the standard application-wide colors such as foreground/background etc.

Use pqStandardColorButton is conjunction with pqStandardColorLinkAdaptor to manage setting up the standard color link.

Definition at line 44 of file pqStandardColorButton.h.


Constructor & Destructor Documentation

pqStandardColorButton::pqStandardColorButton ( QWidget *  parent)
virtual pqStandardColorButton::~pqStandardColorButton ( ) [virtual]

Member Function Documentation

QString pqStandardColorButton::standardColor ( )

Returns the name of the standard color the user choose, otherwise empty.

void pqStandardColorButton::updateMenu ( ) [slot]

Called to rebuild the menu.

This needs to be called when the colors change.

virtual void pqStandardColorButton::chooseColor ( ) [virtual, slot]

show a dialog to choose the color

Reimplemented from pqColorChooserButton.

void pqStandardColorButton::setStandardColor ( const QString &  ) [slot]

set the current standard color if any.

This doesn't affect the actual color, that can be changed using setChosenColor(). This only affect the check state for the colors in the standard colors menu.

void pqStandardColorButton::standardColorChanged ( const QString &  standardColorName) [signal]

Fired in conjunction with chosenColorChanged().

The standardColorName is set to the name of the standard color chosen if any, otherwise is empty.


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