1
/* rgpackagestatus.h - UI elements for the package status
3
* Copyright (c) 2003 Michael Vogt
5
* Author: Michael Vogt <mvo@debian.org>
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License as
9
* published by the Free Software Foundation; either version 2 of the
10
* License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23
#ifndef _RGPACKAGESTATUS_H_
24
#define _RGPACKAGESTATUS_H_
28
#include "rpackagestatus.h"
30
class RGPackageStatus : public RPackageStatus {
32
GdkPixbuf *StatusPixbuf[N_STATUS_COUNT];
33
GdkColor *StatusColors[N_STATUS_COUNT];
35
GdkPixbuf *supportedPix;
41
// this static object is used for all access
42
static RGPackageStatus pkgStatus;
46
// this is what the package listers use
47
GdkColor *getBgColor(RPackage *pkg);
48
GdkPixbuf *getSupportedPix(RPackage *pkg);
49
GdkPixbuf *getPixbuf(RPackage *pkg);
50
GdkPixbuf *getPixbuf(int i) {
51
return StatusPixbuf[i];
54
// this is for the configuration of the colors
55
void setColor(int i, GdkColor * new_color);
56
GdkColor *getColor(int i) {
57
return StatusColors[i];
59
// save color configuration to disk