mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-10-27 06:20:50 +00:00
dump name / comment / auto index support.
git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/HxCFloppyEmulator_software/trunk@2042 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
1 parent
309e8dc68b
commit
35d589c353
5 files changed
+204
-86
No files matched your search
@@ -179,6 +179,22 @@ void streamer_tick_infos(void *w)
|
||||
Fl::repeat_timeout(0.1, streamer_tick_infos, w);
|
||||
}
|
||||
|
||||
static void clean_string(char * str)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
|
||||
while(str[i])
|
||||
{
|
||||
if(str[i] == '\r' || str[i] == '\n')
|
||||
{
|
||||
str[i] = ' ';
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
int StreamerThreadRxStatusProc(void* floppycontext,void* context)
|
||||
{
|
||||
char tmpstr[1024];
|
||||
@@ -194,6 +210,7 @@ int StreamerThreadRxStatusProc(void* floppycontext,void* context)
|
||||
{
|
||||
memset(tmpstr,0,sizeof(tmpstr));
|
||||
network_read2(cmd_connection, (unsigned char*)tmpstr, sizeof(tmpstr),0);
|
||||
clean_string(tmpstr);
|
||||
w->global_status->value(tmpstr);
|
||||
}
|
||||
else
|
||||
@@ -520,10 +537,32 @@ void floppy_streamer_connect(Fl_Button*, void* w)
|
||||
}
|
||||
}
|
||||
|
||||
static int isdigit(char c)
|
||||
{
|
||||
if(c>=0 && c<='9')
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int digits_only(const char *s)
|
||||
{
|
||||
while (*s)
|
||||
{
|
||||
if (isdigit(*s++) == 0)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void floppy_streamer_readdisk(Fl_Button*, void* w)
|
||||
{
|
||||
char tmp[256];
|
||||
int index;
|
||||
char index_mode[32];
|
||||
floppy_streamer_window *fdw;
|
||||
|
||||
fdw=(floppy_streamer_window *)w;
|
||||
|
||||
if(cmd_connection && dat_connection)
|
||||
@@ -534,7 +573,31 @@ void floppy_streamer_readdisk(Fl_Button*, void* w)
|
||||
sprintf(tmp,"dump_time %d\n",atoi(fdw->dump_lenght->value()));
|
||||
network_write(cmd_connection, (unsigned char*)tmp, strlen(tmp),2);
|
||||
|
||||
sprintf(tmp,"dump 0 %d %d %d %d %d %d %d 0\n",atoi(fdw->min_track->value()),atoi(fdw->max_track->value()), (fdw->Side_0->value()^1)&1 , fdw->Side_1->value() ,fdw->high_res->value(),fdw->double_step->value(),fdw->ignore_index->value());
|
||||
if(strlen(fdw->index_name->value()) && digits_only(fdw->index_name->value()))
|
||||
{
|
||||
index = atoi(fdw->index_name->value());
|
||||
strcat(index_mode,"MANUAL_INDEX_NAME");
|
||||
}
|
||||
else
|
||||
{
|
||||
index = 1;
|
||||
strcat(index_mode,"AUTO_INDEX_NAME");
|
||||
}
|
||||
|
||||
sprintf(tmp,"dump 0 %d %d %d %d %d %d %d %d \"%s\" \"%s\" %d %s\n",atoi(fdw->min_track->value()), \
|
||||
atoi(fdw->max_track->value()), \
|
||||
(fdw->Side_0->value()^1)&1 , \
|
||||
fdw->Side_1->value() , \
|
||||
fdw->high_res->value(), \
|
||||
fdw->double_step->value(), \
|
||||
fdw->ignore_index->value(), \
|
||||
0, \
|
||||
fdw->dump_name->value(), \
|
||||
fdw->comment->value(), \
|
||||
index, \
|
||||
index_mode \
|
||||
);
|
||||
|
||||
network_write(cmd_connection, (unsigned char*)tmp, strlen(tmp),2);
|
||||
}
|
||||
}
|
||||
@@ -542,7 +605,10 @@ void floppy_streamer_readdisk(Fl_Button*, void* w)
|
||||
void floppy_streamer_readtrack(Fl_Button*, void* w)
|
||||
{
|
||||
char tmp[256];
|
||||
int index;
|
||||
char index_mode[32];
|
||||
floppy_streamer_window *fdw;
|
||||
|
||||
fdw=(floppy_streamer_window *)w;
|
||||
|
||||
if(cmd_connection)
|
||||
@@ -553,7 +619,29 @@ void floppy_streamer_readtrack(Fl_Button*, void* w)
|
||||
sprintf(tmp,"dump_time %d\n",atoi(fdw->dump_lenght->value()));
|
||||
network_write(cmd_connection, (unsigned char*)tmp, strlen(tmp),2);
|
||||
|
||||
sprintf(tmp,"dump 0 -1 -1 %g %g %d %d %d 0\n",fdw->side_number_slide->value(),fdw->side_number_slide->value(),fdw->high_res->value(),fdw->double_step->value(),fdw->ignore_index->value());
|
||||
if(strlen(fdw->index_name->value()) && digits_only(fdw->index_name->value()))
|
||||
{
|
||||
index = atoi(fdw->index_name->value());
|
||||
strcat(index_mode,"MANUAL_INDEX_NAME");
|
||||
}
|
||||
else
|
||||
{
|
||||
index = 1;
|
||||
strcat(index_mode,"AUTO_INDEX_NAME");
|
||||
}
|
||||
|
||||
sprintf(tmp,"dump 0 -1 -1 %g %g %d %d %d %d \"%s\" \"%s\" %d %s\n",fdw->side_number_slide->value(), \
|
||||
fdw->side_number_slide->value(), \
|
||||
fdw->high_res->value(), \
|
||||
fdw->double_step->value(), \
|
||||
fdw->ignore_index->value(), \
|
||||
0, \
|
||||
fdw->dump_name->value(), \
|
||||
fdw->comment->value(), \
|
||||
index, \
|
||||
index_mode \
|
||||
);
|
||||
|
||||
network_write(cmd_connection, (unsigned char*)tmp, strlen(tmp),2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,18 +16,18 @@ extern "C"
|
||||
floppy_streamer_window::floppy_streamer_window() {
|
||||
{ window = new Fl_Window(1330, 620, "Ludo Floppy Disk Toolkit");
|
||||
window->user_data((void*)(this));
|
||||
{ Fl_Group* o = new Fl_Group(1050, 331, 275, 84, "Track / Side selection");
|
||||
{ Fl_Group* o = new Fl_Group(1050, 306, 275, 84, "Track / Side selection");
|
||||
o->box(FL_ENGRAVED_FRAME);
|
||||
o->labeltype(FL_EMBOSSED_LABEL);
|
||||
o->labelsize(12);
|
||||
o->align(Fl_Align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE));
|
||||
{ track_number_slide = new Fl_Value_Slider(1056, 347, 269, 19, "Track number");
|
||||
{ track_number_slide = new Fl_Value_Slider(1056, 322, 269, 19, "Track number");
|
||||
track_number_slide->type(1);
|
||||
track_number_slide->labelsize(12);
|
||||
track_number_slide->textsize(12);
|
||||
track_number_slide->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Value_Slider* track_number_slide
|
||||
{ side_number_slide = new Fl_Value_Slider(1055, 379, 270, 19, "Side number");
|
||||
{ side_number_slide = new Fl_Value_Slider(1055, 354, 270, 19, "Side number");
|
||||
side_number_slide->type(1);
|
||||
side_number_slide->labelsize(12);
|
||||
side_number_slide->textsize(12);
|
||||
@@ -35,24 +35,24 @@ floppy_streamer_window::floppy_streamer_window() {
|
||||
} // Fl_Value_Slider* side_number_slide
|
||||
o->end();
|
||||
} // Fl_Group* o
|
||||
{ Fl_Group* o = new Fl_Group(1050, 1, 275, 248, "Status");
|
||||
{ Fl_Group* o = new Fl_Group(1050, 50, 275, 172, "Status");
|
||||
o->box(FL_ENGRAVED_FRAME);
|
||||
o->labeltype(FL_ENGRAVED_LABEL);
|
||||
o->labelsize(12);
|
||||
o->align(Fl_Align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE));
|
||||
{ x_pos = new Fl_Output(1055, 16, 265, 15);
|
||||
{ x_pos = new Fl_Output(1055, 65, 265, 15);
|
||||
x_pos->labelsize(10);
|
||||
x_pos->textsize(10);
|
||||
} // Fl_Output* x_pos
|
||||
{ y_pos = new Fl_Output(1055, 32, 265, 15);
|
||||
{ y_pos = new Fl_Output(1055, 81, 265, 15);
|
||||
y_pos->labelsize(10);
|
||||
y_pos->textsize(10);
|
||||
} // Fl_Output* y_pos
|
||||
{ global_status = new Fl_Output(1055, 48, 265, 16);
|
||||
{ global_status = new Fl_Output(1055, 97, 265, 16);
|
||||
global_status->labelsize(10);
|
||||
global_status->textsize(10);
|
||||
} // Fl_Output* global_status
|
||||
{ object_txt = new Fl_Text_Display(1055, 67, 265, 178);
|
||||
{ object_txt = new Fl_Text_Display(1055, 116, 265, 101);
|
||||
object_txt->labelsize(10);
|
||||
object_txt->textsize(10);
|
||||
object_txt->user_data((void*)(this));
|
||||
@@ -93,56 +93,56 @@ floppy_streamer_window::floppy_streamer_window() {
|
||||
} // Fl_Slider* x_time
|
||||
o->end();
|
||||
} // Fl_Group* o
|
||||
{ Fl_Group* o = new Fl_Group(1050, 246, 275, 84, "Track analysis format");
|
||||
{ Fl_Group* o = new Fl_Group(1050, 221, 275, 84, "Track analysis format");
|
||||
o->box(FL_ENGRAVED_FRAME);
|
||||
o->labeltype(FL_EMBOSSED_LABEL);
|
||||
o->labelsize(10);
|
||||
o->align(Fl_Align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE));
|
||||
{ iso_mfm_bt = new Fl_Light_Button(1065, 264, 76, 15, "ISO MFM");
|
||||
{ iso_mfm_bt = new Fl_Light_Button(1065, 239, 76, 15, "ISO MFM");
|
||||
iso_mfm_bt->labelsize(10);
|
||||
iso_mfm_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* iso_mfm_bt
|
||||
{ iso_fm_bt = new Fl_Light_Button(1065, 279, 76, 15, "ISO FM");
|
||||
{ iso_fm_bt = new Fl_Light_Button(1065, 254, 76, 15, "ISO FM");
|
||||
iso_fm_bt->labelsize(10);
|
||||
iso_fm_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* iso_fm_bt
|
||||
{ amiga_mfm_bt = new Fl_Light_Button(1065, 294, 76, 15, "AMIGA MFM");
|
||||
{ amiga_mfm_bt = new Fl_Light_Button(1065, 269, 76, 15, "AMIGA MFM");
|
||||
amiga_mfm_bt->labelsize(10);
|
||||
amiga_mfm_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* amiga_mfm_bt
|
||||
{ membrain_bt = new Fl_Light_Button(1149, 294, 76, 15, "MEMBRAIN");
|
||||
{ membrain_bt = new Fl_Light_Button(1149, 269, 76, 15, "MEMBRAIN");
|
||||
membrain_bt->labelsize(10);
|
||||
membrain_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* membrain_bt
|
||||
{ tycom_bt = new Fl_Light_Button(1149, 279, 76, 15, "TYCOM");
|
||||
{ tycom_bt = new Fl_Light_Button(1149, 254, 76, 15, "TYCOM");
|
||||
tycom_bt->labelsize(10);
|
||||
tycom_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* tycom_bt
|
||||
{ eemu_bt = new Fl_Light_Button(1149, 264, 76, 15, "E-Emu");
|
||||
{ eemu_bt = new Fl_Light_Button(1149, 239, 76, 15, "E-Emu");
|
||||
eemu_bt->labelsize(10);
|
||||
eemu_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* eemu_bt
|
||||
{ apple2_bt = new Fl_Light_Button(1065, 309, 76, 15, "Apple");
|
||||
{ apple2_bt = new Fl_Light_Button(1065, 284, 76, 15, "Apple");
|
||||
apple2_bt->labelsize(10);
|
||||
apple2_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* apple2_bt
|
||||
{ arburg_bt = new Fl_Light_Button(1149, 309, 76, 15, "Arburg");
|
||||
{ arburg_bt = new Fl_Light_Button(1149, 284, 76, 15, "Arburg");
|
||||
arburg_bt->labelsize(10);
|
||||
arburg_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* arburg_bt
|
||||
{ aed6200p_bt = new Fl_Light_Button(1233, 264, 76, 15, "AED 6200P");
|
||||
{ aed6200p_bt = new Fl_Light_Button(1233, 239, 76, 15, "AED 6200P");
|
||||
aed6200p_bt->labelsize(10);
|
||||
aed6200p_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* aed6200p_bt
|
||||
{ northstar_bt = new Fl_Light_Button(1233, 279, 76, 15, "NORTHSTAR");
|
||||
{ northstar_bt = new Fl_Light_Button(1233, 254, 76, 15, "NORTHSTAR");
|
||||
northstar_bt->labelsize(10);
|
||||
northstar_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* northstar_bt
|
||||
{ heathkit_bt = new Fl_Light_Button(1233, 294, 76, 15, "HEATHKIT");
|
||||
{ heathkit_bt = new Fl_Light_Button(1233, 269, 76, 15, "HEATHKIT");
|
||||
heathkit_bt->labelsize(10);
|
||||
heathkit_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* heathkit_bt
|
||||
{ decrx02_bt = new Fl_Light_Button(1233, 309, 76, 15, "DEC RX02");
|
||||
{ decrx02_bt = new Fl_Light_Button(1233, 284, 76, 15, "DEC RX02");
|
||||
decrx02_bt->labelsize(10);
|
||||
decrx02_bt->callback((Fl_Callback*)disk_streamer_window_callback, (void*)(this));
|
||||
} // Fl_Light_Button* decrx02_bt
|
||||
@@ -151,67 +151,79 @@ floppy_streamer_window::floppy_streamer_window() {
|
||||
{ server_address = new Fl_Input(1125, 589, 110, 25, "Pauline IP");
|
||||
server_address->labelsize(8);
|
||||
} // Fl_Input* server_address
|
||||
{ Fl_Button* o = new Fl_Button(1102, 417, 78, 40, "Read Disk");
|
||||
{ Fl_Button* o = new Fl_Button(1102, 393, 78, 40, "Read Disk");
|
||||
o->callback((Fl_Callback*)floppy_streamer_readdisk, (void*)(this));
|
||||
} // Fl_Button* o
|
||||
{ Fl_Button* o = new Fl_Button(1077, 418, 23, 20, "+");
|
||||
{ Fl_Button* o = new Fl_Button(1077, 394, 23, 20, "+");
|
||||
o->callback((Fl_Callback*)floppy_streamer_trackup, (void*)(this));
|
||||
} // Fl_Button* o
|
||||
{ Fl_Button* o = new Fl_Button(1052, 418, 23, 20, "-");
|
||||
{ Fl_Button* o = new Fl_Button(1052, 394, 23, 20, "-");
|
||||
o->callback((Fl_Callback*)floppy_streamer_down, (void*)(this));
|
||||
} // Fl_Button* o
|
||||
{ Fl_Button* o = new Fl_Button(1052, 464, 48, 21, "recal");
|
||||
{ Fl_Button* o = new Fl_Button(1052, 440, 48, 21, "recal");
|
||||
o->callback((Fl_Callback*)floppy_streamer_recalibrate, (void*)(this));
|
||||
} // Fl_Button* o
|
||||
{ Fl_Button* o = new Fl_Button(1180, 417, 85, 40, "Read Track");
|
||||
{ Fl_Button* o = new Fl_Button(1180, 393, 85, 40, "Read Track");
|
||||
o->callback((Fl_Callback*)floppy_streamer_readtrack, (void*)(this));
|
||||
} // Fl_Button* o
|
||||
{ Fl_Button* o = new Fl_Button(1103, 460, 222, 25, "STOP !");
|
||||
{ Fl_Button* o = new Fl_Button(1103, 436, 222, 25, "STOP !");
|
||||
o->callback((Fl_Callback*)floppy_streamer_stop, (void*)(this));
|
||||
} // Fl_Button* o
|
||||
{ max_track = new Fl_Input(1134, 516, 40, 15, "Max track");
|
||||
{ max_track = new Fl_Input(1134, 480, 40, 15, "Max track");
|
||||
max_track->labelsize(8);
|
||||
max_track->textsize(10);
|
||||
} // Fl_Input* max_track
|
||||
{ min_track = new Fl_Input(1134, 501, 40, 15, "Min track");
|
||||
{ min_track = new Fl_Input(1134, 465, 40, 15, "Min track");
|
||||
min_track->labelsize(8);
|
||||
min_track->textsize(10);
|
||||
} // Fl_Input* min_track
|
||||
{ Side_0 = new Fl_Light_Button(1177, 500, 80, 15, "Side 0");
|
||||
{ Side_0 = new Fl_Light_Button(1177, 464, 80, 15, "Side 0");
|
||||
Side_0->labelsize(10);
|
||||
} // Fl_Light_Button* Side_0
|
||||
{ Side_1 = new Fl_Light_Button(1177, 515, 80, 15, "Side 1");
|
||||
{ Side_1 = new Fl_Light_Button(1177, 479, 80, 15, "Side 1");
|
||||
Side_1->labelsize(10);
|
||||
} // Fl_Light_Button* Side_1
|
||||
{ double_step = new Fl_Light_Button(1177, 530, 80, 15, "Double step");
|
||||
{ double_step = new Fl_Light_Button(1177, 494, 80, 15, "Double step");
|
||||
double_step->labelsize(10);
|
||||
} // Fl_Light_Button* double_step
|
||||
{ index_delay = new Fl_Input(1134, 544, 40, 15, "Index delay (us)");
|
||||
{ index_delay = new Fl_Input(1134, 508, 40, 15, "Index delay (us)");
|
||||
index_delay->labelsize(8);
|
||||
index_delay->textsize(10);
|
||||
} // Fl_Input* index_delay
|
||||
{ dump_lenght = new Fl_Input(1134, 529, 40, 15, "lenght (ms)");
|
||||
{ dump_lenght = new Fl_Input(1134, 493, 40, 15, "lenght (ms)");
|
||||
dump_lenght->labelsize(8);
|
||||
dump_lenght->textsize(10);
|
||||
} // Fl_Input* dump_lenght
|
||||
{ ignore_index = new Fl_Light_Button(1177, 545, 80, 15, "Ignore index");
|
||||
{ ignore_index = new Fl_Light_Button(1177, 509, 80, 15, "Ignore index");
|
||||
ignore_index->labelsize(10);
|
||||
} // Fl_Light_Button* ignore_index
|
||||
{ Fl_Button* o = new Fl_Button(1052, 439, 48, 21, "move");
|
||||
{ Fl_Button* o = new Fl_Button(1052, 415, 48, 21, "move");
|
||||
o->callback((Fl_Callback*)floppy_streamer_movehead, (void*)(this));
|
||||
} // Fl_Button* o
|
||||
{ high_res = new Fl_Light_Button(1260, 500, 65, 15, "50Mhz ");
|
||||
{ high_res = new Fl_Light_Button(1260, 464, 65, 15, "50Mhz ");
|
||||
high_res->labelsize(10);
|
||||
} // Fl_Light_Button* high_res
|
||||
{ Fl_Button* o = new Fl_Button(1265, 417, 59, 40, "Spy bus");
|
||||
{ Fl_Button* o = new Fl_Button(1265, 393, 59, 40, "Spy bus");
|
||||
o->callback((Fl_Callback*)floppy_streamer_spybus, (void*)(this));
|
||||
} // Fl_Button* o
|
||||
{ high_contrast = new Fl_Light_Button(1130, 565, 107, 15, "High contrast");
|
||||
{ high_contrast = new Fl_Light_Button(1130, 529, 107, 15, "High contrast");
|
||||
high_contrast->labelsize(10);
|
||||
} // Fl_Light_Button* high_contrast
|
||||
{ fat_dots = new Fl_Light_Button(1240, 565, 84, 15, "Fat dots");
|
||||
{ fat_dots = new Fl_Light_Button(1240, 529, 84, 15, "Fat dots");
|
||||
fat_dots->labelsize(10);
|
||||
} // Fl_Light_Button* fat_dots
|
||||
{ dump_name = new Fl_Input(1095, 4, 230, 19, "Name");
|
||||
dump_name->labelsize(8);
|
||||
dump_name->textsize(10);
|
||||
} // Fl_Input* dump_name
|
||||
{ index_name = new Fl_Input(1281, 24, 44, 20, "N\302\260");
|
||||
index_name->labelsize(8);
|
||||
index_name->textsize(10);
|
||||
} // Fl_Input* index_name
|
||||
{ comment = new Fl_Input(1095, 24, 170, 19, "Comment");
|
||||
comment->labelsize(8);
|
||||
comment->textsize(10);
|
||||
} // Fl_Input* comment
|
||||
window->end();
|
||||
window->resizable(window);
|
||||
} // Fl_Window* window
|
||||
|
||||
@@ -63,5 +63,8 @@ public:
|
||||
Fl_Light_Button *high_res;
|
||||
Fl_Light_Button *high_contrast;
|
||||
Fl_Light_Button *fat_dots;
|
||||
Fl_Input *dump_name;
|
||||
Fl_Input *index_name;
|
||||
Fl_Input *comment;
|
||||
};
|
||||
#endif
|
||||
@@ -8,41 +8,41 @@ class floppy_streamer_window {open
|
||||
} {
|
||||
Fl_Window window {
|
||||
label {Ludo Floppy Disk Toolkit} open
|
||||
xywh {439 164 1330 620} type Single resizable visible
|
||||
xywh {36 347 1330 620} type Single resizable visible
|
||||
} {
|
||||
Fl_Group {} {
|
||||
label {Track / Side selection} open
|
||||
xywh {1050 331 275 84} box ENGRAVED_FRAME labeltype EMBOSSED_LABEL labelsize 12 align 21
|
||||
xywh {1050 306 275 84} box ENGRAVED_FRAME labeltype EMBOSSED_LABEL labelsize 12 align 21
|
||||
} {
|
||||
Fl_Value_Slider track_number_slide {
|
||||
label {Track number}
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1056 347 269 19} type Horizontal labelsize 12 textsize 12
|
||||
xywh {1056 322 269 19} type Horizontal labelsize 12 textsize 12
|
||||
}
|
||||
Fl_Value_Slider side_number_slide {
|
||||
label {Side number}
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1055 379 270 19} type Horizontal labelsize 12 textsize 12
|
||||
xywh {1055 354 270 19} type Horizontal labelsize 12 textsize 12
|
||||
}
|
||||
}
|
||||
Fl_Group {} {
|
||||
label Status open
|
||||
xywh {1050 1 275 248} box ENGRAVED_FRAME labeltype ENGRAVED_LABEL labelsize 12 align 21
|
||||
label Status open selected
|
||||
xywh {1050 50 275 172} box ENGRAVED_FRAME labeltype ENGRAVED_LABEL labelsize 12 align 21
|
||||
} {
|
||||
Fl_Output x_pos {
|
||||
xywh {1055 16 265 15} labelsize 10 textsize 10
|
||||
xywh {1055 65 265 15} labelsize 10 textsize 10
|
||||
}
|
||||
Fl_Output y_pos {
|
||||
xywh {1055 32 265 15} labelsize 10 textsize 10
|
||||
xywh {1055 81 265 15} labelsize 10 textsize 10
|
||||
}
|
||||
Fl_Output global_status {
|
||||
xywh {1055 48 265 16} labelsize 10 textsize 10
|
||||
xywh {1055 97 265 16} labelsize 10 textsize 10
|
||||
}
|
||||
Fl_Text_Display object_txt {
|
||||
user_data this
|
||||
xywh {1055 67 265 178} labelsize 10 textsize 10
|
||||
xywh {1055 116 265 101} labelsize 10 textsize 10
|
||||
}
|
||||
}
|
||||
Fl_Button {} {
|
||||
@@ -79,79 +79,79 @@ class floppy_streamer_window {open
|
||||
}
|
||||
Fl_Group {} {
|
||||
label {Track analysis format} open
|
||||
xywh {1050 246 275 84} box ENGRAVED_FRAME labeltype EMBOSSED_LABEL labelsize 10 align 21
|
||||
xywh {1050 221 275 84} box ENGRAVED_FRAME labeltype EMBOSSED_LABEL labelsize 10 align 21
|
||||
} {
|
||||
Fl_Light_Button iso_mfm_bt {
|
||||
label {ISO MFM}
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1065 264 76 15} labelsize 10
|
||||
xywh {1065 239 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button iso_fm_bt {
|
||||
label {ISO FM}
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1065 279 76 15} labelsize 10
|
||||
xywh {1065 254 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button amiga_mfm_bt {
|
||||
label {AMIGA MFM}
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1065 294 76 15} labelsize 10
|
||||
xywh {1065 269 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button membrain_bt {
|
||||
label MEMBRAIN
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1149 294 76 15} labelsize 10
|
||||
xywh {1149 269 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button tycom_bt {
|
||||
label TYCOM
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1149 279 76 15} labelsize 10
|
||||
xywh {1149 254 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button eemu_bt {
|
||||
label {E-Emu}
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1149 264 76 15} labelsize 10
|
||||
xywh {1149 239 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button apple2_bt {
|
||||
label {Apple}
|
||||
label Apple
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1065 309 76 15} labelsize 10
|
||||
xywh {1065 284 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button arburg_bt {
|
||||
label Arburg
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1149 309 76 15} labelsize 10
|
||||
xywh {1149 284 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button aed6200p_bt {
|
||||
label {AED 6200P}
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1233 264 76 15} labelsize 10
|
||||
xywh {1233 239 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button northstar_bt {
|
||||
label NORTHSTAR
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1233 279 76 15} labelsize 10
|
||||
xywh {1233 254 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button heathkit_bt {
|
||||
label HEATHKIT
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1233 294 76 15} labelsize 10
|
||||
xywh {1233 269 76 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button decrx02_bt {
|
||||
label {DEC RX02}
|
||||
user_data this
|
||||
callback disk_streamer_window_callback
|
||||
xywh {1233 309 76 15} labelsize 10
|
||||
xywh {1233 284 76 15} labelsize 10
|
||||
}
|
||||
}
|
||||
Fl_Input server_address {
|
||||
@@ -162,93 +162,105 @@ class floppy_streamer_window {open
|
||||
label {Read Disk}
|
||||
user_data this
|
||||
callback floppy_streamer_readdisk
|
||||
xywh {1102 417 78 40}
|
||||
xywh {1102 393 78 40}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {+}
|
||||
user_data this
|
||||
callback floppy_streamer_trackup
|
||||
xywh {1077 418 23 20}
|
||||
xywh {1077 394 23 20}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {-}
|
||||
user_data this
|
||||
callback floppy_streamer_down
|
||||
xywh {1052 418 23 20}
|
||||
xywh {1052 394 23 20}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label recal
|
||||
user_data this
|
||||
callback floppy_streamer_recalibrate
|
||||
xywh {1052 464 48 21}
|
||||
xywh {1052 440 48 21}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {Read Track}
|
||||
user_data this
|
||||
callback floppy_streamer_readtrack
|
||||
xywh {1180 417 85 40}
|
||||
xywh {1180 393 85 40}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {STOP !}
|
||||
user_data this
|
||||
callback floppy_streamer_stop
|
||||
xywh {1103 460 222 25}
|
||||
xywh {1103 436 222 25}
|
||||
}
|
||||
Fl_Input max_track {
|
||||
label {Max track}
|
||||
xywh {1134 516 40 15} labelsize 8 textsize 10
|
||||
xywh {1134 480 40 15} labelsize 8 textsize 10
|
||||
}
|
||||
Fl_Input min_track {
|
||||
label {Min track}
|
||||
xywh {1134 501 40 15} labelsize 8 textsize 10
|
||||
xywh {1134 465 40 15} labelsize 8 textsize 10
|
||||
}
|
||||
Fl_Light_Button Side_0 {
|
||||
label {Side 0}
|
||||
xywh {1177 500 80 15} labelsize 10
|
||||
xywh {1177 464 80 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button Side_1 {
|
||||
label {Side 1}
|
||||
xywh {1177 515 80 15} labelsize 10
|
||||
xywh {1177 479 80 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button double_step {
|
||||
label {Double step}
|
||||
xywh {1177 530 80 15} labelsize 10
|
||||
xywh {1177 494 80 15} labelsize 10
|
||||
}
|
||||
Fl_Input index_delay {
|
||||
label {Index delay (us)}
|
||||
xywh {1134 544 40 15} labelsize 8 textsize 10
|
||||
xywh {1134 508 40 15} labelsize 8 textsize 10
|
||||
}
|
||||
Fl_Input dump_lenght {
|
||||
label {lenght (ms)}
|
||||
xywh {1134 529 40 15} labelsize 8 textsize 10
|
||||
xywh {1134 493 40 15} labelsize 8 textsize 10
|
||||
}
|
||||
Fl_Light_Button ignore_index {
|
||||
label {Ignore index}
|
||||
xywh {1177 545 80 15} labelsize 10
|
||||
xywh {1177 509 80 15} labelsize 10
|
||||
}
|
||||
Fl_Button {} {
|
||||
label move
|
||||
user_data this
|
||||
callback floppy_streamer_movehead
|
||||
xywh {1052 439 48 21}
|
||||
xywh {1052 415 48 21}
|
||||
}
|
||||
Fl_Light_Button high_res {
|
||||
label {50Mhz }
|
||||
xywh {1260 500 65 15} labelsize 10
|
||||
xywh {1260 464 65 15} labelsize 10
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {Spy bus}
|
||||
user_data this
|
||||
callback floppy_streamer_spybus
|
||||
xywh {1265 417 59 40}
|
||||
xywh {1265 393 59 40}
|
||||
}
|
||||
Fl_Light_Button high_contrast {
|
||||
label {High contrast} selected
|
||||
xywh {1130 565 107 15} labelsize 10
|
||||
label {High contrast}
|
||||
xywh {1130 529 107 15} labelsize 10
|
||||
}
|
||||
Fl_Light_Button fat_dots {
|
||||
label {Fat dots}
|
||||
xywh {1240 565 84 15} labelsize 10
|
||||
xywh {1240 529 84 15} labelsize 10
|
||||
}
|
||||
Fl_Input dump_name {
|
||||
label Name
|
||||
xywh {1095 4 230 19} labelsize 8 textsize 10
|
||||
}
|
||||
Fl_Input index_name {
|
||||
label {N°}
|
||||
xywh {1281 24 44 20} labelsize 8 textsize 10
|
||||
}
|
||||
Fl_Input comment {
|
||||
label Comment
|
||||
xywh {1095 24 170 19} labelsize 8 textsize 10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1200,6 +1200,9 @@ Main_Window::Main_Window()
|
||||
streamer_window->Side_0->value(1);
|
||||
streamer_window->Side_1->value(1);
|
||||
|
||||
streamer_window->dump_name->value("untitled");
|
||||
streamer_window->index_name->value("AUTO");
|
||||
|
||||
Fl::add_timeout(0.1, streamer_tick_infos, (void*)streamer_window);
|
||||
|
||||
#ifdef GUI_DEBUG
|
||||
|
||||
Reference in new issue
Block a user