Std: Fix URLs in CommandStd.cpp
Updated all URLs to the new freecad.org domain.
This commit is contained in:
@@ -502,7 +502,7 @@ StdCmdOnlineHelpWebsite::StdCmdOnlineHelpWebsite()
|
||||
void StdCmdOnlineHelpWebsite::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/Online_Help_Toc").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"https://wiki.freecad.org/Online_Help_Toc").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("OnlineHelp", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("OnlineHelp", url.c_str());
|
||||
@@ -529,9 +529,9 @@ StdCmdFreeCADDonation::StdCmdFreeCADDonation()
|
||||
|
||||
void StdCmdFreeCADDonation::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
Q_UNUSED(iMsg);
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("DonatePage", "https://wiki.freecadweb.org/Donate");
|
||||
std::string url = hURLGrp->GetASCII("DonatePage", "https://wiki.freecad.org/Donate");
|
||||
hURLGrp->SetASCII("DonatePage", url.c_str());
|
||||
OpenURLInBrowser(url.c_str());
|
||||
}
|
||||
@@ -557,7 +557,7 @@ StdCmdFreeCADWebsite::StdCmdFreeCADWebsite()
|
||||
void StdCmdFreeCADWebsite::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"https://www.freecad.org").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("WebPage", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("WebPage", url.c_str());
|
||||
@@ -585,7 +585,7 @@ StdCmdFreeCADUserHub::StdCmdFreeCADUserHub()
|
||||
void StdCmdFreeCADUserHub::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/User_hub").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"https://wiki.freecad.org/User_hub").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("Documentation", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("Documentation", url.c_str());
|
||||
@@ -613,7 +613,7 @@ StdCmdFreeCADPowerUserHub::StdCmdFreeCADPowerUserHub()
|
||||
void StdCmdFreeCADPowerUserHub::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/Power_users_hub").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"https://wiki.freecad.org/Power_users_hub").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("PowerUsers", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("PowerUsers", url.c_str());
|
||||
@@ -641,7 +641,7 @@ StdCmdFreeCADForum::StdCmdFreeCADForum()
|
||||
void StdCmdFreeCADForum::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://forum.freecadweb.org").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"https://forum.freecad.org").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("UserForum", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("UserForum", url.c_str());
|
||||
@@ -669,7 +669,7 @@ StdCmdFreeCADFAQ::StdCmdFreeCADFAQ()
|
||||
void StdCmdFreeCADFAQ::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/FAQ").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"https://wiki.freecad.org/Frequently_asked_questions").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("FAQ", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("FAQ", url.c_str());
|
||||
@@ -697,7 +697,7 @@ StdCmdPythonWebsite::StdCmdPythonWebsite()
|
||||
void StdCmdPythonWebsite::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
OpenURLInBrowser("http://python.org");
|
||||
OpenURLInBrowser("https://www.python.org");
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
@@ -852,7 +852,7 @@ Gui::Action * StdCmdUserEditMode::createAction(void)
|
||||
pcAction->setDropDownMenu(true);
|
||||
pcAction->setIsMode(true);
|
||||
applyCommandData(this->className(), pcAction);
|
||||
|
||||
|
||||
for (auto const &uem : Gui::Application::Instance->listUserEditModes()) {
|
||||
QAction* act = pcAction->addAction(QString());
|
||||
auto modeName = QString::fromStdString(uem.second);
|
||||
@@ -860,7 +860,7 @@ Gui::Action * StdCmdUserEditMode::createAction(void)
|
||||
act->setIcon(BitmapFactory().iconFromTheme(qPrintable(QString::fromLatin1("Std_UserEditMode")+modeName)));
|
||||
act->setObjectName(QString::fromLatin1("Std_UserEditMode")+modeName);
|
||||
act->setWhatsThis(QString::fromLatin1(getWhatsThis()));
|
||||
|
||||
|
||||
if (uem.first == 0) {
|
||||
pcAction->setIcon(act->icon());
|
||||
act->setChecked(true);
|
||||
|
||||
Reference in New Issue
Block a user