// rdiconengine.h // // Icon generator for Rivendell // // (C) Copyright 2020-2022 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public // License along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // #ifndef RDICONENGINE_H #define RDICONENGINE_H #include #include #include #include #include class RDIconEngine { public: enum IconType {GreenCheck=0,RedX=1,GreenBall=2,RedBall=3,WhiteBall=4, BlueBall=5,Switcher=6,Input=7,Output=8,Record=9,RssFeed=10, Download=11,Upload=12,Url=13}; enum Application {Rivendell=0,RdAdmin=1,RdAirPlay=2,RdCartSlots=3, RdCastManager=4,RdCatch=5,RdLibrary=6,RdLogEdit=7, RdLogManager=8,RdPanel=9,LastApplication=10}; RDIconEngine(); QPixmap applicationIcon(Application app,int edge_size) const; QPixmap catchIcon(RDRecording::Type type); QPixmap listIcon(IconType type) const; QPixmap serviceIcon() const; QPixmap stationIcon() const; QPixmap nullIcon(int edge_size) const; QPixmap typeIcon(RDLogLine::Type type, RDLogLine::Source src=RDLogLine::Manual) const; QPixmap userIcon(RDUser::Type type) const; private: QList > d_application_icons; QList d_catch_icons; QList d_list_icons; QPixmap d_station_icon; QPixmap d_service_icon; QMap log_type_icons; QPixmap log_track_cart_icon; QMap d_user_icons; }; #endif // RDICONENGINE