#include <TreeView.hxx>
Public Slots | |
void | viewSelection (const QModelIndex &ind) |
void | resizeColumns () |
virtual void | onCommitData (QWidget *editor) |
Public Member Functions | |
TreeView (QWidget *parent=0) | |
virtual | ~TreeView () |
virtual void | setModel (QAbstractItemModel *model) |
Protected Member Functions | |
virtual bool | event (QEvent *event) |
void | contextMenuEvent (QContextMenuEvent *event) |
Protected Attributes | |
bool | _isEdition |
ValueDelegate * | _valueDelegate |
Definition at line 33 of file TreeView.hxx.
TreeView::TreeView | ( | QWidget * | parent = 0 | ) |
Definition at line 41 of file TreeView.cxx.
References _isEdition, _valueDelegate, onCommitData(), YACS::HMI::YLabel, and YACS::HMI::YValue.
|
virtual |
Definition at line 59 of file TreeView.cxx.
|
protected |
|
protectedvirtual |
Definition at line 99 of file TreeView.cxx.
References YACS::HMI::QtGuiContext::getGMain(), YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::GenericGui::onHelpContextModule().
|
virtualslot |
After edition with a specific editor created by ValueDelegate for a cell of Tree item, the resulting string is tested for setValue on the corresponding subject. Result of the setValue (succes or failure) is transmitted to ValueDelegate for further action in case of failure.
Definition at line 143 of file TreeView.cxx.
References _valueDelegate, DEBTRACE, YACS::ENGINE::DataPort::edGetType(), YACS::HMI::GenericEditor::getColumnInSubject(), YACS::HMI::QtGuiContext::getGuiExecutor(), YACS::HMI::Subject::getParent(), YACS::HMI::SubjectDataPort::getPort(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GenericEditor::GetStrValue(), YACS::HMI::GenericEditor::getSubject(), YACS::ENGINE::TypeCode::kind(), YACS::HMI::SubjectSwitch::setCase(), YACS::HMI::GuiExecutor::setInPortValue(), YACS::HMI::SubjectDataPort::setName(), YACS::HMI::ValueDelegate::setResultEditing(), YACS::HMI::SubjectDataPort::setValue(), YACS::ENGINE::String, YASSERT, and YACS::HMI::YValue.
Referenced by TreeView().
|
slot |
Definition at line 77 of file TreeView.cxx.
References _isEdition, YACS::HMI::QtGuiContext::_mapOfSchemaItem, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::YState, YACS::HMI::YType, and YACS::HMI::YValue.
Referenced by YACS::HMI::GenericGui::createContext().
|
virtual |
Definition at line 63 of file TreeView.cxx.
References _isEdition, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::QtGuiContext::isEdition().
|
slot |
Definition at line 70 of file TreeView.cxx.
|
protected |
Definition at line 50 of file TreeView.hxx.
Referenced by resizeColumns(), setModel(), and TreeView().
|
protected |
Definition at line 51 of file TreeView.hxx.
Referenced by onCommitData(), and TreeView().