modify model tree widget

This commit is contained in:
pimin 2025-11-02 18:26:08 +08:00
parent 4bfd45d287
commit c840f4ff3f
2 changed files with 55 additions and 79 deletions

View File

@ -2000,32 +2000,32 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="28"/>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="31"/>
<source>Wave文件</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="41"/>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="47"/>
<source>Report文件</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="54"/>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="63"/>
<source>RD文件</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="67"/>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="79"/>
<source>Matlab文件</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="80"/>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="95"/>
<source>Lamp文件</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="93"/>
<location filename="../ui/Menu/ChartPlotMenu.ui" line="111"/>
<source>Run Simu</source>
<translation type="unfinished"></translation>
</message>
@ -2716,31 +2716,31 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8065"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8261"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8049"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8240"/>
<source>Curve[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8066"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8262"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8050"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8241"/>
<source>Surface[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8067"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8263"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8051"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8242"/>
<source>Table[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8068"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8264"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8052"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8243"/>
<source>Light[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8069"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8053"/>
<source>Polar[%1]</source>
<translation type="unfinished"></translation>
</message>
@ -2816,48 +2816,48 @@
<context>
<name>QtConeWaveComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9275"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9284"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9221"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9230"/>
<source>ConeWaveComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9372"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9318"/>
<source>Height</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9379"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9325"/>
<source>Radius</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9386"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9332"/>
<source>waveCount</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9396"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9342"/>
<source>waveSpeed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9403"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9349"/>
<source>baseColor</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9410"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9356"/>
<source>waveColor</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9417"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9363"/>
<source>ringBrightAlpha</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9424"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9370"/>
<source>ringDarkAlpha</source>
<translation type="unfinished"></translation>
</message>
@ -2963,28 +2963,28 @@
<context>
<name>QtDashedLineComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9616"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9625"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9562"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9571"/>
<source>DashedLineComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9694"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9640"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9701"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9647"/>
<source>End</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9708"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9654"/>
<source>Radius</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9715"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9661"/>
<source>Color</source>
<translation type="unfinished"></translation>
</message>
@ -3000,17 +3000,17 @@
<context>
<name>QtEntityPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8720"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8666"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8727"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8673"/>
<source>Visible</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8734"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8680"/>
<source>Transform</source>
<translation type="unfinished"></translation>
</message>
@ -3092,13 +3092,13 @@
<context>
<name>QtMeshComponetManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8851"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8860"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8797"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8806"/>
<source>MeshComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8933"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8879"/>
<source>Mesh</source>
<translation type="unfinished"></translation>
</message>
@ -3147,13 +3147,13 @@
<context>
<name>QtPathComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9010"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9019"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8956"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8965"/>
<source>PathComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9092"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9038"/>
<source>Path</source>
<translation type="unfinished"></translation>
</message>
@ -3403,97 +3403,72 @@
<context>
<name>QtWorkspacePropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8306"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8285"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8313"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8292"/>
<source>Description</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8320"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8299"/>
<source>Timestep</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8327"/>
<source>SimMatlab</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8334"/>
<source>MatlabParam</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8341"/>
<source>WavePath</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8348"/>
<source>ReportPath</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8355"/>
<source>RDPath</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8363"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8309"/>
<source>CommondPath</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8386"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8332"/>
<source>Count</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8402"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8348"/>
<source>Curve[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8403"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8349"/>
<source>Surface[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8404"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8350"/>
<source>Table[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8405"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8351"/>
<source>Light[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8416"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8362"/>
<source>Curves</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8419"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8365"/>
<source>Surfaces</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8422"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8368"/>
<source>Tables</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8425"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8371"/>
<source>Lights</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8428"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8374"/>
<source>Polars</source>
<translation type="unfinished"></translation>
</message>

View File

@ -102,6 +102,7 @@ void ModelTreeWidget::contextMenuEvent(QContextMenuEvent* event) {
Entity* entity = value.value<Entity*>();
PopupEntityMenu(event, entity);
} else {
return;
QMenu menu(this);
QAction* addEntiy = new QAction(tr("Add boke Entity"), this);