355 lines
7.9 KiB
XML
355 lines
7.9 KiB
XML
/*
|
|||
|
|
RECORD.RSS
|
||
|
|
|
||
|
|
Resource file for Sound recording Handheld Application
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <hwim.rg>
|
||
|
|
#include <hwim.rh>
|
||
|
|
#include <record.rg>
|
||
|
|
|
||
|
|
RESOURCE WSERV_INFO record_accs
|
||
|
|
{
|
||
|
|
menbar_id=record_menu;
|
||
|
|
first_com=O_COM_EXIT;
|
||
|
|
/* follows order in cat file command manager */
|
||
|
|
accel={'x', /* Exit */
|
||
|
|
'r', /* Set repeat */
|
||
|
|
'a', /* Repeat for alarm */
|
||
|
|
'q', /* Set preferences */
|
||
|
|
'n', /* New file */
|
||
|
|
'o' /* Open file */
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE MENU_BAR record_menu
|
||
|
|
{
|
||
|
|
items =
|
||
|
|
{
|
||
|
|
MENU_BAR_ITEM
|
||
|
|
{
|
||
|
|
menu_id=file_menu;
|
||
|
|
mb_item="File";
|
||
|
|
},
|
||
|
|
MENU_BAR_ITEM
|
||
|
|
{
|
||
|
|
menu_id=repeats_menu;
|
||
|
|
mb_item="Repeats";
|
||
|
|
},
|
||
|
|
MENU_BAR_ITEM
|
||
|
|
{
|
||
|
|
menu_id=special_menu;
|
||
|
|
mb_item="Special";
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE MENU file_menu
|
||
|
|
{
|
||
|
|
items =
|
||
|
|
{
|
||
|
|
MENU_ITEM
|
||
|
|
{
|
||
|
|
com_id=O_COM_NEW_FILE;
|
||
|
|
mn_item="New file";
|
||
|
|
},
|
||
|
|
MENU_ITEM
|
||
|
|
{
|
||
|
|
com_id=O_COM_OPEN_FILE;
|
||
|
|
mn_item="Open file";
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE MENU repeats_menu
|
||
|
|
{
|
||
|
|
items =
|
||
|
|
{
|
||
|
|
MENU_ITEM
|
||
|
|
{
|
||
|
|
com_id=O_COM_SET_REPEAT;
|
||
|
|
mn_item="Set repeat";
|
||
|
|
},
|
||
|
|
MENU_ITEM
|
||
|
|
{
|
||
|
|
com_id=O_COM_REP_ALARM;
|
||
|
|
mn_item="Adjust for alarm";
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE MENU special_menu
|
||
|
|
{
|
||
|
|
items =
|
||
|
|
{
|
||
|
|
MENU_ITEM
|
||
|
|
{
|
||
|
|
com_id=O_COM_PREFERENCES;
|
||
|
|
mn_item="Set preferences";
|
||
|
|
},
|
||
|
|
MENU_ITEM
|
||
|
|
{
|
||
|
|
com_id=O_COM_EXIT;
|
||
|
|
mn_item="Exit";
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE STRING dflt_fname { str="%c:RECORD%02d"; }
|
||
|
|
|
||
|
|
RESOURCE STRING no_space_reset { str="Insufficient disk space - Maximum duration reset"; }
|
||
|
|
|
||
|
|
RESOURCE STRING no_record_flash { str="Can't record to a Flash SSD"; }
|
||
|
|
|
||
|
|
RESOURCE STRING no_data_no_play { str="No sound to play"; }
|
||
|
|
|
||
|
|
RESOURCE STRING adjust_alarm_confirm { str="Adjust repeat for use as an alarm"; }
|
||
|
|
|
||
|
|
/* DIALOG RESOURCES */
|
||
|
|
|
||
|
|
RESOURCE DIALOG set_rep_dl
|
||
|
|
/* Dialog used by the "Set repeat" menu item */
|
||
|
|
{
|
||
|
|
title="Set repeat";
|
||
|
|
flags=DLGBOX_NOTIFY_ENTER;
|
||
|
|
controls=
|
||
|
|
{
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_NCEDIT;
|
||
|
|
prompt="Repeat count";
|
||
|
|
info=NCEDIT
|
||
|
|
{
|
||
|
|
low=1;
|
||
|
|
high=1000;
|
||
|
|
};
|
||
|
|
},
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_FLTEDIT;
|
||
|
|
prompt="Trailing silence (sec)";
|
||
|
|
info=FLTEDIT
|
||
|
|
{
|
||
|
|
low=0.0;
|
||
|
|
high=1000.0;
|
||
|
|
ndec=1;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE MENU volume_list
|
||
|
|
{
|
||
|
|
items=
|
||
|
|
{
|
||
|
|
CHOICE_ITEM {str="Loud";},
|
||
|
|
CHOICE_ITEM {str="Medium";},
|
||
|
|
CHOICE_ITEM {str="Quiet";}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE MENU disk_list
|
||
|
|
{
|
||
|
|
items=
|
||
|
|
{
|
||
|
|
CHOICE_ITEM {str="A";},
|
||
|
|
CHOICE_ITEM {str="Internal";},
|
||
|
|
CHOICE_ITEM {str="B";}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE DIALOG preferences_dl
|
||
|
|
/* Dialog used by the "Set preferences" menu item */
|
||
|
|
{
|
||
|
|
title="Set preferences";
|
||
|
|
flags=DLGBOX_NOTIFY_ENTER;
|
||
|
|
controls=
|
||
|
|
{
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_CHLIST;
|
||
|
|
prompt="Playback volume";
|
||
|
|
info=CHLIST{rid=volume_list;};
|
||
|
|
},
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_FLTEDIT;
|
||
|
|
prompt="Default duration (sec)";
|
||
|
|
info=FLTEDIT
|
||
|
|
{
|
||
|
|
low=0.0;
|
||
|
|
high=3000.0;
|
||
|
|
ndec=1;
|
||
|
|
};
|
||
|
|
},
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_CHLIST;
|
||
|
|
prompt="Default disk for new files";
|
||
|
|
info=CHLIST{rid=disk_list;};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE DIALOG open_file_dl
|
||
|
|
/* Dialog used by the "Open file" menu item */
|
||
|
|
{
|
||
|
|
title="Open file";
|
||
|
|
flags=DLGBOX_NOTIFY_ENTER|DLGBOX_RBUF_FILLED;
|
||
|
|
controls=
|
||
|
|
{
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
flags=DLGBOX_ITEM_NEEDS_PACK;
|
||
|
|
class=C_FNSELWN;
|
||
|
|
prompt="File:";
|
||
|
|
info=FNSELWN
|
||
|
|
{
|
||
|
|
flags=IN_FNSELWN_STANDARD;
|
||
|
|
fname="";
|
||
|
|
};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE DIALOG record_new_dl
|
||
|
|
/* Dialog presented before recording to a new file */
|
||
|
|
{
|
||
|
|
title="Record to new file";
|
||
|
|
flags=DLGBOX_NOTIFY_ENTER|DLGBOX_RBUF_FILLED;
|
||
|
|
controls=
|
||
|
|
{
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
flags=DLGBOX_ITEM_NEEDS_PACK;
|
||
|
|
class=C_FNEDIT;
|
||
|
|
prompt="File:";
|
||
|
|
info=FNEDIT
|
||
|
|
{
|
||
|
|
flags=IN_FNEDIT_STANDARD;
|
||
|
|
fname="";
|
||
|
|
};
|
||
|
|
},
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_FLTEDIT;
|
||
|
|
prompt="Maximum duration (sec)";
|
||
|
|
info=FLTEDIT
|
||
|
|
{
|
||
|
|
low=0.0;
|
||
|
|
high=3000.0;
|
||
|
|
current=0.0;
|
||
|
|
ndec=1;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE DIALOG re_record_dl
|
||
|
|
/* Dialog presented before recording to an existing file */
|
||
|
|
{
|
||
|
|
title="Record over existing file";
|
||
|
|
flags=DLGBOX_NOTIFY_ENTER|DLGBOX_RBUF_FILLED;
|
||
|
|
controls=
|
||
|
|
{
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
flags=DLGBOX_ITEM_NEEDS_PACK;
|
||
|
|
class=C_FNSELWN;
|
||
|
|
prompt="File:";
|
||
|
|
info=FNSELWN
|
||
|
|
{
|
||
|
|
flags=IN_FNSELWN_STANDARD;
|
||
|
|
fname="";
|
||
|
|
};
|
||
|
|
},
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_FLTEDIT;
|
||
|
|
prompt="Maximum duration (sec)";
|
||
|
|
info=FLTEDIT
|
||
|
|
{
|
||
|
|
low=0.0;
|
||
|
|
high=3000.0;
|
||
|
|
current=0.0;
|
||
|
|
ndec=1;
|
||
|
|
};
|
||
|
|
},
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_TEXTWIN;
|
||
|
|
flags=DLGBOX_ITEM_CENTRE|DLGBOX_ITEM_DEAD;
|
||
|
|
info=TXTMESS
|
||
|
|
{
|
||
|
|
flags=IN_TEXTWIN_AL_CENTRE;
|
||
|
|
str="The data in the existing file will be replaced";
|
||
|
|
};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE STRING_ARRAY reccli_text
|
||
|
|
{
|
||
|
|
strlst=
|
||
|
|
{
|
||
|
|
STRING { str="sec"; },
|
||
|
|
STRING { str="%s %s %d Kbyte"; },
|
||
|
|
STRING { str="Repeats: %d Trailing silence: %s Total: %s"; }
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
/* The order of the following 5 items must not be changed */
|
||
|
|
|
||
|
|
RESOURCE STRING_ARRAY clibut_rec_new
|
||
|
|
/* "Record new" button */
|
||
|
|
{
|
||
|
|
strlst=
|
||
|
|
{
|
||
|
|
STRING {str="Tab";}, /* button text */
|
||
|
|
STRING {str="Record new";} /* button label */
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE STRING_ARRAY clibut_rec_over
|
||
|
|
/* "Record over" button */
|
||
|
|
{
|
||
|
|
strlst=
|
||
|
|
{
|
||
|
|
STRING {str="Space";}, /* button text */
|
||
|
|
STRING {str="Record over";} /* button label */
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE STRING_ARRAY clibut_play
|
||
|
|
/* "Play" button */
|
||
|
|
{
|
||
|
|
strlst=
|
||
|
|
{
|
||
|
|
STRING {str="Enter";}, /* button text */
|
||
|
|
STRING {str="Play";} /* button label */
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE STRING_ARRAY clibut_stop
|
||
|
|
/* "Stop" button */
|
||
|
|
{
|
||
|
|
strlst=
|
||
|
|
{
|
||
|
|
STRING {str="Esc";}, /* button text */
|
||
|
|
STRING {str="Stop";} /* button label */
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE STRING_ARRAY clibut_start
|
||
|
|
/* "Start recording" button */
|
||
|
|
{
|
||
|
|
strlst=
|
||
|
|
{
|
||
|
|
STRING {str="Space";}, /* button text */
|
||
|
|
STRING {str="Start recording";} /* button label */
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
#include "record.hlp"
|
||
|
|
|