Mantid
Loading...
Searching...
No Matches
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 "DllOption.h"
10#include <QMap>
11#include <QPixmap>
12
13namespace MantidQt {
14namespace API {
20public:
22
24 QPixmap getIcon(const std::string &workspaceID) const;
26 std::string getIconID(const std::string &workspaceID) const;
27
28private:
30 void initInternalLookup();
31
33 QMap<std::string, std::string> m_idToPixmapName;
34};
35} // namespace API
36} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
Defines a mapping between a workspace ID and a pixmap to use for an icon.
QMap< std::string, std::string > m_idToPixmapName
Internal map instance.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...