2017-02-13 01:40:27 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2019-10-11 08:54:19 -05:00
|
|
|
// Copyright (C) 2019- Equinor ASA
|
2019-09-06 06:17:36 -05:00
|
|
|
//
|
2017-02-13 01:40:27 -06:00
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
2019-09-06 06:17:36 -05:00
|
|
|
//
|
2017-02-13 01:40:27 -06:00
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
2019-09-06 06:17:36 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-02-13 01:40:27 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
|
2019-12-19 04:37:40 -06:00
|
|
|
#include "RiuInterfaceToViewWindow.h"
|
|
|
|
#include "RiuMultiPlotPage.h"
|
2017-03-31 02:17:49 -05:00
|
|
|
|
2019-10-31 07:48:40 -05:00
|
|
|
class RiuQwtPlotWidget;
|
2017-02-13 01:40:27 -06:00
|
|
|
class RimWellLogPlot;
|
|
|
|
|
2019-12-19 04:37:40 -06:00
|
|
|
class RiuWellLogPlot : public RiuMultiPlotPage, public RiuInterfaceToViewWindow
|
2017-02-13 01:40:27 -06:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-10-11 08:54:19 -05:00
|
|
|
RiuWellLogPlot( RimWellLogPlot* plotDefinition, QWidget* parent );
|
2019-10-31 07:48:40 -05:00
|
|
|
|
2019-12-19 04:37:40 -06:00
|
|
|
RimViewWindow* ownerViewWindow() const override;
|
|
|
|
|
2019-10-31 07:48:40 -05:00
|
|
|
void updateVerticalScrollBar( double minVisible, double maxVisible, double minAvailable, double maxAvailable ) override;
|
2019-12-19 04:37:40 -06:00
|
|
|
void renderTo( QPaintDevice* paintDevice ) override;
|
2019-10-31 07:48:40 -05:00
|
|
|
|
|
|
|
protected:
|
2019-11-15 03:12:19 -06:00
|
|
|
void keyPressEvent( QKeyEvent* event ) override;
|
2019-10-31 07:48:40 -05:00
|
|
|
bool willAcceptDroppedPlot( const RiuQwtPlotWidget* plotWidget ) const override;
|
|
|
|
bool showYAxis( int row, int column ) const override;
|
|
|
|
|
|
|
|
void reinsertScrollbar();
|
|
|
|
void alignScrollbar( int offset );
|
2019-09-06 08:52:45 -05:00
|
|
|
|
2017-02-13 01:40:27 -06:00
|
|
|
private:
|
2019-10-11 08:54:19 -05:00
|
|
|
RimWellLogPlot* wellLogPlotDefinition();
|
2019-10-10 06:33:57 -05:00
|
|
|
|
2017-02-13 01:40:27 -06:00
|
|
|
private slots:
|
2019-09-06 06:17:36 -05:00
|
|
|
void slotSetMinDepth( int value );
|
2019-10-31 07:48:40 -05:00
|
|
|
void performUpdate() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QPointer<QVBoxLayout> m_trackScrollBarLayout;
|
|
|
|
QScrollBar* m_trackScrollBar;
|
2017-02-13 01:40:27 -06:00
|
|
|
};
|