Skip to content

Commit

Permalink
Plugin implementation and reading of the variables
Browse files Browse the repository at this point in the history
Implementation of the plugin Mapping based on SampleView.
The plugin can read and display in a list the variables of the open file.

Sometime crashes when opening a file.
  • Loading branch information
LafCorentin committed Jul 22, 2020
1 parent 9a60a3b commit cb9fd78
Show file tree
Hide file tree
Showing 11 changed files with 1,060 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -916,6 +916,7 @@ if(USE_PREBUILT_QTWEBKIT_PACKAGE)
editing/RawSEDMLView
editing/RawTextView
editing/SEDMLEditingView
editing/MappingView

miscellaneous/Compiler
miscellaneous/Core
Expand Down
20 changes: 20 additions & 0 deletions src/plugins/editing/MappingView/CMakeLists.txt
@@ -0,0 +1,20 @@
project(MappingViewPlugin)

# Add the plugin

add_plugin(MappingView
SOURCES
../../filehandlinginterface.cpp
../../i18ninterface.cpp
../../plugininfo.cpp
../../plugininterface.cpp
../../viewinterface.cpp

src/mappingviewplugin.cpp
src/mappingviewwidget.cpp
UIS
src/mappingviewwidget.ui
PLUGINS
Core
CellMLSupport
)
49 changes: 49 additions & 0 deletions src/plugins/editing/MappingView/i18n/MappingView_fr.ts
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="fr_FR" sourcelanguage="en_GB">
<context>
<name>MappingViewWidget</name>
<message>
<source>File name:</source>
<translation>Nom de fichier :</translation>
</message>
<message>
<source>Locked:</source>
<translation>Verrouillé :</translation>
</message>
<message>
<source>SHA-1:</source>
<translation>SHA-1 :</translation>
</message>
<message>
<source>Size:</source>
<translation>Taille :</translation>
</message>
<message>
<source>Variables:</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OpenCOR::MappingView::MappingViewPlugin</name>
<message>
<source>Mapping</source>
<translation>Mappeur</translation>
</message>
</context>
<context>
<name>OpenCOR::MappingView::MappingViewWidget</name>
<message>
<source>Yes</source>
<translation>Oui</translation>
</message>
<message>
<source>No</source>
<translation>Non</translation>
</message>
<message>
<source>VICTOOOOIIIIIRE</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
5 changes: 5 additions & 0 deletions src/plugins/editing/MappingView/res/MappingView_i18n.qrc.in
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file alias="${PLUGIN_NAME}_fr">${PROJECT_BUILD_DIR}/${PLUGIN_NAME}_fr.qm</file>
</qresource>
</RCC>

0 comments on commit cb9fd78

Please sign in to comment.