ADTF Qt5
Loading...
Searching...
No Matches
adtf::ui::thor Namespace Reference

Legacy version namespace for all functionality of the ADTF UI SDK taken over from ADTF v3.19. More...

Classes

class  cThemedIconColorMapping
 

Enumerations

enum class  eThemedIcon {
  OpenFile , LED_Red , LED_Green , LED_Yellow ,
  LED_Grey , Status_Error , Status_Warning , Status_Debug ,
  Arrow_Left , Arrow_Up , Arrow_Right , Arrow_Down ,
  Help , Info , Edit_Add , Edit_Remove ,
  Edit_Cut , Edit_Copy , Edit_Paste , Edit_Modify ,
  Edit_Undo , Edit_Redo , Zoom , Zoom_In ,
  Zoom_Out
}
 

Functions

QColor get_color (size_t maxColors, size_t colorIndex)
 Get tableau 10 colors. If maxColors is greater or equal to 20 it uses tableau 20 colors.
 
QIcon create_themed_icon (QString file, cThemedIconColorMapping themedIconColorMapping=cThemedIconColorMapping::GetDefaultColorMapping())
 Creates a themed icon from given svg file with color mapping.
 
QIcon create_themed_icon (eThemedIcon icon)
 Creates a predefined themed icon.
 

Detailed Description

Legacy version namespace for all functionality of the ADTF UI SDK taken over from ADTF v3.19.

Enumeration Type Documentation

◆ eThemedIcon

enum class adtf::ui::thor::eThemedIcon
strong

Enum for accessing various icons already delivered in XSystem.

Function Documentation

◆ create_themed_icon() [1/2]

QIcon adtf::ui::thor::create_themed_icon ( eThemedIcon icon)

Creates a predefined themed icon.

Remarks
Create a predefined icon with the default color mapping for light/dark mode.
Parameters
iconThe enum value for the desired icon.
Returns
The created Icon.

◆ create_themed_icon() [2/2]

QIcon adtf::ui::thor::create_themed_icon ( QString file,
cThemedIconColorMapping themedIconColorMapping = cThemedIconColorMapping::GetDefaultColorMapping() )

Creates a themed icon from given svg file with color mapping.

Remarks
Create an icon with a custom color mapping for light/dark mode (SVG Icons only!).
Parameters
fileThe icon file
themedIconColorMappingThe color mapping for the icon, emtpy for default color mapping.
Returns
The created Icon.

◆ get_color()

QColor adtf::ui::thor::get_color ( size_t maxColors,
size_t colorIndex )

Get tableau 10 colors. If maxColors is greater or equal to 20 it uses tableau 20 colors.

Remarks
Get a color from maxColors that are easily distinguishable.
Parameters
maxColorsNumber of distinguishable colors.
colorIndexIndex of the color.
Returns
The color from the index