Mantid
Loading...
Searching...
No Matches
ImageInfoWidget.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 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
8#pragma once
9
10#include "DllOption.h"
13#include <QMap>
14
16
21class EXPORT_OPT_MANTIDQT_COMMON ImageInfoWidget : public QTableWidget, public IImageInfoWidget {
22 Q_OBJECT
23
24public:
25 ImageInfoWidget(QWidget *parent = nullptr);
26
27 // Note: QMap has sip binding via PyQt but only for specific types (both types have to be classes or the first type
28 // has to be int)
29 void cursorAt(const double x, const double y, const double signal,
30 const QMap<QString, QString> &extraValues) override;
31 void setWorkspace(const Mantid::API::Workspace_sptr &ws) override;
32 void showInfo(const ImageInfoModel::ImageInfo &info) override;
33 void setRowCount(const int count) override;
34 void setColumnCount(const int count) override;
35 void setItem(const int rowIndex, const int columnIndex, QTableWidgetItem *item) override;
36 void hideColumn(const int index) override;
37 void showColumn(const int index) override;
38 void setShowSignal(const bool showSignal);
39
40private:
41 std::unique_ptr<ImageInfoPresenter> m_presenter;
42};
43
44} // namespace MantidQt::MantidWidgets
#define EXPORT_OPT_MANTIDQT_COMMON
Definition DllOption.h:15
std::map< DeltaEMode::Type, std::string > index
int count
counter
Definition Matrix.cpp:37
A table widget containing information about the pixel the mouse is over in an image.
std::unique_ptr< ImageInfoPresenter > m_presenter
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace