mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Diagram editor : Add StatusTip instruction for install and launching DXF
plugin depending on the operating system git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5878 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -161,6 +161,27 @@ void QETElementEditor::setupActions() {
|
|||||||
edit_author = new QAction(QET::Icons::UserInformations, tr("Éditer les informations sur l'auteur"), this);
|
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);
|
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"
|
open_dxf -> setWhatsThis (tr("To install the plugin DXFtoQET\nVisit https://download.tuxfamily.org/qet/builds/dxf_to_elmt/\n"
|
||||||
"\n"
|
"\n"
|
||||||
">> Install on Linux\n"
|
">> Install on Linux\n"
|
||||||
@@ -1060,7 +1081,7 @@ void QETElementEditor::openRecentFile(const QString &filepath) {
|
|||||||
*/
|
*/
|
||||||
void QETElementEditor::slot_openDxf (){
|
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");
|
QString program = (QDir::homePath() + "/Application Data/qet/DXFtoQET.exe");
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
QString program = (QDir::homePath() + "/.qet/DXFtoQET.app");
|
QString program = (QDir::homePath() + "/.qet/DXFtoQET.app");
|
||||||
|
|||||||
Reference in New Issue
Block a user