mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-14 14:01:34 +05:00
Add InfoPanel
This commit is contained in:
parent
cf12854344
commit
aa633c2d5c
File diff suppressed because one or more lines are too long
@ -5119,28 +5119,48 @@ bool SMESHGUI::activateModule( SUIT_Study* study )
|
||||
setMenuShown( true );
|
||||
setToolShown( true );
|
||||
|
||||
//InfoPanel
|
||||
// Fill in Help Panel
|
||||
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( application() );
|
||||
app->infoPanel()->setTitle(tr("INFO_WELCOME_TO_SMESH"));
|
||||
|
||||
int gb = app->infoPanel()->addGroup(tr("INFO_GRP_CREATE_MESH"));
|
||||
QString lab;
|
||||
QStringList items;
|
||||
lab = tr("INFO_DEFINE_ALGOS") + "<br/>";
|
||||
lab = lab + tr("INFO_DEFINE_HYPOS") + "<br/>";
|
||||
lab = lab + tr("INFO_COMPUTE") + "<br/>";
|
||||
lab = lab + tr("INFO_REFINE") + ":";
|
||||
items << wrap(tr("INFO_REFINE_LOCAL_SIZE"), "li")
|
||||
<< wrap(tr("INFO_REFINE_SUBMESH"), "li");
|
||||
lab = lab + wrap(items.join(""), "ul");
|
||||
items.clear();
|
||||
|
||||
app->infoPanel()->addLabel(lab, gb);
|
||||
|
||||
gb = app->infoPanel()->addGroup(tr("INFO_GRP_IMPORT_MESH"));
|
||||
items << wrap("UNV", "li")
|
||||
<< wrap("MED", "li")
|
||||
<< wrap("STL", "li")
|
||||
<< wrap("CGNS", "li")
|
||||
<< wrap("SAUV", "li")
|
||||
<< wrap("GMF", "li");
|
||||
lab = tr("INFO_AVAILABLE_FORMATS") + ":" + wrap(items.join(""), "ul");
|
||||
items.clear();
|
||||
|
||||
app->infoPanel()->setTitle(tr("Welcome to SMESH"));
|
||||
|
||||
int gb1 = app->infoPanel()->addGroup(tr("Create a mesh"));
|
||||
QString lbl1 = wrap("Define mesh algorithms", "li") + wrap("Define mesh hypotheses", "li") + wrap("Compute", "li") + wrap("Add some refinements:", "li");
|
||||
QString lbl2 = wrap("via local sizes with some hypotheses", "li") + wrap("or via sub-meshes", "li");
|
||||
lbl2 = lbl1 + wrap(lbl2, "ul");
|
||||
lbl1 = wrap(lbl2, "ul");
|
||||
app->infoPanel()->addLabel(lbl1, Qt::AlignLeft, gb1);
|
||||
|
||||
int gb2 = app->infoPanel()->addGroup(tr("Import a mesh"));
|
||||
lbl1 = wrap("unv", "li") + wrap("med", "li") + wrap("stl", "li") + wrap("cgns", "li") + wrap("sauv", "li") +wrap("gmf", "li");
|
||||
lbl1 = tr("Available formats:") + wrap(lbl1, "ul");
|
||||
app->infoPanel()->addLabel(lbl1, Qt::AlignLeft, gb2);
|
||||
app->infoPanel()->addLabel(lab, gb);
|
||||
|
||||
int gb3 = app->infoPanel()->addGroup(tr("Check the mesh"));
|
||||
lbl1 = wrap("area", "li") + wrap("volume", "li") + wrap("aspect ration...", "li");
|
||||
lbl1 = wrap("Display the mesh", "li") + wrap("Display some quality criteria:","li") + wrap(lbl1, "ul") + wrap("Add some clipping planes", "li");
|
||||
lbl1 = wrap(lbl1, "ul");
|
||||
app->infoPanel()->addLabel(lbl1, Qt::AlignLeft, gb3);
|
||||
gb = app->infoPanel()->addGroup(tr("INFO_GRP_CHECK_MESH"));
|
||||
lab = tr("INFO_DISPLAY") + "<br/>";
|
||||
items << wrap(tr("INFO_QUALITY_AREA"), "li")
|
||||
<< wrap(tr("INFO_QUALITY_VOLUME"), "li")
|
||||
<< wrap(tr("INFO_QUALITY_ASPECT_RATION"), "li")
|
||||
<< wrap("...", "li");
|
||||
lab = lab + tr("INFO_QUALITY_INFO") + ":" + wrap(items.join(""), "ul");
|
||||
items.clear();
|
||||
lab = lab + tr("INFO_CLIPPING");
|
||||
|
||||
app->infoPanel()->addLabel(lab, gb);
|
||||
// << Help Panel
|
||||
|
||||
// import Python module that manages SMESH plugins (need to be here because SalomePyQt API uses active module)
|
||||
PyGILState_STATE gstate = PyGILState_Ensure();
|
||||
|
@ -5029,6 +5029,74 @@ Please, create VTK viewer and try again</translation>
|
||||
<source>PREF_PREVIEW_CHUNK_SIZE</source>
|
||||
<translation>Sub-shapes preview chunk size</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_WELCOME_TO_SMESH</source>
|
||||
<translation>Welcome to Mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_CREATE_MESH</source>
|
||||
<translation>Create mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DEFINE_ALGOS</source>
|
||||
<translation>Choose algorithms</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DEFINE_HYPOS</source>
|
||||
<translation>Define hypotheses</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_COMPUTE</source>
|
||||
<translation>Compute</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE</source>
|
||||
<translation>Add refinements</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE_LOCAL_SIZE</source>
|
||||
<translation>via local sizes with some hypotheses</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE_SUBMESH</source>
|
||||
<translation>via sub-meshes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_IMPORT_MESH</source>
|
||||
<translation>Import mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_AVAILABLE_FORMATS</source>
|
||||
<translation>Available formats</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_CHECK_MESH</source>
|
||||
<translation> Check mesh quality</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DISPLAY</source>
|
||||
<translation>Display mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_INFO</source>
|
||||
<translation>Display some quality criteria</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_AREA</source>
|
||||
<translation>area</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_VOLUME</source>
|
||||
<translation>volume</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_ASPECT_RATION</source>
|
||||
<translation>aspect ration</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_CLIPPING</source>
|
||||
<translation>Add clipping planes</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_GroupDlg</name>
|
||||
|
@ -4558,6 +4558,10 @@ Il ne peut pas être supprimé.</translation>
|
||||
<source>SMESH_HEX_PRISM</source>
|
||||
<translation>Prisme hexagonal</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Generate mesh from CAD model or import mesh</source>
|
||||
<translation type="unfinished">Generate mesh from CAD model or import mesh</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_FieldSelectorWdg</name>
|
||||
@ -5006,6 +5010,74 @@ Ouvrez une fenêtre VTK et essayez de nouveau</translation>
|
||||
<source>PREF_PREVIEW_CHUNK_SIZE</source>
|
||||
<translation>Taille des blocs pour la prévisualisation des sous-shapes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_WELCOME_TO_SMESH</source>
|
||||
<translation type="unfinished">Welcome to Mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_CREATE_MESH</source>
|
||||
<translation type="unfinished">Create mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DEFINE_ALGOS</source>
|
||||
<translation type="unfinished">Choose algorithms</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DEFINE_HYPOS</source>
|
||||
<translation type="unfinished">Define hypotheses</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_COMPUTE</source>
|
||||
<translation type="unfinished">Compute</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE</source>
|
||||
<translation type="unfinished">Add refinements</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE_LOCAL_SIZE</source>
|
||||
<translation type="unfinished">via local sizes with some hypotheses</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE_SUBMESH</source>
|
||||
<translation type="unfinished">via sub-meshes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_IMPORT_MESH</source>
|
||||
<translation type="unfinished">Import mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_AVAILABLE_FORMATS</source>
|
||||
<translation type="unfinished">Available formats</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_CHECK_MESH</source>
|
||||
<translation type="unfinished"> Check mesh quality</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DISPLAY</source>
|
||||
<translation type="unfinished">Display mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_INFO</source>
|
||||
<translation type="unfinished">Display some quality criteria</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_AREA</source>
|
||||
<translation type="unfinished">area</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_VOLUME</source>
|
||||
<translation type="unfinished">volume</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_ASPECT_RATION</source>
|
||||
<translation type="unfinished">aspect ration</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_CLIPPING</source>
|
||||
<translation type="unfinished">Add clipping planes</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_GroupDlg</name>
|
||||
|
@ -4431,6 +4431,10 @@
|
||||
<source>SMESH_HEX_PRISM</source>
|
||||
<translation>六角形プリズム</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Generate mesh from CAD model or import mesh</source>
|
||||
<translation type="unfinished">Generate mesh from CAD model or import mesh</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_FieldSelectorWdg</name>
|
||||
@ -4827,6 +4831,74 @@
|
||||
<source>PREF_PREVIEW_CHUNK_SIZE</source>
|
||||
<translation>Under-shapes のブロックのサイズ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_WELCOME_TO_SMESH</source>
|
||||
<translation type="unfinished">Welcome to Mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_CREATE_MESH</source>
|
||||
<translation type="unfinished">Create mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DEFINE_ALGOS</source>
|
||||
<translation type="unfinished">Choose algorithms</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DEFINE_HYPOS</source>
|
||||
<translation type="unfinished">Define hypotheses</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_COMPUTE</source>
|
||||
<translation type="unfinished">Compute</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE</source>
|
||||
<translation type="unfinished">Add refinements</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE_LOCAL_SIZE</source>
|
||||
<translation type="unfinished">via local sizes with some hypotheses</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_REFINE_SUBMESH</source>
|
||||
<translation type="unfinished">via sub-meshes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_IMPORT_MESH</source>
|
||||
<translation type="unfinished">Import mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_AVAILABLE_FORMATS</source>
|
||||
<translation type="unfinished">Available formats</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_GRP_CHECK_MESH</source>
|
||||
<translation type="unfinished"> Check mesh quality</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_DISPLAY</source>
|
||||
<translation type="unfinished">Display mesh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_INFO</source>
|
||||
<translation type="unfinished">Display some quality criteria</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_AREA</source>
|
||||
<translation type="unfinished">area</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_VOLUME</source>
|
||||
<translation type="unfinished">volume</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_QUALITY_ASPECT_RATION</source>
|
||||
<translation type="unfinished">aspect ration</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INFO_CLIPPING</source>
|
||||
<translation type="unfinished">Add clipping planes</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_GroupDlg</name>
|
||||
|
Loading…
x
Reference in New Issue
Block a user