kMandatoryFieldGroup Class Reference

#include <kguiutils.h>

Inheritance diagram for kMandatoryFieldGroup:

QObject
Collaboration diagram for kMandatoryFieldGroup:

Collaboration graph
[legend]

List of all members.

Public Slots

void clear (void)
void changed (void)

Signals

void stateChanged (void)
void stateChanged (bool state)

Public Member Functions

 kMandatoryFieldGroup (QObject *parent)
void add (QWidget *widget)
void remove (QWidget *widget)
void setOkButton (QPushButton *button)
bool isEnabled (void) const

Private Attributes

QValueList< QWidget * > widgets
QPushButton * okButton
bool m_enabled


Detailed Description

Author:
Tony Bloomfield

Constructor & Destructor Documentation

kMandatoryFieldGroup::kMandatoryFieldGroup ( QObject parent  )  [inline]


Member Function Documentation

void kMandatoryFieldGroup::add ( QWidget widget  ) 

This method adds a widget to the list of mandatory fields for the current dialog

Parameters:
widget pointer to the widget to be added

void kMandatoryFieldGroup::remove ( QWidget widget  ) 

This method removes a widget form the list of mandatory fields for the current dialog

Parameters:
widget pointer to the widget to be removed

void kMandatoryFieldGroup::setOkButton ( QPushButton *  button  ) 

This method designates the button to be enabled when all mandatory fields have been completed

Parameters:
button pointer to the 'ok' button

bool kMandatoryFieldGroup::isEnabled ( void   )  const [inline]

This method returns if all requirements for the mandatory group have been fulfilled (true) or not (false).

void kMandatoryFieldGroup::clear ( void   )  [slot]

void kMandatoryFieldGroup::changed ( void   )  [slot]

Force update of ok button

void kMandatoryFieldGroup::stateChanged ( void   )  [signal]

void kMandatoryFieldGroup::stateChanged ( bool  state  )  [signal]


Member Data Documentation

QPushButton* kMandatoryFieldGroup::okButton [private]


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

Generated on Wed Jan 26 13:07:43 2011 for KMyMoney by  doxygen 1.5.6