2019-08-20 03:39:23 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2018- Equinor ASA
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
|
|
|
namespace caf
|
|
|
|
{
|
|
|
|
class PdmUiItem;
|
|
|
|
} // namespace caf
|
|
|
|
|
2019-10-11 01:32:08 -05:00
|
|
|
class RiuMainWindowBase;
|
2023-06-02 03:47:10 -05:00
|
|
|
class QWidget;
|
2019-10-11 01:32:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-08-20 03:39:23 -05:00
|
|
|
class RiuMainWindowTools
|
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
static void collapseSiblings( const caf::PdmUiItem* uiItem );
|
2019-10-11 01:54:23 -05:00
|
|
|
|
2019-10-11 01:32:08 -05:00
|
|
|
static void setWindowSizeOnWidgetsInMdiWindows( RiuMainWindowBase* mainWindow, int width, int height );
|
2019-10-11 01:54:23 -05:00
|
|
|
static void setFixedWindowSizeFor3dViews( RiuMainWindowBase* mainWindow, int width, int height );
|
2023-06-02 03:47:10 -05:00
|
|
|
static void setDarkTitleBarWindows( QWidget* widget );
|
2019-08-20 03:39:23 -05:00
|
|
|
};
|