Update memory sizes to 64 bit and fix compilation warnings.
[lxde/lxtask.git] / src / interface.h
CommitLineData
580e78c2
HJYP
1/* $Id: interface.h 3940 2008-02-10 22:48:45Z nebulon $
2 *
3 * Copyright (c) 2006 Johannes Zellner, <webmaster@nebulon.de>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20#ifndef INTERFACE_H
21#define INTERFACE_H
22
23#ifdef HAVE_CONFIG_H
24#include <config.h>
25#endif
26
27#include <sys/types.h>
28#include <sys/stat.h>
29#include <unistd.h>
30#include <string.h>
31#include <stdio.h>
32#include <stdlib.h>
33
34#include <gdk/gdkkeysyms.h>
35#include <gtk/gtk.h>
36
37#include "functions.h"
38#include "callbacks.h"
39#include "types.h"
40
41GtkTreeStore *list_store;
42GtkTreeSelection *selection;
43GtkWidget *treeview;
44GtkWidget *mainmenu;
580e78c2
HJYP
45GtkWidget *taskpopup;
46GtkWidget *priopopup;
47GtkWidget *cpu_usage_progress_bar;
48GtkWidget *mem_usage_progress_bar;
49GtkWidget *cpu_usage_progress_bar_box;
50GtkWidget *mem_usage_progress_bar_box;
51
0d40bfa3
HJYP
52enum {
53 COLUMN_NAME = 0,
54 COLUMN_UNAME,
55 COLUMN_TIME,
56 COLUMN_RSS,
57 COLUMN_MEM,
58 COLUMN_PID,
59 COLUMN_STATE,
60 COLUMN_PRIO,
61 COLUMN_PPID
62};
580e78c2
HJYP
63
64GtkTreeViewColumn *column;
65
66void change_list_store_view(void);
67void create_list_store(void);
68
69GtkWidget* create_main_window (void);
70GtkWidget* create_taskpopup (void);
71GtkWidget* create_mainmenu (void);
72GtkWidget *create_prio_submenu(void);
73
74void show_about_dialog(void);
75
4ab5f812
AG
76void fill_list_item(guint i, GtkTreeIter *iter);
77void add_new_list_item(guint i);
580e78c2
HJYP
78gint compare_list_item(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data);
79gint compare_int_list_item(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data);
13bcb2f5 80gint compare_size_list_item(GtkTreeModel *model, GtkTreeIter *iter1, GtkTreeIter *iter2, gpointer column);
580e78c2 81gint compare_string_list_item(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data);
4ab5f812
AG
82void remove_list_item(pid_t i);
83void refresh_list_item(guint i);
580e78c2
HJYP
84
85void change_task_view(void);
5ff47b84 86void change_full_path(void);
580e78c2
HJYP
87
88#endif