mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
2021-02-14 Fred Gleason <fredg@paravelsystems.com>
* Added a 'RDIconEngine::catchIcon()' method. * Refactored the the main window in rdcatch(1) to use the model based API. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -252,6 +252,15 @@ RDIconEngine::RDIconEngine()
|
||||
d_application_icons.push_back(pixmap);
|
||||
|
||||
|
||||
//
|
||||
// Catch Icons
|
||||
//
|
||||
d_catch_icons.push_back(QPixmap(record_xpm));
|
||||
d_catch_icons.push_back(QPixmap(rml5_xpm));
|
||||
d_catch_icons.push_back(QPixmap(switch3_xpm));
|
||||
d_catch_icons.push_back(QPixmap(play_xpm));
|
||||
d_catch_icons.push_back(QPixmap(download_xpm));
|
||||
d_catch_icons.push_back(QPixmap(upload_xpm));
|
||||
|
||||
//
|
||||
// List Icons
|
||||
@@ -304,6 +313,12 @@ QPixmap RDIconEngine::applicationIcon(RDIconEngine::Application app,
|
||||
}
|
||||
|
||||
|
||||
QPixmap RDIconEngine::catchIcon(RDRecording::Type type)
|
||||
{
|
||||
return d_catch_icons.at((int)type);
|
||||
}
|
||||
|
||||
|
||||
QPixmap RDIconEngine::listIcon(RDIconEngine::IconType type) const
|
||||
{
|
||||
return d_list_icons.at(type);
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#include <QMap>
|
||||
#include <QPixmap>
|
||||
|
||||
#include <rdrecording.h>
|
||||
#include <rdlog_line.h>
|
||||
#include <rduser.h>
|
||||
|
||||
@@ -38,6 +39,7 @@ class RDIconEngine
|
||||
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 stationIcon() const;
|
||||
QPixmap typeIcon(RDLogLine::Type type,
|
||||
@@ -46,6 +48,7 @@ class RDIconEngine
|
||||
|
||||
private:
|
||||
QList<QMap<int,QPixmap> > d_application_icons;
|
||||
QList<QPixmap> d_catch_icons;
|
||||
QList<QPixmap> d_list_icons;
|
||||
QPixmap d_station_icon;
|
||||
QMap<RDLogLine::Type,QPixmap> log_type_icons;
|
||||
|
Reference in New Issue
Block a user