Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LangmuirView::ColorButton Class Reference

A class to open color dialogs by clicking. More...

#include <colorbutton.h>

Public Slots

void setButtonColor (QColor color)
 set the current color More...
 
void getColor ()
 open dialog and get user selected color More...
 

Signals

void selectedColor (QColor color)
 signal that the color of has changed More...
 

Public Member Functions

 ColorButton (QWidget *parent=0)
 create the ColorButton More...
 
QColorDialog & colorDialog ()
 Get a reference to the dialog. More...
 
 ~ColorButton ()
 destroy the ColorButton More...
 

Protected Attributes

QColor m_color
 current color More...
 

Static Protected Attributes

static QColorDialog * m_colordialog
 static dialog More...
 

Detailed Description

A class to open color dialogs by clicking.

Constructor & Destructor Documentation

LangmuirView::ColorButton::ColorButton ( QWidget *  parent = 0)
explicit

create the ColorButton

Parameters
parentQObject this belongs to
LangmuirView::ColorButton::~ColorButton ( )

destroy the ColorButton

Member Function Documentation

QColorDialog& LangmuirView::ColorButton::colorDialog ( )

Get a reference to the dialog.

Returns
dialog
void LangmuirView::ColorButton::getColor ( )
slot

open dialog and get user selected color

void LangmuirView::ColorButton::selectedColor ( QColor  color)
signal

signal that the color of has changed

Parameters
colorvalue of color
void LangmuirView::ColorButton::setButtonColor ( QColor  color)
slot

set the current color

Parameters
colorvalue of color to set

Member Data Documentation

QColor LangmuirView::ColorButton::m_color
protected

current color

QColorDialog* LangmuirView::ColorButton::m_colordialog
staticprotected

static dialog


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