diff options
author | Carsten Haitzler <raster@rasterman.com> | 2012-08-15 09:30:26 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2012-08-15 09:30:26 +0000 |
commit | 75fe2dcba5024089cbbc1af4877ea78fab1bc2e4 (patch) | |
tree | e93ee96fbaf7f294405cf92ffc5083f4a2788c40 /src/modules/conf_performance | |
parent | 064e1072aa03363e91a049c7bce92d843ad21642 (diff) | |
download | enlightenment-75fe2dcba5024089cbbc1af4877ea78fab1bc2e4.tar.gz |
add some more labels.
SVN revision: 75287
Diffstat (limited to 'src/modules/conf_performance')
-rw-r--r-- | src/modules/conf_performance/e_int_config_powermanagement.c | 119 |
1 files changed, 78 insertions, 41 deletions
diff --git a/src/modules/conf_performance/e_int_config_powermanagement.c b/src/modules/conf_performance/e_int_config_powermanagement.c index 8697e9b2c4..9f89161fb6 100644 --- a/src/modules/conf_performance/e_int_config_powermanagement.c +++ b/src/modules/conf_performance/e_int_config_powermanagement.c @@ -106,43 +106,76 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data { Evas_Object *ob, *ol; E_Radio_Group *rmin, *rmax; - + int y; + cfdata->powersave_min = e_config->powersave.min; cfdata->powersave_max = e_config->powersave.max; rmin = e_widget_radio_group_new((int*) &(cfdata->powersave_min)); rmax = e_widget_radio_group_new((int*) &(cfdata->powersave_max)); ol = e_widget_table_add(evas, 0); + + y = 0; + ob = e_widget_label_add(evas, + _("Levels Allowed")); + e_widget_table_object_align_append(ol, ob, + 0, y, //place + 2, 1, //span + 1, 1, //fill + 1, 1, //expand + 0.5, 0.5 //align + ); + ob = e_widget_label_add(evas, + _("Time to defer power-hungry tasks")); + e_widget_table_object_align_append(ol, ob, + 3, y, //place + 1, 1, //span + 1, 1, //fill + 1, 1, //expand + 0.5, 0.5 //align + ); + + + y++; ob = e_widget_label_add(evas, _("Min")); e_widget_table_object_align_append(ol, ob, - 0, 0, //place + 0, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand - 0.0, 0.5 //align + 0.5, 0.5 //align ); ob = e_widget_label_add(evas, _("Max")); e_widget_table_object_align_append(ol, ob, - 1, 0, //place + 1, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand - 0.0, 0.5 //align + 0.5, 0.5 //align ); - /* ob = e_widget_label_add(evas, - _("Time to defer 'power expensive' activities")); + _("Level")); e_widget_table_object_align_append(ol, ob, - 2, 0, //place - 2, 1, //span + 2, y, //place + 1, 1, //span 1, 1, //fill 1, 1, //expand - 0.0, 0.5 //align - );*/ - + 0.5, 0.5 //align + ); + ob = e_widget_label_add(evas, + _("e.g. Saving to disk")); + e_widget_table_object_align_append(ol, ob, + 3, y, //place + 1, 1, //span + 1, 1, //fill + 1, 1, //expand + 0.5, 0.5 //align + ); + y++; + ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_NONE, rmin); e_widget_table_object_align_append(ol, ob, - 0, 1, //place + 0, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -152,7 +185,7 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data e_widget_on_change_hook_set(ob, _cb_min_changed, cfdata); ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_NONE, rmax); e_widget_table_object_align_append(ol, ob, - 1, 1, //place + 1, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -160,9 +193,9 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ); cfdata->gui.rmax = eina_list_append(cfdata->gui.rmax, ob); e_widget_on_change_hook_set(ob, _cb_max_changed, cfdata); - ob = e_widget_label_add(evas, _("none")); + ob = e_widget_label_add(evas, _("None")); e_widget_table_object_align_append(ol, ob, - 2, 1, //place + 2, y, //place 1, 1, //span 0, 1, //fill 0, 0, //expand @@ -171,16 +204,17 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ob = e_widget_slider_add(evas, 1, 0, _("%1.1f s"), 0.1, 1.0, 0, 0, &(cfdata->powersave_none), NULL, 100); e_widget_table_object_align_append(ol, ob, - 3, 1, //place + 3, y, //place 1, 1, //span 1, 1, //fill 1, 0, //expand 0.5, 0.5 //align ); - + y++; + ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_LOW, rmin); e_widget_table_object_align_append(ol, ob, - 0, 2, //place + 0, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -190,7 +224,7 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data e_widget_on_change_hook_set(ob, _cb_min_changed, cfdata); ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_LOW, rmax); e_widget_table_object_align_append(ol, ob, - 1, 2, //place + 1, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -198,9 +232,9 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ); cfdata->gui.rmax = eina_list_append(cfdata->gui.rmax, ob); e_widget_on_change_hook_set(ob, _cb_max_changed, cfdata); - ob = e_widget_label_add(evas, _("low")); + ob = e_widget_label_add(evas, _("Low")); e_widget_table_object_align_append(ol, ob, - 2, 2, //place + 2, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -209,16 +243,17 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ob = e_widget_slider_add(evas, 1, 0, _("%1.2f s"), 1.0, 10.0, 1, 0, &(cfdata->powersave_low), NULL, 100); e_widget_table_object_align_append(ol, ob, - 3, 2, //place + 3, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand 0.0, 0.5 //align ); - + y++; + ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_MEDIUM, rmin); e_widget_table_object_align_append(ol, ob, - 0, 3, //place + 0, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -228,7 +263,7 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data e_widget_on_change_hook_set(ob, _cb_min_changed, cfdata); ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_MEDIUM, rmax); e_widget_table_object_align_append(ol, ob, - 1, 3, //place + 1, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -236,9 +271,9 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ); cfdata->gui.rmax = eina_list_append(cfdata->gui.rmax, ob); e_widget_on_change_hook_set(ob, _cb_max_changed, cfdata); - ob = e_widget_label_add(evas, _("medium")); + ob = e_widget_label_add(evas, _("Medium")); e_widget_table_object_align_append(ol, ob, - 2, 3, //place + 2, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -247,16 +282,17 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ob = e_widget_slider_add(evas, 1, 0, _("%.0f s"), 10.0, 120.0, 1, 0, &(cfdata->powersave_medium), NULL, 100); e_widget_table_object_align_append(ol, ob, - 3, 3, //place + 3, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand 0.0, 0.5 //align ); - + y++; + ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_HIGH, rmin); e_widget_table_object_align_append(ol, ob, - 0, 4, //place + 0, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -266,7 +302,7 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data e_widget_on_change_hook_set(ob, _cb_min_changed, cfdata); ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_HIGH, rmax); e_widget_table_object_align_append(ol, ob, - 1, 4, //place + 1, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -274,9 +310,9 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ); cfdata->gui.rmax = eina_list_append(cfdata->gui.rmax, ob); e_widget_on_change_hook_set(ob, _cb_max_changed, cfdata); - ob = e_widget_label_add(evas, _("high")); + ob = e_widget_label_add(evas, _("High")); e_widget_table_object_align_append(ol, ob, - 2, 4, //place + 2, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -285,16 +321,17 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ob = e_widget_slider_add(evas, 1, 0, _("%.0f s"), 120.0, 1200.0, 1, 0, &(cfdata->powersave_high), NULL, 100); e_widget_table_object_align_append(ol, ob, - 3, 4, //place + 3, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand 0.0, 0.5 //align ); - + y++; + ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_EXTREME, rmin); e_widget_table_object_align_append(ol, ob, - 0, 5, //place + 0, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -304,7 +341,7 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data e_widget_on_change_hook_set(ob, _cb_min_changed, cfdata); ob = e_widget_radio_add(evas, "", E_POWERSAVE_MODE_EXTREME, rmax); e_widget_table_object_align_append(ol, ob, - 1, 5, //place + 1, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -312,9 +349,9 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ); cfdata->gui.rmax = eina_list_append(cfdata->gui.rmax, ob); e_widget_on_change_hook_set(ob, _cb_max_changed, cfdata); - ob = e_widget_label_add(evas, _("extreme")); + ob = e_widget_label_add(evas, _("Extreme")); e_widget_table_object_align_append(ol, ob, - 2, 5, //place + 2, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand @@ -323,7 +360,7 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data ob = e_widget_slider_add(evas, 1, 0, _("%.0f s"), 120.0, 2400.0, 1, 0, &(cfdata->powersave_extreme), NULL, 100); e_widget_table_object_align_append(ol, ob, - 3, 5, //place + 3, y, //place 1, 1, //span 1, 1, //fill 0, 0, //expand |