~jibel/synaptic/bugs.290524.502582

« back to all changes in this revision

Viewing changes to gtk/rgpackagestatus.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-08-22 12:40:10 UTC
  • Revision ID: james.westby@ubuntu.com-20080822124010-5z3kuzjp2jozl13a
Tags: 0.62.1ubuntu8
* common/rpackageview.cc:
  - add new "Missing Recommends" default filter
* common/rpackage.cc:
  - fix code to get candidate origin
  - support getting the candidate release file name
* common/rpackagestatus.cc:
  - support maintenanceEndTime() (if the distro supports that)
* 10_ubuntu_maintenance_gui.dpatch:
  - add support for displaying when the maintaince ends

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* rgpackagestatus.h - UI elements for the package status
 
2
 * 
 
3
 * Copyright (c) 2003 Michael Vogt
 
4
 * 
 
5
 * Author: Michael Vogt <mvo@debian.org>
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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
 
20
 * USA
 
21
 */
 
22
 
 
23
#ifndef _RGPACKAGESTATUS_H_
 
24
#define _RGPACKAGESTATUS_H_
 
25
 
 
26
 
 
27
#include "rpackage.h"
 
28
#include "rpackagestatus.h"
 
29
 
 
30
class RGPackageStatus : public RPackageStatus {
 
31
 protected:
 
32
   GdkPixbuf *StatusPixbuf[N_STATUS_COUNT];
 
33
   GdkColor *StatusColors[N_STATUS_COUNT];
 
34
 
 
35
   GdkPixbuf *supportedPix;
 
36
 
 
37
   void initColors();
 
38
   void initPixbufs();
 
39
 
 
40
 public:
 
41
   // this static object is used for all access
 
42
   static RGPackageStatus pkgStatus;
 
43
 
 
44
   virtual void init();
 
45
   
 
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];
 
52
   }
 
53
 
 
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];
 
58
   };
 
59
   // save color configuration to disk
 
60
   void saveColors();
 
61
};
 
62
 
 
63
 
 
64
#endif