TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Member Functions | Static Public Member Functions | Public Attributes
Tinkercell::PopupListWidgetDelegate Class Reference

delegate used inside the SimpleInputWindow More...

#include <AbstractInputWindow.h>

Collaboration diagram for Tinkercell::PopupListWidgetDelegate:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PopupListWidgetDelegate (QObject *parent=0)
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 create the editor for the table widget delegate
void setEditorData (QWidget *editor, const QModelIndex &index) const
 set the data the editor for the table widget delegate
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 set the data the editor for the table widget delegate
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
 set geometry
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
 editor event

Static Public Member Functions

static QString displayListWidget (const QStringList &list, const QString &current=QString(), bool *dialogOpen=0)
 ask user to get a string from list of strings

Public Attributes

DataTable< QStringList > options
 options for the combo boxes. Uses line edits if empty. Uses check boxes if just one item
bool dialogOpen
 dialog is open

Detailed Description

delegate used inside the SimpleInputWindow

Definition at line 62 of file AbstractInputWindow.h.


Constructor & Destructor Documentation

Tinkercell::PopupListWidgetDelegate::PopupListWidgetDelegate ( QObject *  parent = 0)

Definition at line 518 of file AbstractInputWindow.cpp.


Member Function Documentation

QWidget * Tinkercell::PopupListWidgetDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

create the editor for the table widget delegate

Definition at line 563 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

QString Tinkercell::PopupListWidgetDelegate::displayListWidget ( const QStringList &  list,
const QString &  current = QString(),
bool *  dialogOpen = 0 
) [static]

ask user to get a string from list of strings

Definition at line 523 of file AbstractInputWindow.cpp.

Here is the caller graph for this function:

bool Tinkercell::PopupListWidgetDelegate::editorEvent ( QEvent *  event,
QAbstractItemModel *  model,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
)

editor event

Definition at line 615 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

void Tinkercell::PopupListWidgetDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const

set the data the editor for the table widget delegate

Definition at line 578 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

void Tinkercell::PopupListWidgetDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

set the data the editor for the table widget delegate

Definition at line 594 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

void Tinkercell::PopupListWidgetDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

set geometry

Definition at line 630 of file AbstractInputWindow.cpp.


Member Data Documentation

dialog is open

Definition at line 81 of file AbstractInputWindow.h.

options for the combo boxes. Uses line edits if empty. Uses check boxes if just one item

Definition at line 67 of file AbstractInputWindow.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines