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

View File

@ -129,6 +129,7 @@ void PropertyBrowser::InitPropertyManager() {
QtSpinBoxFactory* spinBoxFactory = new QtSpinBoxFactory(this); QtSpinBoxFactory* spinBoxFactory = new QtSpinBoxFactory(this);
QtLineEditFactory* lineEditFactory = new QtLineEditFactory(this); QtLineEditFactory* lineEditFactory = new QtLineEditFactory(this);
QtEnumEditorFactory* comboBoxFactory = new QtEnumEditorFactory(this); QtEnumEditorFactory* comboBoxFactory = new QtEnumEditorFactory(this);
QtFilePathFactory* filePathFactory = new QtFilePathFactory(this);
//QtTransfromEditorFactory* transformFactory = new QtTransfromEditorFactory(this); //QtTransfromEditorFactory* transformFactory = new QtTransfromEditorFactory(this);
browser_->setFactoryForManager(doubleManager_, doubleSpinBoxFactory); browser_->setFactoryForManager(doubleManager_, doubleSpinBoxFactory);
@ -140,6 +141,7 @@ void PropertyBrowser::InitPropertyManager() {
browser_->setFactoryForManager(pointManager_->subIntPropertyManager(), spinBoxFactory); browser_->setFactoryForManager(pointManager_->subIntPropertyManager(), spinBoxFactory);
browser_->setFactoryForManager(sizeManager_->subIntPropertyManager(), spinBoxFactory); browser_->setFactoryForManager(sizeManager_->subIntPropertyManager(), spinBoxFactory);
browser_->setFactoryForManager(workSpaceManager_->subStringProperyManager(), lineEditFactory); browser_->setFactoryForManager(workSpaceManager_->subStringProperyManager(), lineEditFactory);
browser_->setFactoryForManager(workSpaceManager_->subFilesProperyManager(), filePathFactory);
browser_->setFactoryForManager(entityManager_->subStringProperyManager(), lineEditFactory); browser_->setFactoryForManager(entityManager_->subStringProperyManager(), lineEditFactory);
browser_->setFactoryForManager( browser_->setFactoryForManager(
entityManager_->subTransfromProperyManager()->subVec3TPropertyManager()->subDoublePropertyManager(), entityManager_->subTransfromProperyManager()->subVec3TPropertyManager()->subDoublePropertyManager(),
@ -166,7 +168,7 @@ void PropertyBrowser::InitComponentPropertyManager() {
componetManager_[meshComponentManager->GetPropertyId()] = meshComponentManager; componetManager_[meshComponentManager->GetPropertyId()] = meshComponentManager;
QtPathComponentManager* pathComponentManager = new QtPathComponentManager(this); QtPathComponentManager* pathComponentManager = new QtPathComponentManager(this);
browser_->setFactoryForManager(pathComponentManager->subStringProperyManager(), filePathFactory); browser_->setFactoryForManager(pathComponentManager->subFilesProperyManager(), filePathFactory);
componetManager_[pathComponentManager->GetPropertyId()] = pathComponentManager; componetManager_[pathComponentManager->GetPropertyId()] = pathComponentManager;
QtConeWaveComponentManager* coneWaveComponentManager = new QtConeWaveComponentManager(this); 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) for (QMap<QFilePathEdit*, QtProperty*>::ConstIterator itEditor = m_editorToProperty.constBegin(); itEditor != ecend; ++itEditor)
if (itEditor.key() == object) { if (itEditor.key() == object) {
QtProperty* property = itEditor.value(); QtProperty* property = itEditor.value();
QtStringPropertyManager* manager = q_ptr->propertyManager(property); QtFilesPropertyManager* manager = q_ptr->propertyManager(property);
if (!manager) if (!manager)
return; return;
manager->setValue(property, value); manager->setValue(property, value);
@ -1112,7 +1112,7 @@ void QtFilePathFactoryPrivate::slotSetValue(const QString& value)
Creates a factory with the given \a parent. Creates a factory with the given \a parent.
*/ */
QtFilePathFactory::QtFilePathFactory(QObject* parent) QtFilePathFactory::QtFilePathFactory(QObject* parent)
: QtAbstractEditorFactory<QtStringPropertyManager>(parent), d_ptr(new QtFilePathFactoryPrivate()) : QtAbstractEditorFactory<QtFilesPropertyManager>(parent), d_ptr(new QtFilePathFactoryPrivate())
{ {
d_ptr->q_ptr = this; d_ptr->q_ptr = this;
@ -1131,7 +1131,7 @@ QtFilePathFactory::~QtFilePathFactory()
Reimplemented from the QtAbstractEditorFactory class. Reimplemented from the QtAbstractEditorFactory class.
*/ */
void QtFilePathFactory::connectPropertyManager(QtStringPropertyManager* manager) void QtFilePathFactory::connectPropertyManager(QtFilesPropertyManager* manager)
{ {
connect(manager, SIGNAL(valueChanged(QtProperty*, QString)), connect(manager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotPropertyChanged(QtProperty*, QString))); this, SLOT(slotPropertyChanged(QtProperty*, QString)));
@ -1142,7 +1142,7 @@ void QtFilePathFactory::connectPropertyManager(QtStringPropertyManager* manager)
Reimplemented from the QtAbstractEditorFactory class. Reimplemented from the QtAbstractEditorFactory class.
*/ */
QWidget* QtFilePathFactory::createEditor(QtStringPropertyManager* manager, QWidget* QtFilePathFactory::createEditor(QtFilesPropertyManager* manager,
QtProperty* property, QWidget* parent) QtProperty* property, QWidget* parent)
{ {
QFilePathEdit* editor = d_ptr->createEditor(property, parent); QFilePathEdit* editor = d_ptr->createEditor(property, parent);
@ -1163,7 +1163,7 @@ QWidget* QtFilePathFactory::createEditor(QtStringPropertyManager* manager,
Reimplemented from the QtAbstractEditorFactory class. Reimplemented from the QtAbstractEditorFactory class.
*/ */
void QtFilePathFactory::disconnectPropertyManager(QtStringPropertyManager* manager) void QtFilePathFactory::disconnectPropertyManager(QtFilesPropertyManager* manager)
{ {
disconnect(manager, SIGNAL(valueChanged(QtProperty*, QString)), disconnect(manager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotPropertyChanged(QtProperty*, QString))); this, SLOT(slotPropertyChanged(QtProperty*, QString)));

View File

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

View File

@ -1533,6 +1533,176 @@ void QtStringPropertyManager::uninitializeProperty(QtProperty* property)
#pragma endregion #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 // QtBoolPropertyManager
#pragma region QtBoolPropertyManager #pragma region QtBoolPropertyManager
@ -7530,6 +7700,7 @@ public:
QtStringPropertyManager* m_stringProperyManager; QtStringPropertyManager* m_stringProperyManager;
QtFilesPropertyManager* m_filesProperyManager;
QMap<const QtProperty*, QtProperty*> m_properyToName; QMap<const QtProperty*, QtProperty*> m_properyToName;
QMap<const QtProperty*, QtProperty*> m_properyToDescription; QMap<const QtProperty*, QtProperty*> m_properyToDescription;
@ -7578,9 +7749,11 @@ QtWorkspacePropertyManager::QtWorkspacePropertyManager(QObject* parent)
d_ptr->q_ptr = this; d_ptr->q_ptr = this;
d_ptr->m_stringProperyManager = new QtStringPropertyManager(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)));
d_ptr->m_filesProperyManager = new QtFilesPropertyManager(this);
connect(d_ptr->m_filesProperyManager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotStringChanged(QtProperty*, QString))); this, SLOT(slotStringChanged(QtProperty*, QString)));
succ = false;
} }
/*! /*!
@ -7606,6 +7779,10 @@ QtStringPropertyManager* QtWorkspacePropertyManager::subStringProperyManager() c
return d_ptr->m_stringProperyManager; return d_ptr->m_stringProperyManager;
} }
QtFilesPropertyManager* QtWorkspacePropertyManager::subFilesProperyManager() const {
return d_ptr->m_filesProperyManager;
}
/*! /*!
\reimp \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_properyToName[property], value.GetName());
d_ptr->m_stringProperyManager->setValue(d_ptr->m_properyToDescription[property], value.GetDescription()); 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 propertyChanged(property);
emit valueChanged(property, value); emit valueChanged(property, value);
@ -7675,9 +7852,9 @@ void QtWorkspacePropertyManager::initializeProperty(QtProperty* property) {
d_ptr->m_descriptionToPropery[prop] = property; d_ptr->m_descriptionToPropery[prop] = property;
property->addSubProperty(prop); property->addSubProperty(prop);
prop = d_ptr->m_stringProperyManager->addProperty(); prop = d_ptr->m_filesProperyManager->addProperty();
prop->setPropertyName(tr("Timestep")); 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_properyToTimestep[property] = prop;
d_ptr->m_timestepToPropery[prop] = property; d_ptr->m_timestepToPropery[prop] = property;
property->addSubProperty(prop); property->addSubProperty(prop);
@ -8095,7 +8272,7 @@ public:
typedef QMap<const QtProperty*, QPathComponentAttribute> PropertyValueMap; typedef QMap<const QtProperty*, QPathComponentAttribute> PropertyValueMap;
PropertyValueMap m_values; PropertyValueMap m_values;
QtStringPropertyManager* m_stringProperyManager; QtFilesPropertyManager* m_filesProperyManager;
QMap<const QtProperty*, QtProperty*> m_properyToPath; QMap<const QtProperty*, QtProperty*> m_properyToPath;
@ -8122,8 +8299,8 @@ QtPathComponentManager::QtPathComponentManager(QObject* parent)
: QtComponentPropertyManager(parent), d_ptr(new QtPathComponentManagerPrivate) { : QtComponentPropertyManager(parent), d_ptr(new QtPathComponentManagerPrivate) {
d_ptr->q_ptr = this; d_ptr->q_ptr = this;
d_ptr->m_stringProperyManager = new QtStringPropertyManager(this); d_ptr->m_filesProperyManager = new QtFilesPropertyManager(this);
connect(d_ptr->m_stringProperyManager, SIGNAL(valueChanged(QtProperty*, QString)), connect(d_ptr->m_filesProperyManager, SIGNAL(valueChanged(QtProperty*, QString)),
this, SLOT(slotStringChanged(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()); return d_ptr->m_values.value(property, QPathComponentAttribute());
} }
QtStringPropertyManager* QtPathComponentManager::subStringProperyManager() const { QtFilesPropertyManager* QtPathComponentManager::subFilesProperyManager() const {
return d_ptr->m_stringProperyManager; return d_ptr->m_filesProperyManager;
} }
/*! /*!
@ -8203,7 +8380,7 @@ void QtPathComponentManager::setValue(QtProperty* property, const QPathComponent
it.value() = value; 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 propertyChanged(property);
emit valueChanged(property, value); emit valueChanged(property, value);
@ -8216,9 +8393,9 @@ void QtPathComponentManager::initializeProperty(QtProperty* property) {
QPathComponentAttribute val; QPathComponentAttribute val;
d_ptr->m_values[property] = 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")); 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_properyToPath[property] = prop;
d_ptr->m_pathToPropery[prop] = property; d_ptr->m_pathToPropery[prop] = property;
property->addSubProperty(prop); property->addSubProperty(prop);

View File

@ -219,6 +219,36 @@ private:
#pragma endregion #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 #pragma region QtDatePropertyManager
class QtDatePropertyManagerPrivate; class QtDatePropertyManagerPrivate;
@ -967,6 +997,7 @@ public:
QWorkspaceAttribute value(const QtProperty* property) const; QWorkspaceAttribute value(const QtProperty* property) const;
QtStringPropertyManager* subStringProperyManager() const; QtStringPropertyManager* subStringProperyManager() const;
QtFilesPropertyManager* subFilesProperyManager() const;
public Q_SLOTS: public Q_SLOTS:
void setValue(QtProperty* property, const QWorkspaceAttribute& val); void setValue(QtProperty* property, const QWorkspaceAttribute& val);
@ -1085,7 +1116,7 @@ public:
QPathComponentAttribute value(const QtProperty* property) const; QPathComponentAttribute value(const QtProperty* property) const;
QtStringPropertyManager* subStringProperyManager() const; QtFilesPropertyManager* subFilesProperyManager() const;
public Q_SLOTS: public Q_SLOTS:
void setValue(QtProperty* property, const QPathComponentAttribute& val); void setValue(QtProperty* property, const QPathComponentAttribute& val);

View File

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