kspread

KSpread::GuiHelper Class Reference

A simple class useful for finding out if a series of data object will cause a normal or a tri-state checkbox. More...

#include <ChartDialog.h>

List of all members.

Public Types

enum  State { Unset, On, Off, TriState }

Public Member Functions

 GuiHelper ()
void addState (State state)
void updateCheckBox (QCheckBox *checkbox, bool hide)

Public Attributes

State m_state

Detailed Description

A simple class useful for finding out if a series of data object will cause a normal or a tri-state checkbox.

For example.

Definition at line 68 of file ChartDialog.h.


Member Enumeration Documentation

the different states

Enumerator:
Unset 

start value

On 

on

Off 

off

TriState 

Both on and off.

Definition at line 71 of file ChartDialog.h.


Constructor & Destructor Documentation

KSpread::GuiHelper::GuiHelper (  )  [inline]

constructor

Definition at line 78 of file ChartDialog.h.


Member Function Documentation

void KSpread::GuiHelper::addState ( State  state  )  [inline]

Add a new state.

Definition at line 80 of file ChartDialog.h.

void KSpread::GuiHelper::updateCheckBox ( QCheckBox checkbox,
bool  hide 
) [inline]

Based on all the added states initialize the checkbox.

Parameters:
checkbox the checkbox to set.
hide if true the checkbox will be hidden when there was no 'addState' called

Definition at line 92 of file ChartDialog.h.


Member Data Documentation

the current state

Definition at line 107 of file ChartDialog.h.


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