File indexing completed on 2024-04-28 04:37:33

0001 /*
0002     SPDX-FileCopyrightText: 2006-2007 Alexander Dymo <adymo@kdevelop.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_SUBLIMESUBLIMEDEFS_H
0008 #define KDEVPLATFORM_SUBLIMESUBLIMEDEFS_H
0009 
0010 #include <Qt>
0011 #include <QFlags>
0012 
0013 #include "sublimeexport.h"
0014 
0015 /**
0016 @file sublimedefs.h
0017 @brief Sublime UI enums and other common definitions
0018 */
0019 
0020 namespace Sublime {
0021 
0022     /**Positions for tool views in Sublime UI. To combine them, use
0023     Positions class (QFlags based).*/
0024     enum Position
0025     {
0026         Left = 1   /**< left tool view position */,
0027         Right = 2  /**< right tool view position */,
0028         Top = 4    /**< top tool view position */,
0029         Bottom = 8 /**< bottom tool view position */,
0030         AllPositions = Left|Right|Top|Bottom /**< all tool view positions */
0031     };
0032     Q_DECLARE_FLAGS(Positions, Position)
0033     Q_DECLARE_OPERATORS_FOR_FLAGS(Positions)
0034 
0035     KDEVPLATFORMSUBLIME_EXPORT Position dockAreaToPosition(Qt::DockWidgetArea dockArea);
0036 
0037 }
0038 
0039 #endif