![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
delegate used inside the SimpleInputWindow More...
#include <AbstractInputWindow.h>
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 ¤t=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 |
delegate used inside the SimpleInputWindow
Definition at line 62 of file AbstractInputWindow.h.
Tinkercell::PopupListWidgetDelegate::PopupListWidgetDelegate | ( | QObject * | parent = 0 | ) |
Definition at line 518 of file AbstractInputWindow.cpp.
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.
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.
bool Tinkercell::PopupListWidgetDelegate::editorEvent | ( | QEvent * | event, |
QAbstractItemModel * | model, | ||
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) |
editor event
Definition at line 615 of file AbstractInputWindow.cpp.
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.
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.
void Tinkercell::PopupListWidgetDelegate::updateEditorGeometry | ( | QWidget * | editor, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
set geometry
Definition at line 630 of file AbstractInputWindow.cpp.
dialog is open
Definition at line 81 of file AbstractInputWindow.h.
DataTable<QStringList> Tinkercell::PopupListWidgetDelegate::options |
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.