Q3270
A Qt-based 3270 Terminal Emulator
Loading...
Searching...
No Matches
ColourTheme Class Reference
Inheritance diagram for ColourTheme:

Signals

void themesApplied (const QString &name)
 

Public Member Functions

 ColourTheme (ColourStore &store, QWidget *parent=nullptr)
 ColourTheme::ColourTheme - Dialog for choosing the colours for 3270.
 
 ~ColourTheme ()
 ColourTheme::~ColourTheme - destructor.
 
int exec () override
 ColourTheme::exec - dialog display.
 
void setTheme (const QString &themeName)
 ColourTheme::setTheme - set colour theme.
 

Constructor & Destructor Documentation

◆ ColourTheme()

ColourTheme::ColourTheme ( ColourStore store,
QWidget *  parent = nullptr 
)
explicit

ColourTheme::ColourTheme - Dialog for choosing the colours for 3270.

Parameters
store- ColourStore, common across Q3270
parent- parent Qt Widget

ColourTheme is used to display the swatches for the different colours used by the 3270 display.

There are two sets of colours; the basic 4 colour (blue, green, red, white), and the standard 7 colour (black, blue, red, magenta or pink, green, cyan or turquoise, yellow and white or neutral).

The theme names are picked up from the config file; Factory is always present internally, and ignored if also found in the config file. These are used to build up a list of available themes.

◆ ~ColourTheme()

ColourTheme::~ColourTheme ( )

ColourTheme::~ColourTheme - destructor.

Destructor.

Member Function Documentation

◆ exec()

int ColourTheme::exec ( )
override

ColourTheme::exec - dialog display.

Returns
OK or Cancel

◆ setTheme()

void ColourTheme::setTheme ( const QString &  ThemeName)

ColourTheme::setTheme - set colour theme.

Parameters
ThemeName- string name of theme to be set

setTheme changes the theme to the one specified, changing the colours on the swatches to match. If the passed theme name isn't found in the list, the Factory internal one is used instead.


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