Mantid
Loading...
Searching...
No Matches
WindowIcons.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 <QIcon>
11#include <QMap>
12
13namespace MantidQt {
14namespace API {
20public:
22
24 QIcon getIcon(const std::string &windowID) const;
26 std::string getIconID(const std::string &windowID) const;
27
28private:
30 void initInternalLookup();
32 QIcon makeIconFromFile(const std::string &path) const;
33
35 QMap<std::string, std::string> m_idToPixmapName;
36};
37} // namespace API
38} // 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.
Definition: WindowIcons.h:19
QMap< std::string, std::string > m_idToPixmapName
Internal map instance.
Definition: WindowIcons.h:35
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...