mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-05 16:43:54 +01:00
2020-12-26 Fred Gleason <fredg@paravelsystems.com>
* Added a 'RDLogListModel' class. * Added a 'RDLogIcons::listIcon()' method. * Refactored rdlogedit(1) to use 'RDLogListModel'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -23,6 +23,13 @@
|
||||
//
|
||||
// Icons
|
||||
//
|
||||
#include "../icons/greencheckmark.xpm"
|
||||
#include "../icons/redx.xpm"
|
||||
#include "../icons/blueball.xpm"
|
||||
#include "../icons/greenball.xpm"
|
||||
#include "../icons/redball.xpm"
|
||||
#include "../icons/whiteball.xpm"
|
||||
|
||||
#include "../icons/play.xpm"
|
||||
#include "../icons/rml5.xpm"
|
||||
#include "../icons/chain.xpm"
|
||||
@@ -34,8 +41,15 @@
|
||||
|
||||
RDLogIcons::RDLogIcons()
|
||||
{
|
||||
d_list_icons.push_back(QPixmap(greencheckmark_xpm));
|
||||
d_list_icons.push_back(QPixmap(redx_xpm));
|
||||
d_list_icons.push_back(QPixmap(greenball_xpm));
|
||||
d_list_icons.push_back(QPixmap(redball_xpm));
|
||||
d_list_icons.push_back(QPixmap(whiteball_xpm));
|
||||
d_list_icons.push_back(QPixmap(blueball_xpm));
|
||||
|
||||
//
|
||||
// Create Icons
|
||||
// Create Type Icons
|
||||
//
|
||||
log_type_icons[RDLogLine::Cart]=QPixmap(play_xpm);
|
||||
log_type_icons[RDLogLine::Macro]=QPixmap(rml5_xpm);
|
||||
@@ -48,6 +62,12 @@ RDLogIcons::RDLogIcons()
|
||||
}
|
||||
|
||||
|
||||
QPixmap RDLogIcons::listIcon(RDLogIcons::IconType type) const
|
||||
{
|
||||
return d_list_icons.at(type);
|
||||
}
|
||||
|
||||
|
||||
QPixmap RDLogIcons::typeIcon(RDLogLine::Type type,RDLogLine::Source src) const
|
||||
{
|
||||
if((type==RDLogLine::Cart)&&(src==RDLogLine::Tracker)) {
|
||||
|
||||
Reference in New Issue
Block a user