PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::PPropertyWidget Class Reference

#include <PPropertyWidget.h>

Inheritance diagram for dyno::PPropertyWidget:
Collaboration diagram for dyno::PPropertyWidget:

Classes

struct  FieldWidgetMeta
 

Public Slots

void showModuleProperty (std::shared_ptr< Module > module)
 
void showNodeProperty (std::shared_ptr< Node > node)
 
void showProperty (Qt::QtNode &block)
 
void clearProperty ()
 
void contentUpdated ()
 

Signals

void nodeUpdated (std::shared_ptr< Node > node)
 
void moduleUpdated (std::shared_ptr< Module > node)
 
void stateFieldUpdated (FBase *field, int status)
 

Public Member Functions

 PPropertyWidget (QWidget *parent=nullptr)
 
 ~PPropertyWidget ()
 
virtual QSize sizeHint () const
 
QWidget * addWidget (QWidget *widget)
 
void removeAllWidgets ()
 

Static Public Member Functions

static int registerWidget (const FieldWidgetMeta &)
 
static FieldWidgetMetagetRegistedWidget (const std::string &)
 
static QWidget * createFieldWidget (FBase *field)
 
static std::map< std::string, FieldWidgetMetatempGetMeta ()
 

Private Member Functions

void addScalarFieldWidget (FBase *field, QGridLayout *layout, int j)
 
void addArrayFieldWidget (FBase *field)
 
void addStateFieldWidget (FBase *field)
 

Private Attributes

QVBoxLayout * mMainLayout
 
QScrollArea * mScrollArea
 
QGridLayout * mScrollLayout
 
std::vector< QWidget * > mPropertyItems
 
LockerButtonmPropertyLabel [3]
 
QWidget * mPropertyWidget [3]
 
QGridLayout * mPropertyLayout [3]
 
bool mFlag [3]
 
std::shared_ptr< OBasemSeleted = nullptr
 

Static Private Attributes

static std::map< std::string, FieldWidgetMetasFieldWidgetMeta {}
 

Detailed Description

Definition at line 42 of file PPropertyWidget.h.

Constructor & Destructor Documentation

◆ PPropertyWidget()

dyno::PPropertyWidget::PPropertyWidget ( QWidget * parent = nullptr)
explicit

Definition at line 25 of file PPropertyWidget.cpp.

◆ ~PPropertyWidget()

dyno::PPropertyWidget::~PPropertyWidget ( )

Definition at line 52 of file PPropertyWidget.cpp.

Member Function Documentation

◆ addArrayFieldWidget()

void dyno::PPropertyWidget::addArrayFieldWidget ( FBase * field)
private

Definition at line 355 of file PPropertyWidget.cpp.

Here is the call graph for this function:

◆ addScalarFieldWidget()

void dyno::PPropertyWidget::addScalarFieldWidget ( FBase * field,
QGridLayout * layout,
int j )
private

Definition at line 342 of file PPropertyWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addStateFieldWidget()

void dyno::PPropertyWidget::addStateFieldWidget ( FBase * field)
private

Definition at line 361 of file PPropertyWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addWidget()

QWidget * dyno::PPropertyWidget::addWidget ( QWidget * widget)

Definition at line 72 of file PPropertyWidget.cpp.

Here is the caller graph for this function:

◆ clearProperty

void dyno::PPropertyWidget::clearProperty ( )
slot

Definition at line 310 of file PPropertyWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ contentUpdated

void dyno::PPropertyWidget::contentUpdated ( )
slot

Definition at line 315 of file PPropertyWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createFieldWidget()

QWidget * dyno::PPropertyWidget::createFieldWidget ( FBase * field)
static

Definition at line 330 of file PPropertyWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRegistedWidget()

PPropertyWidget::FieldWidgetMeta * dyno::PPropertyWidget::getRegistedWidget ( const std::string & name)
static

Definition at line 61 of file PPropertyWidget.cpp.

Here is the caller graph for this function:

◆ moduleUpdated

void dyno::PPropertyWidget::moduleUpdated ( std::shared_ptr< Module > node)
signal
Here is the caller graph for this function:

◆ nodeUpdated

void dyno::PPropertyWidget::nodeUpdated ( std::shared_ptr< Node > node)
signal
Here is the caller graph for this function:

◆ registerWidget()

int dyno::PPropertyWidget::registerWidget ( const FieldWidgetMeta & meta)
static

Definition at line 57 of file PPropertyWidget.cpp.

◆ removeAllWidgets()

void dyno::PPropertyWidget::removeAllWidgets ( )

Definition at line 80 of file PPropertyWidget.cpp.

Here is the caller graph for this function:

◆ showModuleProperty

void dyno::PPropertyWidget::showModuleProperty ( std::shared_ptr< Module > module)
slot

Definition at line 91 of file PPropertyWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showNodeProperty

void dyno::PPropertyWidget::showNodeProperty ( std::shared_ptr< Node > node)
slot

Definition at line 180 of file PPropertyWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showProperty

void dyno::PPropertyWidget::showProperty ( Qt::QtNode & block)
slot

Definition at line 291 of file PPropertyWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeHint()

QSize dyno::PPropertyWidget::sizeHint ( ) const
virtual

Definition at line 67 of file PPropertyWidget.cpp.

◆ stateFieldUpdated

void dyno::PPropertyWidget::stateFieldUpdated ( FBase * field,
int status )
signal
Here is the caller graph for this function:

◆ tempGetMeta()

static std::map< std::string, FieldWidgetMeta > dyno::PPropertyWidget::tempGetMeta ( )
inlinestatic

Definition at line 86 of file PPropertyWidget.h.

Member Data Documentation

◆ mFlag

bool dyno::PPropertyWidget::mFlag[3]
private

Definition at line 104 of file PPropertyWidget.h.

◆ mMainLayout

QVBoxLayout* dyno::PPropertyWidget::mMainLayout
private

Definition at line 95 of file PPropertyWidget.h.

◆ mPropertyItems

std::vector<QWidget*> dyno::PPropertyWidget::mPropertyItems
private

Definition at line 99 of file PPropertyWidget.h.

◆ mPropertyLabel

LockerButton* dyno::PPropertyWidget::mPropertyLabel[3]
private

Definition at line 101 of file PPropertyWidget.h.

◆ mPropertyLayout

QGridLayout* dyno::PPropertyWidget::mPropertyLayout[3]
private

Definition at line 103 of file PPropertyWidget.h.

◆ mPropertyWidget

QWidget* dyno::PPropertyWidget::mPropertyWidget[3]
private

Definition at line 102 of file PPropertyWidget.h.

◆ mScrollArea

QScrollArea* dyno::PPropertyWidget::mScrollArea
private

Definition at line 96 of file PPropertyWidget.h.

◆ mScrollLayout

QGridLayout* dyno::PPropertyWidget::mScrollLayout
private

Definition at line 97 of file PPropertyWidget.h.

◆ mSeleted

std::shared_ptr<OBase> dyno::PPropertyWidget::mSeleted = nullptr
private

Definition at line 106 of file PPropertyWidget.h.

◆ sFieldWidgetMeta

std::map< std::string, PPropertyWidget::FieldWidgetMeta > dyno::PPropertyWidget::sFieldWidgetMeta {}
staticprivate

Definition at line 88 of file PPropertyWidget.h.


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