updated copyright end date to 2013
[psensor.git] / src / ui.h
index 636a9f2..af17b78 100644 (file)
--- a/src/ui.h
+++ b/src/ui.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2012 jeanfi@gmail.com
+ * Copyright (C) 2010-2014 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -41,14 +41,14 @@ struct ui_psensor {
 
        GtkWidget *w_graph;
 
-       struct ui_sensorlist *ui_sensorlist;
-
        struct config *config;
 
        GtkWidget *main_window;
 
        GtkWidget *menu_bar;
 
+       GtkWidget *popup_menu;
+
        /*
         * The main vertical box, top contains the menubar, bottom
         * contains the sensor_box.
@@ -59,7 +59,11 @@ struct ui_psensor {
         * The box which contains the sensors graph and the sensors
         * information list.
         */
-       GtkWidget *sensor_box;
+       GtkPaned *sensor_box;
+
+       GtkListStore *sensors_store;
+       GtkTreeView *sensors_tree;
+       GtkScrolledWindow *sensors_scrolled_tree;
 
        int graph_update_interval;
 };
@@ -89,4 +93,10 @@ void ui_show_about_dialog();
 
 void ui_enable_alpha_channel(struct ui_psensor *ui);
 
+void ui_cb_preferences(GtkMenuItem *mi, gpointer data);
+void ui_cb_about(GtkMenuItem *mi, gpointer data);
+void ui_cb_menu_quit(GtkMenuItem *mi, gpointer data);
+void ui_cb_sensor_preferences(GtkMenuItem *mi, gpointer data);
+
+struct psensor **ui_get_sensors_ordered_by_position(const struct ui_psensor *);
 #endif