mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
Moved message to QString
This commit is contained in:
@@ -2306,110 +2306,64 @@ void QETDiagramEditor::generateTerminalBlock()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
|
||||||
if ( !success ) {
|
QString message=QObject::tr(
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
|
"To install the plugin qet_tb_generator"
|
||||||
QMessageBox::warning(nullptr,
|
"<br>Visit :"
|
||||||
tr("Error launching qet_tb_generator plugin"),
|
"<br>"
|
||||||
QObject::tr("To install the plugin qet_tb_generator"
|
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
||||||
"<br>"
|
"<br>Requires python 3.5 or above."
|
||||||
"Visit :"
|
"<br><B><U> First install on Windows</B></U>"
|
||||||
"<br>"
|
"<br>1. Install, if required, python 3.5 or above"
|
||||||
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
"<br> Visit :"
|
||||||
"<br>"
|
"<br>"
|
||||||
"Requires python 3.5 or above."
|
"<a href='https://www.python.org/downloads/'>python.org</a>"
|
||||||
"<br>"
|
"<br>2. pip install qet_tb_generator"
|
||||||
"<B>""<U>"
|
"<br><B><U> Update on Windows</B></U>"
|
||||||
" First install on Windows"
|
"<br>python -m pip install --upgrade qet_tb_generator"
|
||||||
"</B>""</U>"
|
"<br>"
|
||||||
"<br>"
|
">>user could launch in a terminal this script in this directory"
|
||||||
"1. Install, if required, python 3.5 or above"
|
"<br>"
|
||||||
"<br>"
|
" C:\\users\\XXXX\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts "
|
||||||
" Visit :"
|
"<br>");
|
||||||
"<br>"
|
|
||||||
"<a href='https://www.python.org/downloads/'>python.org</a>"
|
|
||||||
"<br>"
|
|
||||||
"2. pip install qet_tb_generator"
|
|
||||||
"<br>"
|
|
||||||
"<B>""<U>"
|
|
||||||
" Update on Windows"
|
|
||||||
"</B>""</U>"
|
|
||||||
"<br>"
|
|
||||||
"python -m pip install --upgrade qet_tb_generator"
|
|
||||||
"<br>"
|
|
||||||
">>user could launch in a terminal this script in this directory"
|
|
||||||
"<br>"
|
|
||||||
" C:\\users\\XXXX\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts "
|
|
||||||
"<br>"
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
QMessageBox::warning(nullptr,
|
QString message=QObject::tr(
|
||||||
QObject::tr("Error launching qet_tb_generator plugin"),
|
"To install the plugin qet_tb_generator"
|
||||||
QObject::tr("To install the plugin qet_tb_generator"
|
"<br>Visit :"
|
||||||
"<br>"
|
"<br>"
|
||||||
"Visit :"
|
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
||||||
"<br>"
|
"<br><B><U> First install on macOSX</B></U>"
|
||||||
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
"<br>1. Install, if required, python 3.8 bundle only, "
|
||||||
"<br>"
|
"because program use hardcoded PATH for localise qet-tb-generator plugin "
|
||||||
"<B>""<U>"
|
"<br> Visit :"
|
||||||
" First install on macOSX"
|
"<br>"
|
||||||
"</B>""</U>"
|
"<a href='https://qelectrotech.org/forum/viewtopic.php?pid=5674#p5674'>howto</a>"
|
||||||
"<br>"
|
"<br>2. pip3 install qet_tb_generator"
|
||||||
"1. Install, if required, python 3.8 bundle only, because program use hardcoded PATH for localise qet-tb-generator plugin "
|
"<br><B><U> Update on macOSX</B></U>"
|
||||||
"<br>"
|
"<br> pip3 install --upgrade qet_tb_generator"
|
||||||
" Visit :"
|
"<br>");
|
||||||
"<br>"
|
|
||||||
"<a href='https://qelectrotech.org/forum/viewtopic.php?pid=5674#p5674'>howto</a>"
|
|
||||||
"<br>"
|
|
||||||
"2. pip3 install qet_tb_generator"
|
|
||||||
"<br>"
|
|
||||||
"<B>""<U>"
|
|
||||||
" Update on macOSX"
|
|
||||||
"</B>""</U>"
|
|
||||||
"<br>"
|
|
||||||
" pip3 install --upgrade qet_tb_generator"
|
|
||||||
"<br>"
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
QString message=QObject::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>"
|
||||||
|
"<br>Requires python 3.5 or above."
|
||||||
|
"<br>"
|
||||||
|
"<br><B><U> First install on Linux</B>""</U>"
|
||||||
|
"<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>"
|
||||||
|
"<br><B>""<U> Update on Linux</B>""</U>"
|
||||||
|
"<br>sudo pip3 install --upgrade qet_tb_generator"
|
||||||
|
"<br>");
|
||||||
|
#endif
|
||||||
|
if ( !success ) {
|
||||||
QMessageBox::warning(nullptr,
|
QMessageBox::warning(nullptr,
|
||||||
QObject::tr("Error launching qet_tb_generator plugin"),
|
QObject::tr("Error launching qet_tb_generator plugin"),
|
||||||
QObject::tr("To install the plugin qet_tb_generator"
|
message);
|
||||||
"<br>"
|
|
||||||
"Visit : "
|
|
||||||
"<br>"
|
|
||||||
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
|
||||||
"<br>"
|
|
||||||
"<br>"
|
|
||||||
"Requires python 3.5 or above."
|
|
||||||
"<br>"
|
|
||||||
"<br>"
|
|
||||||
"<B>""<U>"
|
|
||||||
" First install on Linux"
|
|
||||||
"</B>""</U>"
|
|
||||||
"<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>"
|
|
||||||
"<br>"
|
|
||||||
"<B>""<U>"
|
|
||||||
" Update on Linux"
|
|
||||||
"</B>""</U>"
|
|
||||||
"<br>"
|
|
||||||
"sudo pip3 install --upgrade qet_tb_generator"
|
|
||||||
"<br>"
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user