summaryrefslogtreecommitdiff
path: root/sensors-applet/prefs-dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'sensors-applet/prefs-dialog.h')
-rw-r--r--sensors-applet/prefs-dialog.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/sensors-applet/prefs-dialog.h b/sensors-applet/prefs-dialog.h
new file mode 100644
index 0000000..5d1270b
--- /dev/null
+++ b/sensors-applet/prefs-dialog.h
@@ -0,0 +1,70 @@
+/*
+ * Copyright (C) 2005-2009 Alex Murray <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef PREFS_DIALOG_H
+#define PREFS_DIALOG_H
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "sensors-applet.h"
+
+typedef struct {
+ SensorsApplet *sensors_applet;
+ GtkDialog *dialog;
+ GtkNotebook *notebook;
+
+ /* widgets for global prefs */
+ GtkSpinButton *timeout_spinbutton, *graph_size_spinbutton;
+ GtkTable *globals_table;
+ GtkHSeparator *globals_separator;
+ GtkComboBox *display_mode_combo_box, *layout_mode_combo_box, *temperature_scale_combo_box;
+ GtkLabel *timeout_label, *display_mode_label, *layout_mode_label, *temperature_scale_label, *graph_size_label, *update_header, *display_header;
+ GtkAdjustment *timeout_adjust, *graph_size_adjust;
+
+#ifdef HAVE_LIBNOTIFY
+ GtkCheckButton *display_notifications;
+ GtkLabel *notifications_header;
+#endif
+
+ /* widgets for sensors tree */
+ GtkTreeView *view;
+ GtkTreeViewColumn *id_column, *label_column, *enable_column, *icon_column;
+ GtkCellRenderer *id_renderer, *label_renderer, *enable_renderer, *icon_renderer;
+ GtkScrolledWindow *scrolled_window;
+
+ GtkVButtonBox *buttons_box; /* holds sensor reorder buttons */
+ GtkBox *sensors_hbox; /* holds scrolled window and
+ * buttons_vbox */
+ GtkAlignment *globals_alignment;
+ GtkBox *sensors_vbox; /* holds sensors_hbox and sensor_config_hbox */
+ GtkBox *sensor_config_hbox; /* holds config button */
+ GtkSizeGroup *size_group; /* so comboboxes all
+ * request the same size */
+
+ GtkButton *sensor_up_button;
+ GtkButton *sensor_down_button;
+ GtkButton *sensor_config_button;
+} PrefsDialog;
+
+/* function prototypes */
+void prefs_dialog_open(SensorsApplet *sensors_applet);
+void prefs_dialog_close(SensorsApplet *sensors_applet);
+
+#endif /* PREFS_DIALOG_H */