|
ParaView
|
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>


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. | |
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.
| pqStandardColorButton::pqStandardColorButton | ( | QWidget * | parent | ) |
| virtual pqStandardColorButton::~pqStandardColorButton | ( | ) | [virtual] |
| 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.
1.7.5.1