modify workspace proptyr

This commit is contained in:
jiegeaiai 2025-01-05 00:11:29 +08:00
parent ff462c7bd9
commit 6b9d56a3cf
7 changed files with 331 additions and 110 deletions

View File

@ -831,12 +831,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser.cpp" line="203"/>
<location filename="../ui/PropertyBrowser.cpp" line="205"/>
<source>ModelBase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser.cpp" line="208"/>
<location filename="../ui/PropertyBrowser.cpp" line="210"/>
<source>color base</source>
<translation type="unfinished"></translation>
</message>
@ -911,12 +911,12 @@
<context>
<name>QtBoolPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="1665"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="1835"/>
<source>True</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="1666"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="1836"/>
<source>False</source>
<translation type="unfinished"></translation>
</message>
@ -940,22 +940,22 @@
<context>
<name>QtColorPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6662"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6832"/>
<source>Red</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6670"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6840"/>
<source>Green</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6678"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6848"/>
<source>Blue</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6686"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6856"/>
<source>Alpha</source>
<translation type="unfinished"></translation>
</message>
@ -963,43 +963,43 @@
<context>
<name>QtConeWaveComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8385"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8394"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8562"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8571"/>
<source>ConeWaveComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8481"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8658"/>
<source>Height</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8488"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8665"/>
<source>Radius</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8495"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8672"/>
<source>levelCount</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8502"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8679"/>
<source>levelHeight</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8509"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8686"/>
<source>Color1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8516"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8693"/>
<source>Color2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8523"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8700"/>
<source>Color3</source>
<translation type="unfinished"></translation>
</message>
@ -1105,28 +1105,28 @@
<context>
<name>QtDashedLineComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8708"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8717"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8885"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8894"/>
<source>DashedLineComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8786"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8963"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8793"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8970"/>
<source>End</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8800"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8977"/>
<source>Radius</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8807"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8984"/>
<source>Color</source>
<translation type="unfinished"></translation>
</message>
@ -1142,12 +1142,12 @@
<context>
<name>QtEntityPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7865"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8042"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7872"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8049"/>
<source>Transform</source>
<translation type="unfinished"></translation>
</message>
@ -1168,37 +1168,37 @@
<context>
<name>QtFontPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6321"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6491"/>
<source>Family</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6339"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6509"/>
<source>Point Size</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6347"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6517"/>
<source>Bold</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6354"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6524"/>
<source>Italic</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6361"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6531"/>
<source>Underline</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6368"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6538"/>
<source>Strikeout</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6375"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6545"/>
<source>Kerning</source>
<translation type="unfinished"></translation>
</message>
@ -1206,22 +1206,22 @@
<context>
<name>QtLocalePropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2754"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2924"/>
<source>&lt;Invalid&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2762"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2932"/>
<source>%1, %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2812"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2982"/>
<source>Language</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2820"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2990"/>
<source>Country</source>
<translation type="unfinished"></translation>
</message>
@ -1229,13 +1229,13 @@
<context>
<name>QtMeshComponetManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7979"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7988"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8156"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8165"/>
<source>MeshComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8061"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8238"/>
<source>Mesh</source>
<translation type="unfinished"></translation>
</message>
@ -1243,22 +1243,22 @@
<context>
<name>QtModelBasePropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7452"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7622"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7459"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7629"/>
<source>Description</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7466"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7636"/>
<source>Inflow</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7473"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7643"/>
<source>InnerBottomElevation</source>
<translation type="unfinished"></translation>
</message>
@ -1279,13 +1279,13 @@
<context>
<name>QtPathComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8138"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8147"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8315"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8324"/>
<source>PathComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8220"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8397"/>
<source>Path</source>
<translation type="unfinished"></translation>
</message>
@ -1293,17 +1293,17 @@
<context>
<name>QtPointFPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3240"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3410"/>
<source>(%1, %2)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3311"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3481"/>
<source>X</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3319"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3489"/>
<source>Y</source>
<translation type="unfinished"></translation>
</message>
@ -1311,17 +1311,17 @@
<context>
<name>QtPointPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="2995"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3165"/>
<source>(%1, %2)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3032"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3202"/>
<source>X</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3039"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3209"/>
<source>Y</source>
<translation type="unfinished"></translation>
</message>
@ -1339,12 +1339,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7011"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7181"/>
<source>[%1, %2, %3]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7228"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7398"/>
<source>[%1, %2, %3] [%4, %5, %6] [%7, %8, %9]</source>
<translation type="unfinished"></translation>
</message>
@ -1352,27 +1352,27 @@
<context>
<name>QtRectFPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4773"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4943"/>
<source>[(%1, %2), %3 x %4]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4929"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5099"/>
<source>X</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4937"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5107"/>
<source>Y</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4945"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5115"/>
<source>Width</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4954"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5124"/>
<source>Height</source>
<translation type="unfinished"></translation>
</message>
@ -1380,27 +1380,27 @@
<context>
<name>QtRectPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4334"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4504"/>
<source>[(%1, %2), %3 x %4]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4454"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4624"/>
<source>X</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4461"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4631"/>
<source>Y</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4468"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4638"/>
<source>Width</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4476"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4646"/>
<source>Height</source>
<translation type="unfinished"></translation>
</message>
@ -1408,17 +1408,17 @@
<context>
<name>QtSizeFPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3933"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4103"/>
<source>%1 x %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4063"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4233"/>
<source>Width</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4072"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="4242"/>
<source>Height</source>
<translation type="unfinished"></translation>
</message>
@ -1426,33 +1426,33 @@
<context>
<name>QtSizePolicyPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5812"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5813"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5982"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5983"/>
<source>&lt;Invalid&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5814"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5984"/>
<source>[%1, %2, %3, %4]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5859"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6029"/>
<source>Horizontal Policy</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5868"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6038"/>
<source>Vertical Policy</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5877"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6047"/>
<source>Horizontal Stretch</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="5885"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="6055"/>
<source>Vertical Stretch</source>
<translation type="unfinished"></translation>
</message>
@ -1460,17 +1460,17 @@
<context>
<name>QtSizePropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3564"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3734"/>
<source>%1 x %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3660"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3830"/>
<source>Width</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3668"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="3838"/>
<source>Height</source>
<translation type="unfinished"></translation>
</message>
@ -1486,17 +1486,17 @@
<context>
<name>QtTransfromPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7239"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7409"/>
<source>Location</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7246"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7416"/>
<source>Rotation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7253"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7423"/>
<source>Scale</source>
<translation type="unfinished"></translation>
</message>
@ -1517,17 +1517,17 @@
<context>
<name>QtVec3PropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7020"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7190"/>
<source>X</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7027"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7197"/>
<source>Y</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7034"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7204"/>
<source>Z</source>
<translation type="unfinished"></translation>
</message>
@ -1535,17 +1535,17 @@
<context>
<name>QtWorkspacePropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7665"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7842"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7672"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7849"/>
<source>Description</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7679"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7856"/>
<source>Timestep</source>
<translation type="unfinished"></translation>
</message>

