for(int i = 0; i < BATCH_COLUMNS; i++) {
batch_titles[i] = _(default_batch_titles[i]);
sprintf(string, "BATCH_COLUMNWIDTH_%d", i);
- column_widths[i] = defaults->get(string, default_columnwidth[i]);
+ column_widths[i] = defaults->get(string, xS(default_columnwidth[i]));
}
int total_batches = defaults->get("TOTAL_BATCHES", 1);
if(total_batches < 1) total_batches = 1;
RecordBatchesGUI::Dir::
Dir(RecordBatches &batches, const char *dir, int x, int y)
- : BC_TextBox(x, y, 200, 1, dir),
+ : BC_TextBox(x, y, xS(200), 1, dir),
batches(batches),
directory(batches.default_directory)
{
int RecordBatchesGUI::Dir::
handle_event()
{
- char *path = FileSystem::basepath(directory);
+ char *path = FileSystem::basepath(get_text());
+ strcpy(directory, path);
load_dirs(path);
calculate_suggestions(dir_entries);
delete [] path;
RecordBatchesGUI::Path::
Path(RecordBatches &batches, int x, int y)
- : BC_TextBox(x, y, 200, 1, batches.get_editing_batch()->asset->path),
+ : BC_TextBox(x, y, xS(200), 1, batches.get_editing_batch()->asset->path),
batches(batches)
{
}
Source(BC_Window *win, RecordBatches &batches, int x, int y)
: BC_PopupTextBox(win, &sources,
batches.get_editing_batch()->get_source_text(),
- x, y, 200, 200),
+ x, y, xS(200), yS(200)),
batches(batches)
{
}
RecordBatchesGUI::News::
News(RecordBatches &batches, int x, int y)
- : BC_TextBox(x, y, 200, 1, batches.get_editing_batch()->news),
+ : BC_TextBox(x, y, xS(200), 1, batches.get_editing_batch()->news),
batches(batches)
{
}