Langmuir
Simulation
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
colorbutton.h
Go to the documentation of this file.
1
#ifndef COLORBUTTON_H
2
#define COLORBUTTON_H
3
4
#include <QColorDialog>
5
#include <QPushButton>
6
#include <QColor>
7
#include <QDebug>
8
9
namespace
LangmuirView
{
10
14
class
ColorButton
:
public
QPushButton
15
{
16
Q_OBJECT
17
public
:
22
explicit
ColorButton
(QWidget *parent = 0);
23
28
QColorDialog&
colorDialog
();
29
33
~ColorButton
();
34
35
signals:
40
void
selectedColor
(QColor color);
41
42
public
slots:
47
void
setButtonColor
(QColor color);
48
52
void
getColor
();
53
54
protected
:
56
static
QColorDialog *
m_colordialog
;
57
59
QColor
m_color
;
60
};
61
62
}
63
64
#endif // COLORBUTTON_H
LangmuirView::ColorButton::colorDialog
QColorDialog & colorDialog()
Get a reference to the dialog.
LangmuirView
Definition:
axis.h:6
LangmuirView::ColorButton::selectedColor
void selectedColor(QColor color)
signal that the color of has changed
LangmuirView::ColorButton::getColor
void getColor()
open dialog and get user selected color
LangmuirView::ColorButton::m_color
QColor m_color
current color
Definition:
colorbutton.h:59
LangmuirView::ColorButton
A class to open color dialogs by clicking.
Definition:
colorbutton.h:14
LangmuirView::ColorButton::m_colordialog
static QColorDialog * m_colordialog
static dialog
Definition:
colorbutton.h:56
LangmuirView::ColorButton::ColorButton
ColorButton(QWidget *parent=0)
create the ColorButton
LangmuirView::ColorButton::~ColorButton
~ColorButton()
destroy the ColorButton
LangmuirView::ColorButton::setButtonColor
void setButtonColor(QColor color)
set the current color
src
langmuirView
include
colorbutton.h
Generated on Fri Jan 9 2015 12:06:51 for Langmuir by
1.8.8