[qet] qet/qet: [5878] Diagram editor : Add StatusTip instruction for install and launching DXF |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5878
Author: scorpio810
Date: 2019-05-19 21:47:32 +0200 (Sun, 19 May 2019)
Log Message:
-----------
Diagram editor : Add StatusTip instruction for install and launching DXF
plugin depending on the operating system
Modified Paths:
--------------
trunk/sources/editor/qetelementeditor.cpp
Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp 2019-05-19 18:34:04 UTC (rev 5877)
+++ trunk/sources/editor/qetelementeditor.cpp 2019-05-19 19:47:32 UTC (rev 5878)
@@ -161,6 +161,27 @@
edit_author = new QAction(QET::Icons::UserInformations, tr("Éditer les informations sur l'auteur"), this);
m_edit_properties = new QAction(QET::Icons::ElementEdit, tr("Éditer les propriétés de l'élément"), this);
+#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
+ open_dxf -> setStatusTip(tr("To install the plugin DXFtoQET\nVisit https://download.tuxfamily.org/qet/builds/dxf_to_elmt/\n"
+ "\n"
+ ">> Install on Windows\n"
+ "Put DXFtoQET.exe binary on C:\\Users\\user_name\\AppData\\Roaming\\qet\\ directory \n"
+ ));
+#elif defined(Q_OS_MAC)
+ open_dxf -> setStatusTip(tr("To install the plugin DXFtoQET\nVisit https://download.tuxfamily.org/qet/builds/dxf_to_elmt/\n"
+ "\n"
+ ">> Install on macOSX\n"
+ "Put DXFtoQET.app binary on /Users/user_name/.qet/ directory \n"
+ ));
+#else
+ open_dxf -> setStatusTip(tr("To install the plugin DXFtoQET\nVisit https://download.tuxfamily.org/qet/builds/dxf_to_elmt/\n"
+ "\n"
+ ">> Install on Linux\n"
+ "Put DXFtoQET binary on your /home/user_name/.qet/ directory\n"
+ "make it executable : chmod +x ./DXFtoQET\n"
+ ));
+#endif
+
open_dxf -> setWhatsThis (tr("To install the plugin DXFtoQET\nVisit https://download.tuxfamily.org/qet/builds/dxf_to_elmt/\n"
"\n"
">> Install on Linux\n"
@@ -1060,7 +1081,7 @@
*/
void QETElementEditor::slot_openDxf (){
-#if defined(Q_OS_WIN32)
+#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
QString program = (QDir::homePath() + "/Application Data/qet/DXFtoQET.exe");
#elif defined(Q_OS_MAC)
QString program = (QDir::homePath() + "/.qet/DXFtoQET.app");