forked from qt-creator/qt-creator
ModelEditor: Tr::tr()
Following orphaned contexts are merged into ::ModelEditor ModelEditor::Internal::ActionHandler ModelEditor::Internal::ElementTasks ModelEditor::Internal::ExtPropertiesMView ModelEditor::Internal::FileWizardFactory ModelEditor::Internal::ModelDocument ModelEditor::Internal::ModelEditor ModelEditor::Internal::ModelsManager ModelEditor::Internal::PxNodeController Modeling Change-Id: Ib602b91af7a4b8d8f886e587e6988338b1e841e8 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -19540,9 +19540,6 @@ Fejl: %5</translation>
|
||||
<source>Zoom: %1%</source>
|
||||
<translation>Zoom: %1%</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ActionHandler</name>
|
||||
<message>
|
||||
<source>&Remove</source>
|
||||
<translation>&Fjern</translation>
|
||||
@@ -19603,16 +19600,10 @@ Fejl: %5</translation>
|
||||
<source>Return</source>
|
||||
<translation>Vend tilbage</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ElementTasks</name>
|
||||
<message>
|
||||
<source>Update Include Dependencies</source>
|
||||
<translation>Opdater inkluder-afhængigheder</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ExtPropertiesMView</name>
|
||||
<message>
|
||||
<source>Select Custom Configuration Folder</source>
|
||||
<translation>Vælg brugerdefineret konfigurationsmappe</translation>
|
||||
@@ -19625,9 +19616,6 @@ Fejl: %5</translation>
|
||||
<source><font color=red>Model file must be reloaded.</font></source>
|
||||
<translation><font color=red>Modelfil skal genindlæses.</font></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelDocument</name>
|
||||
<message>
|
||||
<source>No model loaded. Cannot save.</source>
|
||||
<translation>Ingen model indlæst. Kan ikke gemme.</translation>
|
||||
@@ -19640,9 +19628,6 @@ Fejl: %5</translation>
|
||||
<source>Could not open "%1" for reading: %2.</source>
|
||||
<translation>Kunne ikke åbne "%1" til læsning: %2.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelEditor</name>
|
||||
<message>
|
||||
<source><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Open a diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Double-click on diagram in model tree</div><div style="margin-top: 5px">&bull; Select "Open Diagram" from package's context menu in model tree</div></td></tr></table></div></body></html></source>
|
||||
<translation><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Åbn et diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Dobbeltklik på diagram i model-træ</div><div style="margin-top: 5px">&bull; Vælg "Åbn diagram" fra pakkens genvejsmenu i model-træ</div></td></tr></table></div></body></html></translation>
|
||||
@@ -19739,16 +19724,10 @@ Fejl: %5</translation>
|
||||
<source>Swimlane</source>
|
||||
<translation>Svømmebane</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelsManager</name>
|
||||
<message>
|
||||
<source>Open Diagram</source>
|
||||
<translation>Åbn diagram</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::PxNodeController</name>
|
||||
<message>
|
||||
<source>Add Component %1</source>
|
||||
<translation>Tilføj komponenten %1</translation>
|
||||
@@ -19809,7 +19788,7 @@ Fejl: %5</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Modeling</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Modeling</source>
|
||||
<translation>Modelering</translation>
|
||||
|
||||
@@ -34614,7 +34614,7 @@ provided they were unmodified before the refactoring.</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ActionHandler</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>&Remove</source>
|
||||
<translation>&Entfernen</translation>
|
||||
@@ -34675,9 +34675,6 @@ provided they were unmodified before the refactoring.</source>
|
||||
<source>Return</source>
|
||||
<translation>Return</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelEditor</name>
|
||||
<message>
|
||||
<source><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Open a diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Double-click on diagram in model tree</div><div style="margin-top: 5px">&bull; Select "Open Diagram" from package's context menu in model tree</div></td></tr></table></div></body></html></source>
|
||||
<translation><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Diagramm öffnen</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Doppelklick auf ein Diagramm im Baum</div><div style="margin-top: 5px">&bull; Wählen Sie "Diagramm öffnen" aus dem Kontextmenü eines Pakets im Baum</div></td></tr></table></div></body></html></translation>
|
||||
@@ -37492,7 +37489,7 @@ Siehe auch die Einstellungen für Google Test.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelDocument</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>No model loaded. Cannot save.</source>
|
||||
<translation>Kein Modell geladen, daher ist sichern nicht möglich.</translation>
|
||||
@@ -37501,23 +37498,14 @@ Siehe auch die Einstellungen für Google Test.</translation>
|
||||
<source>Could not open "%1" for reading: %2.</source>
|
||||
<translation>"%1" konnte nicht gelesen werden: %2.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Modeling</name>
|
||||
<message>
|
||||
<source>Modeling</source>
|
||||
<translation>Modellierung</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelsManager</name>
|
||||
<message>
|
||||
<source>Open Diagram</source>
|
||||
<translation>Diagramm öffnen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::PxNodeController</name>
|
||||
<message>
|
||||
<source>Add Component %1</source>
|
||||
<translation>Komponente %1 hinzufügen</translation>
|
||||
@@ -37594,7 +37582,7 @@ Sie werden erhalten.</numerusform>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ExtPropertiesMView</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Select Custom Configuration Folder</source>
|
||||
<translation>Konfigurationsverzeichnis auswählen</translation>
|
||||
@@ -39469,7 +39457,7 @@ Ablaufdatum: %3</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ElementTasks</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Update Include Dependencies</source>
|
||||
<translation>Include-Abhängigkeiten aktualisieren</translation>
|
||||
|
||||
@@ -25005,7 +25005,7 @@ Rok upotrebe: %3</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ActionHandler</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>&Remove</source>
|
||||
<translation>&Ukloni</translation>
|
||||
@@ -25066,16 +25066,10 @@ Rok upotrebe: %3</translation>
|
||||
<source>Return</source>
|
||||
<translation>Return</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ElementTasks</name>
|
||||
<message>
|
||||
<source>Update Include Dependencies</source>
|
||||
<translation>Aktualiziraj dodavanje ovisnosti</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ExtPropertiesMView</name>
|
||||
<message>
|
||||
<source>Select Custom Configuration Folder</source>
|
||||
<translation>Odaberi mapu prilagođene konfiguracije</translation>
|
||||
@@ -25088,9 +25082,6 @@ Rok upotrebe: %3</translation>
|
||||
<source><font color=red>Model file must be reloaded.</font></source>
|
||||
<translation><font color=red>Datoteka modela se mora ponovo učitati.</font></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelDocument</name>
|
||||
<message>
|
||||
<source>No model loaded. Cannot save.</source>
|
||||
<translation>Nijedan model nije učitan. Spremanje nije moguće.</translation>
|
||||
@@ -25099,9 +25090,6 @@ Rok upotrebe: %3</translation>
|
||||
<source>Could not open "%1" for reading: %2.</source>
|
||||
<translation>Nije bilo moguće otvoriti "%1" za čitanje: %2.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelEditor</name>
|
||||
<message>
|
||||
<source><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Open a diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Double-click on diagram in model tree</div><div style="margin-top: 5px">&bull; Select "Open Diagram" from package's context menu in model tree</div></td></tr></table></div></body></html></source>
|
||||
<translation><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Otvori dijagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Dvoklik na dijagram u stablastom modelu</div><div style="margin-top: 5px">&bull; Odabei "Otvori dijagram" iz kontekstnog izbornika u stablastom modelu</div></td></tr></table></div></body></html></translation>
|
||||
@@ -25198,30 +25186,18 @@ Rok upotrebe: %3</translation>
|
||||
<source>Swimlane</source>
|
||||
<translation>Dijagram toka</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Zoom: %1%</source>
|
||||
<translation>Zumiraj: %1%</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Modeling</name>
|
||||
<message>
|
||||
<source>Modeling</source>
|
||||
<translation>Modeliranje</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelsManager</name>
|
||||
<message>
|
||||
<source>Open Diagram</source>
|
||||
<translation>Otvori dijagram</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::PxNodeController</name>
|
||||
<message>
|
||||
<source>Add Component %1</source>
|
||||
<translation>Dodaj komponentu %1</translation>
|
||||
|
||||
@@ -38772,7 +38772,7 @@ Would you like to overwrite it?</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ActionHandler</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>&Remove</source>
|
||||
<translation>図から削除(&R)</translation>
|
||||
@@ -38837,9 +38837,6 @@ Would you like to overwrite it?</source>
|
||||
<source>Return</source>
|
||||
<translation>Return</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ExtPropertiesMView</name>
|
||||
<message>
|
||||
<source>Select Custom Configuration Folder</source>
|
||||
<translation>カスタム設定フォルダの選択</translation>
|
||||
@@ -38852,9 +38849,6 @@ Would you like to overwrite it?</source>
|
||||
<source><font color=red>Model file must be reloaded.</font></source>
|
||||
<translation><font color="red">モデルファイルの再読込が必要です。</font></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelDocument</name>
|
||||
<message>
|
||||
<source>No model loaded. Cannot save.</source>
|
||||
<translation>モデルが読み込まれていないため、保存できません。</translation>
|
||||
@@ -38867,29 +38861,10 @@ Would you like to overwrite it?</source>
|
||||
<source>Could not open "%1" for reading: %2.</source>
|
||||
<translation>読み込み用に "%1" を開けません: %2.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelEditor</name>
|
||||
<message>
|
||||
<source><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Open a diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Double-click on diagram in model tree</div><div style="margin-top: 5px">&bull; Select "Open Diagram" from package's context menu in model tree</div></td></tr></table></div></body></html></source>
|
||||
<translation><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">図を開く</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; モデルツリー内で図をダブルクリックする</div><div style="margin-top: 5px">&bull; モデルツリー内のパッケージのコンテキストメニューから"図を開く"を選択する</div></td></tr></table></div></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Package</source>
|
||||
<translation>パッケージの追加</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Component</source>
|
||||
<translation>コンポーネントの追加</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Class</source>
|
||||
<translation>クラスの追加</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Canvas Diagram</source>
|
||||
<translation>キャンバス図の追加</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Images (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)</source>
|
||||
<translation>画像 (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)</translation>
|
||||
@@ -38950,23 +38925,14 @@ Would you like to overwrite it?</source>
|
||||
<source>Boundary</source>
|
||||
<translation>境界</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Modeling</name>
|
||||
<message>
|
||||
<source>Modeling</source>
|
||||
<translation>モデリング</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelsManager</name>
|
||||
<message>
|
||||
<source>Open Diagram</source>
|
||||
<translation>図を開く</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::PxNodeController</name>
|
||||
<message>
|
||||
<source>Add Component %1</source>
|
||||
<translation>コンポーネント %1 の追加</translation>
|
||||
|
||||
@@ -33620,7 +33620,7 @@ itself takes time.</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ActionHandler</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>&Remove</source>
|
||||
<translation>&Usuń</translation>
|
||||
@@ -33689,9 +33689,6 @@ itself takes time.</source>
|
||||
<source>Return</source>
|
||||
<translation>Powróć</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelDocument</name>
|
||||
<message>
|
||||
<source>No model loaded. Cannot save.</source>
|
||||
<translation>Brak załadowanego projektu. Nie można zachować.</translation>
|
||||
@@ -33704,29 +33701,10 @@ itself takes time.</source>
|
||||
<source>Could not open "%1" for reading: %2.</source>
|
||||
<translation>Nie można otworzyć "%1" do odczytu: %2.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelEditor</name>
|
||||
<message>
|
||||
<source><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Open a diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Double-click on diagram in model tree</div><div style="margin-top: 5px">&bull; Select "Open Diagram" from package's context menu in model tree</div></td></tr></table></div></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Package</source>
|
||||
<translation>Dodaj pakiet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Component</source>
|
||||
<translation>Dodaj komponent</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Class</source>
|
||||
<translation>Dodaj klasę</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Canvas Diagram</source>
|
||||
<translation>Dodaj diagram płótna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Images (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)</source>
|
||||
<translation>Pliki graficzne (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)</translation>
|
||||
@@ -33771,23 +33749,14 @@ itself takes time.</source>
|
||||
<source>Boundary</source>
|
||||
<translation>Granice</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Modeling</name>
|
||||
<message>
|
||||
<source>Modeling</source>
|
||||
<translation>Modelowanie</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelsManager</name>
|
||||
<message>
|
||||
<source>Open Diagram</source>
|
||||
<translation>Otwórz diagram</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::PxNodeController</name>
|
||||
<message>
|
||||
<source>Add Component %1</source>
|
||||
<translation>Dodaj komponent %1</translation>
|
||||
@@ -35433,7 +35402,7 @@ Czy nadpisać go?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ExtPropertiesMView</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Select Custom Configuration Folder</source>
|
||||
<translation>Wybierz katalog z własną konfiguracją</translation>
|
||||
@@ -39640,7 +39609,7 @@ Błąd: %5</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ElementTasks</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Update Include Dependencies</source>
|
||||
<translation>Uaktualnij zależności</translation>
|
||||
|
||||
@@ -24941,9 +24941,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source>Zoom: %1%</source>
|
||||
<translation>Масштаб: %1%</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ActionHandler</name>
|
||||
<message>
|
||||
<source>&Remove</source>
|
||||
<translation>&Убрать</translation>
|
||||
@@ -25005,16 +25002,10 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source>Return</source>
|
||||
<translation>Ввод</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ElementTasks</name>
|
||||
<message>
|
||||
<source>Update Include Dependencies</source>
|
||||
<translation>Обновить зависимость от включаемых файлов</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ExtPropertiesMView</name>
|
||||
<message>
|
||||
<source>Select Custom Configuration Folder</source>
|
||||
<translation>Выбор особого каталога настроек</translation>
|
||||
@@ -25027,9 +25018,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source><font color=red>Model file must be reloaded.</font></source>
|
||||
<translation><font color=red>Файл модели должен быть перезагружен.</font></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelDocument</name>
|
||||
<message>
|
||||
<source>No model loaded. Cannot save.</source>
|
||||
<translation>Модель не загружена. Сохранить невозможно.</translation>
|
||||
@@ -25038,9 +25026,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source>Could not open "%1" for reading: %2.</source>
|
||||
<translation>Не удалось открыть файл «%1» для чтения: %2.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelEditor</name>
|
||||
<message>
|
||||
<source><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Open a diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Double-click on diagram in model tree</div><div style="margin-top: 5px">&bull; Select "Open Diagram" from package's context menu in model tree</div></td></tr></table></div></body></html></source>
|
||||
<translation><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Открытие диаграммы</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Двойной щелчок на диаграмме в дереве модели</div><div style="margin-top: 5px">&bull; «Открыть диаграмму» в контекстном меню пакета дерева модели</div></td></tr></table></div></body></html></translation>
|
||||
@@ -25137,16 +25122,10 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source>Swimlane</source>
|
||||
<translation>Swimlane</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelsManager</name>
|
||||
<message>
|
||||
<source>Open Diagram</source>
|
||||
<translation>Открыть диаграмму</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::PxNodeController</name>
|
||||
<message>
|
||||
<source>Add Component %1</source>
|
||||
<translation>Добавить компонент %1</translation>
|
||||
@@ -25207,7 +25186,7 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Modeling</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Modeling</source>
|
||||
<translation>Моделирование</translation>
|
||||
|
||||
@@ -42108,7 +42108,7 @@ the program.</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ActionHandler</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>&Remove</source>
|
||||
<translation>&Прибрати</translation>
|
||||
@@ -42145,9 +42145,6 @@ the program.</source>
|
||||
<source>Return</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelDocument</name>
|
||||
<message>
|
||||
<source>No model loaded. Cannot save.</source>
|
||||
<translation>Модель на завантажено. Неможливо зберегти.</translation>
|
||||
@@ -42164,9 +42161,6 @@ the program.</source>
|
||||
<source>Could not open "%1" for reading: %2.</source>
|
||||
<translation>Не вдалось відкрити файл '%1' для читання: %2.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelEditor</name>
|
||||
<message>
|
||||
<source><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Open a diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Double-click on diagram in model tree</div><div style="margin-top: 5px">&bull; Select "Open Diagram" from package's context menu in model tree</div></td></tr></table></div></body></html></source>
|
||||
<translation><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Відкрити діаграму</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Подвійне клацання на діаграмі в дереві моделі</div><div style="margin-top: 5px">&bull; Виберіть "Відкрити діаграму" з контекстного меню пакунка в дереві моделі</div></td></tr></table></div></body></html></translation>
|
||||
@@ -42231,16 +42225,10 @@ the program.</source>
|
||||
<source>Boundary</source>
|
||||
<translation>Границя</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Modeling</name>
|
||||
<message>
|
||||
<source>Modeling</source>
|
||||
<translation>Моделювання</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::FileWizardFactory</name>
|
||||
<message>
|
||||
<source>Model</source>
|
||||
<translation type="vanished">Модель</translation>
|
||||
@@ -42265,16 +42253,10 @@ the program.</source>
|
||||
<source>Location:</source>
|
||||
<translation type="vanished">Розташування:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelsManager</name>
|
||||
<message>
|
||||
<source>Open Diagram</source>
|
||||
<translation>Відкрити діаграму</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::PxNodeController</name>
|
||||
<message>
|
||||
<source>Add Component %1</source>
|
||||
<translation>Додати компонент %1</translation>
|
||||
@@ -43890,7 +43872,7 @@ Would you like to overwrite it?</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ExtPropertiesMView</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Select Custom Configuration Folder</source>
|
||||
<translation>Оберіть теку для налаштувань користувача</translation>
|
||||
|
||||
@@ -24851,9 +24851,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source>Zoom: %1%</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ActionHandler</name>
|
||||
<message>
|
||||
<source>&Remove</source>
|
||||
<translation type="unfinished">删除(&R)</translation>
|
||||
@@ -24914,16 +24911,10 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source>Return</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ElementTasks</name>
|
||||
<message>
|
||||
<source>Update Include Dependencies</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ExtPropertiesMView</name>
|
||||
<message>
|
||||
<source>Select Custom Configuration Folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -24936,9 +24927,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source><font color=red>Model file must be reloaded.</font></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelDocument</name>
|
||||
<message>
|
||||
<source>No model loaded. Cannot save.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -24947,9 +24935,6 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source>Could not open "%1" for reading: %2.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelEditor</name>
|
||||
<message>
|
||||
<source><html><body style="color:#909090; font-size:14px"><div align='center'><div style="font-size:20px">Open a diagram</div><table><tr><td><hr/><div style="margin-top: 5px">&bull; Double-click on diagram in model tree</div><div style="margin-top: 5px">&bull; Select "Open Diagram" from package's context menu in model tree</div></td></tr></table></div></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -25046,16 +25031,10 @@ Useful if build directory is corrupted or when rebuilding with a newer version o
|
||||
<source>Swimlane</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::ModelsManager</name>
|
||||
<message>
|
||||
<source>Open Diagram</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModelEditor::Internal::PxNodeController</name>
|
||||
<message>
|
||||
<source>Add Component %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@@ -25144,7 +25123,7 @@ Error:
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Modeling</name>
|
||||
<name>::ModelEditor</name>
|
||||
<message>
|
||||
<source>Modeling</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
|
||||
#include "actionhandler.h"
|
||||
|
||||
#include "modeleditor_constants.h"
|
||||
#include "modeleditor.h"
|
||||
#include "modeleditor_constants.h"
|
||||
#include "modeleditortr.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
@@ -120,26 +121,26 @@ void ActionHandler::createActions()
|
||||
d->pasteAction = registerCommand(Core::Constants::PASTE, &ModelEditor::paste, d->context)->action();
|
||||
Core::Command *removeCommand = registerCommand(
|
||||
Constants::REMOVE_SELECTED_ELEMENTS, &ModelEditor::removeSelectedElements, d->context,
|
||||
tr("&Remove"), QKeySequence::Delete);
|
||||
Tr::tr("&Remove"), QKeySequence::Delete);
|
||||
medit->addAction(removeCommand, Core::Constants::G_EDIT_COPYPASTE);
|
||||
d->removeAction = removeCommand->action();
|
||||
Core::Command *deleteCommand = registerCommand(
|
||||
Constants::DELETE_SELECTED_ELEMENTS, &ModelEditor::deleteSelectedElements, d->context,
|
||||
tr("&Delete"), QKeySequence("Ctrl+D"));
|
||||
Tr::tr("&Delete"), QKeySequence("Ctrl+D"));
|
||||
medit->addAction(deleteCommand, Core::Constants::G_EDIT_COPYPASTE);
|
||||
d->deleteAction = deleteCommand->action();
|
||||
d->selectAllAction = registerCommand(Core::Constants::SELECTALL, &ModelEditor::selectAll, d->context)->action();
|
||||
|
||||
Core::Command *exportDiagramCommand = registerCommand(
|
||||
Constants::EXPORT_DIAGRAM, &ModelEditor::exportDiagram, d->context,
|
||||
tr("Export Diagram..."));
|
||||
Tr::tr("Export Diagram..."));
|
||||
exportDiagramCommand->setAttribute(Core::Command::CA_Hide);
|
||||
mfile->addAction(exportDiagramCommand, Core::Constants::G_FILE_EXPORT);
|
||||
d->exportDiagramAction = exportDiagramCommand->action();
|
||||
|
||||
Core::Command *exportSelectedElementsCommand = registerCommand(
|
||||
Constants::EXPORT_SELECTED_ELEMENTS, &ModelEditor::exportSelectedElements, d->context,
|
||||
tr("Export Selected Elements..."));
|
||||
Tr::tr("Export Selected Elements..."));
|
||||
exportSelectedElementsCommand->setAttribute(Core::Command::CA_Hide);
|
||||
mfile->addAction(exportSelectedElementsCommand, Core::Constants::G_FILE_EXPORT);
|
||||
d->exportSelectedElementsAction = exportSelectedElementsCommand->action();
|
||||
@@ -150,34 +151,34 @@ void ActionHandler::createActions()
|
||||
|
||||
d->openParentDiagramAction = registerCommand(
|
||||
Constants::OPEN_PARENT_DIAGRAM, &ModelEditor::openParentDiagram, Core::Context(),
|
||||
tr("Open Parent Diagram"), QKeySequence("Ctrl+Shift+P"),
|
||||
Tr::tr("Open Parent Diagram"), QKeySequence("Ctrl+Shift+P"),
|
||||
QIcon(":/modeleditor/up.png"))->action();
|
||||
registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context(), tr("Add Package"),
|
||||
registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context(), Tr::tr("Add Package"),
|
||||
QKeySequence(), QIcon(":/modelinglib/48x48/package.png"));
|
||||
registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context(), tr("Add Component"),
|
||||
registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context(), Tr::tr("Add Component"),
|
||||
QKeySequence(), QIcon(":/modelinglib/48x48/component.png"));
|
||||
registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context(), tr("Add Class"),
|
||||
registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context(), Tr::tr("Add Class"),
|
||||
QKeySequence(), QIcon(":/modelinglib/48x48/class.png"));
|
||||
registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr, Core::Context(), tr("Add Canvas Diagram"),
|
||||
registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr, Core::Context(), Tr::tr("Add Canvas Diagram"),
|
||||
QKeySequence(), QIcon(":/modelinglib/48x48/canvas-diagram.png"));
|
||||
d->synchronizeBrowserAction = registerCommand(
|
||||
Constants::ACTION_SYNC_BROWSER, nullptr, Core::Context(),
|
||||
tr("Synchronize Browser and Diagram") + "<br><i><small>"
|
||||
+ tr("Press && Hold for Options") + "</small></i>", QKeySequence(),
|
||||
Tr::tr("Synchronize Browser and Diagram") + "<br><i><small>"
|
||||
+ Tr::tr("Press && Hold for Options") + "</small></i>", QKeySequence(),
|
||||
Utils::Icons::LINK_TOOLBAR.icon())->action();
|
||||
d->synchronizeBrowserAction->setCheckable(true);
|
||||
|
||||
auto editPropertiesAction = new QAction(tr("Edit Element Properties"),
|
||||
auto editPropertiesAction = new QAction(Tr::tr("Edit Element Properties"),
|
||||
Core::ICore::dialogParent());
|
||||
Core::Command *editPropertiesCommand = Core::ActionManager::registerAction(
|
||||
editPropertiesAction, Constants::SHORTCUT_MODEL_EDITOR_EDIT_PROPERTIES, d->context);
|
||||
editPropertiesCommand->setDefaultKeySequence(QKeySequence(tr("Shift+Return")));
|
||||
editPropertiesCommand->setDefaultKeySequence(QKeySequence(Tr::tr("Shift+Return")));
|
||||
connect(editPropertiesAction, &QAction::triggered, this, &ActionHandler::onEditProperties);
|
||||
|
||||
auto editItemAction = new QAction(tr("Edit Item on Diagram"), Core::ICore::dialogParent());
|
||||
auto editItemAction = new QAction(Tr::tr("Edit Item on Diagram"), Core::ICore::dialogParent());
|
||||
Core::Command *editItemCommand = Core::ActionManager::registerAction(
|
||||
editItemAction, Constants::SHORTCUT_MODEL_EDITOR_EDIT_ITEM, d->context);
|
||||
editItemCommand->setDefaultKeySequence(QKeySequence(tr("Return")));
|
||||
editItemCommand->setDefaultKeySequence(QKeySequence(Tr::tr("Return")));
|
||||
connect(editItemAction, &QAction::triggered, this, &ActionHandler::onEditItem);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,10 +3,11 @@
|
||||
|
||||
#include "elementtasks.h"
|
||||
|
||||
#include "componentviewcontroller.h"
|
||||
#include "modeleditor_plugin.h"
|
||||
#include "modeleditortr.h"
|
||||
#include "modelsmanager.h"
|
||||
#include "openelementvisitor.h"
|
||||
#include "modeleditor_plugin.h"
|
||||
#include "componentviewcontroller.h"
|
||||
|
||||
#include "qmt/diagram/delement.h"
|
||||
#include "qmt/diagram/dpackage.h"
|
||||
@@ -407,7 +408,7 @@ bool ElementTasks::extendContextMenu(const qmt::DElement *delement, const qmt::M
|
||||
{
|
||||
bool extended = false;
|
||||
if (dynamic_cast<const qmt::DPackage *>(delement)) {
|
||||
menu->addAction(new qmt::ContextMenuAction(tr("Update Include Dependencies"), "updateIncludeDependencies", menu));
|
||||
menu->addAction(new qmt::ContextMenuAction(Tr::tr("Update Include Dependencies"), "updateIncludeDependencies", menu));
|
||||
extended = true;
|
||||
}
|
||||
return extended;
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "extpropertiesmview.h"
|
||||
|
||||
#include "modeleditortr.h"
|
||||
|
||||
#include "qmt/model/mpackage.h"
|
||||
#include "qmt/project/project.h"
|
||||
#include "qmt/project_controller/projectcontroller.h"
|
||||
@@ -37,14 +39,14 @@ void ExtPropertiesMView::visitMPackage(const qmt::MPackage *package)
|
||||
qmt::Project *project = m_projectController->project();
|
||||
if (!m_configPath) {
|
||||
m_configPath = new Utils::PathChooser(m_topWidget);
|
||||
m_configPath->setPromptDialogTitle(tr("Select Custom Configuration Folder"));
|
||||
m_configPath->setPromptDialogTitle(Tr::tr("Select Custom Configuration Folder"));
|
||||
m_configPath->setExpectedKind(Utils::PathChooser::ExistingDirectory);
|
||||
m_configPath->setValidationFunction([=](Utils::FancyLineEdit *edit, QString *errorMessage) {
|
||||
return edit->text().isEmpty() || m_configPath->defaultValidationFunction()(edit, errorMessage);
|
||||
});
|
||||
m_configPath->setInitialBrowsePathBackup(
|
||||
Utils::FilePath::fromString(project->fileName()).absolutePath());
|
||||
addRow(tr("Config path:"), m_configPath, "configpath");
|
||||
addRow(Tr::tr("Config path:"), m_configPath, "configpath");
|
||||
connect(m_configPath, &Utils::PathChooser::textChanged,
|
||||
this, &ExtPropertiesMView::onConfigPathChanged);
|
||||
}
|
||||
@@ -88,7 +90,7 @@ void ExtPropertiesMView::onConfigPathChanged()
|
||||
}
|
||||
}
|
||||
if (modified && m_configPathInfo)
|
||||
m_configPathInfo->setText(tr("<font color=red>Model file must be reloaded.</font>"));
|
||||
m_configPathInfo->setText(Tr::tr("<font color=red>Model file must be reloaded.</font>"));
|
||||
}
|
||||
|
||||
} // namespace Interal
|
||||
|
||||
@@ -3,10 +3,11 @@
|
||||
|
||||
#include "modeldocument.h"
|
||||
|
||||
#include "extdocumentcontroller.h"
|
||||
#include "modeleditor_constants.h"
|
||||
#include "modeleditor_plugin.h"
|
||||
#include "modeleditortr.h"
|
||||
#include "modelsmanager.h"
|
||||
#include "extdocumentcontroller.h"
|
||||
|
||||
#include "qmt/config/configcontroller.h"
|
||||
#include "qmt/infrastructure/ioexceptions.h"
|
||||
@@ -57,7 +58,7 @@ Core::IDocument::OpenResult ModelDocument::open(QString *errorString,
|
||||
bool ModelDocument::save(QString *errorString, const Utils::FilePath &filePath, bool autoSave)
|
||||
{
|
||||
if (!d->documentController) {
|
||||
*errorString = tr("No model loaded. Cannot save.");
|
||||
*errorString = Tr::tr("No model loaded. Cannot save.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -107,7 +108,7 @@ bool ModelDocument::reload(QString *errorString, Core::IDocument::ReloadFlag fla
|
||||
*errorString = ex.errorMessage();
|
||||
return false;
|
||||
} catch (const qmt::Exception &ex) {
|
||||
*errorString = tr("Could not open \"%1\" for reading: %2.").arg(filePath().toString()).arg(ex.errorMessage());
|
||||
*errorString = Tr::tr("Could not open \"%1\" for reading: %2.").arg(filePath().toString()).arg(ex.errorMessage());
|
||||
return false;
|
||||
}
|
||||
emit contentSet();
|
||||
@@ -131,7 +132,7 @@ Core::IDocument::OpenResult ModelDocument::load(QString *errorString, const QStr
|
||||
*errorString = ex.errorMessage();
|
||||
return OpenResult::ReadError;
|
||||
} catch (const qmt::Exception &ex) {
|
||||
*errorString = tr("Could not open \"%1\" for reading: %2.").arg(fileName).arg(ex.errorMessage());
|
||||
*errorString = Tr::tr("Could not open \"%1\" for reading: %2.").arg(fileName).arg(ex.errorMessage());
|
||||
return OpenResult::CannotHandle;
|
||||
}
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ void ModelEditor::init()
|
||||
|
||||
d->noDiagramLabel = new QLabel(d->diagramStack);
|
||||
const QString placeholderText =
|
||||
tr("<html><body style=\"color:#909090; font-size:14px\">"
|
||||
Tr::tr("<html><body style=\"color:#909090; font-size:14px\">"
|
||||
"<div align='center'>"
|
||||
"<div style=\"font-size:20px\">Open a diagram</div>"
|
||||
"<table><tr><td>"
|
||||
@@ -333,13 +333,13 @@ void ModelEditor::init()
|
||||
syncToggleButton->setDefaultAction(d->actionHandler->synchronizeBrowserAction());
|
||||
QMenu *syncMenu = new QMenu(syncToggleButton);
|
||||
QActionGroup *syncGroup = new QActionGroup(syncMenu);
|
||||
d->syncBrowserWithDiagramAction = syncMenu->addAction(tr("Synchronize Structure with Diagram"));
|
||||
d->syncBrowserWithDiagramAction = syncMenu->addAction(Tr::tr("Synchronize Structure with Diagram"));
|
||||
d->syncBrowserWithDiagramAction->setCheckable(true);
|
||||
d->syncBrowserWithDiagramAction->setActionGroup(syncGroup);
|
||||
d->syncDiagramWithBrowserAction = syncMenu->addAction(tr("Synchronize Diagram with Structure"));
|
||||
d->syncDiagramWithBrowserAction = syncMenu->addAction(Tr::tr("Synchronize Diagram with Structure"));
|
||||
d->syncDiagramWithBrowserAction->setCheckable(true);
|
||||
d->syncDiagramWithBrowserAction->setActionGroup(syncGroup);
|
||||
d->syncEachOtherAction = syncMenu->addAction(tr("Keep Synchronized"));
|
||||
d->syncEachOtherAction = syncMenu->addAction(Tr::tr("Keep Synchronized"));
|
||||
d->syncEachOtherAction->setCheckable(true);
|
||||
d->syncEachOtherAction->setActionGroup(syncGroup);
|
||||
syncToggleButton->setMenu(syncMenu);
|
||||
@@ -573,13 +573,13 @@ void ModelEditor::exportToImage(bool selectedElements)
|
||||
if (diagram) {
|
||||
if (d->lastExportDirPath.isEmpty())
|
||||
d->lastExportDirPath = d->document->filePath().toFileInfo().canonicalPath();
|
||||
QString filter = tr("Images (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)");
|
||||
QString filter = Tr::tr("Images (*.png *.jpeg *.jpg *.tif *.tiff);;PDF (*.pdf)");
|
||||
#ifndef QT_NO_SVG
|
||||
filter += tr(";;SVG (*.svg)");
|
||||
filter += Tr::tr(";;SVG (*.svg)");
|
||||
#endif // QT_NO_SVG
|
||||
QString fileName = FileUtils::getSaveFilePath(
|
||||
nullptr,
|
||||
selectedElements ? tr("Export Selected Elements") : tr("Export Diagram"),
|
||||
selectedElements ? Tr::tr("Export Selected Elements") : Tr::tr("Export Diagram"),
|
||||
FilePath::fromString(d->lastExportDirPath), filter).toString();
|
||||
if (!fileName.isEmpty()) {
|
||||
qmt::DocumentController *documentController = d->document->documentController();
|
||||
@@ -602,11 +602,11 @@ void ModelEditor::exportToImage(bool selectedElements)
|
||||
if (success)
|
||||
d->lastExportDirPath = QFileInfo(fileName).canonicalPath();
|
||||
else if (selectedElements)
|
||||
QMessageBox::critical(Core::ICore::dialogParent(), tr("Exporting Selected Elements Failed"),
|
||||
tr("Exporting the selected elements of the current diagram into file<br>\"%1\"<br>failed.").arg(fileName));
|
||||
QMessageBox::critical(Core::ICore::dialogParent(), Tr::tr("Exporting Selected Elements Failed"),
|
||||
Tr::tr("Exporting the selected elements of the current diagram into file<br>\"%1\"<br>failed.").arg(fileName));
|
||||
else
|
||||
QMessageBox::critical(Core::ICore::dialogParent(), tr("Exporting Diagram Failed"),
|
||||
tr("Exporting the diagram into file<br>\"%1\"<br>failed.").arg(fileName));
|
||||
QMessageBox::critical(Core::ICore::dialogParent(), Tr::tr("Exporting Diagram Failed"),
|
||||
Tr::tr("Exporting the diagram into file<br>\"%1\"<br>failed.").arg(fileName));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1096,7 +1096,7 @@ void ModelEditor::initToolbars()
|
||||
styleEngineElementType = qmt::StyleEngine::TypeSwimlane;
|
||||
}
|
||||
QIcon icon;
|
||||
QString newElementName = tr("New %1").arg(tool.m_name);
|
||||
QString newElementName = Tr::tr("New %1").arg(tool.m_name);
|
||||
if (!tool.m_stereotype.isEmpty() && stereotypeIconElement != qmt::StereotypeIcon::ElementAny) {
|
||||
const qmt::Style *style = documentController->styleController()->adaptStyle(styleEngineElementType);
|
||||
icon = stereotypeController->createIcon(
|
||||
@@ -1139,32 +1139,32 @@ void ModelEditor::initToolbars()
|
||||
toolBars.insert(generalId, toolBar);
|
||||
toolBarLayout->addWidget(
|
||||
new DragTool(QIcon(":/modelinglib/48x48/package.png"),
|
||||
tr("Package"), tr("New Package"), QLatin1String(qmt::ELEMENT_TYPE_PACKAGE),
|
||||
Tr::tr("Package"), Tr::tr("New Package"), QLatin1String(qmt::ELEMENT_TYPE_PACKAGE),
|
||||
QString(), toolBar));
|
||||
toolBarLayout->addWidget(
|
||||
new DragTool(QIcon(":/modelinglib/48x48/component.png"),
|
||||
tr("Component"), tr("New Component"), QLatin1String(qmt::ELEMENT_TYPE_COMPONENT),
|
||||
Tr::tr("Component"), Tr::tr("New Component"), QLatin1String(qmt::ELEMENT_TYPE_COMPONENT),
|
||||
QString(), toolBar));
|
||||
toolBarLayout->addWidget(
|
||||
new DragTool(QIcon(":/modelinglib/48x48/class.png"),
|
||||
tr("Class"), tr("New Class"), QLatin1String(qmt::ELEMENT_TYPE_CLASS),
|
||||
Tr::tr("Class"), Tr::tr("New Class"), QLatin1String(qmt::ELEMENT_TYPE_CLASS),
|
||||
QString(), toolBar));
|
||||
toolBarLayout->addWidget(
|
||||
new DragTool(QIcon(":/modelinglib/48x48/item.png"),
|
||||
tr("Item"), tr("New Item"), QLatin1String(qmt::ELEMENT_TYPE_ITEM),
|
||||
Tr::tr("Item"), Tr::tr("New Item"), QLatin1String(qmt::ELEMENT_TYPE_ITEM),
|
||||
QString(), toolBar));
|
||||
toolBarLayout->addWidget(Layouting::createHr(d->leftToolBox));
|
||||
toolBarLayout->addWidget(
|
||||
new DragTool(QIcon(":/modelinglib/48x48/annotation.png"),
|
||||
tr("Annotation"), QString(), QLatin1String(qmt::ELEMENT_TYPE_ANNOTATION),
|
||||
Tr::tr("Annotation"), QString(), QLatin1String(qmt::ELEMENT_TYPE_ANNOTATION),
|
||||
QString(), toolBar));
|
||||
toolBarLayout->addWidget(
|
||||
new DragTool(QIcon(":/modelinglib/48x48/boundary.png"),
|
||||
tr("Boundary"), QString(), QLatin1String(qmt::ELEMENT_TYPE_BOUNDARY),
|
||||
Tr::tr("Boundary"), QString(), QLatin1String(qmt::ELEMENT_TYPE_BOUNDARY),
|
||||
QString(), toolBar));
|
||||
toolBarLayout->addWidget(
|
||||
new DragTool(QIcon(":/modelinglib/48x48/swimlane.png"),
|
||||
tr("Swimlane"), QString(), QLatin1String(qmt::ELEMENT_TYPE_SWIMLANE),
|
||||
Tr::tr("Swimlane"), QString(), QLatin1String(qmt::ELEMENT_TYPE_SWIMLANE),
|
||||
QString(), toolBar));
|
||||
}
|
||||
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
#include "diagramsviewmanager.h"
|
||||
#include "extdocumentcontroller.h"
|
||||
#include "modeldocument.h"
|
||||
#include "modeleditor_constants.h"
|
||||
#include "modeleditor.h"
|
||||
#include "modeleditor_constants.h"
|
||||
#include "modeleditortr.h"
|
||||
#include "modelindexer.h"
|
||||
#include "pxnodecontroller.h"
|
||||
|
||||
@@ -97,7 +98,7 @@ ModelsManager::ModelsManager(QObject *parent)
|
||||
ProjectExplorer::Constants::M_FOLDERCONTEXT);
|
||||
folderContainer->insertGroup(ProjectExplorer::Constants::G_FOLDER_FILES,
|
||||
Constants::EXPLORER_GROUP_MODELING);
|
||||
d->openDiagramContextMenuItem = new QAction(tr("Open Diagram"), this);
|
||||
d->openDiagramContextMenuItem = new QAction(Tr::tr("Open Diagram"), this);
|
||||
Core::Command *cmd = Core::ActionManager::registerAction(
|
||||
d->openDiagramContextMenuItem, Constants::ACTION_EXPLORER_OPEN_DIAGRAM,
|
||||
projectTreeContext);
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
|
||||
#include "pxnodecontroller.h"
|
||||
|
||||
#include "pxnodeutilities.h"
|
||||
#include "componentviewcontroller.h"
|
||||
#include "classviewcontroller.h"
|
||||
#include "componentviewcontroller.h"
|
||||
#include "modeleditortr.h"
|
||||
#include "modelutilities.h"
|
||||
#include "packageviewcontroller.h"
|
||||
#include "pxnodeutilities.h"
|
||||
|
||||
#include "qmt/model/mpackage.h"
|
||||
#include "qmt/model/mclass.h"
|
||||
@@ -134,7 +135,7 @@ void PxNodeController::addFileSystemEntry(const QString &filePath, int line, int
|
||||
QFileInfo fileInfo(filePath);
|
||||
if (fileInfo.exists() && fileInfo.isFile()) {
|
||||
auto menu = new QMenu;
|
||||
menu->addAction(new MenuAction(tr("Add Component %1").arg(elementName), elementName,
|
||||
menu->addAction(new MenuAction(Tr::tr("Add Component %1").arg(elementName), elementName,
|
||||
MenuAction::TYPE_ADD_COMPONENT, menu));
|
||||
const QStringList classNames = Utils::toList(
|
||||
d->classViewController->findClassDeclarations(
|
||||
@@ -143,7 +144,7 @@ void PxNodeController::addFileSystemEntry(const QString &filePath, int line, int
|
||||
menu->addSeparator();
|
||||
int index = 0;
|
||||
for (const QString &className : classNames) {
|
||||
auto action = new MenuAction(tr("Add Class %1").arg(className), elementName,
|
||||
auto action = new MenuAction(Tr::tr("Add Class %1").arg(className), elementName,
|
||||
MenuAction::TYPE_ADD_CLASS, index, menu);
|
||||
action->className = className;
|
||||
menu->addAction(action);
|
||||
@@ -161,15 +162,15 @@ void PxNodeController::addFileSystemEntry(const QString &filePath, int line, int
|
||||
// ignore line and column
|
||||
QString stereotype;
|
||||
auto menu = new QMenu;
|
||||
auto action = new MenuAction(tr("Add Package %1").arg(elementName), elementName,
|
||||
auto action = new MenuAction(Tr::tr("Add Package %1").arg(elementName), elementName,
|
||||
MenuAction::TYPE_ADD_PACKAGE, menu);
|
||||
action->packageStereotype = stereotype;
|
||||
menu->addAction(action);
|
||||
action = new MenuAction(tr("Add Package and Diagram %1").arg(elementName), elementName,
|
||||
action = new MenuAction(Tr::tr("Add Package and Diagram %1").arg(elementName), elementName,
|
||||
MenuAction::TYPE_ADD_PACKAGE_AND_DIAGRAM, menu);
|
||||
action->packageStereotype = stereotype;
|
||||
menu->addAction(action);
|
||||
action = new MenuAction(tr("Add Component Model"), elementName,
|
||||
action = new MenuAction(Tr::tr("Add Component Model"), elementName,
|
||||
MenuAction::TYPE_ADD_COMPONENT_MODEL, menu);
|
||||
action->packageStereotype = stereotype;
|
||||
menu->addAction(action);
|
||||
@@ -300,7 +301,7 @@ void PxNodeController::onMenuActionTriggered(PxNodeController::MenuAction *actio
|
||||
package->setName(action->elementName);
|
||||
if (!action->packageStereotype.isEmpty())
|
||||
package->setStereotypes({action->packageStereotype});
|
||||
d->diagramSceneController->modelController()->undoController()->beginMergeSequence(tr("Create Component Model"));
|
||||
d->diagramSceneController->modelController()->undoController()->beginMergeSequence(Tr::tr("Create Component Model"));
|
||||
QStringList relativeElements = qmt::NameController::buildElementsPath(
|
||||
d->pxnodeUtilities->calcRelativePath(filePath, d->anchorFolder), true);
|
||||
if (qmt::MObject *existingObject = d->pxnodeUtilities->findSameObject(relativeElements, package)) {
|
||||
@@ -321,7 +322,7 @@ void PxNodeController::onMenuActionTriggered(PxNodeController::MenuAction *actio
|
||||
}
|
||||
|
||||
if (newObject) {
|
||||
d->diagramSceneController->modelController()->undoController()->beginMergeSequence(tr("Drop Node"));
|
||||
d->diagramSceneController->modelController()->undoController()->beginMergeSequence(Tr::tr("Drop Node"));
|
||||
qmt::MObject *parentForDiagram = nullptr;
|
||||
QStringList relativeElements = qmt::NameController::buildElementsPath(
|
||||
d->pxnodeUtilities->calcRelativePath(filePath, d->anchorFolder),
|
||||
|
||||
Reference in New Issue
Block a user