Gui::CheckListDialog Class Reference

The CheckListDialog class provides a dialog with a QListView with checkable items inside. More...

#include <Widgets.h>

List of all members.

Public Member Functions

void accept ()
 Collects all checked items to be able to return them by call getCheckedItems().
 CheckListDialog (QWidget *parent=0, Qt::WFlags fl=0)
 Constructs a CheckListDialog which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
QStringList getCheckedItems () const
 Returns a list of the check items.
void setCheckableItems (const QList< CheckListItem > &items)
 Sets the items to the dialog's list view.
void setCheckableItems (const QStringList &items)
 Sets the items to the dialog's list view.
 ~CheckListDialog ()
 Destroys the object and frees any allocated resources.

Detailed Description

The CheckListDialog class provides a dialog with a QListView with checkable items inside.

Author:
Werner Mayer

Definition at line 90 of file Widgets.h.


Constructor & Destructor Documentation

CheckListDialog::CheckListDialog ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Constructs a CheckListDialog which is a child of 'parent', with the name 'name' and widget flags set to 'f'.

The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.

Definition at line 201 of file Widgets.cpp.

References Gui::Ui_DlgTreeWidget::setupUi().

CheckListDialog::~CheckListDialog (  ) 

Destroys the object and frees any allocated resources.

Definition at line 210 of file Widgets.cpp.


Member Function Documentation

void CheckListDialog::accept ( void   ) 

Collects all checked items to be able to return them by call getCheckedItems().

Definition at line 251 of file Widgets.cpp.

References Gui::Ui_DlgTreeWidget::treeWidget.

QStringList CheckListDialog::getCheckedItems (  )  const

Returns a list of the check items.

Definition at line 243 of file Widgets.cpp.

void CheckListDialog::setCheckableItems ( const QList< CheckListItem > &  items  ) 

Sets the items to the dialog's list view.

If the boolean type of a CheckListItem is set to false the item is not checkable any more.

Definition at line 231 of file Widgets.cpp.

References Gui::Ui_DlgTreeWidget::treeWidget.

void CheckListDialog::setCheckableItems ( const QStringList &  items  ) 

Sets the items to the dialog's list view.

By default all items are checkable..

Definition at line 218 of file Widgets.cpp.

References Gui::Ui_DlgTreeWidget::treeWidget.


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

Generated on Wed Nov 23 19:01:58 2011 for FreeCAD by  doxygen 1.6.1