src/hbcore/style/hbstyle_p.h
changeset 2 06ff229162e9
parent 1 f7ac710697a9
child 6 c3690ec91ef8
equal deleted inserted replaced
1:f7ac710697a9 2:06ff229162e9
    36 //
    36 //
    37 // We mean it.
    37 // We mean it.
    38 //
    38 //
    39 
    39 
    40 #include <QObject>
    40 #include <QObject>
    41 #include <QPluginLoader>
       
    42 #include <QHash>
    41 #include <QHash>
    43 #include <QVector>
    42 #include <QVector>
    44 #include <hbstyle.h>
    43 #include <hbstyle.h>
    45 #include "hbcssparser_p.h"
    44 #include "hbcssparser_p.h"
    46 #include "hbwidget_p.h"
       
    47 
    45 
    48 class HbWidget;
    46 class HbWidget;
       
    47 class HbPluginLoader;
    49 class HbStyleInterface;
    48 class HbStyleInterface;
       
    49 class HbWidgetBasePrivate;
    50 
    50 
    51 class HbStylePluginInfo
    51 class HbStylePluginInfo
    52 {
    52 {
    53 public:    
    53 public:    
    54     int primitiveBaseId;
    54     int primitiveBaseId;
    57 };
    57 };
    58 
    58 
    59 class HbStyleInterfaceInfo
    59 class HbStyleInterfaceInfo
    60 {
    60 {
    61 public: 
    61 public: 
    62     QPluginLoader* loader;
    62     HbPluginLoader* loader;
    63     int primitiveBaseId;
    63     int primitiveBaseId;
    64 };
    64 };
    65 
    65 
    66 static QHash<const QGraphicsWidget*, QString> widgetLayoutNames;
    66 static QHash<const QGraphicsWidget*, QString> widgetLayoutNames;
    67 
    67 
    86     void ensureColorParameters() const;
    86     void ensureColorParameters() const;
    87 
    87 
    88     void _q_onThemeChanged();
    88     void _q_onThemeChanged();
    89     void clearStyleSheetCaches();
    89     void clearStyleSheetCaches();
    90 
    90 
       
    91     HbWidgetBasePrivate *widgetBasePrivate(HbWidgetBase *widgetBase) const;
       
    92 
    91     HbStyle* q_ptr;
    93     HbStyle* q_ptr;
    92 
    94 
    93     mutable QHash<int, HbStyleInterfaceInfo*> customPrimitives;
    95     mutable QHash<int, HbStyleInterfaceInfo*> customPrimitives;
    94     mutable QHash<QString, HbStylePluginInfo*> registeredPlugins;
    96     mutable QHash<QString, HbStylePluginInfo*> registeredPlugins;
    95     mutable QHash<QString, QString> pluginStylePaths;
    97     mutable QHash<QString, QString> pluginStylePaths;