Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
SyncedCheckboxes.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2011 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
#include "
MantidKernel/System.h
"
11
#include <QAction>
12
#include <QPushButton>
13
#include <QWidget>
14
15
namespace
MantidQt
{
16
namespace
API
{
17
28
class
EXPORT_OPT_MANTIDQT_COMMON
SyncedCheckboxes
:
public
QObject {
29
Q_OBJECT
30
31
public
:
32
SyncedCheckboxes
(QAction *menu, QAbstractButton *button,
bool
checked =
false
);
33
~SyncedCheckboxes
()
override
;
34
void
toggle(
bool
val);
35
void
setEnabled(
bool
val);
36
void
setVisible(
bool
val);
37
38
signals:
40
void
toggled
(
bool
/*_t1*/
);
41
42
public
slots:
43
void
on_menu_toggled(
bool
/*val*/
);
44
void
on_button_toggled(
bool
/*val*/
);
45
46
private
:
47
QAction *
m_menu
;
48
QAbstractButton *
m_button
;
49
};
50
51
}
// namespace API
52
}
// namespace MantidQt
DllOption.h
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition
DllOption.h:15
System.h
MantidQt::API::SyncedCheckboxes
QObject that links:
Definition
SyncedCheckboxes.h:28
MantidQt::API::SyncedCheckboxes::m_button
QAbstractButton * m_button
Definition
SyncedCheckboxes.h:48
MantidQt::API::SyncedCheckboxes::m_menu
QAction * m_menu
Definition
SyncedCheckboxes.h:47
MantidQt::API::SyncedCheckboxes::toggled
void toggled(bool)
Signal emitted when the check box is toggled.
MantidQt::API::SyncedCheckboxes::~SyncedCheckboxes
~SyncedCheckboxes() override
API
Definition
ChudleyElliotSQE.h:11
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
Generated by
1.9.8