2017-02-25 05:44:02 +08:00
|
|
|
#ifndef ads_globalsH
|
|
|
|
#define ads_globalsH
|
|
|
|
//============================================================================
|
|
|
|
/// \file ads_globals.h
|
|
|
|
/// \author Uwe Kindler
|
|
|
|
/// \date 24.02.2017
|
|
|
|
/// \brief Declaration of
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// INCLUDES
|
|
|
|
//============================================================================
|
2017-02-27 01:13:56 +08:00
|
|
|
#include <QPair>
|
|
|
|
|
2017-02-25 05:44:02 +08:00
|
|
|
class QSplitter;
|
|
|
|
|
|
|
|
namespace ads
|
|
|
|
{
|
|
|
|
enum DockWidgetArea
|
|
|
|
{
|
|
|
|
NoDockWidgetArea = 0x00,
|
|
|
|
LeftDockWidgetArea = 0x01,
|
|
|
|
RightDockWidgetArea = 0x02,
|
|
|
|
TopDockWidgetArea = 0x04,
|
|
|
|
BottomDockWidgetArea = 0x08,
|
|
|
|
CenterDockWidgetArea = 0x10,
|
|
|
|
|
2017-02-27 01:13:56 +08:00
|
|
|
OuterDockAreas = TopDockWidgetArea | LeftDockWidgetArea | RightDockWidgetArea | BottomDockWidgetArea,
|
|
|
|
AllDockAreas = OuterDockAreas | CenterDockWidgetArea
|
2017-02-25 05:44:02 +08:00
|
|
|
};
|
|
|
|
Q_DECLARE_FLAGS(DockWidgetAreas, DockWidgetArea)
|
|
|
|
|
|
|
|
namespace internal
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Helper function to create new splitter widgets
|
|
|
|
*/
|
2017-02-27 01:13:56 +08:00
|
|
|
QSplitter* newSplitter(Qt::Orientation orientation, QWidget* parent = 0);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the insertion parameters for the given dock area
|
|
|
|
*/
|
|
|
|
QPair<Qt::Orientation, bool> dockAreaInsertParameters(DockWidgetArea Area);
|
2017-02-25 05:44:02 +08:00
|
|
|
} // namespace internal
|
|
|
|
} // namespace ads
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#endif // ads_globalsH
|