|
Q3270
A Qt-based 3270 Terminal Emulator
|
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. | |
|
explicit |
ColourTheme::ColourTheme - Dialog for choosing the colours for 3270.
| 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 - destructor.
Destructor.
|
override |
ColourTheme::exec - dialog display.
| void ColourTheme::setTheme | ( | const QString & | ThemeName | ) |
ColourTheme::setTheme - set colour theme.
| 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.