LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
iiconthememanager.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <functional>
12#include <QString>
13#include <QList>
14
15class QAction;
16class QIcon;
17
39{
40protected:
41 virtual ~IIconThemeManager () {}
42public:
56 virtual QIcon GetIcon (const QString& on, const QString& off = QString ()) = 0;
57
69 virtual void UpdateIconset (const QList<QAction*>& actions) = 0;
70
78 virtual void ManageWidget (QWidget *widget) = 0;
79
80 virtual QIcon GetPluginIcon () = 0;
81
82 virtual QIcon GetPluginIcon (const QString& name) = 0;
83};
84
85Q_DECLARE_INTERFACE (IIconThemeManager, "org.LeechCraft.IIconThemeManager/1.0")
Interface for accessing LeechCraft-wide icons manager.
virtual QIcon GetIcon(const QString &on, const QString &off=QString())=0
Returns the current theme's icon for the given on and off states.
virtual void ManageWidget(QWidget *widget)=0
Watches the given widget recursively and its child actions.
virtual QIcon GetPluginIcon(const QString &name)=0
virtual QIcon GetPluginIcon()=0
virtual void UpdateIconset(const QList< QAction * > &actions)=0
Updates the icons of the given actions.