Minor issues related to release

* Add shortcut for Plot Editor, and modify how command features are triggered
Use Ctrl-E to launch the Plot Editor.

* Add optional use of NOECHO and ECHO keywords in GRDECL files
* Add ECHO keywords to sector model export
* Add Help button to Preferences
This commit is contained in:
Magne Sjaastad
2023-02-20 08:18:08 +01:00
committed by GitHub
parent 40fe3d12ae
commit f0e78f32e8
28 changed files with 219 additions and 95 deletions

View File

@@ -19,6 +19,7 @@
#include "RiaNetworkTools.h"
#include <QDesktopServices>
#include <QErrorMessage>
#include <QEventLoop>
#include <QNetworkAccessManager>
#include <QNetworkReply>
@@ -26,6 +27,28 @@
#include <QStringList>
#include <QUrl>
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiaNetworkTools::openSearchPage( const QString& searchText )
{
QString url = QString( "https://resinsight.org/search/?q=" ) + searchText;
RiaNetworkTools::openUrl( url );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiaNetworkTools::openUrlWithErrorReporting( const QString& urlString )
{
if ( !QDesktopServices::openUrl( urlString ) )
{
QErrorMessage* errorHandler = QErrorMessage::qtHandler();
errorHandler->showMessage( "Failed open browser with the following url\n\n" + urlString );
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -28,6 +28,8 @@
class RiaNetworkTools
{
public:
static void openSearchPage( const QString& searchText );
static void openUrlWithErrorReporting( const QString& urlString );
static void openUrl( const QString& urlString );
static void createAndOpenUrlWithFallback( const QString& urlSubString );
static void openUrlWithFallback( const QStringList& urlList );