UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
hds::ListSelectorWid Class Reference

#include <list_selector_wid.hpp>

Inheritance diagram for hds::ListSelectorWid:
hds::SelectorWid

Signals

void itemDoubleClicked (QListWidgetItem *item)
 

Public Member Functions

 ListSelectorWid (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~ListSelectorWid ()
 
virtual int currentId () const
 
virtual QString current () const
 
virtual void setCurrent (int id)
 
virtual void setCurrent (const QString &item)
 
virtual int count () const
 
virtual void add (const QString &item)
 
virtual void add (const QStringList &items)
 
virtual void remove (int id)
 
virtual void clear ()
 
void setArbitraryNameSelectionMode (bool arbitrary_item_mode)
 
- Public Member Functions inherited from hds::SelectorWid
 SelectorWid (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~SelectorWid ()
 
bool findString () const
 
void findString (bool on)
 
QLineEdit & getFindLineEdit ()
 

Protected Slots

virtual void currentItemChangedSlot (QListWidgetItem *current, QListWidgetItem *previous)
 
virtual void textEditedSlot (const QString &str)
 

Protected Member Functions

const QListWidget & listWid () const
 
QListWidget & listWid ()
 
- Protected Member Functions inherited from hds::SelectorWid
Ui::SelectorWidui ()
 
const Ui::SelectorWidui () const
 

Detailed Description

Widget provides item selection from any list.

Constructor & Destructor Documentation

hds::ListSelectorWid::ListSelectorWid ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Default constructor of the widget.

virtual hds::ListSelectorWid::~ListSelectorWid ( )
virtual

Destructor.

Member Function Documentation

virtual void hds::ListSelectorWid::add ( const QString &  item)
virtual

Add one item.

virtual void hds::ListSelectorWid::add ( const QStringList &  items)
virtual

Add list of items.

virtual void hds::ListSelectorWid::clear ( )
virtual

Clear all items.

Implements hds::SelectorWid.

virtual int hds::ListSelectorWid::count ( ) const
virtual

Number of items.

Implements hds::SelectorWid.

virtual QString hds::ListSelectorWid::current ( ) const
virtual

Current item, null string if not selected.

virtual int hds::ListSelectorWid::currentId ( ) const
virtual

Id of current item (-1 if not selected).

Implements hds::SelectorWid.

virtual void hds::ListSelectorWid::currentItemChangedSlot ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
protectedvirtualslot

If any item selected.

void hds::ListSelectorWid::itemDoubleClicked ( QListWidgetItem *  item)
signal

Double click on item.

const QListWidget& hds::ListSelectorWid::listWid ( ) const
inlineprotected

Access to the list widget.

QListWidget& hds::ListSelectorWid::listWid ( )
inlineprotected

Access to the list widget.

virtual void hds::ListSelectorWid::remove ( int  id)
virtual

Remove item, nothing happens if no such item.

Implements hds::SelectorWid.

void hds::ListSelectorWid::setArbitraryNameSelectionMode ( bool  arbitrary_item_mode)

Set mode for arbitrary name selection.

virtual void hds::ListSelectorWid::setCurrent ( int  id)
virtual

Set current item.

Implements hds::SelectorWid.

virtual void hds::ListSelectorWid::setCurrent ( const QString &  item)
virtual
Set item with provided name as current item. 

Do nothing if no such item.

virtual void hds::ListSelectorWid::textEditedSlot ( const QString &  str)
protectedvirtualslot

If text in line edit is to be changed.


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