#include <ColourNameDialog.h>

Inheritance diagram for ColourNameDialog:
Inheritance graph
Collaboration diagram for ColourNameDialog:
Collaboration graph

Public Member Functions

 ColourNameDialog (QString title, QString message, QColor colour, QString defaultName, QWidget *parent=0)
 
void showDarkBackgroundCheckbox (QString text)
 
QString getColourName () const
 
bool isDarkBackgroundChecked () const
 

Protected Slots

void darkBackgroundChanged (int)
 
void textChanged (const QString &)
 

Protected Member Functions

void fillColourLabel ()
 

Protected Attributes

QColor m_colour
 
QLabel * m_colourLabel
 
QLineEdit * m_textField
 
QPushButton * m_okButton
 
QCheckBox * m_darkBackground
 

Detailed Description

Definition at line 28 of file ColourNameDialog.h.

Constructor & Destructor Documentation

ColourNameDialog::ColourNameDialog ( QString  title,
QString  message,
QColor  colour,
QString  defaultName,
QWidget *  parent = 0 
)

Member Function Documentation

void ColourNameDialog::showDarkBackgroundCheckbox ( QString  text)

Definition at line 68 of file ColourNameDialog.cpp.

References m_darkBackground.

Referenced by ColourComboBox::comboActivated().

QString ColourNameDialog::getColourName ( ) const

Definition at line 105 of file ColourNameDialog.cpp.

References m_textField.

bool ColourNameDialog::isDarkBackgroundChecked ( ) const

Definition at line 75 of file ColourNameDialog.cpp.

References m_darkBackground.

void ColourNameDialog::darkBackgroundChanged ( int  )
protectedslot

Definition at line 81 of file ColourNameDialog.cpp.

References fillColourLabel().

Referenced by ColourNameDialog().

void ColourNameDialog::textChanged ( const QString &  text)
protectedslot

Definition at line 87 of file ColourNameDialog.cpp.

References m_okButton.

Referenced by ColourNameDialog().

void ColourNameDialog::fillColourLabel ( )
protected

Definition at line 93 of file ColourNameDialog.cpp.

References m_colour, m_colourLabel, and m_darkBackground.

Referenced by ColourNameDialog(), and darkBackgroundChanged().

Member Data Documentation

QColor ColourNameDialog::m_colour
protected

Definition at line 47 of file ColourNameDialog.h.

Referenced by fillColourLabel().

QLabel* ColourNameDialog::m_colourLabel
protected

Definition at line 48 of file ColourNameDialog.h.

Referenced by ColourNameDialog(), and fillColourLabel().

QLineEdit* ColourNameDialog::m_textField
protected

Definition at line 49 of file ColourNameDialog.h.

Referenced by ColourNameDialog(), and getColourName().

QPushButton* ColourNameDialog::m_okButton
protected

Definition at line 50 of file ColourNameDialog.h.

Referenced by ColourNameDialog(), and textChanged().

QCheckBox* ColourNameDialog::m_darkBackground
protected

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