Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
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
"
11
#include "
MantidQtWidgets/Common/IImageInfoWidget.h
"
12
#include "
MantidQtWidgets/Common/ImageInfoPresenter.h
"
13
#include <QLabel>
14
#include <QMap>
15
16
namespace
MantidQt::MantidWidgets
{
17
22
class
EXPORT_OPT_MANTIDQT_COMMON
ImageInfoWidgetMini
:
public
QLabel,
public
IImageInfoWidget
{
23
Q_OBJECT
24
25
public
:
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
40
private
:
41
std::unique_ptr<ImageInfoPresenter>
m_presenter
;
42
};
43
44
}
// namespace MantidQt::MantidWidgets
DllOption.h
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition
DllOption.h:15
IImageInfoWidget.h
ImageInfoPresenter.h
index
std::map< DeltaEMode::Type, std::string > index
Definition
DeltaEMode.cpp:19
count
int count
counter
Definition
Matrix.cpp:37
MantidQt::MantidWidgets::IImageInfoWidget
Definition
IImageInfoWidget.h:17
MantidQt::MantidWidgets::ImageInfoModel::ImageInfo
Definition
ImageInfoModel.h:24
MantidQt::MantidWidgets::ImageInfoWidgetMini
A table widget containing information about the pixel the mouse is over in an image.
Definition
ImageInfoWidgetMini.h:22
MantidQt::MantidWidgets::ImageInfoWidgetMini::m_presenter
std::unique_ptr< ImageInfoPresenter > m_presenter
Definition
ImageInfoWidgetMini.h:41
MantidQt::MantidWidgets
Definition
AddWorkspaceDialog.h:19
Mantid::API::Workspace_sptr
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Definition
Workspace_fwd.h:20
Mantid::Geometry::y
I a m y
Definition
SpaceGroupFactory.cpp:674
Mantid::Geometry::x
I a m x
Definition
SpaceGroupFactory.cpp:674
Generated by
1.9.8