mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#849 Added Import Summary Case command
This commit is contained in:
@@ -641,26 +641,6 @@ void RiuMainPlotWindow::hideAllDockWindows()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainPlotWindow::storeTreeViewState()
|
||||
{
|
||||
if (m_projectTreeView)
|
||||
{
|
||||
QString treeViewState;
|
||||
RimTreeViewStateSerializer::storeTreeViewStateToString(m_projectTreeView->treeView(), treeViewState);
|
||||
|
||||
QModelIndex mi = m_projectTreeView->treeView()->currentIndex();
|
||||
|
||||
QString encodedModelIndexString;
|
||||
RimTreeViewStateSerializer::encodeStringFromModelIndex(mi, encodedModelIndexString);
|
||||
|
||||
RiaApplication::instance()->project()->treeViewState = treeViewState;
|
||||
RiaApplication::instance()->project()->currentModelIndexPath = encodedModelIndexString;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -668,14 +648,14 @@ void RiuMainPlotWindow::restoreTreeViewState()
|
||||
{
|
||||
if (m_projectTreeView)
|
||||
{
|
||||
QString stateString = RiaApplication::instance()->project()->treeViewState;
|
||||
QString stateString = RiaApplication::instance()->project()->plotWindowTreeViewState;
|
||||
if (!stateString.isEmpty())
|
||||
{
|
||||
m_projectTreeView->treeView()->collapseAll();
|
||||
RimTreeViewStateSerializer::applyTreeViewStateFromString(m_projectTreeView->treeView(), stateString);
|
||||
}
|
||||
|
||||
QString currentIndexString = RiaApplication::instance()->project()->currentModelIndexPath;
|
||||
QString currentIndexString = RiaApplication::instance()->project()->plotWindowCurrentModelIndexPath;
|
||||
if (!currentIndexString.isEmpty())
|
||||
{
|
||||
QModelIndex mi = RimTreeViewStateSerializer::getModelIndexFromString(m_projectTreeView->treeView()->model(), currentIndexString);
|
||||
|
||||
@@ -88,7 +88,6 @@ private:
|
||||
void createToolBars();
|
||||
void createDockPanels();
|
||||
|
||||
void storeTreeViewState();
|
||||
void restoreTreeViewState();
|
||||
|
||||
private:
|
||||
|
||||
@@ -1456,14 +1456,14 @@ void RiuMainWindow::restoreTreeViewState()
|
||||
{
|
||||
if (m_projectTreeView)
|
||||
{
|
||||
QString stateString = RiaApplication::instance()->project()->treeViewState;
|
||||
QString stateString = RiaApplication::instance()->project()->mainWindowTreeViewState;
|
||||
if (!stateString.isEmpty())
|
||||
{
|
||||
m_projectTreeView->treeView()->collapseAll();
|
||||
RimTreeViewStateSerializer::applyTreeViewStateFromString(m_projectTreeView->treeView(), stateString);
|
||||
}
|
||||
|
||||
QString currentIndexString = RiaApplication::instance()->project()->currentModelIndexPath;
|
||||
QString currentIndexString = RiaApplication::instance()->project()->mainWindowCurrentModelIndexPath;
|
||||
if (!currentIndexString.isEmpty())
|
||||
{
|
||||
QModelIndex mi = RimTreeViewStateSerializer::getModelIndexFromString(m_projectTreeView->treeView()->model(), currentIndexString);
|
||||
|
||||
Reference in New Issue
Block a user