Changed style background.image.src from QPixmap to KwResourceLink and implemented...
[kworship.git] / kworship / display / KwDisplayStyles.h
blobad93c45509d1f33d20810255e8f65c374e59532b
1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
4 * *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #ifndef _KwDisplayStyles_h_
21 #define _KwDisplayStyles_h_
23 /**
24 * @file KwDisplayStyles.h
25 * @brief Display styles interface.
26 * @author James Hogan <james@albanarts.com>
29 #include <KwCssStandardise.h>
30 #include <KwResourceLink.h>
32 #include <QBrush>
34 // The cpp file defines this to declare static variables
35 #ifdef KW_DISPLAY_STYLES_DECLARE
36 #undef KWCSS_EXTERN
37 #define KWCSS_EXTERN
38 #endif
40 namespace KwDisplayStyles
42 // Define schema accessor
43 KWCSS_SCHEMA
45 // Display background
46 KWCSS_ROOT_NAMESPACE(background)
47 // Brush to fill the background
48 KWCSS_DEFINE_PROPERTY(QBrush, brush)
49 // Image backgrounds
50 KWCSS_START_NAMESPACE(background, image)
51 // Pixmap to display
52 KWCSS_DEFINE_PROPERTY(KwResourceLink, src)
53 KWCSS_END_NAMESPACE()
55 // Video backgrounds
56 KWCSS_START_NAMESPACE(background, video)
57 // Path of video file
58 KWCSS_DEFINE_PROPERTY(QString, path)
59 // Whether to loop the video
60 KWCSS_DEFINE_PROPERTY(bool, loop)
61 KWCSS_END_NAMESPACE()
63 KWCSS_END_NAMESPACE()
66 // Text
67 KWCSS_ROOT_NAMESPACE(text)
68 // Font display settings
69 KWCSS_START_NAMESPACE(text, font)
70 KWCSS_DEFINE_PROPERTY(QFont, font)
71 KWCSS_DEFINE_PROPERTY(QBrush, brush)
72 KWCSS_START_NAMESPACE(text.font, outline)
73 KWCSS_DEFINE_PROPERTY(bool, enabled)
74 KWCSS_DEFINE_PROPERTY(QPen, pen)
75 KWCSS_END_NAMESPACE()
76 KWCSS_START_NAMESPACE(text.font, shadow)
77 KWCSS_DEFINE_PROPERTY(bool, enabled)
78 KWCSS_END_NAMESPACE()
79 KWCSS_END_NAMESPACE()
80 // Text layout settings
81 KWCSS_END_NAMESPACE()
85 #endif // _KwDisplayStyles_h_