~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/3.0.0.0rc1

« back to all changes in this revision

Viewing changes to rame/src/applet-struct.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne, Matthieu Baerts (matttbe), Julien Lavergne
  • Date: 2009-10-05 19:27:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091005192717-mvqvb395guktr401
Tags: 2.0.9-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New upstream release (LP: #435590)
* debian/control: 
 - Remove ${shlibs:Depends} for integration plug-ins to avoid
   pulling shared libraries which are detected automatically.
 - Added curl as depends for cairo-dock-plug-ins
* debian/rules:
 - Add --enable-dnd2share and --enable-musicplayer to enable new applets.
 - Remove --enable-rhythmbox and --enable-nvidia to remove those applets,
   not maintained upstream.
* Update *.install to take all generated applets.

[ Julien Lavergne ]
* Adjust changelog with Daniel Holbach suggestions.
* cairo-dock-plug-ins.changelogs:  Install specific changelog for 2.0.9
* Build-depends on cairo-dock-dev (>= 2.0.9)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
* This file is a part of the Cairo-Dock project
3
 
*
4
 
* Copyright : (C) see the 'copyright' file.
5
 
* E-mail    : see the 'copyright' file.
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
9
 
* as published by the Free Software Foundation; either version 3
10
 
* of the 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
 
* You should have received a copy of the GNU General Public License
17
 
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 
*/
19
 
 
20
 
 
21
 
#ifndef __CD_APPLET_STRUCT__
22
 
#define  __CD_APPLET_STRUCT__
23
 
 
24
 
#include <cairo-dock.h>
25
 
 
26
 
struct _AppletConfig {
27
 
        gchar *defaultTitle;
28
 
        gint iCheckInterval;
29
 
        CairoDockInfoDisplay iInfoDisplay;
30
 
        gboolean bShowSwap;
31
 
        gboolean bShowFreeMemory;
32
 
        
33
 
        const gchar *cGThemePath;
34
 
        gchar *cWatermarkImagePath;
35
 
        gdouble fAlpha;
36
 
        
37
 
        gboolean bUseGraphic;
38
 
        CairoDockTypeGraph iGraphType;
39
 
        gboolean bMixGraph;
40
 
        gdouble fLowColor[3];  // RAM
41
 
        gdouble fHigholor[3];
42
 
        gdouble fBgColor[4];
43
 
        gdouble fLowColor2[3];  // SWAP
44
 
        gdouble fHigholor2[3];
45
 
        
46
 
        gint iNbDisplayedProcesses;
47
 
        gboolean bTopInPercent;
48
 
        CairoDockLabelDescription *pTopTextDescription;
49
 
        
50
 
        gchar *cSystemMonitorCommand;
51
 
} ;
52
 
 
53
 
 
54
 
typedef struct {
55
 
        gint iPid;
56
 
        gchar *cName;
57
 
        gdouble iMemAmount;
58
 
        } CDProcess;
59
 
 
60
 
struct _AppletData {
61
 
        CairoDockTask *pTask;
62
 
        unsigned long long ramTotal, ramFree, ramUsed, ramBuffers, ramCached;
63
 
        unsigned long long swapTotal, swapFree, swapUsed;
64
 
        gdouble fPrevRamPercent, fPrevSwapPercent;
65
 
        gboolean bAcquisitionOK;
66
 
        gboolean bInitialized;
67
 
        Gauge *pGauge;
68
 
        CairoDockGraph *pGraph;
69
 
        gulong iMemPageSize;
70
 
        CDProcess **pTopList;
71
 
        CDProcess **pPreviousTopList;
72
 
        gint iNbDisplayedProcesses;
73
 
        cairo_surface_t *pTopSurface;
74
 
        CairoDialog *pTopDialog;
75
 
        CairoDockTask *pTopTask;
76
 
} ;
77
 
 
78
 
 
79
 
#endif