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