2012-05-18 09:45:23 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2012-05-18 09:45:23 +02: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 10:40:57 +02:00
|
|
|
//
|
2012-05-18 09:45:23 +02: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 10:40:57 +02:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2012-05-18 09:45:23 +02:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-11-26 09:53:43 +01:00
|
|
|
#include <QWidget>
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
class QDockWidget;
|
|
|
|
class QTextEdit;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
2019-09-06 10:40:57 +02:00
|
|
|
// RiuResultInfoPanel
|
2012-05-18 09:45:23 +02:00
|
|
|
//
|
|
|
|
//==================================================================================================
|
2013-03-22 17:17:56 +01:00
|
|
|
class RiuResultInfoPanel : public QWidget
|
2012-05-18 09:45:23 +02:00
|
|
|
{
|
2015-10-23 15:46:25 +02:00
|
|
|
Q_OBJECT
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
explicit RiuResultInfoPanel( QDockWidget* parent );
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void setInfo( const QString& info );
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
QSize sizeHint() const override;
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
static void convertStringToHTML( QString* str );
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
QTextEdit* m_textEdit;
|
2012-05-18 09:45:23 +02:00
|
|
|
};
|