Made the user interface more GNOME HIG-compliant.

This commit is contained in:
Alexander Shaduri
2011-04-16 11:29:46 +00:00
parent a2d735fee5
commit b3f23abec0
8 changed files with 258 additions and 258 deletions
+5 -11
View File
@@ -61,20 +61,14 @@ Add support for launching with consolehelper (from usermode package).
If the detection executes "smartctl -i", don't execute it again afterwards.
When adding device, have an option to specify "-d" type and other parameters.
This is needed to support multi-disk devices.
Maybe make "-d" a dropdown?
Not sure, "-l aaa /tmp" doesn't list all types. Also raid...
Add support for multiple drives behind devices.
Add support for specifying these drives on gsmartcontrol command-line,
each one with optional smartctl parameters.
Use :: as delimiter, as in device::-d_string::other_options.
Show in UI as device (-d_string).
Preferences will match it as device::-d_string
When adding device via GUI, have an option to specify "-d" type and other parameters.
Maybe make "-d" a dropdown?
Just list common types (sat,12; sat,16; scsi, ...?)
Rework drive properties UI:
add properties for each multi-drive.
add properties for each multi-drive (with type in a separate entry).
smartctl options
use 48-bit or not or auto.
Enable/disable/dont_touch SMART on startup for this drive.
+4 -5
View File
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Tue Sep 2 12:47:41 2008 -->
<?xml version="1.0"?>
<glade-interface>
<requires-version lib="gtk+" version="2.12"/>
<widget class="GtkAboutDialog" id="gsc_about_dialog">
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="border_width">5</property>
<property name="border_width">6</property>
<property name="title" translatable="yes">About GSmartControl</property>
<property name="resizable">False</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
@@ -20,7 +19,7 @@
<widget class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="spacing">2</property>
<property name="spacing">6</property>
<child>
<placeholder/>
</child>
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Fri Nov 28 20:55:56 2008 -->
<?xml version="1.0"?>
<glade-interface>
<requires-version lib="gtk+" version="2.12"/>
<widget class="GtkWindow" id="gsc_executor_log_window">
<property name="title" translatable="yes">Execution Log - GSmartControl</property>
<property name="default_width">620</property>
@@ -10,8 +9,8 @@
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="spacing">6</property>
<property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<widget class="GtkHPaned" id="hpaned1">
<property name="visible">True</property>
@@ -20,7 +19,7 @@
<child>
<widget class="GtkVBox" id="vbox3">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
@@ -34,7 +33,6 @@
<property name="can_focus">True</property>
<property name="tooltip_text">Commands executed</property>
<property name="tooltip" translatable="yes">Commands executed</property>
<property name="headers_clickable">True</property>
<property name="reorderable">True</property>
</widget>
</child>
@@ -83,15 +81,16 @@
<child>
<widget class="GtkVBox" id="vbox2">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkHBox" id="command_hbox">
<property name="visible">True</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Command: </property>
<property name="label" translatable="yes">Command:</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -163,7 +162,7 @@
<child>
<widget class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<property name="homogeneous">True</property>
<child>
<widget class="GtkButton" id="window_save_current_button">
+5 -7
View File
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Thu Sep 4 22:08:44 2008 -->
<?xml version="1.0"?>
<glade-interface>
<requires-version lib="gtk+" version="2.12"/>
<widget class="GtkWindow" id="gsc_help_window">
<property name="title" translatable="yes">Help - GSmartControl</property>
<property name="default_width">630</property>
@@ -9,8 +8,8 @@
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="spacing">5</property>
<property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<widget class="GtkHPaned" id="hpaned1">
<property name="visible">True</property>
@@ -19,7 +18,7 @@
<child>
<widget class="GtkVBox" id="vbox2">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label4">
<property name="visible">True</property>
@@ -44,7 +43,6 @@
<property name="tooltip_text">Topics</property>
<property name="tooltip" translatable="yes">Topics</property>
<property name="headers_visible">False</property>
<property name="headers_clickable">True</property>
</widget>
</child>
</widget>
+121 -124
View File
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Sun Mar 22 16:21:32 2009 -->
<?xml version="1.0"?>
<glade-interface>
<requires-version lib="gtk+" version="2.12"/>
<widget class="GtkWindow" id="gsc_info_window">
<property name="border_width">5</property>
<property name="title" translatable="yes">Device Information - GSmartControl</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
<property name="default_width">700</property>
@@ -12,7 +10,8 @@
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<widget class="GtkVBox" id="vbox2">
<property name="visible">True</property>
@@ -20,8 +19,8 @@
<child>
<widget class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="left_padding">5</property>
<property name="right_padding">5</property>
<property name="left_padding">6</property>
<property name="right_padding">6</property>
<child>
<widget class="GtkHBox" id="device_name_label_hbox">
<property name="visible">True</property>
@@ -74,10 +73,9 @@
<widget class="GtkTable" id="identity_table">
<property name="visible">True</property>
<property name="border_width">8</property>
<property name="n_rows">1</property>
<property name="n_columns">2</property>
<property name="column_spacing">10</property>
<property name="row_spacing">8</property>
<property name="column_spacing">12</property>
<property name="row_spacing">6</property>
<child>
<placeholder/>
</child>
@@ -105,8 +103,8 @@
<property name="use_underline">True</property>
</widget>
<packing>
<property name="type">tab</property>
<property name="tab_fill">False</property>
<property name="type">tab</property>
</packing>
</child>
<child>
@@ -163,7 +161,6 @@
<widget class="GtkTreeView" id="attributes_treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_clickable">True</property>
<property name="enable_grid_lines">GTK_TREE_VIEW_GRID_LINES_BOTH</property>
</widget>
</child>
@@ -188,9 +185,9 @@
<property name="use_underline">True</property>
</widget>
<packing>
<property name="type">tab</property>
<property name="position">1</property>
<property name="tab_fill">False</property>
<property name="type">tab</property>
</packing>
</child>
<child>
@@ -233,7 +230,6 @@
<widget class="GtkTreeView" id="capabilities_treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_clickable">True</property>
<property name="enable_grid_lines">GTK_TREE_VIEW_GRID_LINES_BOTH</property>
</widget>
</child>
@@ -259,9 +255,9 @@
<property name="use_underline">True</property>
</widget>
<packing>
<property name="type">tab</property>
<property name="position">2</property>
<property name="tab_fill">False</property>
<property name="type">tab</property>
</packing>
</child>
<child>
@@ -327,7 +323,6 @@
<widget class="GtkTreeView" id="error_log_treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_clickable">True</property>
<property name="enable_grid_lines">GTK_TREE_VIEW_GRID_LINES_BOTH</property>
</widget>
</child>
@@ -385,9 +380,9 @@
<property name="use_underline">True</property>
</widget>
<packing>
<property name="type">tab</property>
<property name="position">3</property>
<property name="tab_fill">False</property>
<property name="type">tab</property>
</packing>
</child>
<child>
@@ -453,7 +448,6 @@
<widget class="GtkTreeView" id="selftest_log_treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_clickable">True</property>
<property name="enable_grid_lines">GTK_TREE_VIEW_GRID_LINES_BOTH</property>
</widget>
</child>
@@ -530,16 +524,16 @@ Selective self-test log is also presented here.</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="type">tab</property>
<property name="position">4</property>
<property name="tab_fill">False</property>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="test_tab_vbox">
<property name="visible">True</property>
<property name="border_width">11</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkVBox" id="vbox4">
<property name="visible">True</property>
@@ -561,96 +555,74 @@ Selective self-test log is also presented here.</property>
<property name="visible">True</property>
<property name="n_rows">4</property>
<property name="n_columns">2</property>
<property name="column_spacing">8</property>
<property name="row_spacing">10</property>
<property name="column_spacing">6</property>
<property name="row_spacing">6</property>
<child>
<widget class="GtkHBox" id="test_execution_hbox">
<property name="visible">True</property>
<widget class="GtkHBox" id="test_result_hbox">
<property name="spacing">6</property>
<child>
<widget class="GtkHBox" id="hbox4">
<widget class="GtkImage" id="test_result_image">
<property name="visible">True</property>
<child>
<widget class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Test type: &lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="expand">False</property>
</packing>
</child>
<child>
<widget class="GtkComboBox" id="test_type_combo">
<property name="visible">True</property>
<property name="tooltip_text">Choose a test type</property>
<property name="tooltip" translatable="yes">Choose a test type</property>
<property name="items" translatable="yes">These are dummy entries
Immediate Offline
Short
Extended
Conveyance</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="position">1</property>
</packing>
</child>
<property name="stock">gtk-dialog-info</property>
<property name="icon_size">5</property>
</widget>
<packing>
<property name="expand">False</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox3">
<widget class="GtkLabel" id="test_result_label">
<property name="visible">True</property>
<child>
<widget class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="tooltip_text">Estimated test duration on idle drive</property>
<property name="tooltip" translatable="yes">Estimated test duration on idle drive</property>
<property name="label" translatable="yes">&lt;b&gt;Estimated duration: &lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="expand">False</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="min_duration_label">
<property name="visible">True</property>
<property name="tooltip_text">Minimum test duration on idle drive</property>
<property name="tooltip" translatable="yes">Minimum test duration on idle drive</property>
<property name="label" translatable="yes">N/A</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="position">1</property>
</packing>
</child>
<property name="xalign">0</property>
<property name="label" translatable="yes">Test result text</property>
<property name="use_markup">True</property>
<property name="width_chars">70</property>
</widget>
<packing>
<property name="padding">10</property>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="y_padding">20</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="test_execute_button">
<widget class="GtkProgressBar" id="test_completion_progressbar">
<property name="visible">True</property>
<property name="tooltip_text">Test progress</property>
<property name="tooltip" translatable="yes">Test progress</property>
<property name="show_text">True</property>
<property name="text" translatable="yes">Test completion: 90%; ETA: 12 minutes</property>
<property name="ellipsize">PANGO_ELLIPSIZE_END</property>
</widget>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="y_padding">10</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="test_stop_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text">Perform selected test</property>
<property name="tooltip" translatable="yes">Perform selected test</property>
<property name="label" translatable="yes">gtk-execute</property>
<property name="tooltip_text">Abort the test</property>
<property name="tooltip" translatable="yes">Abort the test</property>
<property name="label" translatable="yes">gtk-stop</property>
<property name="use_stock">True</property>
<property name="response_id">0</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">GTK_FILL</property>
<property name="y_padding">10</property>
</packing>
</child>
<child>
@@ -682,72 +654,97 @@ Conveyance</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="test_stop_button">
<widget class="GtkButton" id="test_execute_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text">Abort the test</property>
<property name="tooltip" translatable="yes">Abort the test</property>
<property name="label" translatable="yes">gtk-stop</property>
<property name="tooltip_text">Perform selected test</property>
<property name="tooltip" translatable="yes">Perform selected test</property>
<property name="label" translatable="yes">gtk-execute</property>
<property name="use_stock">True</property>
<property name="response_id">0</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">GTK_FILL</property>
<property name="y_padding">10</property>
</packing>
</child>
<child>
<widget class="GtkProgressBar" id="test_completion_progressbar">
<widget class="GtkHBox" id="test_execution_hbox">
<property name="visible">True</property>
<property name="tooltip_text">Test progress</property>
<property name="tooltip" translatable="yes">Test progress</property>
<property name="show_text">True</property>
<property name="text" translatable="yes">Test completion: 90%; ETA: 12 minutes</property>
<property name="ellipsize">PANGO_ELLIPSIZE_END</property>
</widget>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="y_padding">10</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="test_result_hbox">
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkImage" id="test_result_image">
<widget class="GtkHBox" id="hbox4">
<property name="visible">True</property>
<property name="stock">gtk-dialog-info</property>
<property name="icon_size">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Test type:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="expand">False</property>
</packing>
</child>
<child>
<widget class="GtkComboBox" id="test_type_combo">
<property name="visible">True</property>
<property name="tooltip_text">Choose a test type</property>
<property name="tooltip" translatable="yes">Choose a test type</property>
<property name="items" translatable="yes">These are dummy entries
Immediate Offline
Short
Extended
Conveyance</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="expand">False</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="test_result_label">
<widget class="GtkHBox" id="hbox3">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Test result text</property>
<property name="use_markup">True</property>
<property name="width_chars">70</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="tooltip_text">Estimated test duration on idle drive</property>
<property name="tooltip" translatable="yes">Estimated test duration on idle drive</property>
<property name="label" translatable="yes">&lt;b&gt;Estimated duration:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="expand">False</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="min_duration_label">
<property name="visible">True</property>
<property name="tooltip_text">Minimum test duration on idle drive</property>
<property name="tooltip" translatable="yes">Minimum test duration on idle drive</property>
<property name="label" translatable="yes">N/A</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">10</property>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="y_padding">20</property>
</packing>
</child>
</widget>
<packing>
@@ -757,7 +754,7 @@ Conveyance</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="padding">5</property>
<property name="padding">6</property>
</packing>
</child>
</widget>
@@ -776,9 +773,9 @@ Conveyance</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="type">tab</property>
<property name="position">5</property>
<property name="tab_fill">False</property>
<property name="type">tab</property>
</packing>
</child>
</widget>
@@ -803,8 +800,8 @@ Conveyance</property>
<property name="label" translatable="yes">gtk-refresh</property>
<property name="use_stock">True</property>
<property name="response_id">0</property>
<accelerator key="F5" modifiers="" signal="clicked"/>
<accelerator key="R" modifiers="GDK_CONTROL_MASK" signal="clicked"/>
<accelerator key="R" signal="clicked" modifiers="GDK_CONTROL_MASK"/>
<accelerator key="F5" signal="clicked"/>
</widget>
</child>
<child>
@@ -832,7 +829,7 @@ Conveyance</property>
<property name="label" translatable="yes">gtk-save-as</property>
<property name="use_stock">True</property>
<property name="response_id">0</property>
<accelerator key="S" modifiers="GDK_CONTROL_MASK" signal="clicked"/>
<accelerator key="S" signal="clicked" modifiers="GDK_CONTROL_MASK"/>
</widget>
<packing>
<property name="position">2</property>
+13 -11
View File
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Sat Sep 20 00:34:21 2008 -->
<?xml version="1.0"?>
<glade-interface>
<requires-version lib="gtk+" version="2.12"/>
<widget class="GtkWindow" id="gsc_main_window">
<property name="title" translatable="yes">GSmartControl</property>
<property name="default_width">460</property>
@@ -28,17 +27,18 @@
<child>
<widget class="GtkVBox" id="vbox2">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkHBox" id="status_name_hbox">
<property name="visible">True</property>
<property name="tooltip_text">Device, capacity, model (if available)</property>
<property name="tooltip" translatable="yes">Device, capacity, model (if available)</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="status_name_left_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Drive information:&lt;/b&gt; </property>
<property name="label" translatable="yes">&lt;b&gt;Drive information:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
@@ -65,11 +65,12 @@
View drive details for more information.</property>
<property name="tooltip" translatable="yes">Basic health check status as reported by the drive.
View drive details for more information.</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Basic health check:&lt;/b&gt; </property>
<property name="label" translatable="yes">&lt;b&gt;Basic health check:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
@@ -98,19 +99,21 @@ View drive details for more information.</property>
<property name="can_focus">True</property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="spacing">6</property>
<child>
<widget class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="left_padding">14</property>
<property name="left_padding">12</property>
<child>
<widget class="GtkVBox" id="vbox3">
<property name="visible">True</property>
<property name="spacing">3</property>
<property name="spacing">6</property>
<child>
<widget class="GtkHBox" id="status_family_hbox">
<property name="visible">True</property>
<property name="tooltip_text">Model family (if available in smartctl database)</property>
<property name="tooltip" translatable="yes">Model family (if available in smartctl database)</property>
<property name="spacing">6</property>
<child>
<widget class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
@@ -119,7 +122,7 @@ View drive details for more information.</property>
<widget class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Model family:&lt;/b&gt; </property>
<property name="label" translatable="yes">&lt;b&gt;Model family:&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="selectable">True</property>
</widget>
@@ -225,8 +228,7 @@ View drive details for more information.</property>
</packing>
</child>
<child>
<widget class="GtkStatusbar" id="window_statusbar">
</widget>
<widget class="GtkStatusbar" id="window_statusbar"/>
<packing>
<property name="expand">False</property>
<property name="position">3</property>
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Sat May 23 18:43:15 2009 -->
<?xml version="1.0"?>
<glade-interface>
<requires-version lib="gtk+" version="2.12"/>
<widget class="GtkWindow" id="gsc_preferences_window">
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="spacing">5</property>
<property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<widget class="GtkVBox" id="vbox2">
<property name="visible">True</property>
@@ -20,7 +19,7 @@
<widget class="GtkVBox" id="vbox3">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkFrame" id="frame1">
<property name="visible">True</property>
@@ -36,7 +35,7 @@
<child>
<widget class="GtkVBox" id="vbox6">
<property name="visible">True</property>
<property name="spacing">7</property>
<property name="spacing">6</property>
<child>
<widget class="GtkCheckButton" id="scan_on_startup_check">
<property name="visible">True</property>
@@ -121,27 +120,16 @@
<widget class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">3</property>
<property name="row_spacing">7</property>
<child>
<widget class="GtkEntry" id="smartctl_binary_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="tooltip_text">A path to smartctl binary. If the path is not absolute, the binary will be looked for in user's PATH.</property>
<property name="tooltip" translatable="yes">A path to smartctl binary. If the path is not absolute, the binary will be looked for in user's PATH.</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
</packing>
</child>
<property name="n_columns">2</property>
<property name="column_spacing">12</property>
<property name="row_spacing">6</property>
<child>
<widget class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="tooltip_text">A path to smartctl binary. If the path is not absolute, the binary will be looked for in user's $PATH.</property>
<property name="tooltip" translatable="yes">A path to smartctl binary. If the path is not absolute, the binary will be looked for in user's $PATH.</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">S_martctl binary: </property>
<property name="label" translatable="yes">S_martctl binary:</property>
<property name="use_underline">True</property>
</widget>
<packing>
@@ -153,7 +141,7 @@
<property name="visible">True</property>
<property name="tooltip_text">Global parameters for smartctl. These parameters will be used every time the progam invokes smartctl.</property>
<property name="tooltip" translatable="yes">Global parameters for smartctl. These parameters will be used every time the progam invokes smartctl.</property>
<property name="label" translatable="yes">Smartctl _parameters: </property>
<property name="label" translatable="yes">Smartctl parameters:</property>
<property name="use_underline">True</property>
</widget>
<packing>
@@ -177,21 +165,17 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label13">
<widget class="GtkHBox" id="hbox4">
<property name="visible">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
</packing>
</child>
<child>
<widget class="GtkAlignment" id="alignment5">
<property name="visible">True</property>
<property name="left_padding">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkEntry" id="smartctl_binary_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="tooltip_text">A path to smartctl binary. If the path is not absolute, the binary will be looked for in user's PATH.</property>
<property name="tooltip" translatable="yes">A path to smartctl binary. If the path is not absolute, the binary will be looked for in user's PATH.</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="smartctl_binary_browse_button">
<property name="visible">True</property>
@@ -201,12 +185,14 @@
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="x_options">GTK_FILL</property>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
</packing>
</child>
</widget>
@@ -249,15 +235,15 @@
<property name="use_underline">True</property>
</widget>
<packing>
<property name="type">tab</property>
<property name="tab_fill">False</property>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox4">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkFrame" id="frame3">
<property name="visible">True</property>
@@ -271,11 +257,22 @@
<widget class="GtkVBox" id="vbox9">
<property name="visible">True</property>
<child>
<widget class="GtkTable" id="table2">
<widget class="GtkHBox" id="hbox6">
<property name="visible">True</property>
<property name="n_rows">1</property>
<property name="n_columns">2</property>
<property name="row_spacing">7</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="tooltip_text">Semicolon-separated blacklist PCRE patterns for device search. For example, to blacklist all "/dev/sd*" devices, use "sd.{1}$". Simply listing them as "sda;sdb" will also work.</property>
<property name="tooltip" translatable="yes">Semicolon-separated blacklist PCRE patterns for device search. For example, to blacklist all "/dev/sd*" devices, use "sd.{1}$". Simply listing them as "sda;sdb" will also work.</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Device blacklist patterns:</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="expand">False</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="device_blacklist_patterns_entry">
<property name="visible">True</property>
@@ -284,26 +281,12 @@
<property name="tooltip" translatable="yes">Semicolon-separated blacklist PCRE patterns for device search. For example, to blacklist all "/dev/sd*" devices, use "sd.$". Simply listing them as "sda;sdb" or "sd[ab]" will also work.</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="tooltip_text">Semicolon-separated blacklist PCRE patterns for device search. For example, to blacklist all "/dev/sd*" devices, use "sd.{1}$". Simply listing them as "sda;sdb" will also work.</property>
<property name="tooltip" translatable="yes">Semicolon-separated blacklist PCRE patterns for device search. For example, to blacklist all "/dev/sd*" devices, use "sd.{1}$". Simply listing them as "sda;sdb" will also work.</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Device _blacklist patterns: </property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="x_options">GTK_FILL</property>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">10</property>
<property name="padding">12</property>
</packing>
</child>
</widget>
@@ -323,7 +306,7 @@
</widget>
<packing>
<property name="expand">False</property>
<property name="padding">5</property>
<property name="padding">6</property>
</packing>
</child>
<child>
@@ -341,11 +324,11 @@
<child>
<widget class="GtkHBox" id="hbox2">
<property name="visible">True</property>
<property name="spacing">8</property>
<property name="spacing">12</property>
<child>
<widget class="GtkVBox" id="vbox10">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
@@ -367,7 +350,7 @@
<child>
<widget class="GtkHBox" id="hbox3">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="spacing">6</property>
<property name="homogeneous">True</property>
<child>
<widget class="GtkButton" id="device_options_remove_device_button">
@@ -409,9 +392,10 @@
<child>
<widget class="GtkTable" id="table3">
<property name="visible">True</property>
<property name="n_rows">3</property>
<property name="n_rows">4</property>
<property name="n_columns">2</property>
<property name="row_spacing">10</property>
<property name="column_spacing">12</property>
<property name="row_spacing">6</property>
<child>
<widget class="GtkLabel" id="label9">
<property name="visible">True</property>
@@ -429,7 +413,7 @@
<property name="tooltip_text">Device name (for example, "/dev/sda")</property>
<property name="tooltip" translatable="yes">Device name (for example, "/dev/sda")</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">De_vice: </property>
<property name="label" translatable="yes">De_vice:</property>
<property name="use_underline">True</property>
</widget>
<packing>
@@ -438,12 +422,12 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="device_options_parameters_entry">
<widget class="GtkLabel" id="label66">
<property name="visible">True</property>
<property name="tooltip_text">Smartctl parameters for this device. For example, to use older smartctl versions with libata devices, use "-d ata".</property>
<property name="tooltip" translatable="yes">Smartctl parameters for this device. For example, to use older smartctl versions with libata devices, use "-d ata".</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">_Parameters: </property>
<property name="label" translatable="yes">_Type:</property>
<property name="use_underline">True</property>
</widget>
<packing>
@@ -464,7 +448,7 @@
</packing>
</child>
<child>
<widget class="GtkEntry" id="device_options_parameter_entry">
<widget class="GtkEntry" id="device_options_type_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="tooltip_text">Smartctl parameters for this device. For example, to use older smartctl versions with libata devices, use "-d ata". Must be shell-escaped.</property>
@@ -477,6 +461,34 @@
<property name="bottom_attach">3</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label67">
<property name="visible">True</property>
<property name="tooltip_text">Smartctl parameters for this device. For example, to use older smartctl versions with libata devices, use "-d ata".</property>
<property name="tooltip" translatable="yes">Smartctl parameters for this device. For example, to use older smartctl versions with libata devices, use "-d ata".</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">_Parameters:</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="device_options_parameters_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="tooltip_text">Smartctl parameters for this device. For example, to use older smartctl versions with libata devices, use "-d ata". Must be shell-escaped.</property>
<property name="tooltip" translatable="yes">Smartctl parameters for this device. For example, to use older smartctl versions with libata devices, use "-d ata". Must be shell-escaped.</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
</widget>
<packing>
<property name="expand">False</property>
@@ -509,7 +521,7 @@
</widget>
<packing>
<property name="expand">False</property>
<property name="padding">5</property>
<property name="padding">6</property>
<property name="position">1</property>
</packing>
</child>
@@ -525,9 +537,9 @@
<property name="use_underline">True</property>
</widget>
<packing>
<property name="type">tab</property>
<property name="position">1</property>
<property name="tab_fill">False</property>
<property name="type">tab</property>
</packing>
</child>
</widget>
@@ -545,7 +557,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip" translatable="yes">Reset all program settings to their defaults</property>
<property name="label" translatable="yes">Rese_t all</property>
<property name="label" translatable="yes">Reset a_ll</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
+14 -15
View File
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Wed Sep 3 20:04:08 2008 -->
<?xml version="1.0"?>
<glade-interface>
<requires-version lib="gtk+" version="2.12"/>
<widget class="GtkWindow" id="gsc_text_window">
<property name="title" translatable="yes">GSmartControl</property>
<property name="default_width">600</property>
@@ -10,8 +9,8 @@
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="spacing">5</property>
<property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<widget class="GtkVBox" id="vbox2">
<property name="visible">True</property>
@@ -44,16 +43,8 @@
<property name="spacing">6</property>
<property name="homogeneous">True</property>
<child>
<widget class="GtkButton" id="save_as_button">
<widget class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text">Saved displayed text as...</property>
<property name="tooltip" translatable="yes">Saved displayed text as...</property>
<property name="label" translatable="yes">gtk-save-as</property>
<property name="use_stock">True</property>
<property name="response_id">0</property>
<accelerator key="S" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
@@ -65,8 +56,16 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label2">
<widget class="GtkButton" id="save_as_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text">Saved displayed text as...</property>
<property name="tooltip" translatable="yes">Saved displayed text as...</property>
<property name="label" translatable="yes">gtk-save-as</property>
<property name="use_stock">True</property>
<property name="response_id">0</property>
<accelerator key="S" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</widget>
<packing>
<property name="position">2</property>