* limitations under the License.
*/
-#ifndef __AIR_SETTINGS_WAKEUP_TIMER_H__
-#define __AIR_SETTINGS_WAKEUP_TIMER_H__
+#ifndef __AIR_SETTINGS_LANGUAGE_H__
+#define __AIR_SETTINGS_LANGUAGE_H__
#include <stdbool.h>
#include <time.h>
/* Gets current display subtitlelanguage string. */
char *settings_language_get_subtitle_language_display_str(void);
-#endif /* __AIR_SETTINGS_WAKEUP_TIMER_H__ */
+#endif /* __AIR_SETTINGS_LANGUAGE_H__ */
};
int settings_wakeup_timer_get_setup(void);
+char *settings_wakeup_timer_display_str(void);
bool settings_wakeup_timer_get_time(struct tm *def_time);
int settings_wakeup_timer_get_volume(void);
int settings_wakeup_timer_get_source(void);
#define STYLE_BASE_BTN "style.base.button"
#define STYLE_NORMAL_BTN "style.normal.button"
#define STYLE_STATUS_BTN "style.status.button"
+#define STYLE_TEXTBLOCK_BTN "style.textblock.button"
#define STYLE_PROGRESS_BTN "style.progress.button"
#define STYLE_OPTION_BTN "style.option.button"
#define STYLE_OPTION_LIST_BTN "style.option.list.button"
}
group {
+ name, "elm/button/base/style.textblock.button";
+ inherit, "elm/button/base/style.normal.button";
+ styles {
+ style {
+ name, "style.subtext1";
+ base, "font=BreezeSans:style=Light color=#747474 font_size=40 align=center";
+ tag, "br" "\n";
+ }
+ }
+ parts {
+ part {
+ name, "elm.text";
+ description {
+ state, "default" 0.0;
+ rel2.relative, 1.0 0.5;
+ text.align, 0.5 0.5;
+ // the rest is inherited
+ }
+ description {
+ state, "focused" 0.0;
+ inherit, "default" 0.0;
+ color, COLOR_TEXT_FOCUS;
+ }
+ description {
+ state, "disabled" 0.0;
+ inherit, "default" 0.0;
+ color, COLOR_TEXT_DISABLE;
+ }
+ }
+ part {
+ name, PART_MENU_VALUE;
+ type, TEXTBLOCK;
+ repeat_events, 1;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "bg.content";
+ relative, 0.0 0.4;
+ }
+ rel2.to, "bg.content";
+
+ text {
+ align, 0.5 0.0;
+ style, "style.subtext1";
+ }
+ }
+ description {
+ state, "focused" 0.0;
+ inherit, "default" 0.0;
+ color, COLOR_TEXT_VALUE_FOCUS;
+ }
+ description {
+ state, "disabled" 0.0;
+ inherit, "default" 0.0;
+ color, COLOR_TEXT_VALUE_DISABLE;
+ }
+ description {
+ state, "notavailable" 0.0;
+ inherit, "default" 0.0;
+ color, COLOR_TEXT_DISABLE;
+ }
+ }
+ }
+ programs {
+ program {
+ name, "focused";
+ target, PART_MENU_VALUE;
+ }
+ program {
+ name, "unfocused";
+ target, PART_MENU_VALUE;
+ }
+ program {
+ name, "disabled";
+ target, PART_MENU_VALUE;
+ }
+ program {
+ name, SIG_NOTAVAILABLE;
+ signal, SIG_NOTAVAILABLE;
+ source, "";
+ action, STATE_SET "notavailable" 0.0;
+ target, PART_MENU_VALUE;
+ }
+ }
+}
+
+group {
name, "elm/button/base/style.progress.button";
inherit, "elm/button/base/style.status.button";
parts {
free(str);
}
}
+
if (m->info[i]->progress_evas) {
elm_progressbar_value_set(m->info[i]->progress_evas, m->info[i]->progress_value());
}
{
//@TODO: get from stored settings
- return SETUP_TYPE_OFF;
+// return SETUP_TYPE_OFF;
+ return SETUP_TYPE_ONCE;
+}
+
+char *settings_wakeup_timer_display_str(void)
+{
+ //@TODO: get from stored settings
+ if(settings_wakeup_timer_get_setup() != SETUP_TYPE_OFF)
+ return strdup("10:45 AM <br> TV | 53 BBC");
+
+ return strdup("Off");
}
bool settings_wakeup_timer_get_time(struct tm *def_time)
MENU_RESET
};
-static char *_get_status(void *data, int id);
static char *_get_clock_mode(void *data, int id);
static char *_get_sleep_timer(void *data, int id);
+static char *_get_wakeup_timer(void *data, int id);
static char *_get_language(void *data, int id);
static char *_get_subtitle(void *data, int id);
static char *_get_location(void *data, int id);
{
.id = MENU_WAKEUP_TIMER,
.title = STR_WAKEUP_TIMER,
- .style = STYLE_STATUS_BTN,
+ .style = STYLE_TEXTBLOCK_BTN,
.disabled = EINA_FALSE,
- .status = _get_status,
+ .status = _get_wakeup_timer,
.selected = _selected,
.selected_menu = _selected_menu
},
},
};
-static char *_get_status(void *data, int id)
-{
- return NULL;
-}
-
static char *_get_clock_mode(void *data, int id)
{
bool automatic = false;
return strdup(TIMER_OFF);
}
+static char *_get_wakeup_timer(void *data, int id)
+{
+ return settings_wakeup_timer_display_str();
+}
+
static char *_get_language(void *data, int id)
{
return settings_language_get_language_display_str();