Mantid
Loading...
Searching...
No Matches
ImageInfoWidgetMini.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2022 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 <QLabel>
14#include <QMap>
15
17
23 Q_OBJECT
24
25public:
26 ImageInfoWidgetMini(QWidget *parent = nullptr);
27
28 // Note: QMap has sip binding via PyQt but only for specific types (both types have to be classes or the first type
29 // has to be int)
30 void cursorAt(const double x, const double y, const double signal,
31 const QMap<QString, QString> &extraValues) override;
32 void setWorkspace(const Mantid::API::Workspace_sptr &ws) override;
33 void showInfo(const ImageInfoModel::ImageInfo &info) override;
34 void setRowCount(const int count) override;
35 void setColumnCount(const int count) override;
36 void setItem(const int rowIndex, const int columnIndex, QTableWidgetItem *item) override;
37 void hideColumn(const int index) override;
38 void showColumn(const int index) override;
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