digiKam
bordercontainer.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2005-05-25
7  * Description : border settings container.
8  *
9  * Copyright 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright 2006-2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
11  * Copyright 2009-2010 by Andi Clemens <andi dot clemens at gmail dot com>
12  * Copyright 2010 by Martin Klapetek <martin dot klapetek at gmail dot com>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option)
18  * any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * ============================================================ */
26 
27 #ifndef DIGIKAM_BORDER_CONTAINER_H
28 #define DIGIKAM_BORDER_CONTAINER_H
29 
30 // Qt includes
31 
32 #include <QColor>
33 #include <QString>
34 
35 // Local includes
36 
37 #include "digikam_export.h"
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT BorderContainer
43 {
44 
45 public:
46 
48  {
49  SolidBorder = 0,
67  WallBorder
68  };
69 
70 public:
71 
72  explicit BorderContainer();
73  ~BorderContainer();
74 
75  static QString getBorderPath(int border);
76 
77 public:
78 
80 
81  int orgWidth;
82  int orgHeight;
83 
85 
90 
91  double borderPercent;
92 
93  QString borderPath;
94 
95  QColor solidColor;
102 };
103 
104 } // namespace Digikam
105 
106 #endif // DIGIKAM_BORDER_CONTAINER_H
Definition: bordercontainer.h:43
int borderWidth1
Definition: bordercontainer.h:86
QColor decorativeFirstColor
Definition: bordercontainer.h:100
int orgWidth
Definition: bordercontainer.h:81
bool preserveAspectRatio
Definition: bordercontainer.h:79
double borderPercent
Definition: bordercontainer.h:91
int borderWidth2
Definition: bordercontainer.h:87
int borderType
Definition: bordercontainer.h:84
QString borderPath
Definition: bordercontainer.h:93
BorderTypes
Definition: bordercontainer.h:48
@ PinkBorder
Definition: bordercontainer.h:62
@ NiepceBorder
Definition: bordercontainer.h:50
@ GraniteBorder
Definition: bordercontainer.h:65
@ RockBorder
Definition: bordercontainer.h:66
@ StoneBorder
Definition: bordercontainer.h:63
@ LeafBorder
Definition: bordercontainer.h:57
@ PineBorder
Definition: bordercontainer.h:52
@ ChalkBorder
Definition: bordercontainer.h:64
@ ParqueBorder
Definition: bordercontainer.h:55
@ CratersBorder
Definition: bordercontainer.h:60
@ IceBorder
Definition: bordercontainer.h:56
@ WoodBorder
Definition: bordercontainer.h:53
@ MarbleBorder
Definition: bordercontainer.h:58
@ RainBorder
Definition: bordercontainer.h:59
@ BeveledBorder
Definition: bordercontainer.h:51
@ PaperBorder
Definition: bordercontainer.h:54
@ DriedBorder
Definition: bordercontainer.h:61
QColor bevelLowerRightColor
Definition: bordercontainer.h:99
int borderWidth3
Definition: bordercontainer.h:88
QColor niepceBorderColor
Definition: bordercontainer.h:96
int orgHeight
Definition: bordercontainer.h:82
int borderWidth4
Definition: bordercontainer.h:89
QColor decorativeSecondColor
Definition: bordercontainer.h:101
QColor solidColor
Definition: bordercontainer.h:95
QColor bevelUpperLeftColor
Definition: bordercontainer.h:98
QColor niepceLineColor
Definition: bordercontainer.h:97
Definition: datefolderview.cpp:43