remove Latte library as requirement
--implement things simpler by using the same CoreTypes header file both for LatteCore.Types import statement and App c++ implementation. Let's leave in the future to decide if a LibLatte is really necessary.pull/15/head
parent
790e0af406
commit
63187ce5b4
@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
|
||||
*
|
||||
* This file is part of Latte-Dock
|
||||
*
|
||||
* Latte-Dock 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 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* Latte-Dock 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 for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef @CORETYPESHEADER@
|
||||
#define @CORETYPESHEADER@
|
||||
|
||||
// Qt
|
||||
#include <QObject>
|
||||
#include <QMetaEnum>
|
||||
#include <QMetaType>
|
||||
|
||||
namespace Latte {
|
||||
|
||||
class Types
|
||||
{
|
||||
Q_GADGET
|
||||
|
||||
public:
|
||||
Types() = delete;
|
||||
~Types(){};
|
||||
|
||||
enum ViewType
|
||||
{
|
||||
DockView = 0,
|
||||
PanelView
|
||||
};
|
||||
Q_ENUM(ViewType);
|
||||
|
||||
enum Visibility
|
||||
{
|
||||
None = -1,
|
||||
AlwaysVisible = 0,
|
||||
AutoHide,
|
||||
DodgeActive,
|
||||
DodgeMaximized,
|
||||
DodgeAllWindows,
|
||||
WindowsGoBelow,
|
||||
WindowsCanCover,
|
||||
WindowsAlwaysCover,
|
||||
SideBar,
|
||||
NormalWindow = 20
|
||||
};
|
||||
Q_ENUM(Visibility);
|
||||
|
||||
enum Alignment
|
||||
{
|
||||
Center = 0,
|
||||
Left,
|
||||
Right,
|
||||
Top,
|
||||
Bottom,
|
||||
Justify = 10
|
||||
};
|
||||
Q_ENUM(Alignment);
|
||||
|
||||
enum EdgesAndAlignments
|
||||
{
|
||||
BottomEdgeCenterAlign = 0,
|
||||
BottomEdgeLeftAlign,
|
||||
BottomEdgeRightAlign,
|
||||
TopEdgeCenterAlign,
|
||||
TopEdgeLeftAlign,
|
||||
TopEdgeRightAlign,
|
||||
LeftEdgeCenterAlign,
|
||||
LeftEdgeTopAlign,
|
||||
LeftEdgeBottomAlign,
|
||||
RightEdgeCenterAlign,
|
||||
RightEdgeTopAlign,
|
||||
RightEdgeBottomAlign
|
||||
};
|
||||
Q_ENUM(EdgesAndAlignments);
|
||||
|
||||
enum LaunchersGroup
|
||||
{
|
||||
UniqueLaunchers = 0,
|
||||
LayoutLaunchers = 1,
|
||||
GlobalLaunchers = 2
|
||||
};
|
||||
Q_ENUM(LaunchersGroup);
|
||||
};
|
||||
|
||||
}//end of namespace
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue