SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::gui::qt::ModifyObject Class Reference

#include <ModifyObject.h>

Inheritance diagram for sofa::gui::qt::ModifyObject:

Protected Attributes

void * Id_
 
QTreeWidgetItem * item_
 
core::objectmodel::Basebasenode
 
core::objectmodel::BaseDatadata_
 
const ModifyObjectFlags dialogFlags_
 
QWidgetmessageTab
 
QTextBrowser * messageEdit
 
QTabWidget * dialogTab
 
QPushButtonbuttonUpdate
 
int m_numMessages
 
std::vector< QTabulationModifyObject * > m_tabs
 

Public Member Functions

 ModifyObject (void *Id, QTreeWidgetItem *item_clicked, QWidget *parent, const ModifyObjectFlags &dialogFlags, const char *name=nullptr, bool modal=false, Qt::WindowFlags f=Qt::WindowType::Widget)
 
 ~ModifyObject () override
 
const ModifyObjectFlagsgetFlags ()
 
void createDialog (core::objectmodel::Base *node)
 
void createDialog (core::objectmodel::BaseData *data)
 
bool hideData (core::objectmodel::BaseData *data)
 
void readOnlyData (QTableWidget *widget, core::objectmodel::BaseData *data)
 
void readOnlyData (QWidget *widget, core::objectmodel::BaseData *data)
 

Protected Member Functions

void updateConsole ()
 
QString parseDataModified ()
 

Signals

void updateDataWidgets ()
 
void objectUpdated ()
 
void dialogClosed (void *)
 
void nodeNameModification (simulation::Node *)
 
void componentDirty (bool)
 
void dataModified (QString)
 
void beginObjectModification (sofa::core::objectmodel::Base *object)
 
void endObjectModification (sofa::core::objectmodel::Base *object)
 
void beginDataModification (sofa::core::objectmodel::BaseData *data)
 
void endDataModification (sofa::core::objectmodel::BaseData *data)
 

Public Slots

void openExternalBrowser (const QUrl &link)
 
void reject () override
 
void accept () override
 
void closeNow ()
 
void closeEvent (QCloseEvent *) override
 
void updateTables ()
 
virtual void updateValues ()
 

Protected Slots

void clearMessages ()
 

Attribute details

◆ basenode

core::objectmodel::Base* sofa::gui::qt::ModifyObject::basenode
protected

◆ buttonUpdate

QPushButton* sofa::gui::qt::ModifyObject::buttonUpdate
protected

◆ data_

core::objectmodel::BaseData* sofa::gui::qt::ModifyObject::data_
protected

◆ dialogFlags_

const ModifyObjectFlags sofa::gui::qt::ModifyObject::dialogFlags_
protected

◆ dialogTab

QTabWidget* sofa::gui::qt::ModifyObject::dialogTab
protected

◆ Id_

void* sofa::gui::qt::ModifyObject::Id_
protected

◆ item_

QTreeWidgetItem* sofa::gui::qt::ModifyObject::item_
protected

◆ m_numMessages

int sofa::gui::qt::ModifyObject::m_numMessages
protected

◆ m_tabs

std::vector< QTabulationModifyObject* > sofa::gui::qt::ModifyObject::m_tabs
protected

◆ messageEdit

QTextBrowser* sofa::gui::qt::ModifyObject::messageEdit
protected

◆ messageTab

QWidget* sofa::gui::qt::ModifyObject::messageTab
protected

Constructor details

◆ ModifyObject()

sofa::gui::qt::ModifyObject::ModifyObject ( void *  Id,
QTreeWidgetItem *  item_clicked,
QWidget parent,
const ModifyObjectFlags dialogFlags,
const char name = nullptr,
bool  modal = false,
Qt::WindowFlags  f = Qt::WindowType::Widget 
)
explicit

◆ ~ModifyObject()

sofa::gui::qt::ModifyObject::~ModifyObject ( )
inlineoverride

Function details

◆ accept

void sofa::gui::qt::ModifyObject::accept ( )
overrideslot

◆ beginDataModification

void sofa::gui::qt::ModifyObject::beginDataModification ( sofa::core::objectmodel::BaseData data)
signal

◆ beginObjectModification

void sofa::gui::qt::ModifyObject::beginObjectModification ( sofa::core::objectmodel::Base object)
signal

◆ clearMessages

void sofa::gui::qt::ModifyObject::clearMessages ( )
protectedslot

◆ closeEvent

void sofa::gui::qt::ModifyObject::closeEvent ( QCloseEvent *  )
inlineoverrideslot

◆ closeNow

void sofa::gui::qt::ModifyObject::closeNow ( )
inlineslot

◆ componentDirty

void sofa::gui::qt::ModifyObject::componentDirty ( bool  )
signal

◆ createDialog() [1/2]

void sofa::gui::qt::ModifyObject::createDialog ( core::objectmodel::Base node)

◆ createDialog() [2/2]

void sofa::gui::qt::ModifyObject::createDialog ( core::objectmodel::BaseData data)

◆ dataModified

void sofa::gui::qt::ModifyObject::dataModified ( QString  )
signal

◆ dialogClosed

void sofa::gui::qt::ModifyObject::dialogClosed ( void *  )
signal

◆ endDataModification

void sofa::gui::qt::ModifyObject::endDataModification ( sofa::core::objectmodel::BaseData data)
signal

◆ endObjectModification

void sofa::gui::qt::ModifyObject::endObjectModification ( sofa::core::objectmodel::Base object)
signal

◆ getFlags()

const ModifyObjectFlags& sofa::gui::qt::ModifyObject::getFlags ( )
inline

◆ hideData()

bool sofa::gui::qt::ModifyObject::hideData ( core::objectmodel::BaseData data)

◆ nodeNameModification

void sofa::gui::qt::ModifyObject::nodeNameModification ( simulation::Node )
signal

◆ objectUpdated

void sofa::gui::qt::ModifyObject::objectUpdated ( )
signal

◆ openExternalBrowser

void sofa::gui::qt::ModifyObject::openExternalBrowser ( const QUrl &  link)
slot

◆ parseDataModified()

QString sofa::gui::qt::ModifyObject::parseDataModified ( )
protected

◆ readOnlyData() [1/2]

void sofa::gui::qt::ModifyObject::readOnlyData ( QTableWidget *  widget,
core::objectmodel::BaseData data 
)

◆ readOnlyData() [2/2]

void sofa::gui::qt::ModifyObject::readOnlyData ( QWidget widget,
core::objectmodel::BaseData data 
)

◆ reject

void sofa::gui::qt::ModifyObject::reject ( )
overrideslot

◆ updateConsole()

void sofa::gui::qt::ModifyObject::updateConsole ( )
protected

◆ updateDataWidgets

void sofa::gui::qt::ModifyObject::updateDataWidgets ( )
signal

◆ updateTables

void sofa::gui::qt::ModifyObject::updateTables ( )
slot

◆ updateValues

void sofa::gui::qt::ModifyObject::updateValues ( )
virtualslot