ATLAS Offline Software
graphics
VP1
VP1Base
VP1Base
VP1ColorSelectButton.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// //
7
// Header file for class VP1ColorSelectButton //
8
// //
9
// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10
// //
11
// Initial version: June 2007 //
12
// //
14
15
#ifndef VP1COLORSELECTBUTTON_H
16
#define VP1COLORSELECTBUTTON_H
17
18
#include <QPushButton>
19
20
class
VP1ColorSelectButton
:
public
QPushButton {
21
22
Q_OBJECT
23
24
public
:
25
26
VP1ColorSelectButton
(QWidget*
parent
=0,
const
QColor& initialcolor = Qt::black,
int
dim
= 24 );
//dim<=0 => Won't change sizepolicy
27
virtual
~VP1ColorSelectButton
();
28
29
QColor
color
()
const
;
30
void
setText
(
const
QString & );
//Forbidden!! Only here since Designer generated code needs it in public.
31
static
void
setColButtonProperties
(QPushButton*,
const
QColor&
col
,
int
dim
);
32
33
public
Q_SLOTS:
34
void
launchColorChooser
();
35
void
setColor
(
const
QColor&);
36
void
setDimension
(
int
dim
);
37
signals
:
38
void
colorChanged
(
const
QColor&);
39
void
aboutToShowColorDialog
();
40
41
protected
Q_SLOTS:
42
void
updateButton
();
43
private
:
44
class
Imp
;
45
Imp
*
m_d
;
46
};
47
48
#endif
yodamerge_tmp.dim
dim
Definition:
yodamerge_tmp.py:239
VP1ColorSelectButton::VP1ColorSelectButton
VP1ColorSelectButton(QWidget *parent=0, const QColor &initialcolor=Qt::black, int dim=24)
Definition:
VP1ColorSelectButton.cxx:33
VP1ColorSelectButton::Imp
Definition:
VP1ColorSelectButton.cxx:24
VP1ColorSelectButton::setColor
void setColor(const QColor &)
Definition:
VP1ColorSelectButton.cxx:95
VP1ColorSelectButton
Definition:
VP1ColorSelectButton.h:20
VP1ColorSelectButton::setColButtonProperties
static void setColButtonProperties(QPushButton *, const QColor &col, int dim)
Definition:
VP1ColorSelectButton.cxx:49
VP1ColorSelectButton::~VP1ColorSelectButton
virtual ~VP1ColorSelectButton()
Definition:
VP1ColorSelectButton.cxx:80
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
VP1ColorSelectButton::color
QColor color() const
Definition:
VP1ColorSelectButton.cxx:108
VP1ColorSelectButton::updateButton
void updateButton()
Definition:
VP1ColorSelectButton.cxx:41
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition:
LegacyTopoMergerMap.py:13
VP1ColorSelectButton::colorChanged
void colorChanged(const QColor &)
query_example.col
col
Definition:
query_example.py:7
VP1ColorSelectButton::m_d
Imp * m_d
Definition:
VP1ColorSelectButton.h:44
VP1ColorSelectButton::setDimension
void setDimension(int dim)
Definition:
VP1ColorSelectButton.cxx:121
VP1ColorSelectButton::aboutToShowColorDialog
void aboutToShowColorDialog()
VP1ColorSelectButton::launchColorChooser
void launchColorChooser()
Definition:
VP1ColorSelectButton.cxx:86
VP1ColorSelectButton::setText
void setText(const QString &)
Definition:
VP1ColorSelectButton.cxx:114
Generated on Tue Jul 2 2024 21:32:31 for ATLAS Offline Software by
1.8.18