3#ifndef PRINTLINES_ALLOWED
4#define PRINTLINES_ALLOWED 0
7static const char *FNAME =
"kest_sequence_view.c";
16 if (!sequence->view_page)
35 if (!profile->view_page)
149 if (!new_profile)
return;
153 new_profile->sequence = str->
sequence;
244 const char *new_name = lv_textarea_get_text(page->
panel->
title);
251 lv_obj_clear_state(page->
panel->
title, LV_STATE_FOCUSED);
252 lv_obj_add_state(page->
container, LV_STATE_FOCUSED);
271 lv_obj_clear_state(page->
panel->
title, LV_STATE_FOCUSED);
272 lv_obj_add_state(page->
container, LV_STATE_FOCUSED);
296 sequence->view_page = page;
341 current = current->
next;
416 if (!page || !sequence)
452 KEST_PRINTF(
"sequence_view_profile_button_rep_update\n");
456 KEST_PRINTF(
"button = %p, profile = %s\n", button, profile ? (profile->
name ? profile->
name :
"Unnamed Profile") :
"NULL");
458 if (!button || !profile)
460 KEST_PRINTF(
"sequence_view_profile_button_rep_update bailing...\n");
468 KEST_PRINTF(
"profile is active; activating active symbol\n");
473 KEST_PRINTF(
"profile is inactive; disabling active symbol\n");
477 KEST_PRINTF(
"sequence_view_profile_button_rep_update done\n");
void kest_free(void *ptr)
void * kest_alloc(size_t size)
char * kest_strndup(const char *str, size_t n)
int cxt_save_all_profiles(kest_context *cxt)
int save_sequence(kest_sequence *sequence)
int kest_profile_add_representation(kest_profile *profile, kest_representation *rep)
#define PROFILE_NAME_MAX_LEN
kest_ui_page * create_profile_view_for(kest_profile *profile)
int kest_sequence_add_representation(kest_sequence *sequence, kest_representation *rep)
int kest_sequence_delete_profile(kest_sequence *sequence, kest_profile *profile)
int kest_sequence_move_profile(kest_sequence *sequence, int pos, int new_pos)
int kest_sequence_update_representations(kest_sequence *sequence)
seq_profile_ll * sequence_append_profile_rp(kest_sequence *sequence, kest_profile *profile)
int kest_sequence_begin(kest_sequence *sequence)
void sequence_view_rep_update(void *representer, void *representee)
int free_sequence_view_ui(kest_ui_page *page)
int sequence_view_free_all(kest_ui_page *page)
void seq_save_cb(lv_event_t *e)
void seq_play_cb(lv_event_t *e)
void sequence_view_revert_name(lv_event_t *e)
int create_sequence_view_for(kest_sequence *sequence)
int seq_view_moved_cb(kest_active_button *button)
void seq_plus_cb(lv_event_t *e)
int create_sequence_view_ui(kest_ui_page *page)
void sequence_view_set_name(lv_event_t *e)
int seq_view_free_cb(kest_active_button *button)
int seq_view_delete_cb(kest_active_button *button)
void sequence_view_profile_button_rep_update(void *representer, void *representee)
int seq_view_clicked_cb(kest_active_button *button)
int configure_sequence_view(kest_ui_page *page, void *data)
int init_sequence_view(kest_ui_page *page)
int refresh_sequence_view(kest_ui_page *page)
kest_ui_page_panel * new_panel()
int ui_page_set_title_rw(kest_ui_page *page, lv_event_cb_t save_cb, lv_event_cb_t cancel_cb)
int enter_ui_page_forwards(kest_ui_page *page)
int ui_page_add_back_button(kest_ui_page *page)
kest_button * ui_page_add_bottom_button(kest_ui_page *page, const char *label, lv_event_cb_t cb)
int ui_page_set_title(kest_ui_page *page, const char *text)
int ui_page_create_base_ui(kest_ui_page *page)
int init_ui_page(kest_ui_page *page)
#define KEST_UI_PAGE_SEQ_VIEW
void(* update)(void *representer, void *representee)
kest_active_button_array * array
seq_profile_ll * profiles
kest_ui_page_panel * panel
int(* create_ui)(struct kest_ui_page *page)
int(* configure)(struct kest_ui_page *page, void *data)
struct seq_profile_ll * next