Skip to content

Commit

Permalink
- Use Ctrl-O to open file
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10210 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 25, 2011
1 parent 787e1a7 commit 11c4890
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
16 changes: 12 additions & 4 deletions OMShell/OMShellGUI/OMShell_de.ts
Expand Up @@ -9,13 +9,14 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="oms.cpp" line="368"/>
<location filename="oms.cpp" line="374"/>
<source>Ctrl+L</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="oms.cpp" line="369"/>
<source>Load mo-file</source>
<source>Open mo-file</source>
<oldsource>Load mo-file</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
Expand All @@ -25,12 +26,14 @@
</message>
<message>
<location filename="oms.cpp" line="374"/>
<source>Ctrl+Shift+L</source>
<source>Ctrl+L</source>
<oldsource>Ctrl+Shift+L</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="oms.cpp" line="367"/>
<source>&amp;Load</source>
<source>&amp;Open</source>
<oldsource>&amp;Load</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down Expand Up @@ -118,6 +121,11 @@
<source>About this application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="oms.cpp" line="416"/>
<source>About Qt</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="oms.cpp" line="420"/>
<source>Cl&amp;ear</source>
Expand Down
18 changes: 10 additions & 8 deletions OMShell/OMShellGUI/OMShell_sv.ts
Expand Up @@ -13,28 +13,25 @@
<translation type="obsolete">&amp;Öppna</translation>
</message>
<message>
<location filename="oms.cpp" line="368"/>
<location filename="oms.cpp" line="374"/>
<source>Ctrl+L</source>
<translation></translation>
</message>
<message>
<location filename="oms.cpp" line="369"/>
<source>Load mo-file</source>
<source>Open mo-file</source>
<oldsource>Load mo-file</oldsource>
<translation>Öppna mo-fil</translation>
</message>
<message>
<location filename="oms.cpp" line="373"/>
<source>Load &amp;Modelica Library</source>
<translation>Öppna &amp;Modelica Bibliotek</translation>
</message>
<message>
<location filename="oms.cpp" line="374"/>
<source>Ctrl+Shift+L</source>
<translation></translation>
</message>
<message>
<location filename="oms.cpp" line="367"/>
<source>&amp;Load</source>
<source>&amp;Open</source>
<oldsource>&amp;Load</oldsource>
<translation>&amp;Öppna</translation>
</message>
<message>
Expand Down Expand Up @@ -87,6 +84,11 @@
<source>About this application</source>
<translation>Om detta program</translation>
</message>
<message>
<location filename="oms.cpp" line="416"/>
<source>About Qt</source>
<translation>Om Qt</translation>
</message>
<message>
<location filename="oms.cpp" line="865"/>
<source>[ERROR] Selected fontsize not between 8 and 120.
Expand Down
8 changes: 4 additions & 4 deletions OMShell/OMShellGUI/oms.cpp
Expand Up @@ -364,14 +364,14 @@ void OMS::createMoshEdit()

void OMS::createAction()
{
loadModel_ = new QAction( tr("&Load"), this );
loadModel_->setShortcut( tr("Ctrl+L") );
loadModel_->setStatusTip( tr("Load mo-file") );
loadModel_ = new QAction( tr("&Open"), this );
loadModel_->setShortcut( tr("Ctrl+O") );
loadModel_->setStatusTip( tr("Open mo-file") );
connect( loadModel_, SIGNAL( triggered() ),
this, SLOT( loadModel() ));

loadModelicaLibrary_ = new QAction( tr("Load &Modelica Library"), this );
loadModelicaLibrary_->setShortcut( tr("Ctrl+Shift+L") );
loadModelicaLibrary_->setShortcut( tr("Ctrl+L") );
loadModelicaLibrary_->setStatusTip( tr("Load the Modelica Standard Library") );
connect( loadModelicaLibrary_, SIGNAL( triggered() ),
this, SLOT( loadModelicaLibrary() ));
Expand Down

0 comments on commit 11c4890

Please sign in to comment.