mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
Diagram editor : when plugin qet-tb-generator
"generate terminal blocks and connectors" isn't installed show an QMessageBox instruction now depending on the operating system for install it Add in QMessageBox url encoding/decoding for easy download packages git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5880 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -2227,35 +2227,93 @@ void QETDiagramEditor::generateTerminalBlock()
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
if ( !success ) {
|
if ( !success ) {
|
||||||
|
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
|
||||||
QMessageBox::warning(nullptr,
|
QMessageBox::warning(nullptr,
|
||||||
tr("Error launching qet_tb_generator plugin"),
|
tr("Error launching qet_tb_generator plugin"),
|
||||||
tr("To install the plugin qet_tb_generator\nVisit https://pypi.python.org/pypi/qet-tb-generator/\n"
|
tr("To install the plugin qet_tb_generator"
|
||||||
"\n"
|
"<br>"
|
||||||
"Requires python 3.5 or above.\n"
|
"Visit "
|
||||||
">> First install on Linux\n"
|
"<br>"
|
||||||
"1. check you have pip3 installed: pip3 --version\n"
|
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
||||||
"If not install with: sudo apt-get install python3-pip\n"
|
"<br>"
|
||||||
"2. Install the program: sudo pip3 install qet_tb_generator\n"
|
"Requires python 3.5 or above."
|
||||||
"3. Run the program: qet_tb_generator\n"
|
"<br>"
|
||||||
">> Update on Linux\n"
|
">> First install on Windows"
|
||||||
"sudo pip3 install --upgrade qet_tb_generator \n"
|
"<br>"
|
||||||
"\n"
|
"1. Install, if required, python 3.5 or above"
|
||||||
">> First install on Windows\n"
|
"<br>"
|
||||||
"1. Install, if required, python 3.5 or above \n"
|
" Visit "
|
||||||
" Visit https://www.python.org/downloads/ \n"
|
"<br>"
|
||||||
"2. pip install qet_tb_generator\n"
|
"<a href='https://www.python.org/downloads/'>python.org</a>"
|
||||||
">> Update on Windows\n"
|
"<br>"
|
||||||
"python -m pip install --upgrade qet_tb_generator\n"
|
"2. pip install qet_tb_generator"
|
||||||
">>user could launch in a terminal this script in this directory \n"
|
"<br>"
|
||||||
" C:\\users\\XXXX\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts \n"
|
">> Update on Windows"
|
||||||
"\n"
|
"<br>"
|
||||||
">> First install on macOSX \n"
|
"python -m pip install --upgrade qet_tb_generator"
|
||||||
"1. Install, if required, python 3.5 or above \n"
|
"<br>"
|
||||||
" Visit https://qelectrotech.org/forum/viewtopic.php?pid=5674#p5674 \n"
|
">>user could launch in a terminal this script in this directory"
|
||||||
"2. pip3 install qet_tb_generator \n"
|
"<br>"
|
||||||
">> Update on macOSX \n"
|
" C:\\users\\XXXX\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts"
|
||||||
" pip3 install --upgrade qet_tb_generator \n"
|
"<br>"
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#elif defined(Q_OS_MAC)
|
||||||
|
QMessageBox::warning(nullptr,
|
||||||
|
tr("Error launching qet_tb_generator plugin"),
|
||||||
|
tr("To install the plugin qet_tb_generator"
|
||||||
|
"<br>"
|
||||||
|
"Visit "
|
||||||
|
"<br>"
|
||||||
|
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
||||||
|
"<br>"
|
||||||
|
">> First install on macOSX"
|
||||||
|
"<br>"
|
||||||
|
"1. Install, if required, python 3.5 "
|
||||||
|
"<br>"
|
||||||
|
" Visit"
|
||||||
|
"<br>"
|
||||||
|
"<a href='https://qelectrotech.org/forum/viewtopic.php?pid=5674#p5674'>howto</a>"
|
||||||
|
"<br>"
|
||||||
|
"2. pip3 install qet_tb_generator"
|
||||||
|
"<br>"
|
||||||
|
">> Update on macOSX"
|
||||||
|
"<br>"
|
||||||
|
" pip3 install --upgrade qet_tb_generator"
|
||||||
|
"<br>"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
QMessageBox::warning(nullptr,
|
||||||
|
tr("Error launching qet_tb_generator plugin"),
|
||||||
|
tr( "To install the plugin qet_tb_generator"
|
||||||
|
"<br>"
|
||||||
|
"Visit "
|
||||||
|
"<br>"
|
||||||
|
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
||||||
|
"<br>"
|
||||||
|
"Requires python 3.5 or above."
|
||||||
|
"<br>"
|
||||||
|
">> First install on Linux"
|
||||||
|
"<br>"
|
||||||
|
"1. check you have pip3 installed: pip3 --version"
|
||||||
|
"<br>"
|
||||||
|
"If not install with: sudo apt-get install python3-pip"
|
||||||
|
"<br>"
|
||||||
|
"2. Install the program: sudo pip3 install qet_tb_generator"
|
||||||
|
"<br>"
|
||||||
|
"3. Run the program: qet_tb_generator"
|
||||||
|
"<br>"
|
||||||
|
">> Update on Linux"
|
||||||
|
"<br>"
|
||||||
|
"sudo pip3 install --upgrade qet_tb_generator"
|
||||||
|
"<br>"
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user