Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

OmgListWidget Class Reference

#include <omglistwidget.h>

Inheritance diagram for OmgListWidget:

Inheritance graph
[legend]
Collaboration diagram for OmgListWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void selectAll ()
void invertSelection ()
void selectNone ()
int checkedItemCount ()
QStringList checkedItems ()
QStringList checkedDataItems ()
void hideOptionsTool ()
void showOptionsTool ()
void hideAddItemTool ()
void showAddItemTool ()
void addItem (const QString &theLabel, bool theCheckedFlag)
void addItem (QListWidgetItem *thepItem, bool theCheckedFlag)
void addItems (const QStringList &theLabels, bool theCheckedFlag)
void clear ()
void insertItem (int theRow, QListWidgetItem *thepItem, bool theCheckedFlag)
void insertItem (int theRow, const QString &theLabel, bool theCheckedFlag)
void insertItems (int theRow, const QStringList &theLabels, bool theCheckedFlag)
void itemPressedSlot (QListWidgetItem *theItem)

Signals

void itemPressed (QListWidgetItem *thepItem)
void addItemClicked ()
void configureClicked ()

Public Member Functions

 OmgListWidget (QWidget *parent=0, Qt::WFlags fl=0)
 ~OmgListWidget ()
int count ()
QListWidgetItem * item (int theItem)

Private Slots

void on_toolSelectAll_clicked ()
void on_toolSelectNone_clicked ()
void on_toolInvertSelection_clicked ()
void on_toolAddItem_clicked ()
void on_toolConfigure_clicked ()

Constructor & Destructor Documentation

OmgListWidget::OmgListWidget QWidget parent = 0,
Qt::WFlags  fl = 0
 

Definition at line 29 of file omglistwidget.cpp.

References itemPressed(), and itemPressedSlot().

OmgListWidget::~OmgListWidget  ) 
 

Definition at line 42 of file omglistwidget.cpp.


Member Function Documentation

void OmgListWidget::addItem QListWidgetItem *  thepItem,
bool  theCheckedFlag
[slot]
 

Definition at line 164 of file omglistwidget.cpp.

void OmgListWidget::addItem const QString &  theLabel,
bool  theCheckedFlag
[slot]
 

Definition at line 158 of file omglistwidget.cpp.

Referenced by addItems().

void OmgListWidget::addItemClicked  )  [signal]
 

Referenced by on_toolAddItem_clicked().

void OmgListWidget::addItems const QStringList &  theLabels,
bool  theCheckedFlag
[slot]
 

Definition at line 177 of file omglistwidget.cpp.

References addItem().

QStringList OmgListWidget::checkedDataItems  )  [slot]
 

Get a QStringList containing the text from the data field for all the checked items. Data field in this context means QListWidgetItem.data()

Returns:
A list of the checked items. If no items are chekced the list will be empty.

Definition at line 126 of file omglistwidget.cpp.

References count().

int OmgListWidget::checkedItemCount  )  [slot]
 

Find out how many items in the list widget are checked.

Returns:
an integer containing the count of checked items.

Definition at line 108 of file omglistwidget.cpp.

References checkedItems().

QStringList OmgListWidget::checkedItems  )  [slot]
 

Get a QStringList containing the text for all the checked items.

Returns:
A list of the checked items. If no items are chekced the list will be empty.

Definition at line 113 of file omglistwidget.cpp.

References count().

Referenced by checkedItemCount().

void OmgListWidget::clear  )  [slot]
 

Definition at line 187 of file omglistwidget.cpp.

void OmgListWidget::configureClicked  )  [signal]
 

Referenced by on_toolConfigure_clicked().

int OmgListWidget::count  ) 
 

Definition at line 191 of file omglistwidget.cpp.

Referenced by checkedDataItems(), checkedItems(), invertSelection(), selectAll(), and selectNone().

void OmgListWidget::hideAddItemTool  )  [slot]
 

Hide the '+' tool usually used by a developer to link to a dialog to load a list of entries into the list widget. The implementation of this is completely up to the developer, but it may not always be needed so we can hide it if we want.

See also:
showAddItemTool

Definition at line 147 of file omglistwidget.cpp.

void OmgListWidget::hideOptionsTool  )  [slot]
 

Hide the options button

Definition at line 139 of file omglistwidget.cpp.

void OmgListWidget::insertItem int  theRow,
const QString &  theLabel,
bool  theCheckedFlag
[slot]
 

Definition at line 212 of file omglistwidget.cpp.

References insertItem().

void OmgListWidget::insertItem int  theRow,
QListWidgetItem *  thepItem,
bool  theCheckedFlag
[slot]
 

Definition at line 200 of file omglistwidget.cpp.

Referenced by insertItem(), and insertItems().

void OmgListWidget::insertItems int  theRow,
const QStringList &  theLabels,
bool  theCheckedFlag
[slot]
 

Definition at line 218 of file omglistwidget.cpp.

References insertItem().

void OmgListWidget::invertSelection  )  [slot]
 

Definition at line 78 of file omglistwidget.cpp.

References count().

Referenced by on_toolInvertSelection_clicked().

QListWidgetItem * OmgListWidget::item int  theItem  ) 
 

Definition at line 196 of file omglistwidget.cpp.

void OmgListWidget::itemPressed QListWidgetItem *  thepItem  )  [signal]
 

Referenced by itemPressedSlot(), and OmgListWidget().

void OmgListWidget::itemPressedSlot QListWidgetItem *  theItem  )  [slot]
 

Used for internal purposes to propogate the itemPressed signal from the list widget out to any listeners AND to toggle item checked state of the selected item.

Definition at line 48 of file omglistwidget.cpp.

References itemPressed().

Referenced by OmgListWidget().

void OmgListWidget::on_toolAddItem_clicked  )  [private, slot]
 

Definition at line 252 of file omglistwidget.cpp.

References addItemClicked().

void OmgListWidget::on_toolConfigure_clicked  )  [private, slot]
 

Definition at line 258 of file omglistwidget.cpp.

References configureClicked().

void OmgListWidget::on_toolInvertSelection_clicked  )  [private, slot]
 

Definition at line 246 of file omglistwidget.cpp.

References invertSelection().

void OmgListWidget::on_toolSelectAll_clicked  )  [private, slot]
 

Definition at line 235 of file omglistwidget.cpp.

References selectAll().

void OmgListWidget::on_toolSelectNone_clicked  )  [private, slot]
 

Definition at line 240 of file omglistwidget.cpp.

References selectNone().

void OmgListWidget::selectAll  )  [slot]
 

Definition at line 67 of file omglistwidget.cpp.

References count().

Referenced by on_toolSelectAll_clicked().

void OmgListWidget::selectNone  )  [slot]
 

Definition at line 97 of file omglistwidget.cpp.

References count().

Referenced by on_toolSelectNone_clicked().

void OmgListWidget::showAddItemTool  )  [slot]
 

Show the '+' tool usually used by a developer to link to a dialog to load a list of entries into the list widget. The implementation of this is completely up to the developer, but it may not always be needed so we can hide it if we want.

See also:
hideAddItemTool

Definition at line 151 of file omglistwidget.cpp.

void OmgListWidget::showOptionsTool  )  [slot]
 

Show the options button

Definition at line 143 of file omglistwidget.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Apr 28 15:13:20 2008 for openModellerDesktop by  doxygen 1.4.1-20050210