This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
void readPrefs | ( | ) |
Definition at line 20 of file preferences.h.
References csLine, dataPath, orcPath, outData, scoPath, serieName, txt_seriePath, and wavLine.
Referenced by actGen_cb(), makeWinPath(), readPrefs_cb(), and select_setting_cb().
00020 { 00021 int boolValue; 00022 int intValue; 00023 char buffer[80]; 00024 char buffer2[256]; 00025 double doubleValue; 00026 00027 Fl_Preferences app( Fl_Preferences::USER, dataPath->value(), txt_seriePath->value() ); 00028 00029 char path[ FL_PATH_MAX ]; 00030 app.getUserdataPath( path, sizeof(path) ); 00031 00032 //// 00033 Fl_Preferences cs_cmLine( app, "cs_cmLine"); 00034 cs_cmLine.get( "cs_cmLine", buffer2, "../cs423f13/csound -W -o ../orcsco/csmusgen.wav ../orcsco/csmusgen.orc ../orcsco/csmusgen.sco &", 255); 00035 csLine->value(buffer2); 00036 00037 Fl_Preferences wav_cmLine( app, "wav_cmLine"); 00038 wav_cmLine.get( "wav_cmLine", buffer2, "kaboodle ../orcsco/csmusgen.wav", 159); 00039 wavLine->value(buffer2); 00040 00041 Fl_Preferences data_Path( app, "data_Path"); 00042 data_Path.get( "data_Path", buffer, "../orcsco/csmusgen.txt", 79); 00043 outData->value(buffer); 00044 00045 Fl_Preferences sco_Path( app, "sco_Path"); 00046 sco_Path.get( "sco_Path", buffer, "../orcsco/csmusgen.sco", 79); 00047 scoPath->value(buffer); 00048 00049 Fl_Preferences orc_Path( app, "orc_Path"); 00050 orc_Path.get( "orc_Path", buffer, "../orcsco/csmusgen.orc", 79); 00051 orcPath->value(buffer); 00052 00053 Fl_Preferences serie_Name( app, "serie_Name"); 00054 serie_Name.get( "serie_Name", buffer, "no label", 79); 00055 serieName->value(buffer); 00056 ///// 00057 00058 }
void readPrefsSerie | ( | ) |
Definition at line 60 of file preferences.h.
References act_1, act_10, act_11, act_12, act_2, act_3, act_4, act_5, act_6, act_7, act_8, act_9, dataPath, db_1, db_10, db_11, db_12, db_2, db_3, db_4, db_5, db_6, db_7, db_8, db_9, dur_1, dur_10, dur_11, dur_12, dur_2, dur_3, dur_4, dur_5, dur_6, dur_7, dur_8, dur_9, in_w, in_x, in_y, in_z, instr_1, instr_10, instr_11, instr_12, instr_2, instr_3, instr_4, instr_5, instr_6, instr_7, instr_8, instr_9, logic_a, logic_b, logic_c, max_db, max_dur, max_instr, max_pch, min_db, min_dur, min_instr, min_pch, pch_1, pch_10, pch_11, pch_12, pch_2, pch_3, pch_4, pch_5, pch_6, pch_7, pch_8, pch_9, and txt_seriePath.
Referenced by makeWinPath(), readPrefs_cb(), and select_setting_cb().
00061 { 00062 int intValue; 00063 double doubleValue; 00064 00065 Fl_Preferences app( Fl_Preferences::USER, dataPath->value(), txt_seriePath->value() ); 00066 00067 char path[ FL_PATH_MAX ]; 00068 app.getUserdataPath( path, sizeof(path) ); 00069 00070 Fl_Preferences a_val( app, "a_val"); 00071 a_val.get("a_val", intValue, 0); 00072 logic_a->value(intValue); 00073 00074 Fl_Preferences b_val( app, "b_val"); 00075 b_val.get("b_val", intValue, 0); 00076 logic_b->value(intValue); 00077 00078 Fl_Preferences c_val( app, "c_val"); 00079 c_val.get("c_val", intValue, 0); 00080 logic_c->value(intValue); 00081 00082 Fl_Preferences inw( app, "inw"); 00083 inw.get( "inw", doubleValue, 0.125); 00084 in_w->value(doubleValue); 00085 00086 Fl_Preferences inx( app, "inx"); 00087 inx.get( "inx", doubleValue, 0.25); 00088 in_x->value(doubleValue); 00089 00090 Fl_Preferences iny( app, "iny"); 00091 iny.get( "iny", doubleValue, 0.5); 00092 in_y->value(doubleValue); 00093 00094 Fl_Preferences inz( app, "inz"); 00095 inz.get( "inz", doubleValue, 1); 00096 in_z->value(doubleValue); 00097 00098 Fl_Preferences minPch( app, "minPch"); 00099 minPch.get("minPch", intValue, 0); 00100 min_pch->value(intValue); 00101 00102 Fl_Preferences maxPch( app, "maxPch"); 00103 maxPch.get("maxPch", intValue, 83); 00104 max_pch->value(intValue); 00105 00106 Fl_Preferences mindur( app, "mindur"); 00107 mindur.get("mindur", intValue, 0); 00108 min_dur->value(intValue); 00109 00110 Fl_Preferences maxdur( app, "maxdur"); 00111 maxdur.get("maxdur", intValue, 28); 00112 max_dur->value(intValue); 00113 00114 Fl_Preferences mindb( app, "mindb"); 00115 mindb.get("mindb", intValue, 0); 00116 min_db->value(intValue); 00117 00118 Fl_Preferences maxdb( app, "maxdb"); 00119 maxdb.get("maxdb", intValue, 79); 00120 max_db->value(intValue); 00121 00122 Fl_Preferences mininstr( app, "mininstr"); 00123 mininstr.get("mininstr", intValue, 0 ); 00124 min_instr->value(intValue); 00125 00126 Fl_Preferences maxinstr( app, "maxinstr"); 00127 maxinstr.get("maxinstr", intValue, 23); 00128 max_instr->value(intValue); 00129 00130 /////MEMO SERIE/// 00131 Fl_Preferences pitch1( app, "pitch1"); 00132 pitch1.get("pitch1", doubleValue, 8 ); 00133 pch_1->value(doubleValue); 00134 00135 Fl_Preferences pitch2( app, "pitch2"); 00136 pitch2.get("pitch2", doubleValue, 8 ); 00137 pch_2->value(doubleValue); 00138 00139 Fl_Preferences pitch3( app, "pitch3"); 00140 pitch3.get("pitch3", doubleValue, 8 ); 00141 pch_3->value(doubleValue); 00142 00143 Fl_Preferences pitch4( app, "pitch4"); 00144 pitch4.get("pitch4", doubleValue, 8 ); 00145 pch_4->value(doubleValue); 00146 00147 Fl_Preferences pitch5( app, "pitch5"); 00148 pitch5.get("pitch5", doubleValue, 8 ); 00149 pch_5->value(doubleValue); 00150 00151 Fl_Preferences pitch6( app, "pitch6"); 00152 pitch6.get("pitch6", doubleValue, 8 ); 00153 pch_6->value(doubleValue); 00154 00155 Fl_Preferences pitch7( app, "pitch7"); 00156 pitch7.get("pitch7", doubleValue, 8 ); 00157 pch_7->value(doubleValue); 00158 00159 Fl_Preferences pitch8( app, "pitch8"); 00160 pitch8.get("pitch8", doubleValue, 8 ); 00161 pch_8->value(doubleValue); 00162 00163 Fl_Preferences pitch9( app, "pitch9"); 00164 pitch9.get("pitch9", doubleValue, 8 ); 00165 pch_9->value(doubleValue); 00166 00167 Fl_Preferences pitch10( app, "pitch10"); 00168 pitch10.get("pitch10", doubleValue, 8 ); 00169 pch_10->value(doubleValue); 00170 00171 Fl_Preferences pitch11( app, "pitch11"); 00172 pitch11.get("pitch11", doubleValue, 8 ); 00173 pch_11->value(doubleValue); 00174 00175 Fl_Preferences pitch12( app, "pitch12"); 00176 pitch12.get("pitch12", doubleValue, 8 ); 00177 pch_12->value(doubleValue); 00178 ////////////////////////////////////////////////////// 00179 Fl_Preferences dur1( app, "dur1"); 00180 dur1.get("dur1", doubleValue, 1 ); 00181 dur_1->value(doubleValue); 00182 00183 Fl_Preferences dur2( app, "dur2"); 00184 dur2.get("dur2", doubleValue, 1 ); 00185 dur_2->value(doubleValue); 00186 00187 Fl_Preferences dur3( app, "dur3"); 00188 dur3.get("dur3", doubleValue, 1 ); 00189 dur_3->value(doubleValue); 00190 00191 Fl_Preferences dur4( app, "dur4"); 00192 dur4.get("dur4", doubleValue, 1 ); 00193 dur_4->value(doubleValue); 00194 00195 Fl_Preferences dur5( app, "dur5"); 00196 dur5.get("dur5", doubleValue, 1 ); 00197 dur_5->value(doubleValue); 00198 00199 Fl_Preferences dur6( app, "dur6"); 00200 dur6.get("dur6", doubleValue, 1 ); 00201 dur_6->value(doubleValue); 00202 00203 Fl_Preferences dur7( app, "dur7"); 00204 dur7.get("dur7", doubleValue, 1 ); 00205 dur_7->value(doubleValue); 00206 00207 Fl_Preferences dur8( app, "dur8"); 00208 dur8.get("dur8", doubleValue, 1 ); 00209 dur_8->value(doubleValue); 00210 00211 Fl_Preferences dur9( app, "dur9"); 00212 dur9.get("dur9", doubleValue, 1 ); 00213 dur_9->value(doubleValue); 00214 00215 Fl_Preferences dur10( app, "dur10"); 00216 dur10.get("dur10", doubleValue, 1 ); 00217 dur_10->value(doubleValue); 00218 00219 Fl_Preferences dur11( app, "dur11"); 00220 dur11.get("dur11", doubleValue, 1 ); 00221 dur_11->value(doubleValue); 00222 00223 Fl_Preferences dur12( app, "dur12"); 00224 dur12.get("dur12", doubleValue, 1 ); 00225 dur_12->value(doubleValue); 00226 ////////////////////////////////////////////////////// 00227 Fl_Preferences db1( app, "db1"); 00228 db1.get("db1", doubleValue, 70 ); 00229 db_1->value(doubleValue); 00230 00231 Fl_Preferences db2( app, "db2"); 00232 db2.get("db2", doubleValue, 70 ); 00233 db_2->value(doubleValue); 00234 00235 Fl_Preferences db3( app, "db3"); 00236 db3.get("db3", doubleValue, 70 ); 00237 db_3->value(doubleValue); 00238 00239 Fl_Preferences db4( app, "db4"); 00240 db4.get("db4", doubleValue, 70 ); 00241 db_4->value(doubleValue); 00242 00243 Fl_Preferences db5( app, "db5"); 00244 db5.get("db5", doubleValue, 70 ); 00245 db_5->value(doubleValue); 00246 00247 Fl_Preferences db6( app, "db6"); 00248 db6.get("db6", doubleValue, 70 ); 00249 db_6->value(doubleValue); 00250 00251 Fl_Preferences db7( app, "db7"); 00252 db7.get("db7", doubleValue, 70 ); 00253 db_7->value(doubleValue); 00254 00255 Fl_Preferences db8( app, "db8"); 00256 db8.get("db8", doubleValue, 70 ); 00257 db_8->value(doubleValue); 00258 00259 Fl_Preferences db9( app, "db9"); 00260 db9.get("db9", doubleValue, 70 ); 00261 db_9->value(doubleValue); 00262 00263 Fl_Preferences db10( app, "db10"); 00264 db10.get("db10", doubleValue, 70 ); 00265 db_10->value(doubleValue); 00266 00267 Fl_Preferences db11( app, "db11"); 00268 db11.get("db11", doubleValue, 70 ); 00269 db_11->value(doubleValue); 00270 00271 Fl_Preferences db12( app, "db12"); 00272 db12.get("db12", doubleValue, 70 ); 00273 db_12->value(doubleValue); 00274 ////////////////////////////////////////////////////// 00275 Fl_Preferences instr1( app, "instr1"); 00276 instr1.get("instr1", doubleValue, 1 ); 00277 instr_1->value(doubleValue); 00278 00279 Fl_Preferences instr2( app, "instr2"); 00280 instr2.get("instr2", doubleValue, 1 ); 00281 instr_2->value(doubleValue); 00282 00283 Fl_Preferences instr3( app, "instr3"); 00284 instr3.get("instr3", doubleValue, 1 ); 00285 instr_3->value(doubleValue); 00286 00287 Fl_Preferences instr4( app, "instr4"); 00288 instr4.get("instr4", doubleValue, 1 ); 00289 instr_4->value(doubleValue); 00290 00291 Fl_Preferences instr5( app, "instr5"); 00292 instr5.get("instr5", doubleValue, 1 ); 00293 instr_5->value(doubleValue); 00294 00295 Fl_Preferences instr6( app, "instr6"); 00296 instr6.get("instr6", doubleValue, 1 ); 00297 instr_6->value(doubleValue); 00298 00299 Fl_Preferences instr7( app, "instr7"); 00300 instr7.get("instr7", doubleValue, 1 ); 00301 instr_7->value(doubleValue); 00302 00303 Fl_Preferences instr8( app, "instr8"); 00304 instr8.get("instr8", doubleValue, 1 ); 00305 instr_8->value(doubleValue); 00306 00307 Fl_Preferences instr9( app, "instr9"); 00308 instr9.get("instr9", doubleValue, 1 ); 00309 instr_9->value(doubleValue); 00310 00311 Fl_Preferences instr10( app, "instr10"); 00312 instr10.get("instr10", doubleValue, 1 ); 00313 instr_10->value(doubleValue); 00314 00315 Fl_Preferences instr11( app, "instr11"); 00316 instr11.get("instr11", doubleValue, 1 ); 00317 instr_11->value(doubleValue); 00318 00319 Fl_Preferences instr12( app, "instr12"); 00320 instr12.get("instr12", doubleValue, 1 ); 00321 instr_12->value(doubleValue); 00322 00323 ////////////////////////////////////////////////////// 00324 Fl_Preferences act1( app, "act1"); 00325 act1.get("act1", doubleValue, 1 ); 00326 act_1->value(doubleValue); 00327 00328 Fl_Preferences act2( app, "act2"); 00329 act2.get("act2", doubleValue, 1 ); 00330 act_2->value(doubleValue); 00331 00332 Fl_Preferences act3( app, "act3"); 00333 act3.get("act3", doubleValue, 1 ); 00334 act_3->value(doubleValue); 00335 00336 Fl_Preferences act4( app, "act4"); 00337 act4.get("act4", doubleValue, 1 ); 00338 act_4->value(doubleValue); 00339 00340 Fl_Preferences act5( app, "act5"); 00341 act5.get("act5", doubleValue, 1 ); 00342 act_5->value(doubleValue); 00343 00344 Fl_Preferences act6( app, "act6"); 00345 act6.get("act6", doubleValue, 1 ); 00346 act_6->value(doubleValue); 00347 00348 Fl_Preferences act7( app, "act7"); 00349 act7.get("act7", doubleValue, 1 ); 00350 act_7->value(doubleValue); 00351 00352 Fl_Preferences act8( app, "act8"); 00353 act8.get("act8", doubleValue, 1 ); 00354 act_8->value(doubleValue); 00355 00356 Fl_Preferences act9( app, "act9"); 00357 act9.get("act9", doubleValue, 1 ); 00358 act_9->value(doubleValue); 00359 00360 Fl_Preferences act10( app, "act10"); 00361 act10.get("act10", doubleValue, 1 ); 00362 act_10->value(doubleValue); 00363 00364 Fl_Preferences act11( app, "act11"); 00365 act11.get("act11", doubleValue, 1 ); 00366 act_11->value(doubleValue); 00367 00368 Fl_Preferences act12( app, "act12"); 00369 act12.get("act12", doubleValue, 1 ); 00370 act_12->value(doubleValue); 00371 00372 }
void writePrefs | ( | ) |
Definition at line 374 of file preferences.h.
References dataPath, in_w, in_x, in_y, in_z, logic_a, logic_b, logic_c, and txt_seriePath.
Referenced by writePrefs_cb().
00374 { 00375 00376 Fl_Preferences app( Fl_Preferences::USER, dataPath->value(), txt_seriePath->value() ); 00377 00378 Fl_Preferences a_val( app, "a_val" ); 00379 a_val.set("a_val", logic_a->value() ); 00380 00381 Fl_Preferences b_val( app, "b_val" ); 00382 b_val.set("b_val", logic_b->value() ); 00383 00384 Fl_Preferences c_val( app, "c_val" ); 00385 c_val.set("c_val", logic_c->value() ); 00386 00387 Fl_Preferences inw( app, "inw" ); 00388 inw.set("inw", in_w->value() ); 00389 00390 Fl_Preferences inx( app, "inx" ); 00391 inx.set("inx", in_x->value() ); 00392 00393 Fl_Preferences iny( app, "iny" ); 00394 iny.set("iny", in_y->value() ); 00395 00396 Fl_Preferences inz( app, "inz" ); 00397 inz.set("inz", in_z->value() ); 00398 /*/////////////////////////////////////////////////////////////*/ 00399 00400 Fl_Preferences cs_cmLine( app, "cs_cmLine" ); 00401 cs_cmLine.set("cs_cmLine", csLine->value() ); 00402 00403 Fl_Preferences wav_cmLine( app, "wav_cmLine" ); 00404 wav_cmLine.set("wav_cmLine", wavLine->value() ); 00405 00406 Fl_Preferences data_Path( app, "data_Path" ); 00407 data_Path.set("data_Path", outData->value() ); 00408 00409 Fl_Preferences orc_Path( app, "orc_Path" ); 00410 orc_Path.set("orc_Path", orcPath->value() ); 00411 00412 Fl_Preferences sco_Path( app, "sco_Path" ); 00413 sco_Path.set("sco_Path", scoPath->value() ); 00414 00415 Fl_Preferences serie_Name( app, "serie_Name" ); 00416 serie_Name.set("serie_Name", serieName->value() ); 00417 00418 /*/////////////////////////////////////////////////////////////*/ 00419 Fl_Preferences minPch( app, "minPch" ); 00420 minPch.set("minPch", min_pch->value() ); 00421 00422 Fl_Preferences maxPch( app, "maxPch" ); 00423 maxPch.set("maxPch", max_pch->value() ); 00424 00425 Fl_Preferences mindur( app, "mindur" ); 00426 mindur.set("mindur", min_dur->value() ); 00427 00428 Fl_Preferences maxdur( app, "maxdur" ); 00429 maxdur.set("maxdur", max_dur->value() ); 00430 00431 Fl_Preferences mindb( app, "mindb" ); 00432 mindb.set("mindb", min_db->value() ); 00433 00434 Fl_Preferences maxdb( app, "maxdb" ); 00435 maxdb.set("maxdb", max_db->value() ); 00436 00437 Fl_Preferences mininstr( app, "mininstr" ); 00438 mininstr.set("mininstr", min_instr->value() ); 00439 00440 Fl_Preferences maxinstr( app, "maxinstr" ); 00441 maxinstr.set("maxinstr", max_instr->value() ); 00442 00443 Fl_Preferences pitch1( app, "pitch1" ); 00444 pitch1.set("pitch1", pch_1->value() ); 00445 00446 Fl_Preferences pitch2( app, "pitch2" ); 00447 pitch2.set("pitch2", pch_2->value() ); 00448 00449 Fl_Preferences pitch3( app, "pitch3" ); 00450 pitch3.set("pitch3", pch_3->value() ); 00451 00452 Fl_Preferences pitch4( app, "pitch4" ); 00453 pitch4.set("pitch4", pch_4->value() ); 00454 00455 Fl_Preferences pitch5( app, "pitch5" ); 00456 pitch5.set("pitch5", pch_5->value() ); 00457 00458 Fl_Preferences pitch6( app, "pitch6" ); 00459 pitch6.set("pitch6", pch_6->value() ); 00460 00461 Fl_Preferences pitch7( app, "pitch7" ); 00462 pitch7.set("pitch7", pch_7->value() ); 00463 00464 Fl_Preferences pitch8( app, "pitch8" ); 00465 pitch8.set("pitch8", pch_8->value() ); 00466 00467 Fl_Preferences pitch9( app, "pitch9" ); 00468 pitch9.set("pitch9", pch_9->value() ); 00469 00470 Fl_Preferences pitch10( app, "pitch10" ); 00471 pitch10.set("pitch10", pch_10->value() ); 00472 00473 Fl_Preferences pitch11( app, "pitch11" ); 00474 pitch11.set("pitch11", pch_11->value() ); 00475 00476 Fl_Preferences pitch12( app, "pitch12" ); 00477 pitch12.set("pitch12", pch_12->value() ); 00478 ////////////////////////////////////////////////////// 00479 Fl_Preferences dur1( app, "dur1" ); 00480 dur1.set("dur1", dur_1->value() ); 00481 00482 Fl_Preferences dur2( app, "dur2" ); 00483 dur2.set("dur2", dur_2->value() ); 00484 00485 Fl_Preferences dur3( app, "dur3" ); 00486 dur3.set("dur3", dur_3->value() ); 00487 00488 Fl_Preferences dur4( app, "dur4" ); 00489 dur4.set("dur4", dur_4->value() ); 00490 00491 Fl_Preferences dur5( app, "dur5" ); 00492 dur5.set("dur5", dur_5->value() ); 00493 00494 Fl_Preferences dur6( app, "dur6" ); 00495 dur6.set("dur6", dur_6->value() ); 00496 00497 Fl_Preferences dur7( app, "dur7" ); 00498 dur7.set("dur7", dur_7->value() ); 00499 00500 Fl_Preferences dur8( app, "dur8" ); 00501 dur8.set("dur8", dur_8->value() ); 00502 00503 Fl_Preferences dur9( app, "dur9" ); 00504 dur9.set("dur9", dur_9->value() ); 00505 00506 Fl_Preferences dur10( app, "dur10" ); 00507 dur10.set("dur10", dur_10->value() ); 00508 00509 Fl_Preferences dur11( app, "dur11" ); 00510 dur11.set("dur11", dur_11->value() ); 00511 00512 Fl_Preferences dur12( app, "dur12" ); 00513 dur12.set("dur12", dur_12->value() ); 00514 ////////////////////////////////////// 00515 Fl_Preferences db1( app, "db1" ); 00516 db1.set("db1", db_1->value() ); 00517 00518 Fl_Preferences db2( app, "db2" ); 00519 db2.set("db2", db_2->value() ); 00520 00521 Fl_Preferences db3( app, "db3" ); 00522 db3.set("db3", db_3->value() ); 00523 00524 Fl_Preferences db4( app, "db4" ); 00525 db4.set("db4", db_4->value() ); 00526 00527 Fl_Preferences db5( app, "db5" ); 00528 db5.set("db5", db_5->value() ); 00529 00530 Fl_Preferences db6( app, "db6" ); 00531 db6.set("db6", db_6->value() ); 00532 00533 Fl_Preferences db7( app, "db7" ); 00534 db7.set("db7", db_7->value() ); 00535 00536 Fl_Preferences db8( app, "db8" ); 00537 db8.set("db8", db_8->value() ); 00538 00539 Fl_Preferences db9( app, "db9" ); 00540 db9.set("db9", db_9->value() ); 00541 00542 Fl_Preferences db10( app, "db10" ); 00543 db10.set("db10", db_10->value() ); 00544 00545 Fl_Preferences db11( app, "db11" ); 00546 db11.set("db11", db_11->value() ); 00547 00548 Fl_Preferences db12( app, "db12" ); 00549 db12.set("db12", db_12->value() ); 00550 00551 ////////////////////////////////////// 00552 Fl_Preferences instr1( app, "instr1" ); 00553 instr1.set("instr1", instr_1->value() ); 00554 00555 Fl_Preferences instr2( app, "instr2" ); 00556 instr2.set("instr2", instr_2->value() ); 00557 00558 Fl_Preferences instr3( app, "instr3" ); 00559 instr3.set("instr3", instr_3->value() ); 00560 00561 Fl_Preferences instr4( app, "instr4" ); 00562 instr4.set("instr4", instr_4->value() ); 00563 00564 Fl_Preferences instr5( app, "instr5" ); 00565 instr5.set("instr5", instr_5->value() ); 00566 00567 Fl_Preferences instr6( app, "instr6" ); 00568 instr6.set("instr6", instr_6->value() ); 00569 00570 Fl_Preferences instr7( app, "instr7" ); 00571 instr7.set("instr7", instr_7->value() ); 00572 00573 Fl_Preferences instr8( app, "instr8" ); 00574 instr8.set("instr8", instr_8->value() ); 00575 00576 Fl_Preferences instr9( app, "instr9" ); 00577 instr9.set("instr9", instr_9->value() ); 00578 00579 Fl_Preferences instr10( app, "instr10" ); 00580 instr10.set("instr10", instr_10->value() ); 00581 00582 Fl_Preferences instr11( app, "instr11" ); 00583 instr11.set("instr11", instr_11->value() ); 00584 00585 Fl_Preferences instr12( app, "instr12" ); 00586 instr12.set("instr12", instr_12->value() ); 00587 00588 ////////////////////////////////////// 00589 if (bt_enable_act->value() == 1) 00590 { 00591 Fl_Preferences act1( app, "act1" ); 00592 act1.set("act1", act_1->value() ); 00593 00594 Fl_Preferences act2( app, "act2" ); 00595 act2.set("act2", act_2->value() ); 00596 00597 Fl_Preferences act3( app, "act3" ); 00598 act3.set("act3", act_3->value() ); 00599 00600 Fl_Preferences act4( app, "act4" ); 00601 act4.set("act4", act_4->value() ); 00602 00603 Fl_Preferences act5( app, "act5" ); 00604 act5.set("act5", act_5->value() ); 00605 00606 Fl_Preferences act6( app, "act6" ); 00607 act6.set("act6", act_6->value() ); 00608 00609 Fl_Preferences act7( app, "act7" ); 00610 act7.set("act7", act_7->value() ); 00611 00612 Fl_Preferences act8( app, "act8" ); 00613 act8.set("act8", act_8->value() ); 00614 00615 Fl_Preferences act9( app, "act9" ); 00616 act9.set("act9", act_9->value() ); 00617 00618 Fl_Preferences act10( app, "act10" ); 00619 act10.set("act10", act_10->value() ); 00620 00621 Fl_Preferences act11( app, "act11" ); 00622 act11.set("act11", act_11->value() ); 00623 00624 Fl_Preferences act12( app, "act12" ); 00625 act12.set("act12", act_12->value() ); 00626 } 00627 }
void readPrefsColor | ( | ) |
Definition at line 630 of file preferences.h.
Referenced by make_form().
00630 { 00631 int intValue; 00632 00633 Fl_Preferences app( Fl_Preferences::USER, "csmusgen", "csmusgenColor" ); 00634 00635 char path[ FL_PATH_MAX ]; 00636 app.getUserdataPath( path, sizeof(path) ); 00637 00638 Fl_Preferences last_color( app, "last_color"); 00639 last_color.get( "last_color", intValue, 97); 00640 COLOR = intValue; 00641 }
void writePrefsColor | ( | ) |
Definition at line 643 of file preferences.h.
Referenced by setColor_cb().
00643 { 00644 00645 Fl_Preferences app( Fl_Preferences::USER, "csmusgen", "csmusgenColor" ); 00646 00647 Fl_Preferences last_color( app, "last_color" ); 00648 last_color.set("last_color", colorCounter->value() ); 00649 }
void readPrefsStart | ( | ) |
Definition at line 651 of file preferences.h.
Referenced by makeWinPath().
00651 { 00652 int intValue; 00653 char buffer[80]; 00654 00655 Fl_Preferences app( Fl_Preferences::USER, "csmusgen", "csmusgenStart" ); 00656 00657 char path[ FL_PATH_MAX ]; 00658 app.getUserdataPath( path, sizeof(path) ); 00659 00660 Fl_Preferences start_Group( app, "start_Group"); 00661 start_Group.get( "start_Group", buffer, "csmusgen/Group1", 79); 00662 dataPath->value(buffer); 00663 00664 Fl_Preferences start_Series( app, "start_Series"); 00665 start_Series.get( "start_Series", buffer, "serie1", 79); 00666 txt_seriePath->value(buffer); 00667 00668 Fl_Preferences num_Series( app, "num_Series"); 00669 num_Series.get( "num_Series", intValue, 1); 00670 out_File->value(intValue); 00671 }
void writePrefsStart | ( | ) |
Definition at line 674 of file preferences.h.
Referenced by exitPathWin(), and winPath_callback().
00674 { 00675 00676 Fl_Preferences app( Fl_Preferences::USER, "csmusgen", "csmusgenStart" ); 00677 00678 Fl_Preferences start_Group( app, "start_Group" ); 00679 start_Group.set("start_Group", dataPath->value() ); 00680 00681 Fl_Preferences start_Series( app, "start_Series" ); 00682 start_Series.set("start_Series", txt_seriePath->value() ); 00683 00684 Fl_Preferences num_Series( app, "num_Series" ); 00685 num_Series.set("num_Series", out_File->value() ); 00686 00687 00688 }
void read_chk_start | ( | ) |
Definition at line 692 of file preferences.h.
Referenced by make_form().
00693 { 00694 Fl_Preferences app( Fl_Preferences::USER, "csmusgen", "csmusgenStartCheck" ); 00695 00696 Fl_Preferences chk_val( app, "chk_val"); 00697 chk_val.get( "chk_val", check_value, 1); 00698 00699 }
void write_chk_start | ( | ) |
Definition at line 701 of file preferences.h.
Referenced by startWin_callback().
00702 { 00703 Fl_Preferences app( Fl_Preferences::USER, "csmusgen", "csmusgenStartCheck" ); 00704 00705 Fl_Preferences chk_val( app, "chk_val" ); 00706 chk_val.set("chk_val", chk_show_startwin->value() ); 00707 00708 }
void readPrefsHelp | ( | ) |
Definition at line 711 of file preferences.h.
Referenced by makeWinPath().
00711 { 00712 int intValue; 00713 char buffer[256]; 00714 00715 Fl_Preferences app( Fl_Preferences::USER, "csmusgen", "csmusgenHelp" ); 00716 00717 char path[ FL_PATH_MAX ]; 00718 app.getUserdataPath( path, sizeof(path) ); 00719 00720 00721 Fl_Preferences help_Path( app, "help_Path"); 00722 help_Path.get( "help_Path", buffer, "", 255); 00723 helpPath->value(buffer); 00724 00725 }
void writePrefsHelp | ( | ) |
Definition at line 727 of file preferences.h.
Referenced by exitPathWin(), and winPath_callback().
00727 { 00728 00729 Fl_Preferences app( Fl_Preferences::USER, "csmusgen", "csmusgenHelp" ); 00730 00731 Fl_Preferences help_Path( app, "help_Path" ); 00732 help_Path.set("help_Path", helpPath->value() ); 00733 }
void writePrefsHelp_cb | ( | Fl_Widget * | , | |
void * | ||||
) |