Mantid
Loading...
Searching...
No Matches
CellStandardItem.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 +
11#pragma once
13#include <QColor>
14#include <QStandardItem>
15
16namespace MantidQt {
17namespace MantidWidgets {
18namespace Batch {
19
21
22void setBorderThickness(QStandardItem &item, int borderThickness);
23int getBorderThickness(QStandardItem const &item);
24
25void setBorderColor(QStandardItem &item, std::string const &borderColor, int alpha);
26QColor getBorderColor(QStandardItem const &item);
27
28std::string getIconFilePath(QStandardItem const &item);
29void setIcon(QStandardItem &item, std::string const &iconFilePath);
30void setIconFilePath(QStandardItem &item, QString const &iconFilePath);
31
32std::string getBackgroundColor(QStandardItem const &item);
33void setBackgroundColor(QStandardItem &item, std::string const &backgroundColor);
34std::string getForegroundColor(QStandardItem const &item);
35void setForegroundColor(QStandardItem &item, std::string const &foregroundColor);
36
37void applyCellPropertiesToItem(Cell const &cell, QStandardItem &item);
38Cell extractCellPropertiesFromItem(QStandardItem const &item);
39} // namespace Batch
40} // namespace MantidWidgets
41} // namespace MantidQt
void applyCellPropertiesToItem(Cell const &cell, QStandardItem &item)
void setIconFilePath(QStandardItem &item, QString const &iconFilePath)
void setForegroundColor(QStandardItem &item, std::string const &foregroundColor)
void setBackgroundColor(QStandardItem &item, std::string const &backgroundColor)
std::string getBackgroundColor(QStandardItem const &item)
Cell extractCellPropertiesFromItem(QStandardItem const &item)
QColor getBorderColor(QStandardItem const &item)
std::string getForegroundColor(QStandardItem const &item)
std::string getIconFilePath(QStandardItem const &item)
int getBorderThickness(QStandardItem const &item)
void setBorderColor(QStandardItem &item, std::string const &borderColor, int alpha)
void setBorderThickness(QStandardItem &item, int borderThickness)
void setIcon(QStandardItem &item, std::string const &iconFilePath)
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...