Remove unused code, move implementation to cpp

This commit is contained in:
Magne Sjaastad
2017-11-29 12:57:31 +01:00
parent f2bd87762c
commit c9ae3821e2
2 changed files with 19 additions and 36 deletions

View File

@@ -64,9 +64,7 @@
///
//--------------------------------------------------------------------------------------------------
RiuMainPlotWindow::RiuMainPlotWindow()
: m_pdmRoot(NULL),
m_mainViewer(NULL),
m_activePlotViewWindow(nullptr),
: m_activePlotViewWindow(nullptr),
m_windowMenu(NULL),
m_blockSlotSubWindowActivated(false)
{
@@ -75,9 +73,6 @@ RiuMainPlotWindow::RiuMainPlotWindow()
connect(m_mdiArea, SIGNAL(subWindowActivated(QMdiSubWindow *)), SLOT(slotSubWindowActivated(QMdiSubWindow*)));
setCentralWidget(m_mdiArea);
//m_mainViewer = createViewer();
createActions();
createMenus();
createToolBars();
createDockPanels();
@@ -93,6 +88,14 @@ RiuMainPlotWindow::RiuMainPlotWindow()
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RiuMainPlotWindow::mainWindowName()
{
return "RiuMainPlotWindow";
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -165,14 +168,6 @@ void RiuMainPlotWindow::closeEvent(QCloseEvent* event)
app->closeProject();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuMainPlotWindow::createActions()
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -498,8 +493,6 @@ void RiuMainPlotWindow::addViewer(QWidget* viewer, const RimMdiWindowGeometry& w
//--------------------------------------------------------------------------------------------------
void RiuMainPlotWindow::setPdmRoot(caf::PdmObject* pdmRoot)
{
m_pdmRoot = pdmRoot;
m_projectTreeView->setPdmItem(pdmRoot);
// For debug only : m_projectTreeView->treeView()->expandAll();
m_projectTreeView->setDragDropInterface(m_dragDropInterface.get());
@@ -543,6 +536,14 @@ void RiuMainPlotWindow::setActiveViewer(QWidget* viewer)
m_blockSlotSubWindowActivated = false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
caf::PdmUiTreeView* RiuMainPlotWindow::projectTreeView()
{
return m_projectTreeView;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -689,20 +690,6 @@ void RiuMainPlotWindow::restoreTreeViewState()
void RiuMainPlotWindow::selectAsCurrentItem(caf::PdmObject* object)
{
m_projectTreeView->selectAsCurrentItem(object);
std::vector<caf::PdmFieldHandle*> toolBarFields;
/*
RimSummaryPlot* summaryPlot = nullptr;
object->firstAncestorOrThisOfType(summaryPlot);
if (summaryPlot)
{
toolBarFields = summaryPlot->summaryCurveCollection()->fieldsToShowInToolbar();
}
m_summaryPlotToolBar->setFields(toolBarFields);
m_summaryPlotToolBar->updateUi();
*/
}
//--------------------------------------------------------------------------------------------------