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

Opie::Ui::OListView Class Reference

A list/tree widget. More...

#include </home/clem/local/src/opie/libopie2/opieui/olistview.h>

Inheritance diagram for Opie::Ui::OListView:

Inheritance graph
[legend]
List of all members.

Public Slots

void expand ()
void collapse ()

Public Member Functions

 OListView (QWidget *parent=0, const char *name=0, WFlags fl=0)
virtual ~OListView ()
void setFullWidth (bool fullWidth)
bool fullWidth () const
virtual int addColumn (const QString &label, int width=-1)
virtual int addColumn (const QIconSet &iconset, const QString &label, int width=-1)
virtual void removeColumn (int index)
void setAlternateBackground (const QColor &color)
void setColumnSeparator (const QPen &pen)
const QColor & alternateBackground () const
const QPen & columnSeparator () const
virtual OListViewItemchildFactory ()
virtual void serializeTo (QDataStream &stream) const
virtual void serializeFrom (QDataStream &s)

Protected Slots

void expand (QListViewItem *)

Private Attributes

QColor m_alternateBackground
bool m_fullWidth: 1
QPen m_columnSeparator
Private * d

Detailed Description

A list/tree widget.

A QListView variant featuring visual and functional enhancements like an alternate background for odd rows, an autostretch mode for the width of the widget ( >= Qt 3 only ) and persistence capabilities.

Author:
Michael 'Mickey' Lauer <mickey@vanille.de>

Definition at line 58 of file olistview.h.


Constructor & Destructor Documentation

Opie::Ui::OListView::OListView QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Constructor.

The parameters parent and name are handled by QListView, as usual.

Definition at line 48 of file olistview.cpp.

References expand(), m_alternateBackground, m_columnSeparator, and m_fullWidth.

Opie::Ui::OListView::~OListView  )  [virtual]
 

Destructor.

Definition at line 59 of file olistview.cpp.


Member Function Documentation

int Opie::Ui::OListView::addColumn const QIconSet &  iconset,
const QString label,
int  width = -1
[virtual]
 

Reimplemented for full width support

Definition at line 88 of file olistview.cpp.

int Opie::Ui::OListView::addColumn const QString label,
int  width = -1
[virtual]
 

Reimplemented for full width support

Definition at line 76 of file olistview.cpp.

Referenced by Opie::Ui::ONamedListView::addColumns(), BenchmarkInfo::BenchmarkInfo(), CardDevice::CardDevice(), CpuDevice::CpuDevice(), DevicesView::DevicesView(), Opie::Ui::OKeyConfigWidget::initUi(), InputDevice::InputDevice(), ModulesInfo::ModulesInfo(), MScanListView::MScanListView(), MStatWindow::MStatWindow(), PacketView::PacketView(), ProcessInfo::ProcessInfo(), and TestMainWindow::TestMainWindow().

const QColor & Opie::Ui::OListView::alternateBackground  )  const
 

Returns:
the alternate background color

Definition at line 111 of file olistview.cpp.

Referenced by Opie::Ui::OCheckListItem::isAlternate(), and Opie::Ui::OListViewItem::isAlternate().

OListViewItem * Opie::Ui::OListView::childFactory  )  [virtual]
 

Create a list view item as child of this object

Returns:
the new object

Reimplemented in MScanListView.

Definition at line 138 of file olistview.cpp.

void Opie::Ui::OListView::collapse  )  [slot]
 

Collapse all items

Definition at line 221 of file olistview.cpp.

References odebug, and oendl.

const QPen & Opie::Ui::OListView::columnSeparator  )  const
 

Returns:
the column separator pen

Definition at line 122 of file olistview.cpp.

void Opie::Ui::OListView::expand QListViewItem *   )  [protected, slot]
 

expand the current OListViewItem

Definition at line 133 of file olistview.cpp.

void Opie::Ui::OListView::expand  )  [slot]
 

Expand all items

Definition at line 209 of file olistview.cpp.

References odebug, and oendl.

Referenced by OListView().

bool Opie::Ui::OListView::fullWidth  )  const
 

Returns whether the last column is set to fit the available width.

Definition at line 71 of file olistview.cpp.

void Opie::Ui::OListView::removeColumn int  index  )  [virtual]
 

Reimplemented for full width support

Definition at line 100 of file olistview.cpp.

void Opie::Ui::OListView::serializeFrom QDataStream s  )  [virtual]
 

Serialize this object from a QDataStream stream

Reimplemented in MScanListView.

Definition at line 175 of file olistview.cpp.

References i, items, QString::null, odebug, and oendl.

Referenced by Opie::Ui::operator>>().

void Opie::Ui::OListView::serializeTo QDataStream stream  )  const [virtual]
 

Serialize this object to QDataStream stream

Reimplemented in MScanListView.

Definition at line 144 of file olistview.cpp.

References i, items, odebug, and oendl.

Referenced by Opie::Ui::operator<<().

void Opie::Ui::OListView::setAlternateBackground const QColor &  color  ) 
 

Set the alternate background background color. Set to an invalid color to disable alternate colors. This only has an effect if the items are OListViewItems

Definition at line 116 of file olistview.cpp.

void Opie::Ui::OListView::setColumnSeparator const QPen &  pen  ) 
 

Sets the column separator pen.

Definition at line 127 of file olistview.cpp.

void Opie::Ui::OListView::setFullWidth bool  fullWidth  ) 
 

Let the last column fit exactly all the available width.

Definition at line 63 of file olistview.cpp.


Member Data Documentation

Private* Opie::Ui::OListView::d [private]
 

Reimplemented in Opie::Ui::ONamedListView.

Definition at line 148 of file olistview.h.

QColor Opie::Ui::OListView::m_alternateBackground [private]
 

Definition at line 145 of file olistview.h.

Referenced by OListView().

QPen Opie::Ui::OListView::m_columnSeparator [private]
 

Definition at line 147 of file olistview.h.

Referenced by OListView().

bool Opie::Ui::OListView::m_fullWidth [private]
 

Definition at line 146 of file olistview.h.

Referenced by OListView().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:57 2005 for OPIE by  doxygen 1.4.2