2
* Copyright (C) 2001 Kevin Vandersloot
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU Library General Public
15
* License along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
19
#ifndef _PROCMAN_PROCMAN_H_
20
#define _PROCMAN_PROCMAN_H_
22
#include <gdk-pixbuf/gdk-pixbuf.h>
24
#include <gconf/gconf-client.h>
25
#include <glibtop/cpu.h>
27
typedef struct _ProcConfig ProcConfig;
28
typedef struct _PrettyTable PrettyTable;
29
typedef struct _LoadGraph LoadGraph;
30
typedef struct _ProcInfo ProcInfo;
31
typedef struct _ProcData ProcData;
46
gboolean show_more_info;
47
gboolean show_kill_warning;
48
gboolean show_hide_message;
50
gboolean show_threads;
52
gint graph_update_interval;
53
gint disks_update_interval;
56
GdkColor cpu_color[GLIBTOP_NCPU];
67
GHashTable *app_hash; /* apps gotten from libwnck */
68
GHashTable *default_hash; /* defined in defaulttable.h */
76
guint draw_width, draw_height;
83
gfloat **data, **odata;
87
gint colors_allocated;
88
GtkWidget *main_widget;
90
GtkWidget *cpu_labels[GLIBTOP_NCPU];
91
GtkWidget *memused_label;
92
GtkWidget *memtotal_label;
93
GtkWidget *mempercent_label;
94
GtkWidget *swapused_label;
95
GtkWidget *swaptotal_label;
96
GtkWidget *swappercent_label;
103
guint64 cpu_time [GLIBTOP_NCPU] [NCPUSTATES];
104
guint64 cpu_last [GLIBTOP_NCPU] [NCPUSTATES];
105
gboolean cpu_initialized;
131
guint64 cpu_time_last;
141
gboolean is_blacklisted;
148
GtkWidget *disk_list;
150
LoadGraph *cpu_graph;
151
LoadGraph *mem_graph;
152
gint cpu_label_fixed_width;
153
ProcInfo *selected_process;
154
GtkTreeSelection *selection;
158
PrettyTable *pretty_table;
164
void procman_save_config (ProcData *data);
165
void procman_save_tree_state (GConfClient *client, GtkWidget *tree, gchar *prefix);
166
gboolean procman_get_tree_state (GConfClient *client, GtkWidget *tree, gchar *prefix);
168
#endif /* _PROCMAN_PROCMAN_H_ */