mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve user interface for axis linking
Several adjustments to UI as discussed with Håkon and Alireza. * add link/unlink command to right-click menu of axis * select curve in project tree when clicking on legend item * make sure internal legend is always visible when toggling plot * fix issue when using sub plot as data source for axis range
This commit is contained in:
@@ -100,8 +100,15 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile( const QStringList&
|
||||
RimMainPlotCollection::current()->ensureDefaultFlowPlotsAreCreated();
|
||||
}
|
||||
|
||||
// Import summary cases
|
||||
bool importSummaryCases = readerSettings && readerSettings->importSummaryData;
|
||||
// The default value for summary case import is true, but we use the state from RifReaderSettings if defined
|
||||
//
|
||||
// TODO:
|
||||
// Refactor RifReaderSettings, separate the data structure sent to reader from the data structure in
|
||||
// preferences. See RifReaderSettings::createGridOnlyReaderSettings() for the only use of importSummaryData flag
|
||||
//
|
||||
bool importSummaryCases = true;
|
||||
if ( readerSettings ) importSummaryCases = readerSettings->importSummaryData;
|
||||
|
||||
if ( importSummaryCases && !summaryFileInfos.empty() )
|
||||
{
|
||||
RimSummaryCaseMainCollection* sumCaseColl =
|
||||
@@ -208,6 +215,14 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile( const QStringList&
|
||||
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
|
||||
if ( RiaGuiApplication::isRunning() )
|
||||
{
|
||||
// Call process events to clear the queue. This make sure that we are able raise the 3D window on top of the
|
||||
// plot window. Otherwise the event processing ends up with the plot window on top.
|
||||
QApplication::processEvents();
|
||||
RiuMainWindow::instance()->activateWindow();
|
||||
}
|
||||
|
||||
if ( openedFilesOut )
|
||||
{
|
||||
*openedFilesOut = openedFiles;
|
||||
|
||||
Reference in New Issue
Block a user