View File

@ -129,6 +129,7 @@ void PropertyBrowser::InitPropertyManager() {
QtSpinBoxFactory* spinBoxFactory = new QtSpinBoxFactory(this);
QtLineEditFactory* lineEditFactory = new QtLineEditFactory(this);
QtEnumEditorFactory* comboBoxFactory = new QtEnumEditorFactory(this);
QtFilePathFactory* filePathFactory = new QtFilePathFactory(this);
//QtTransfromEditorFactory* transformFactory = new QtTransfromEditorFactory(this);
browser_->setFactoryForManager(doubleManager_, doubleSpinBoxFactory);
@ -140,6 +141,7 @@ void PropertyBrowser::InitPropertyManager() {
browser_->setFactoryForManager(pointManager_->subIntPropertyManager(), spinBoxFactory);
browser_->setFactoryForManager(sizeManager_->subIntPropertyManager(), spinBoxFactory);
browser_->setFactoryForManager(workSpaceManager_->subStringProperyManager(), lineEditFactory);
browser_->setFactoryForManager(workSpaceManager_->subFilesProperyManager(), filePathFactory);
browser_->setFactoryForManager(entityManager_->subStringProperyManager(), lineEditFactory);
browser_->setFactoryForManager(
entityManager_->subTransfromProperyManager()->subVec3TPropertyManager()->subDoublePropertyManager(),
@ -166,7 +168,7 @@ void PropertyBrowser::InitComponentPropertyManager() {
componetManager_[meshComponentManager->GetPropertyId()] = meshComponentManager;
QtPathComponentManager* pathComponentManager = new QtPathComponentManager(this);
browser_->setFactoryForManager(pathComponentManager->subStringProperyManager(), filePathFactory);
browser_->setFactoryForManager(pathComponentManager->subFilesProperyManager(), filePathFactory);
componetManager_[pathComponentManager->GetPropertyId()] = pathComponentManager;
QtConeWaveComponentManager* coneWaveComponentManager = new QtConeWaveComponentManager(this);

View File

@ -1088,7 +1088,7 @@ void QtFilePathFactoryPrivate::slotSetValue(const QString& value)
for (QMap<QFilePathEdit*, QtProperty*>::ConstIterator itEditor = m_editorToProperty.constBegin(); itEditor != ecend; ++itEditor)
if (itEditor.key() == object) {
QtProperty* property = itEditor.value();
QtStringPropertyManager* manager = q_ptr->propertyManager(property);
QtFilesPropertyManager* manager = q_ptr->propertyManager(property);
if (!manager)
return;
manager->setValue(property, value);
@ -1112,7 +1112,7 @@ void QtFilePathFactoryPrivate::slotSetValue(const QString& value)
Creates a factory with the given \a parent.
*/
QtFilePathFactory::QtFilePathFactory(QObject* parent)
: QtAbstractEditorFactory<QtStringPropertyManager>(parent), d_ptr(new QtFilePathFactoryPrivate())
: QtAbstractEditorFactory<QtFilesPropertyManager>(parent), d_ptr(new QtFilePathFactoryPrivate())
{
d_ptr->q_ptr = this;
@ -1131,7 +1131,7 @@ QtFilePathFactory::~QtFilePathFactory()
Reimplemented from the QtAbstractEditorFactory class.
*/
void QtFilePathFactory::connectPropertyManager(QtStringPropertyManager* manager)
void QtFilePathFactory::connectPropertyManager(QtFilesPropertyManager* manager)
{
connect(manager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotPropertyChanged(QtProperty*, QString)));
@ -1142,7 +1142,7 @@ void QtFilePathFactory::connectPropertyManager(QtStringPropertyManager* manager)
Reimplemented from the QtAbstractEditorFactory class.
*/
QWidget* QtFilePathFactory::createEditor(QtStringPropertyManager* manager,
QWidget* QtFilePathFactory::createEditor(QtFilesPropertyManager* manager,
QtProperty* property, QWidget* parent)
{
QFilePathEdit* editor = d_ptr->createEditor(property, parent);
@ -1163,7 +1163,7 @@ QWidget* QtFilePathFactory::createEditor(QtStringPropertyManager* manager,
Reimplemented from the QtAbstractEditorFactory class.
*/
void QtFilePathFactory::disconnectPropertyManager(QtStringPropertyManager* manager)
void QtFilePathFactory::disconnectPropertyManager(QtFilesPropertyManager* manager)
{
disconnect(manager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotPropertyChanged(QtProperty*, QString)));

View File

@ -190,17 +190,17 @@ private:
class QtFilePathFactoryPrivate;
class QtFilePathFactory : public QtAbstractEditorFactory<QtStringPropertyManager>
class QtFilePathFactory : public QtAbstractEditorFactory<QtFilesPropertyManager>
{
Q_OBJECT
public:
QtFilePathFactory(QObject *parent = 0);
~QtFilePathFactory();
protected:
void connectPropertyManager(QtStringPropertyManager *manager) override;
QWidget *createEditor(QtStringPropertyManager *manager, QtProperty *property,
void connectPropertyManager(QtFilesPropertyManager*manager) override;
QWidget *createEditor(QtFilesPropertyManager*manager, QtProperty *property,
QWidget *parent) override;
void disconnectPropertyManager(QtStringPropertyManager *manager) override;
void disconnectPropertyManager(QtFilesPropertyManager*manager) override;
private:
QScopedPointer<QtFilePathFactoryPrivate> d_ptr;
Q_DECLARE_PRIVATE(QtFilePathFactory)

View File

@ -1533,6 +1533,176 @@ void QtStringPropertyManager::uninitializeProperty(QtProperty* property)
#pragma endregion
// QtFilesPropertyManager
#pragma region QtFilesPropertyManager
class QtFilesPropertyManagerPrivate {
QtFilesPropertyManager* q_ptr;
Q_DECLARE_PUBLIC(QtFilesPropertyManager)
public:
struct Data {
QString val;
QString initVal;
bool isInitialed;
};
typedef QMap<const QtProperty*, Data> PropertyValueMap;
QMap<const QtProperty*, Data> m_values;
};
/*!
\class QtStringPropertyManager
\internal
\inmodule QtDesigner
\since 4.4
\brief The QtStringPropertyManager provides and manages QString properties.
A string property's value can be retrieved using the value()
function, and set using the setValue() slot.
The current value can be checked against a regular expression. To
set the regular expression use the setRegExp() slot, use the
regExp() function to retrieve the currently set expression.
In addition, QtStringPropertyManager provides the valueChanged() signal
which is emitted whenever a property created by this manager
changes, and the regExpChanged() signal which is emitted whenever
such a property changes its currently set regular expression.
\sa QtAbstractPropertyManager, QtLineEditFactory
*/
/*!
\fn void QtStringPropertyManager::valueChanged(QtProperty *property, const QString &value)
This signal is emitted whenever a property created by this manager
changes its value, passing a pointer to the \a property and the
new \a value as parameters.
\sa setValue()
*/
/*!
\fn void QtStringPropertyManager::regExpChanged(QtProperty *property, const QRegularExpression &regExp)
This signal is emitted whenever a property created by this manager
changes its currenlty set regular expression, passing a pointer to
the \a property and the new \a regExp as parameters.
\sa setRegExp()
*/
/*!
Creates a manager with the given \a parent.
*/
QtFilesPropertyManager::QtFilesPropertyManager(QObject* parent)
: QtAbstractPropertyManager(parent), d_ptr(new QtFilesPropertyManagerPrivate) {
d_ptr->q_ptr = this;
}
/*!
Destroys this manager, and all the properties it has created.
*/
QtFilesPropertyManager::~QtFilesPropertyManager() {
clear();
}
/*!
Returns the given \a property's value.
If the given property is not managed by this manager, this
function returns an empty string.
\sa setValue()
*/
QString QtFilesPropertyManager::value(const QtProperty* property) const {
return getValue<QString>(d_ptr->m_values, property);
}
QString QtFilesPropertyManager::initialValue(const QtProperty* property) const {
return getData<QString>(d_ptr->m_values, &QtFilesPropertyManagerPrivate::Data::initVal, property, QString());
}
/*!
\reimp
*/
QString QtFilesPropertyManager::valueText(const QtProperty* property) const {
const QtFilesPropertyManagerPrivate::PropertyValueMap::const_iterator it = d_ptr->m_values.constFind(property);
if (it == d_ptr->m_values.constEnd())
return QString();
return it.value().val;
}
/*!
\fn void QtStringPropertyManager::setValue(QtProperty *property, const QString &value)
Sets the value of the given \a property to \a value.
If the specified \a value doesn't match the given \a property's
regular expression, this function does nothing.
\sa value(), setRegExp(), valueChanged()
*/
void QtFilesPropertyManager::setValue(QtProperty* property, const QString& val) {
const QtFilesPropertyManagerPrivate::PropertyValueMap::iterator it = d_ptr->m_values.find(property);
if (it == d_ptr->m_values.end())
return;
QtFilesPropertyManagerPrivate::Data data = it.value();
if (data.val == val)
return;
if (!data.isInitialed) {
data.initVal = val;
data.isInitialed = true;
}
data.val = val;
it.value() = data;
emit propertyChanged(property);
emit valueChanged(property, data.val);
}
void QtFilesPropertyManager::setValueOnly(QtProperty* property, const QString& val) {
const QtFilesPropertyManagerPrivate::PropertyValueMap::iterator it = d_ptr->m_values.find(property);
if (it == d_ptr->m_values.end())
return;
QtFilesPropertyManagerPrivate::Data data = it.value();
if (data.val == val)
return;
data.val = val;
data.initVal = val;
it.value() = data;
emit propertyChanged(property);
emit valueChanged(property, data.val);
}
/*!
\reimp
*/
void QtFilesPropertyManager::initializeProperty(QtProperty* property) {
d_ptr->m_values[property] = QtFilesPropertyManagerPrivate::Data();
}
/*!
\reimp
*/
void QtFilesPropertyManager::uninitializeProperty(QtProperty* property) {
d_ptr->m_values.remove(property);
}
#pragma endregion
// QtBoolPropertyManager
#pragma region QtBoolPropertyManager
@ -7530,6 +7700,7 @@ public:
QtStringPropertyManager* m_stringProperyManager;
QtFilesPropertyManager* m_filesProperyManager;
QMap<const QtProperty*, QtProperty*> m_properyToName;
QMap<const QtProperty*, QtProperty*> m_properyToDescription;
@ -7578,9 +7749,11 @@ QtWorkspacePropertyManager::QtWorkspacePropertyManager(QObject* parent)
d_ptr->q_ptr = this;
d_ptr->m_stringProperyManager = new QtStringPropertyManager(this);
bool succ = connect(d_ptr->m_stringProperyManager, SIGNAL(valueChanged(QtProperty*, QString)),
connect(d_ptr->m_stringProperyManager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotStringChanged(QtProperty*, QString)));
succ = false;
d_ptr->m_filesProperyManager = new QtFilesPropertyManager(this);
connect(d_ptr->m_filesProperyManager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotStringChanged(QtProperty*, QString)));
}
/*!
@ -7606,6 +7779,10 @@ QtStringPropertyManager* QtWorkspacePropertyManager::subStringProperyManager() c
return d_ptr->m_stringProperyManager;
}
QtFilesPropertyManager* QtWorkspacePropertyManager::subFilesProperyManager() const {
return d_ptr->m_filesProperyManager;
}
/*!
\reimp
*/
@ -7648,7 +7825,7 @@ void QtWorkspacePropertyManager::setValue(QtProperty* property, const QWorkspace
d_ptr->m_stringProperyManager->setValue(d_ptr->m_properyToName[property], value.GetName());
d_ptr->m_stringProperyManager->setValue(d_ptr->m_properyToDescription[property], value.GetDescription());
d_ptr->m_stringProperyManager->setValue(d_ptr->m_properyToTimestep[property], value.GetTimeStep());
d_ptr->m_filesProperyManager->setValue(d_ptr->m_properyToTimestep[property], value.GetTimeStep());
emit propertyChanged(property);
emit valueChanged(property, value);
@ -7675,9 +7852,9 @@ void QtWorkspacePropertyManager::initializeProperty(QtProperty* property) {
d_ptr->m_descriptionToPropery[prop] = property;
property->addSubProperty(prop);
prop = d_ptr->m_stringProperyManager->addProperty();
prop = d_ptr->m_filesProperyManager->addProperty();
prop->setPropertyName(tr("Timestep"));
d_ptr->m_stringProperyManager->setValueOnly(prop, val.GetTimeStep());
d_ptr->m_filesProperyManager->setValueOnly(prop, val.GetTimeStep());
d_ptr->m_properyToTimestep[property] = prop;
d_ptr->m_timestepToPropery[prop] = property;
property->addSubProperty(prop);
@ -8095,7 +8272,7 @@ public:
typedef QMap<const QtProperty*, QPathComponentAttribute> PropertyValueMap;
PropertyValueMap m_values;
QtStringPropertyManager* m_stringProperyManager;
QtFilesPropertyManager* m_filesProperyManager;
QMap<const QtProperty*, QtProperty*> m_properyToPath;
@ -8122,8 +8299,8 @@ QtPathComponentManager::QtPathComponentManager(QObject* parent)
: QtComponentPropertyManager(parent), d_ptr(new QtPathComponentManagerPrivate) {
d_ptr->q_ptr = this;
d_ptr->m_stringProperyManager = new QtStringPropertyManager(this);
connect(d_ptr->m_stringProperyManager, SIGNAL(valueChanged(QtProperty*, QString)),
d_ptr->m_filesProperyManager = new QtFilesPropertyManager(this);
connect(d_ptr->m_filesProperyManager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotStringChanged(QtProperty*, QString)));
}
@ -8159,8 +8336,8 @@ QPathComponentAttribute QtPathComponentManager::value(const QtProperty* property
return d_ptr->m_values.value(property, QPathComponentAttribute());
}
QtStringPropertyManager* QtPathComponentManager::subStringProperyManager() const {
return d_ptr->m_stringProperyManager;
QtFilesPropertyManager* QtPathComponentManager::subFilesProperyManager() const {
return d_ptr->m_filesProperyManager;
}
/*!
@ -8203,7 +8380,7 @@ void QtPathComponentManager::setValue(QtProperty* property, const QPathComponent
it.value() = value;
d_ptr->m_stringProperyManager->setValue(d_ptr->m_properyToPath[property], value.GetPath());
d_ptr->m_filesProperyManager->setValue(d_ptr->m_properyToPath[property], value.GetPath());
emit propertyChanged(property);
emit valueChanged(property, value);
@ -8216,9 +8393,9 @@ void QtPathComponentManager::initializeProperty(QtProperty* property) {
QPathComponentAttribute val;
d_ptr->m_values[property] = val;
QtProperty* prop = d_ptr->m_stringProperyManager->addProperty();
QtProperty* prop = d_ptr->m_filesProperyManager->addProperty();
prop->setPropertyName(tr("Path"));
d_ptr->m_stringProperyManager->setValueOnly(prop, val.GetPath());
d_ptr->m_filesProperyManager->setValueOnly(prop, val.GetPath());
d_ptr->m_properyToPath[property] = prop;
d_ptr->m_pathToPropery[prop] = property;
property->addSubProperty(prop);

View File

@ -219,6 +219,36 @@ private:
#pragma endregion
#pragma region QtFilesPropertyManager
class QtFilesPropertyManagerPrivate;
class QtFilesPropertyManager : public QtAbstractPropertyManager {
Q_OBJECT
public:
QtFilesPropertyManager(QObject* parent = 0);
~QtFilesPropertyManager();
QString value(const QtProperty* property) const;
QString initialValue(const QtProperty* property) const;
public Q_SLOTS:
void setValue(QtProperty* property, const QString& val);
void setValueOnly(QtProperty* property, const QString& val);
Q_SIGNALS:
void valueChanged(QtProperty* property, const QString& val);
protected:
QString valueText(const QtProperty* property) const override;
void initializeProperty(QtProperty* property) override;
void uninitializeProperty(QtProperty* property) override;
private:
QScopedPointer<QtFilesPropertyManagerPrivate> d_ptr;
Q_DECLARE_PRIVATE(QtFilesPropertyManager)
Q_DISABLE_COPY_MOVE(QtFilesPropertyManager)
};
#pragma endregion
#pragma region QtDatePropertyManager
class QtDatePropertyManagerPrivate;
@ -967,6 +997,7 @@ public:
QWorkspaceAttribute value(const QtProperty* property) const;
QtStringPropertyManager* subStringProperyManager() const;
QtFilesPropertyManager* subFilesProperyManager() const;
public Q_SLOTS:
void setValue(QtProperty* property, const QWorkspaceAttribute& val);
@ -1085,7 +1116,7 @@ public:
QPathComponentAttribute value(const QtProperty* property) const;
QtStringPropertyManager* subStringProperyManager() const;
QtFilesPropertyManager* subFilesProperyManager() const;
public Q_SLOTS:
void setValue(QtProperty* property, const QPathComponentAttribute& val);

View File

@ -62,6 +62,17 @@ void QWorkspaceAttribute::SetTimeStep(const QString& timestep) {
return;
}
Timestep* obj = workspace_->GetTimestep();
if (nullptr == obj) {
workspace_->SetTimestepPath(timestep);
return;
}
const QString& path = obj->GetPath();
if (path == timestep) {
return;
}
workspace_->SetTimestepPath(timestep);
}