#include "agenda.h" #include "agenda.m" /* Select a team to view merged agenda */ void team_select(CALENDAR_CTX &ctx) { DIALOG dia; dia.settype (DIATYPE_POPUP); SSTRING team (ctx.getteam()); FIELD_LIST *comb = dia.newf_list (MSG_U(F_TEAMNAME,"Team name"),team); comb->addopt ("",MSG_U(I_NOTEAM,"No team selected")); int nof = 0; while (1){ MENU_STATUS code = dia.edit (MSG_U(T_SELTEAM,"Select a team"),"" ,help_nil,nof); if (code == MENU_CANCEL || code == MENU_ESCAPE){ break; }else{ ctx.setteam (team.get()); ctx.forceredraw(); break; } } } void team_define() { xconf_notice ("not done"); }