calendarui/views/dayview/tsrc/unittests/unittest_calendayutils/hbstyle.h
changeset 57 bb2d3e476f29
parent 55 2c54b51f39c4
equal deleted inserted replaced
55:2c54b51f39c4 57:bb2d3e476f29
    31 #include <QGraphicsItem>
    31 #include <QGraphicsItem>
    32 #include <QStyleOptionGraphicsItem>
    32 #include <QStyleOptionGraphicsItem>
    33 #include <hbicon.h>
    33 #include <hbicon.h>
    34 #include <hbdeviceprofile.h>
    34 #include <hbdeviceprofile.h>
    35 
    35 
    36 class HbStylePrivate;
       
    37 class HbStyleParameters;
       
    38 class HbStyleOption;
       
    39 class HbWidgetBase;
       
    40 class HbWidget;
       
    41 class HbStyleParameters;
       
    42 
       
    43 extern qreal param_value;
    36 extern qreal param_value;
    44 
    37 
    45 class HbStyle : public QObject
    38 class HbStyle : public QObject
    46 	{
    39 	{
    47 Q_OBJECT
    40 Q_OBJECT
    48 public:
    41 public:
    49 	HbStyle();
    42 	HbStyle() {}
    50 	~HbStyle();
    43 	~HbStyle() {}
    51 
    44 
    52 	// HbStyle::Primitive enums are DEPRECATED
    45 	// HbStyle::Primitive enums are DEPRECATED
    53 	enum Primitive
    46 	enum Primitive
    54 		{
    47 		{
    55 		P_None,
    48 		P_None,
   219 		P_ProgressBar_text, // DEPRECATED, NOT USED
   212 		P_ProgressBar_text, // DEPRECATED, NOT USED
   220 
   213 
   221 		P_CustomBase = 0x0f000000
   214 		P_CustomBase = 0x0f000000
   222 		};
   215 		};
   223 
   216 
   224 	virtual QGraphicsItem *createPrimitive(HbStyle::Primitive primitive,
   217 	QGraphicsItem *createPrimitive(HbStyle::Primitive primitive,
   225 			QGraphicsItem *parent = 0) const
   218 			QGraphicsItem *parent = 0) const
   226 		{
   219 		{
   227 			Q_UNUSED(primitive);
   220 			Q_UNUSED(primitive);
   228 			Q_UNUSED(parent);
   221 			Q_UNUSED(parent);
   229 			return 0;
   222 			return 0;
   230 		}
   223 		}
   231 	virtual void updatePrimitive(QGraphicsItem *item,
   224 	void updatePrimitive(QGraphicsItem *item,
   232 			HbStyle::Primitive primitive, const QStyleOption *option) const
   225 			HbStyle::Primitive primitive, const QStyleOption *option) const
   233 		{
   226 		{
   234 			Q_UNUSED(item);
   227 			Q_UNUSED(item);
   235 			Q_UNUSED(primitive);
   228 			Q_UNUSED(primitive);
   236 			Q_UNUSED(option);
   229 			Q_UNUSED(option);
   264 			Q_UNUSED(value);
   257 			Q_UNUSED(value);
   265 			Q_UNUSED(profile);
   258 			Q_UNUSED(profile);
   266 			value = param_value;
   259 			value = param_value;
   267 			return false;
   260 			return false;
   268 		}
   261 		}
   269 	void parameters(HbStyleParameters &params, 
   262 /*	void parameters(HbStyleParameters &params, 
   270 			const HbDeviceProfile &profile = HbDeviceProfile()) const
   263 			const HbDeviceProfile &profile = HbDeviceProfile()) const
   271 		{
   264 		{
   272 			Q_UNUSED(params);
   265 			Q_UNUSED(params);
   273 			Q_UNUSED(profile);
   266 			Q_UNUSED(profile);
   274 		}
   267 		}
   276 	void widgetParameters(HbStyleParameters &params, HbWidget* widget) const
   269 	void widgetParameters(HbStyleParameters &params, HbWidget* widget) const
   277 		{
   270 		{
   278 			Q_UNUSED(params);
   271 			Q_UNUSED(params);
   279 			Q_UNUSED(widget);
   272 			Q_UNUSED(widget);
   280 		}
   273 		}
   281 
   274 */
   282 protected:
       
   283 
       
   284 	virtual void polish(HbWidget *widget, HbStyleParameters &params)
       
   285 		{
       
   286 			Q_UNUSED(params);
       
   287 			Q_UNUSED(widget);
       
   288 		}
       
   289 	virtual void updateThemedParams(HbWidget *widget)
       
   290 		{
       
   291 			Q_UNUSED(widget);
       
   292 		}
       
   293 	virtual bool hasOrientationSpecificStyleRules(HbWidget *widget)
       
   294 		{
       
   295 			Q_UNUSED(widget);
       
   296 			return false;
       
   297 		}
       
   298 
       
   299 	HbStyle(HbStylePrivate &dd, QStyle *parent)
       
   300 		{
       
   301 			Q_UNUSED(dd);
       
   302 			Q_UNUSED(parent);
       
   303 		}
       
   304 
       
   305 	};
   275 	};
   306 
   276 
   307 #endif // HBSTYLE_H
   277 #endif // HBSTYLE_H