diff options
Diffstat (limited to 'src/views/style')
-rw-r--r-- | src/views/style/mbubbleitembackgroundstyle.h | 50 | ||||
-rw-r--r-- | src/views/style/mlistitemstyle.h | 36 | ||||
-rw-r--r-- | src/views/style/mtexteditstyle.h | 30 | ||||
-rw-r--r-- | src/views/style/style.pri | 2 |
4 files changed, 118 insertions, 0 deletions
diff --git a/src/views/style/mbubbleitembackgroundstyle.h b/src/views/style/mbubbleitembackgroundstyle.h new file mode 100644 index 00000000..c63943f4 --- /dev/null +++ b/src/views/style/mbubbleitembackgroundstyle.h @@ -0,0 +1,50 @@ +/*************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (directui@nokia.com) +** +** This file is part of libmeegotouch. +** +** If you have questions regarding the use of this file, please contact +** Nokia at directui@nokia.com. +** +** This library is free software; you can redistribute it and/or +** modify it under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation +** and appearing in the file LICENSE.LGPL included in the packaging +** of this file. +** +****************************************************************************/ + +#ifndef MBUBBLEITEMBACKGROUNDSTYLE_H +#define MBUBBLEITEMBACKGROUNDSTYLE_H + +#include <mwidgetstyle.h> + +/*! + * \internal + */ + +class M_EXPORT MBubbleItemBackgroundStyle : public MWidgetStyle +{ + Q_OBJECT + M_STYLE(MBubbleItemBackgroundStyle) + + M_STYLE_PTR_ATTRIBUTE(MScalableImage *, incomingBackground, IncomingBackground) + M_STYLE_PTR_ATTRIBUTE(MScalableImage *, incomingMirroredBackground, IncomingMirroredBackground) + M_STYLE_PTR_ATTRIBUTE(MScalableImage *, outgoingBackground, OutgoingBackground) + M_STYLE_PTR_ATTRIBUTE(MScalableImage *, outgoingMirroredBackground, OutgoingMirroredBackground) +}; + +/*! + * \internal + */ + +class M_EXPORT MBubbleItemBackgroundStyleContainer : public MWidgetStyleContainer +{ + M_STYLE_CONTAINER(MBubbleItemBackgroundStyle) +}; + +#endif + diff --git a/src/views/style/mlistitemstyle.h b/src/views/style/mlistitemstyle.h new file mode 100644 index 00000000..35f30ea9 --- /dev/null +++ b/src/views/style/mlistitemstyle.h @@ -0,0 +1,36 @@ +/*************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (directui@nokia.com) +** +** This file is part of libmeegotouch. +** +** If you have questions regarding the use of this file, please contact +** Nokia at directui@nokia.com. +** +** This library is free software; you can redistribute it and/or +** modify it under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation +** and appearing in the file LICENSE.LGPL included in the packaging +** of this file. +** +****************************************************************************/ + +#ifndef MLISTITEMSTYLE_H +#define MLISTITEMSTYLE_H + +#include <mwidgetstyle.h> + +class M_EXPORT MListItemStyle : public MWidgetStyle +{ + Q_OBJECT + M_STYLE(MListItemStyle) +}; + +class M_EXPORT MListItemStyleContainer : public MWidgetStyleContainer +{ + M_STYLE_CONTAINER(MListItemStyle) +}; + +#endif // MLISTITEMSTYLE_H diff --git a/src/views/style/mtexteditstyle.h b/src/views/style/mtexteditstyle.h index 9a9ddfad..f4f19bd1 100644 --- a/src/views/style/mtexteditstyle.h +++ b/src/views/style/mtexteditstyle.h @@ -41,6 +41,36 @@ class M_EXPORT MTextEditStyle : public MWidgetStyle M_STYLE_ATTRIBUTE(QString, pasteFailedIcon, PasteFailedIcon) M_STYLE_ATTRIBUTE(int, pasteFailedDuration, PasteFailedDuration) M_STYLE_ATTRIBUTE(int, maskingDelay, MaskingDelay) + + /*! + \property MTextEditStyle::pressBoundaryFeedback + \brief Feedback given when pressing between words + */ + M_STYLE_ATTRIBUTE(MFeedback, pressBoundaryFeedback, PressBoundaryFeedback) + + /*! + \property MTextEditStyle::releaseBoundaryFeedback + \brief Feedback given when releasing between words + */ + M_STYLE_ATTRIBUTE(MFeedback, releaseBoundaryFeedback, ReleaseBoundaryFeedback) + + /*! + \property MTextEditStyle::pressWordFeedback + \brief Feedback given when pressing on top of a word + */ + M_STYLE_ATTRIBUTE(MFeedback, pressWordFeedback, PressWordFeedback) + + /*! + \property MTextEditStyle::releaseWordFeedback + \brief Feedback given when releasing on top of a word + */ + M_STYLE_ATTRIBUTE(MFeedback, releaseWordFeedback, ReleaseWordFeedback) + + /*! + \property MTextEditStyle::changeSelectionFeedback + \brief Feedback given when finger movement changes text selection + */ + M_STYLE_ATTRIBUTE(MFeedback, changeSelectionFeedback, ChangeSelectionFeedback) }; class M_EXPORT MTextEditStyleContainer : public MWidgetStyleContainer diff --git a/src/views/style/style.pri b/src/views/style/style.pri index d6a7e0b4..f6c85233 100644 --- a/src/views/style/style.pri +++ b/src/views/style/style.pri @@ -48,6 +48,8 @@ MGEN_STYLE_HEADERS += \ $$STYLE_SRC_DIR/mvideowidgetstyle.h \ $$STYLE_SRC_DIR/mlistindexstyle.h \ $$STYLE_SRC_DIR/mwarpanimationstyle.h \ + $$STYLE_SRC_DIR/mlistitemstyle.h \ + $$STYLE_SRC_DIR/mbubbleitembackgroundstyle.h \ PUBLIC_HEADERS += \ $$MGEN_STYLE_HEADERS \ |