Skip to content

Commit

Permalink
Merge pull request #45 from ghutchis/FIX_website_urls
Browse files Browse the repository at this point in the history
Update website URLs for new schemes (to easily allow redirects).
  • Loading branch information
ghutchis committed Feb 22, 2016
2 parents 9c1927b + bd21d8a commit d880124
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
17 changes: 12 additions & 5 deletions avogadro/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1856,29 +1856,34 @@ class XMLEventSource : public pqEventSource
QDesktopServices::openUrl(QUrl("http://manual.avogadro.cc/"));
}

void MainWindow::openForumURL() const
{
QDesktopServices::openUrl(QUrl("http://discuss.avogadro.cc/"));
}

void MainWindow::openTutorialURL() const
{
QDesktopServices::openUrl(QUrl("http://avogadro.cc/wiki/Tutorials"));
QDesktopServices::openUrl(QUrl("http://avogadro.cc/tutorials"));
}

void MainWindow::openFAQURL() const
{
QDesktopServices::openUrl(QUrl("http://avogadro.cc/wiki/FAQ"));
QDesktopServices::openUrl(QUrl("http://avogadro.cc/FAQ"));
}

void MainWindow::openWebsiteURL() const
{
QDesktopServices::openUrl(QUrl("http://avogadro.cc/wiki/"));
QDesktopServices::openUrl(QUrl("http://avogadro.cc/"));
}

void MainWindow::openReleaseNotesURL() const
{
QDesktopServices::openUrl(QUrl( "http://avogadro.cc/wiki/Avogadro_" + QString(VERSION) ));
QDesktopServices::openUrl(QUrl( "http://avogadro.cc/Avogadro_" + QString(VERSION) ));
}

void MainWindow::openBugURL() const
{
QDesktopServices::openUrl(QUrl("http://sourceforge.net/tracker/?group_id=165310&atid=835077"));
QDesktopServices::openUrl(QUrl("http://github.com/cryos/avogadro/issues"));
}

void MainWindow::setView(int index)
Expand Down Expand Up @@ -3071,6 +3076,8 @@ class XMLEventSource : public pqEventSource
this, SLOT( openTutorialURL() ));
connect( ui.actionFAQ, SIGNAL( triggered() ),
this, SLOT( openFAQURL() ) );
connect( ui.actionAvogadro_Forum, SIGNAL( triggered() ),
this, SLOT( openForumURL() ));
connect( ui.actionRelease_Notes, SIGNAL( triggered() ),
this, SLOT( openReleaseNotesURL() ));
connect( ui.actionAvogadro_Website, SIGNAL( triggered() ),
Expand Down
6 changes: 6 additions & 0 deletions avogadro/src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<addaction name="actionAvogadro_Help"/>
<addaction name="actionTutorials"/>
<addaction name="actionFAQ"/>
<addaction name="actionAvogadro_Forum"/>
<addaction name="separator"/>
<addaction name="actionRelease_Notes"/>
<addaction name="actionReport_a_Bug"/>
Expand Down Expand Up @@ -669,6 +670,11 @@
<string>IUPAC InChI identifier</string>
</property>
</action>
<action name="actionAvogadro_Forum">
<property name="text">
<string>Discussion Forum</string>
</property>
</action>
</widget>
<resources>
<include location="avogadro.qrc"/>
Expand Down

0 comments on commit d880124

Please sign in to comment.