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

Opie::Ui::ONamedListView Class Reference

An OListView variant with named columns. More...

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

Inheritance diagram for Opie::Ui::ONamedListView:

Inheritance graph
[legend]
Collaboration diagram for Opie::Ui::ONamedListView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ONamedListView (QWidget *parent=0, const char *name=0)
virtual ~ONamedListView ()
virtual void addColumns (const QStringList &columns)
virtual int findColumn (const QString &text) const
virtual ONamedListViewItemfind (ONamedListViewItem *start, int column, const QString &text, int recurse=-1) const
virtual ONamedListViewItemfind (int column, const QString &text, int recurse=-1) const
virtual ONamedListViewItemfind (ONamedListViewItem *start, const QString &column, const QString &text, int recurse=-1) const
virtual ONamedListViewItemfind (const QString &column, const QString &text, int recurse=-1) const

Private Attributes

Private * d

Detailed Description

An OListView variant with named columns.

This class provides a higher-level interface to an OListView.

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

Definition at line 329 of file olistview.h.


Constructor & Destructor Documentation

Opie::Ui::ONamedListView::ONamedListView QWidget *  parent = 0,
const char *  name = 0
 

Constructor.

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

Definition at line 607 of file olistview.cpp.

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

Destructor.

Definition at line 613 of file olistview.cpp.


Member Function Documentation

void Opie::Ui::ONamedListView::addColumns const QStringList columns  )  [virtual]
 

Add a number of columns to the listview.

Definition at line 618 of file olistview.cpp.

References Opie::Ui::OListView::addColumn(), QValueList< T >::begin(), QValueList< T >::end(), odebug, and oendl.

Referenced by OListViewDemo::OListViewDemo().

ONamedListViewItem * Opie::Ui::ONamedListView::find const QString column,
const QString text,
int  recurse = -1
const [virtual]
 

Definition at line 670 of file olistview.cpp.

References col, find(), and findColumn().

ONamedListViewItem * Opie::Ui::ONamedListView::find ONamedListViewItem start,
const QString column,
const QString text,
int  recurse = -1
const [virtual]
 

Definition at line 680 of file olistview.cpp.

References col, find(), and findColumn().

ONamedListViewItem * Opie::Ui::ONamedListView::find int  column,
const QString text,
int  recurse = -1
const [virtual]
 

Definition at line 640 of file olistview.cpp.

References find().

ONamedListViewItem * Opie::Ui::ONamedListView::find ONamedListViewItem start,
int  column,
const QString text,
int  recurse = -1
const [virtual]
 

Returns:
the first item which has a text in column column. Set recurse to indicate how much subchild levels to search, e.g.
  • set it to 0 to search only among direct childs,
  • set it to 1 to search direct childs and all 1st order subchilds
  • set it to -1 for maximum recursion.
See also:
ONamedListViewItem::find()

Definition at line 646 of file olistview.cpp.

References odebug, and oendl.

Referenced by find(), and OListViewDemo::OListViewDemo().

int Opie::Ui::ONamedListView::findColumn const QString text  )  const [virtual]
 

Returns:
the column index matching to text or -1 if not found.

Definition at line 628 of file olistview.cpp.

References i.

Referenced by find().


Member Data Documentation

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

Reimplemented from Opie::Ui::OListView.

Definition at line 366 of file olistview.h.


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