OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
CSVWidget::ColorEditor Class Reference

#include <coloreditor.hpp>

Inheritance diagram for CSVWidget::ColorEditor:
Collaboration diagram for CSVWidget::ColorEditor:

Signals

void pickingFinished ()
 

Public Member Functions

 ColorEditor (const QColor &color, QWidget *parent=0, const bool popupOnStart=false)
 
 ColorEditor (const int colorInt, QWidget *parent=0, const bool popupOnStart=false)
 
QColor color () const
 
int colorInt () const
 
void setColor (const QColor &color)
 
void setColor (const int colorInt)
 Set color using given int value. More...
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 
virtual void showEvent (QShowEvent *event)
 

Private Slots

void showPicker ()
 
void pickerColorChanged (const QColor &color)
 

Private Member Functions

QPoint calculatePopupPosition ()
 
 ColorEditor (QWidget *parent=0, const bool popupOnStart=false)
 

Private Attributes

QColor mColor
 
ColorPickerPopupmColorPicker
 
bool mPopupOnStart
 

Constructor & Destructor Documentation

CSVWidget::ColorEditor::ColorEditor ( const QColor &  color,
QWidget parent = 0,
const bool  popupOnStart = false 
)

Here is the call graph for this function:

CSVWidget::ColorEditor::ColorEditor ( const int  colorInt,
QWidget parent = 0,
const bool  popupOnStart = false 
)

Here is the call graph for this function:

CSVWidget::ColorEditor::ColorEditor ( QWidget parent = 0,
const bool  popupOnStart = false 
)
private

Here is the call graph for this function:

Member Function Documentation

QPoint CSVWidget::ColorEditor::calculatePopupPosition ( )
private
QColor CSVWidget::ColorEditor::color ( ) const

Here is the caller graph for this function:

int CSVWidget::ColorEditor::colorInt ( ) const
Returns
Color RGB value encoded in an int.

Here is the caller graph for this function:

void CSVWidget::ColorEditor::paintEvent ( QPaintEvent *  event)
protectedvirtual
void CSVWidget::ColorEditor::pickerColorChanged ( const QColor &  color)
privateslot

Here is the caller graph for this function:

void CSVWidget::ColorEditor::pickingFinished ( )
signal
void CSVWidget::ColorEditor::setColor ( const QColor &  color)

Here is the caller graph for this function:

void CSVWidget::ColorEditor::setColor ( const int  colorInt)

Set color using given int value.

Parameters
colorIntRGB color value encoded as an integer.
void CSVWidget::ColorEditor::showEvent ( QShowEvent *  event)
protectedvirtual
void CSVWidget::ColorEditor::showPicker ( )
privateslot

Here is the caller graph for this function:

Member Data Documentation

QColor CSVWidget::ColorEditor::mColor
private
ColorPickerPopup* CSVWidget::ColorEditor::mColorPicker
private
bool CSVWidget::ColorEditor::mPopupOnStart
private

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