Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
WorkspaceIcons.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2018 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 <QMap>
11
#include <QPixmap>
12
13
namespace
MantidQt
{
14
namespace
API
{
19
class
EXPORT_OPT_MANTIDQT_COMMON
WorkspaceIcons
{
20
public
:
21
WorkspaceIcons
();
22
24
QPixmap getIcon(
const
std::string &workspaceID)
const
;
26
std::string getIconID(
const
std::string &workspaceID)
const
;
27
28
private
:
30
void
initInternalLookup();
31
33
QMap<std::string, std::string>
m_idToPixmapName
;
34
};
35
}
// namespace API
36
}
// namespace MantidQt
MantidQt::API::WorkspaceIcons
Defines a mapping between a workspace ID and a pixmap to use for an icon.
Definition
WorkspaceIcons.h:19
MantidQt::API::WorkspaceIcons::m_idToPixmapName
QMap< std::string, std::string > m_idToPixmapName
Internal map instance.
Definition
WorkspaceIcons.h:33
API
Definition
ChudleyElliotSQE.h:11
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
Generated by
1.9.8