| Home · All Classes · Main Classes · Deprecated |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of libmeegotouch. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 00020 #ifndef MWIDGETSTYLE_H 00021 #define MWIDGETSTYLE_H 00022 00023 #include <mstyle.h> 00024 00025 #include <QObject> 00026 #include <QColor> 00027 #include <QSize> 00028 #include <mfeedback.h> 00029 #include <mbackgroundtiles.h> 00030 00031 class QPixmap; 00032 class MScalableImage; 00033 00039 class M_CORE_EXPORT MWidgetStyle : public MStyle 00040 { 00041 Q_OBJECT 00042 M_STYLE_INTERNAL(MWidgetStyle) 00043 00044 M_STYLE_ATTRIBUTE(int, marginLeft, MarginLeft) 00045 M_STYLE_ATTRIBUTE(int, marginTop, MarginTop) 00046 M_STYLE_ATTRIBUTE(int, marginRight, MarginRight) 00047 M_STYLE_ATTRIBUTE(int, marginBottom, MarginBottom) 00048 M_STYLE_ATTRIBUTE(int, paddingLeft, PaddingLeft) 00049 M_STYLE_ATTRIBUTE(int, paddingTop, PaddingTop) 00050 M_STYLE_ATTRIBUTE(int, paddingRight, PaddingRight) 00051 M_STYLE_ATTRIBUTE(int, paddingBottom, PaddingBottom) 00052 M_STYLE_ATTRIBUTE(int, reactiveMarginLeft, ReactiveMarginLeft) 00053 M_STYLE_ATTRIBUTE(int, reactiveMarginTop, ReactiveMarginTop) 00054 M_STYLE_ATTRIBUTE(int, reactiveMarginRight, ReactiveMarginRight) 00055 M_STYLE_ATTRIBUTE(int, reactiveMarginBottom, ReactiveMarginBottom) 00056 00057 M_STYLE_ATTRIBUTE(int, backgroundBoxedPercent, BackgroundBoxedPercent) 00058 00059 M_STYLE_ATTRIBUTE(MBackgroundTiles, backgroundTiles, BackgroundTiles) 00060 M_STYLE_PTR_ATTRIBUTE(MScalableImage *, backgroundImage, BackgroundImage) 00061 M_STYLE_ATTRIBUTE(QColor, backgroundColor, BackgroundColor) 00062 M_STYLE_ATTRIBUTE(qreal, backgroundOpacity, BackgroundOpacity) 00063 00064 M_STYLE_ATTRIBUTE(QSize, preferredSize, PreferredSize) 00065 M_STYLE_ATTRIBUTE(QSize, minimumSize, MinimumSize) 00066 M_STYLE_ATTRIBUTE(QSize, maximumSize, MaximumSize) 00067 00068 M_STYLE_ATTRIBUTE(MFeedback, pressFeedback, PressFeedback) 00069 M_STYLE_ATTRIBUTE(MFeedback, releaseFeedback, ReleaseFeedback) 00070 M_STYLE_ATTRIBUTE(MFeedback, cancelFeedback, CancelFeedback) 00071 }; 00072 00073 class M_CORE_EXPORT MWidgetStyleContainer : public MStyleContainer 00074 { 00075 M_STYLE_CONTAINER_INTERNAL(MWidgetStyle) 00076 M_STYLE_MODE(Disabled) 00077 M_STYLE_MODE(Selected) 00078 M_STYLE_MODE(Active) 00079 M_STYLE_MODE(Pressed) 00080 }; 00081 00082 #endif
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:22 (PDT) Doxygen 1.7.1 |
MeeGo Touch |