Home · All Namespaces · All Classes · Main Classes |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Karoliina T. Salminen <karoliina.t.salminen@nokia.com> 00006 ** 00007 ** This file is part of duicontrolpanel. 00008 ** 00009 ** 00010 ** This library is free software; you can redistribute it and/or 00011 ** modify it under the terms of the GNU Lesser General Public 00012 ** License version 2.1 as published by the Free Software Foundation 00013 ** and appearing in the file LICENSE.LGPL included in the packaging 00014 ** of this file. 00015 ** 00016 ****************************************************************************/ 00017 00018 /* -*- Mode: C; indent-tabs-mode: s; c-basic-offset: 4; tab-width: 4 -*- */ 00019 /* vim:set et ai sw=4 ts=4 sts=4: tw=80 cino="(0,W2s,i2s,t0,l1,:0" */ 00020 #ifndef DCPWIDGETTYPES_H 00021 #define DCPWIDGETTYPES_H 00022 #include <QString> 00023 00024 enum Q_DECL_DEPRECATED WIDGETTYPEID { 00025 DCPBRIEFWIDGETINVALID = 0, 00026 DCPLABEL, //"DcpLabel" 00027 DCPLABEL2, //"DcpLabel2" 00028 DCPLABELBUTTON, //"DcpLabelButton" 00029 DCPLABEL2BUTTON, //"DcpLabel2Button" 00030 DCPLABEL2IMAGE, //"DcpLabel2Image" 00031 DCPLABEL2TOGGLE, //"DcpLabel2Toggle" 00032 WIDGETN 00033 }; 00034 00035 namespace DcpWidgetType 00036 { 00037 enum Id { 00038 BriefInvalid = 100, 00039 Label, 00040 Toggle, 00041 Image, 00042 Button, 00043 Special, 00044 Slider, 00045 IdMax 00046 }; 00047 const QString 00048 names[IdMax - BriefInvalid] = 00049 { 00050 "DcpBriefWidgetInvalid", 00051 "Label", 00052 "Toggle", 00053 "Image", 00054 "Button", 00055 "Special", 00056 "Slider" 00057 }; 00058 bool isIdValid(int id); 00059 }; 00060 00061 static const QString 00062 Q_DECL_DEPRECATED WIDGETNAME[] = 00063 { 00064 "DcpBriefWidgetInvalid", 00065 "DcpLabel", 00066 "DcpLabel2", 00067 "DcpLabelButton", 00068 "DcpLabel2Button", 00069 "DcpLabel2Image", 00070 "DcpLabel2Toggle", 00071 }; 00072 00073 #define DCP_WIDGET_TYPE_VALID(type) ((type) >= DCPLABEL && \ 00074 (type) <= DCPLABEL2TOGGLE) 00075 00076 #endif // DCPWIDGETTYPES_H
Copyright © 2009 Nokia Corporation | Generated on Tue Jul 5 2011 15:01:31 Doxygen 1.7.1 |
Meego control panel |