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