Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
CheckboxHeader.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2013 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
#pragma once
8
9
#include "
DllOption.h
"
10
11
#include <QHeaderView>
12
#include <QMouseEvent>
13
#include <QPainter>
14
15
namespace
MantidQt
{
16
namespace
MantidWidgets {
25
class
EXPORT_OPT_MANTIDQT_COMMON
CheckboxHeader
:
public
QHeaderView {
26
Q_OBJECT
27
28
public
:
30
explicit
CheckboxHeader
(Qt::Orientation
orientation
, QWidget *parent =
nullptr
);
31
void
setChecked(
bool
checked);
32
33
signals:
34
void
toggled
(
bool
checked);
35
36
protected
:
39
void
paintSection(QPainter *painter,
const
QRect &rect,
int
logicalIndex)
const override
;
41
void
mousePressEvent(QMouseEvent *event)
override
;
42
43
private
:
45
QRect checkBoxRect(
const
QRect &sourceRect)
const
;
47
bool
m_checked
;
48
};
49
}
// namespace MantidWidgets
50
}
// namespace MantidQt
DllOption.h
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition
DllOption.h:15
MantidQt::MantidWidgets::CheckboxHeader
This class subclasses and overwrites QHeaderView methods to enable checkboxes to exist in the table h...
Definition
CheckboxHeader.h:25
MantidQt::MantidWidgets::CheckboxHeader::toggled
void toggled(bool checked)
MantidQt::MantidWidgets::CheckboxHeader::m_checked
bool m_checked
The state of the checkbox in the column header.
Definition
CheckboxHeader.h:47
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
Mantid::Geometry::orientation
MANTID_GEOMETRY_DLL PolygonEdge::Orientation orientation(const PolygonEdge &focusEdge, const PolygonEdge &refEdge, double &t)
Calculate the orientation type of one edge wrt to another.
Definition
PolygonEdge.cpp:81
Generated by
1.9.8