1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
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. *
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. *
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_
24 * @file KwDisplayStyles.h
25 * @brief Display styles interface.
26 * @author James Hogan <james@albanarts.com>
29 #include <KwCssStandardise.h>
30 #include <KwResourceLink.h>
34 // The cpp file defines this to declare static variables
35 #ifdef KW_DISPLAY_STYLES_DECLARE
40 namespace KwDisplayStyles
42 // Define schema accessor
46 KWCSS_ROOT_NAMESPACE(background
)
47 // Brush to fill the background
48 KWCSS_DEFINE_PROPERTY(QBrush
, brush
)
50 KWCSS_START_NAMESPACE(background
, image
)
52 KWCSS_DEFINE_PROPERTY(KwResourceLink
, src
)
56 KWCSS_START_NAMESPACE(background, video)
58 KWCSS_DEFINE_PROPERTY(QString, path)
59 // Whether to loop the video
60 KWCSS_DEFINE_PROPERTY(bool, loop)
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)
76 KWCSS_START_NAMESPACE(text.font, shadow)
77 KWCSS_DEFINE_PROPERTY(bool, enabled)
80 // Text layout settings
85 #endif // _KwDisplayStyles_h_