Class responsible for creating the menu, right mouse button, and dynamically add menu options. More...
#include <MenuBuilder.h>
Signals | |
void | changeDlgProperty (Property property) |
Public Member Functions | |
virtual QtProperty * | addProperty (Property property) |
virtual bool | changeQtPropertyValue (QtProperty *pproperty, Property property) |
virtual bool | checkDlgType (Property prop) |
virtual void | clearAll () |
virtual void | closeAllWindows () |
virtual void | createMenu (QList< QGraphicsItem * > items) |
virtual Property | findDlgProperty (std::string name) |
virtual Property | findDlgProperty (EnumType *dataType) |
virtual QtProperty * | findProperty (std::string name) |
virtual QVariant | findPropertyValue (std::string name) |
QtDlgEditorFactory * | getDlgEditorFactory () |
std::map< std::string, Property > | getDlgProps () |
virtual EnumType * | getLayoutType (QVariant::Type type, std::string name="") |
virtual Property | getProperty (std::string name) |
QtStringPropertyManager * | getStringPropertyManager () |
virtual int | getVariantType (EnumType *dataType) |
MenuBuilder (QObject *parent=0) | |
virtual void | menuExec (int x=0, int y=0) |
virtual bool | removeProperty (QtProperty *prop) |
virtual bool | updateProperty (Property property) |
virtual | ~MenuBuilder () |
Protected Slots | |
virtual void | onChangeDlgProperty (Property property) |
virtual void | onMenuTriggered (QAction *action) |
virtual void | onSetDlg (QWidget *parent, QtProperty *prop) |
virtual void | onShowColorDlg () |
virtual void | onShowFontDlg () |
virtual void | onShowGridSettingsDlg () |
virtual void | onShowImageDlg () |
virtual void | onShowTextGridSettingsDlg () |
virtual void | updateOutside (Property prop) |
Protected Member Functions | |
virtual void | addPropertyItem (QtProperty *property, const QString &id) |
virtual void | changePropertyValue (Property property) |
virtual void | changeValueQtPropertyDlg (std::string name, QVariant variant) |
virtual QVariant | checkComplexType (QtVariantProperty *property) |
virtual void | checkedBool (bool checked) |
virtual QAction * | createAction (std::string text, std::string objName, std::string icon, std::string tooltip="") |
virtual void | createManager () |
virtual QWidget * | createOutside (EnumType *enumType) |
virtual Property | findMnuProperty (EnumType *dataType) |
virtual Property | findMnuProperty (std::string name) |
Protected Attributes | |
bool | m_changeProperty |
Property | m_currentPropertyClicked |
QtDlgEditorFactory * | m_dlgEditorFactory |
std::map< std::string, Property > | m_dlgProps |
QList< QGraphicsItem * > | m_graphicsItems |
QMap< QString, QtProperty * > | m_idToProperty |
QMenu * | m_menu |
Properties * | m_properties |
QMap< QtProperty *, QString > | m_propertyToId |
PropertiesUtils * | m_propUtils |
QtStringPropertyManager * | m_strDlgManager |
Class responsible for creating the menu, right mouse button, and dynamically add menu options.
Definition at line 57 of file MenuBuilder.h.
te::layout::MenuBuilder::MenuBuilder | ( | QObject * | parent = 0 | ) |
Definition at line 69 of file MenuBuilder.cpp.
References te::layout::DialogPropertiesBrowser::changeDlgProperty(), m_propUtils, and onChangeDlgProperty().
|
virtual |
Definition at line 78 of file MenuBuilder.cpp.
|
virtualinherited |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 160 of file DialogPropertiesBrowser.cpp.
References te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), te::layout::Property::getName(), te::layout::Property::getValue(), and te::layout::Variant::toString().
|
protectedvirtualinherited |
Definition at line 58 of file AbstractPropertiesBrowser.cpp.
|
signalinherited |
Referenced by MenuBuilder().
|
protectedvirtual |
Definition at line 286 of file MenuBuilder.cpp.
References te::layout::Properties::addProperty(), te::layout::Scene::addUndoStack(), te::layout::EnumDataType::getDataTypeNone(), te::layout::Enums::getEnumDataType(), te::layout::Observable::getHashCode(), te::common::Singleton< Enums >::getInstance(), te::common::Singleton< Context >::getInstance(), te::layout::ItemObserver::getModel(), te::layout::Properties::getObjectName(), te::layout::Observable::getProperties(), te::layout::Context::getScene(), te::layout::Property::getType(), te::layout::Properties::getTypeObj(), te::layout::ItemObserver::redraw(), te::layout::Properties::setHashCode(), te::layout::Properties::setObjectName(), te::layout::Properties::setTypeObj(), and te::layout::Observable::updateProperties().
|
virtualinherited |
Definition at line 141 of file DialogPropertiesBrowser.cpp.
|
protectedvirtualinherited |
Definition at line 239 of file DialogPropertiesBrowser.cpp.
|
protectedvirtualinherited |
Definition at line 111 of file AbstractPropertiesBrowser.cpp.
|
virtualinherited |
Definition at line 185 of file DialogPropertiesBrowser.cpp.
References te::layout::EnumDataType::getDataTypeGridSettings(), te::layout::EnumDataType::getDataTypeImage(), te::layout::EnumDataType::getDataTypeTextGridSettings(), te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), and te::layout::Property::getType().
|
protectedvirtual |
Definition at line 268 of file MenuBuilder.cpp.
References te::layout::EnumDataType::getDataTypeBool(), te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), and te::layout::Property::setValue().
|
virtualinherited |
Definition at line 64 of file AbstractPropertiesBrowser.cpp.
|
virtualinherited |
Definition at line 465 of file DialogPropertiesBrowser.cpp.
|
protectedvirtual |
Definition at line 136 of file MenuBuilder.cpp.
|
protectedvirtualinherited |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 89 of file DialogPropertiesBrowser.cpp.
Referenced by te::layout::DialogPropertiesBrowser::DialogPropertiesBrowser().
|
virtual |
Definition at line 93 of file MenuBuilder.cpp.
References te::layout::EnumDataType::getDataTypeBool(), te::layout::Enums::getEnumDataType(), te::layout::Property::getIcon(), te::common::Singleton< Enums >::getInstance(), te::layout::Property::getLabel(), te::layout::Property::getName(), te::layout::Property::getType(), te::layout::Property::getValue(), te::layout::Property::isMenu(), te::layout::Property::isVisible(), and te::layout::Variant::toBool().
|
protectedvirtualinherited |
Definition at line 470 of file DialogPropertiesBrowser.cpp.
References te::layout::BuildGraphicsOutside::createOuside(), te::layout::Context::getAbstractBuildGraphicsOutside(), and te::common::Singleton< Context >::getInstance().
|
virtualinherited |
Definition at line 201 of file DialogPropertiesBrowser.cpp.
|
virtualinherited |
Definition at line 220 of file DialogPropertiesBrowser.cpp.
References te::layout::Property::getType().
|
protectedvirtual |
Definition at line 345 of file MenuBuilder.cpp.
References te::layout::Property::getType().
|
protectedvirtual |
Definition at line 363 of file MenuBuilder.cpp.
References te::layout::Property::getName().
|
virtualinherited |
Definition at line 98 of file AbstractPropertiesBrowser.cpp.
|
virtualinherited |
Definition at line 70 of file AbstractPropertiesBrowser.cpp.
|
inherited |
Definition at line 136 of file DialogPropertiesBrowser.cpp.
|
inherited |
Definition at line 460 of file DialogPropertiesBrowser.cpp.
|
virtualinherited |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 374 of file DialogPropertiesBrowser.cpp.
References te::layout::EnumDataType::getDataTypeGridSettings(), te::layout::EnumDataType::getDataTypeImage(), te::layout::EnumDataType::getDataTypeNone(), te::layout::EnumDataType::getDataTypeString(), te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), te::layout::Property::getType(), te::layout::Property::getValue(), te::layout::Variant::isNull(), and te::layout::Property::setValue().
|
virtualinherited |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 343 of file DialogPropertiesBrowser.cpp.
References te::layout::EnumDataType::getDataTypeGridSettings(), te::layout::EnumDataType::getDataTypeImage(), te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), te::layout::Property::getType(), te::layout::Property::setName(), and te::layout::Property::setValue().
|
inherited |
Definition at line 131 of file DialogPropertiesBrowser.cpp.
|
virtualinherited |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 416 of file DialogPropertiesBrowser.cpp.
References te::layout::EnumDataType::getDataTypeGridSettings(), te::layout::EnumDataType::getDataTypeImage(), te::layout::Enums::getEnumDataType(), and te::common::Singleton< Enums >::getInstance().
|
virtual |
Definition at line 381 of file MenuBuilder.cpp.
|
protectedvirtualslot |
Definition at line 281 of file MenuBuilder.cpp.
Referenced by MenuBuilder().
|
protectedvirtualslot |
Definition at line 147 of file MenuBuilder.cpp.
References te::layout::Enums::getEnumDataType(), and te::common::Singleton< Enums >::getInstance().
|
protectedvirtualslotinherited |
Definition at line 99 of file DialogPropertiesBrowser.cpp.
References te::layout::EnumDataType::getDataTypeGridSettings(), te::layout::EnumDataType::getDataTypeImage(), te::layout::EnumDataType::getDataTypeNone(), te::layout::EnumDataType::getDataTypeTextGridSettings(), te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), and te::layout::Property::getType().
Referenced by te::layout::DialogPropertiesBrowser::DialogPropertiesBrowser().
|
protectedvirtualslot |
Definition at line 226 of file MenuBuilder.cpp.
References te::color::RGBAColor::getAlpha(), te::color::RGBAColor::getBlue(), te::layout::EnumDataType::getDataTypeColor(), te::layout::Enums::getEnumDataType(), te::color::RGBAColor::getGreen(), te::common::Singleton< Enums >::getInstance(), te::color::RGBAColor::getRed(), and te::color::RGBAColor::setColor().
|
protectedvirtualslot |
Definition at line 182 of file MenuBuilder.cpp.
References te::layout::EnumDataType::getDataTypeFont(), te::layout::Enums::getEnumDataType(), te::layout::Font::getFamily(), te::common::Singleton< Enums >::getInstance(), te::layout::Font::getPointSize(), te::layout::Font::isBold(), te::layout::Font::isItalic(), te::layout::Font::isKerning(), te::layout::Font::isStrikeout(), te::layout::Font::isUnderline(), te::layout::Font::setBold(), te::layout::Font::setFamily(), te::layout::Font::setItalic(), te::layout::Font::setKerning(), te::layout::Font::setPointSize(), te::layout::Font::setStrikeout(), and te::layout::Font::setUnderline().
|
protectedvirtualslotinherited |
Definition at line 256 of file DialogPropertiesBrowser.cpp.
References te::layout::Enums::getEnumObjectType(), te::layout::ItemUtils::getGridMapProperties(), te::layout::EnumObjectType::getGridSettings(), te::common::Singleton< Enums >::getInstance(), te::common::Singleton< Context >::getInstance(), te::layout::Context::getItemUtils(), te::layout::OutsideObserver::getModel(), and te::layout::GridSettingsModel::setProperties().
|
protectedvirtualslotinherited |
|
protectedvirtualslotinherited |
Definition at line 338 of file DialogPropertiesBrowser.cpp.
|
virtualinherited |
Definition at line 130 of file AbstractPropertiesBrowser.cpp.
|
protectedvirtualslotinherited |
Definition at line 495 of file DialogPropertiesBrowser.cpp.
|
virtualinherited |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 443 of file DialogPropertiesBrowser.cpp.
|
protectedinherited |
Definition at line 97 of file AbstractPropertiesBrowser.h.
|
protectedinherited |
Definition at line 136 of file DialogPropertiesBrowser.h.
|
protectedinherited |
Definition at line 134 of file DialogPropertiesBrowser.h.
Referenced by te::layout::DialogPropertiesBrowser::DialogPropertiesBrowser().
|
protectedinherited |
Definition at line 135 of file DialogPropertiesBrowser.h.
|
protected |
Definition at line 96 of file MenuBuilder.h.
|
protectedinherited |
Definition at line 99 of file AbstractPropertiesBrowser.h.
|
protected |
Definition at line 95 of file MenuBuilder.h.
|
protected |
Definition at line 97 of file MenuBuilder.h.
|
protectedinherited |
Definition at line 98 of file AbstractPropertiesBrowser.h.
|
protected |
Definition at line 98 of file MenuBuilder.h.
Referenced by MenuBuilder().
|
protectedinherited |
Definition at line 133 of file DialogPropertiesBrowser.h.