DosColourBox Class Reference

#include <doscolourbox.h>

List of all members.

Public Member Functions

 DosColourBox (QWidget *parent, const char *name, LabelIni *label)
 ~DosColourBox ()
void shortAndWide (void)
void square (void)
QColor & getColour ()
void setSelected (int)
QSize minimumSize ()
void write (KConfigGroup *config, QString sKey="")
void read (KConfigGroup *config, QString sKey="")

Static Public Member Functions

static void updateColourList (void)
static bool updateColour (unsigned int uiIndex, QColor colour)
static bool updateAllColours (QValueList< QColor > list)


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 (  ) 

Destructor


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:
iIndex 

void DosColourBox::shortAndWide ( void   ) 

Alters colourbox to 2 rows by 8 columns

Parameters:
None 

void DosColourBox::square ( void   ) 

Alters colourbox to 4 rows by 4 columns

Parameters:
None 

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:
None 

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:

Generated on Wed Feb 19 20:13:54 2014 for Schematux by  doxygen 1.5.7