DosColourBox Class Reference
#include <doscolourbox.h>
List of all members.
Detailed Description
A colourbox made up of 16 basic colours used by Dos. Configurable colours as a group, also to be displayable as either 2x8 or 4x4 configuration.
- Author:
- James Fuller,,, <james>
Constructor & Destructor Documentation
DosColourBox::DosColourBox |
( |
QWidget * |
parent, |
|
|
const char * |
name, |
|
|
LabelIni * |
li | |
|
) |
| | |
Widget Creator. Addresses of instantiated objects are stored in a list to facilitate global changes.
- Parameters:
-
| parent | Widget parent. |
| name | Widget name. |
| li | Inifile enabled QLabel used to facilitate storage of settings |
DosColourBox::~DosColourBox |
( |
|
) |
|
Member Function Documentation
QColor & DosColourBox::getColour |
( |
|
) |
|
Retrieves the currently selected colour
- Returns:
- QColor reference
QSize DosColourBox::minimumSize |
( |
|
) |
|
Retrieves the minimum size the widget can take
- Returns:
- QSize
void DosColourBox::read |
( |
KConfigGroup * |
config, |
|
|
QString |
sKey = "" | |
|
) |
| | |
Reads the selected colour index from the inifile.
- Parameters:
-
| config | Address of KConfigGroup object |
| sKey | Prepended to lable name (with a dot seperator) |
void DosColourBox::setSelected |
( |
int |
iIndex |
) |
|
Sets the current selection to the desired index.
- Parameters:
-
void DosColourBox::shortAndWide |
( |
void |
|
) |
|
Alters colourbox to 2 rows by 8 columns
- Parameters:
-
void DosColourBox::square |
( |
void |
|
) |
|
Alters colourbox to 4 rows by 4 columns
- Parameters:
-
bool DosColourBox::updateAllColours |
( |
QValueList< QColor > |
list |
) |
[static] |
Updates all colours in the list
- Parameters:
-
| list | QValueList containing 16 QColor items |
- Returns:
- True on error (incorrect colour count)
bool DosColourBox::updateColour |
( |
unsigned int |
uiIndex, |
|
|
QColor |
colour | |
|
) |
| | [static] |
Updates a single colour in the list
- Parameters:
-
| uiIndex | Integer |
| colour | QColor |
- Returns:
- true on error (index out of bounds)
void DosColourBox::updateColourList |
( |
void |
|
) |
[static] |
Goes through all instantiated dialogs and updates their colours
- Parameters:
-
void DosColourBox::write |
( |
KConfigGroup * |
config, |
|
|
QString |
sKey = "" | |
|
) |
| | |
Writes the selected colour index to the inifile.
- Parameters:
-
| config | Address of KConfigGroup object |
| sKey | Prepended to lable name (with a dot seperator) |
The documentation for this class was generated from the following files: