Mantid
Loading...
Searching...
No Matches
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 "MantidQtWidgets/Common/DllOption.h"
10#include <QAction>
11#include <QPushButton>
12#include <QWidget>
13
14namespace MantidQt {
15namespace API {
16
27class EXPORT_OPT_MANTIDQT_COMMON SyncedCheckboxes : public QObject {
28 Q_OBJECT
29
30public:
31 SyncedCheckboxes(QAction *menu, QAbstractButton *button, bool checked = false);
33 void toggle(bool val);
34 void setEnabled(bool val);
35 void setVisible(bool val);
36
37signals:
39 void toggled(bool /*_t1*/);
40
41public slots:
42 void on_menu_toggled(bool /*val*/);
43 void on_button_toggled(bool /*val*/);
44
45private:
46 QAction *m_menu;
47 QAbstractButton *m_button;
48};
49
50} // namespace API
51} // namespace MantidQt
void toggled(bool)
Signal emitted when the check box is toggled.
SyncedCheckboxes(QAction *menu, QAbstractButton *button, bool checked=false)
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...