ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
Loading...
Searching...
No Matches
hdps::gui::InfoWidget Class Reference

#include <InfoWidget.h>

Inheritance diagram for hdps::gui::InfoWidget:
hdps::gui::InfoOverlayWidget

Public Member Functions

 InfoWidget (QWidget *parent)
 
 InfoWidget (QWidget *parent, const QIcon &icon, const QString &title, const QString &description="", const QColor foregroundColor=Qt::black, const QColor backgroundColor=Qt::lightGray)
 
void set (const QIcon &icon, const QString &title, const QString &description="")
 
void setColor (const QColor color)
 
void setColors (const QColor foregroundColor=Qt::black, const QColor backgroundColor=Qt::lightGray)
 
void setForegroundColor (const QColor foregroundColor=Qt::black)
 
void setBackgroundColor (const QColor backgroundColor=Qt::lightGray)
 

Detailed Description

Info widget class

Standard widget which displays an icon, title and description (used for instance as an overlay for other widgets).

Author
Thomas Kroes

Constructor & Destructor Documentation

◆ InfoWidget() [1/2]

hdps::gui::InfoWidget::InfoWidget ( QWidget *  parent)

Construct info widget with parent

Parameters
parentPointer to parent widget

◆ InfoWidget() [2/2]

hdps::gui::InfoWidget::InfoWidget ( QWidget *  parent,
const QIcon &  icon,
const QString &  title,
const QString &  description = "",
const QColor  foregroundColor = Qt::black,
const QColor  backgroundColor = Qt::lightGray 
)

Construct info widget with \parent, icon, title, description, backgroundColor and textColor

Parameters
parentPointer to parent widget
iconIcon
titleTitle of the overlay
descriptionOverlay description
foregroundColorForeground color
backgroundColorBackground color

Member Function Documentation

◆ set()

void hdps::gui::InfoWidget::set ( const QIcon &  icon,
const QString &  title,
const QString &  description = "" 
)

Set overlay parameters

Parameters
iconIcon
titleTitle of the overlay
descriptionOverlay description

◆ setBackgroundColor()

void hdps::gui::InfoWidget::setBackgroundColor ( const QColor  backgroundColor = Qt::lightGray)

Set background color to backgroundColor

Parameters
backgroundColorBackground color

◆ setColor()

void hdps::gui::InfoWidget::setColor ( const QColor  color)

Set color

Parameters
colorColor of the widget

◆ setColors()

void hdps::gui::InfoWidget::setColors ( const QColor  foregroundColor = Qt::black,
const QColor  backgroundColor = Qt::lightGray 
)

Set overlay colors

Parameters
foregroundColorForeground color
backgroundColorBackground color

◆ setForegroundColor()

void hdps::gui::InfoWidget::setForegroundColor ( const QColor  foregroundColor = Qt::black)

Set foreground color to foregroundColor

Parameters
foregroundColorForeground color

The documentation for this class was generated from the following files: