libs/flake

KoFlake.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  * Copyright (C) 2006 Thomas Zander <zander@kde.org>
00003  * Copyright (C) 2008 Jan Hambrecht <jaham@gmx.net>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019  */
00020 #ifndef KOFLAKE_H
00021 #define KOFLAKE_H
00022 
00023 #include "flake_export.h"
00024 
00025 #include <QtGui/QBrush>
00026 
00027 class KoShape;
00028 class QGradient;
00029 class KoShapeBackground;
00030 
00034 namespace KoFlake
00035 {
00037     enum SelectionType {
00038         FullSelection,      
00039         StrippedSelection,  
00040         TopLevelSelection   
00041     };
00042 
00044     enum SelectionHandle {
00045         TopMiddleHandle,    
00046         TopRightHandle,     
00047         RightMiddleHandle,  
00048         BottomRightHandle,  
00049         BottomMiddleHandle, 
00050         BottomLeftHandle,   
00051         LeftMiddleHandle,   
00052         TopLeftHandle,      
00053         NoHandle            
00054     };
00055 
00059     enum ShapeSelection {
00060         Selected,   
00061         Unselected, 
00062         NextUnselected, 
00063         ShapeOnTop  
00064     };
00065 
00067     enum Position {
00068         TopLeftCorner, 
00069         TopRightCorner, 
00070         BottomLeftCorner, 
00071         BottomRightCorner, 
00072         CenteredPosition 
00073     };
00074 
00078     enum StyleType {
00079         Background, 
00080         Foreground  
00081     };
00082 
00084     FLAKE_EXPORT QGradient *cloneGradient(const QGradient *gradient);
00085 }
00086 
00087 #endif