#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string>
#include <fstream>
#include <cstdio>
#include <time.h>
#include <cctype>
#include <FL/Fl_Round_Button.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Help_View.H>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Single_Window.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Int_Input.H>
#include <FL/Fl_Value_Input.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Choice.H>
#include <FL/Fl_Menu_Item.H>
#include <FL/Fl_Menu_Bar.H>
#include <FL/Fl_Menu_Button.H>
#include <FL/Fl_Multiline_Input.H>
#include <FL/Fl_Multiline_Output.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Output.H>
#include <FL/Fl_Light_Button.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_Preferences.H>
#include <FL/Fl_Text_Editor.H>
#include <FL/Fl_Text_Buffer.H>
#include <FL/Fl_Value_Output.H>
#include <FL/Fl_Counter.H>
#include "classes.h"
#include "controls.h"
#include "formulaFunc.h"
#include "counterpointFunc.h"
#include "counterpointFunc_instr.h"
#include "counterpointFunc_dur.h"
#include "counterpointFunc_db.h"
#include "counterpointFunc_pitch.h"
#include "counterpointFunc_act.h"
#include "counterpointFunc_p6.h"
#include "counterpointFunc_p7.h"
#include "counterpointFunc_p8.h"
#include "counterpointFunc_p9.h"
#include "counterpointFunc_p10.h"
#include "counterpointFunc_p11.h"
#include "counterpointFunc_p12.h"
#include "counterpointFunc_p13.h"
#include "counterpointFunc_p14.h"
#include "counterpointFunc_p15.h"
#include "counterpointFunc_p6b.h"
#include "counterpointFunc_p7b.h"
#include "counterpointFunc_p8b.h"
#include "counterpointFunc_p9b.h"
#include "counterpointFunc_p10b.h"
#include "counterpointFunc_p11b.h"
#include "counterpointFunc_p12b.h"
#include "counterpointFunc_p13b.h"
#include "counterpointFunc_p14b.h"
#include "counterpointFunc_p15b.h"
#include "editor.h"
#include "define.h"
#include "winFunc.h"
#include "preferences.h"
#include "addParam.h"
#include "addParam2.h"
#include "preferences2.h"
#include "inOut.h"
#include "menu.h"
#include "muses_string.h"
Include dependency graph for csmusgen.cpp:
Go to the source code of this file.
void exitPathWin_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 311 of file csmusgen.cpp.
References exitPathWin().
Referenced by makeWinPath().
00312 { 00313 exitPathWin(); 00314 }
Here is the call graph for this function:
void exitPathWin | ( | ) |
Definition at line 304 of file csmusgen.cpp.
References winPath, writePrefsHelp(), and writePrefsStart().
Referenced by exitPathWin_cb().
00305 { 00306 writePrefsStart(); 00307 writePrefsHelp(); 00308 winPath->hide(); 00309 }
Here is the call graph for this function:
void actPitch_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 1665 of file csmusgen.cpp.
References bt_enable_pch, and outMinMaxPitch.
Referenced by make_form().
01666 { 01667 if (bt_enable_pch->value() == 1) 01668 { 01669 outMinMaxPitch->activate(); 01670 } 01671 else if (bt_enable_pch->value() == 0) 01672 { 01673 outMinMaxPitch->deactivate(); 01674 outMinMaxPitch->value(0); 01675 } 01676 }
void actDur_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 1678 of file csmusgen.cpp.
References bt_enable_dur, and outMinMaxDur.
Referenced by make_form().
01679 { 01680 if (bt_enable_dur->value() == 1) 01681 { 01682 outMinMaxDur->activate(); 01683 } 01684 else if (bt_enable_dur->value() == 0) 01685 { 01686 outMinMaxDur->deactivate(); 01687 outMinMaxDur->value(0); 01688 } 01689 }
void actInstr_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 1704 of file csmusgen.cpp.
References bt_enable_instr, and outMinMaxInstr.
Referenced by make_form().
01705 { 01706 if (bt_enable_instr->value() == 1) 01707 { 01708 outMinMaxInstr->activate(); 01709 } 01710 else if (bt_enable_instr->value() == 0) 01711 { 01712 outMinMaxInstr->deactivate(); 01713 outMinMaxInstr->value(0); 01714 } 01715 }
void actDb_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 1691 of file csmusgen.cpp.
References bt_enable_db, and outMinMaxDb.
Referenced by make_form().
01692 { 01693 if (bt_enable_db->value() == 1) 01694 { 01695 outMinMaxDb->activate(); 01696 } 01697 else if (bt_enable_db->value() == 0) 01698 { 01699 outMinMaxDb->deactivate(); 01700 outMinMaxDb->value(0); 01701 } 01702 }
void react_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 119 of file csmusgen.cpp.
References act, act_1, bt_enable_act, and def_act().
00120 { 00121 // nserie->value(0); 00122 act = act_1->value(); 00123 if ( bt_enable_act->value() == 0) 00124 { 00125 def_act(); 00126 } 00127 00128 }
Here is the call graph for this function:
void winPath_callback | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 130 of file csmusgen.cpp.
References winPath, writePrefsHelp(), and writePrefsStart().
Referenced by makeWinPath().
00130 { 00131 writePrefsStart(); 00132 writePrefsHelp(); 00133 winPath->hide();//exit(0); 00134 }
Here is the call graph for this function:
void makeWinPath | ( | ) |
Definition at line 136 of file csmusgen.cpp.
References BOX_TYPE2, bt_exitPathWin, BT_LABEL_TYPE, bt_loadHelp, BT_TXT_COLOR, bt_writePrefs2, btload, btload_cb(), btloadData_cb(), btloadHelp_cb(), btloadOrc, btloadOrc_cb(), COLOR, COLOR2, csLine, CTRL_H, CTRL_L, CTRL_L2, CTRL_W, dataPath, def_act(), exitPathWin_cb(), helpPath, load_outData, LOADPATH, loadSerie, orcPath, out_File, outData, readPrefs(), readPrefs_cb(), readPrefsHelp(), readPrefsSerie(), readPrefsStart(), scoPath, select_setting_cb(), serieName, setting, TXT_COLOR2, txt_seriePath, W2, wavLine, winPath, winPath_callback(), and writePrefs_cb().
Referenced by make_form(), and winPath_cb().
00137 { 00138 int label_size = 10; 00139 int text_size = 11; 00140 00141 winPath = new Fl_Window(120,350,W2,190,"csmusgen PATH SETTING"); 00142 winPath->callback(winPath_callback); 00143 winPath->color(COLOR); 00144 00145 orcPath = new Fl_Input(CTRL_L+100,10,W2-200,20,"Orc/Csd @>>"); 00146 orcPath->textsize(text_size); 00147 orcPath->textfont(1); 00148 orcPath->labelcolor(TXT_COLOR2); 00149 orcPath->box(BOX_TYPE2); 00150 orcPath->box(BOX_TYPE2); 00151 orcPath->labelsize(label_size); 00152 00153 btloadOrc = new Fl_Button(CTRL_L2+W2-130+40,10,CTRL_W+10,20,"Load..."); 00154 btloadOrc->box(BOX_TYPE2); 00155 btloadOrc->callback(btloadOrc_cb); 00156 btloadOrc->color(COLOR2); 00157 btloadOrc->tooltip("Load score file"); 00158 btloadOrc->labelcolor(BT_TXT_COLOR); 00159 btloadOrc->labeltype(BT_LABEL_TYPE); 00160 00161 scoPath = new Fl_Input(CTRL_L+100,35,W2-200,20,"Score @>>"); 00162 scoPath->textsize(text_size); 00163 scoPath->textfont(1); 00164 scoPath->labelcolor(TXT_COLOR2); 00165 scoPath->box(BOX_TYPE2); 00166 scoPath->box(BOX_TYPE2); 00167 scoPath->labelsize(label_size); 00168 00169 btload = new Fl_Button(CTRL_L2+W2-130+40,35,CTRL_W+10,20,"Load..."); 00170 btload->box(BOX_TYPE2); 00171 btload->callback(btload_cb); 00172 btload->color(COLOR2); 00173 btload->tooltip("Load score file"); 00174 btload->labelcolor(BT_TXT_COLOR); 00175 btload->labeltype(BT_LABEL_TYPE); 00176 00177 outData = new Fl_Input(CTRL_L+100,60,W2-200,20,"Text Data @>>"); 00178 outData->textsize(text_size); 00179 outData->textfont(1); 00180 outData->labelcolor(TXT_COLOR2); 00181 outData->box(BOX_TYPE2); 00182 outData->labelsize(label_size); 00183 00184 load_outData = new Fl_Button(CTRL_L2+W2-130+40,60,CTRL_W+10,20,"Load..."); 00185 load_outData->box(BOX_TYPE2); 00186 load_outData->callback(btloadData_cb); 00187 load_outData->color(COLOR2); 00188 load_outData->tooltip("Load an output data file"); 00189 load_outData->labelcolor(BT_TXT_COLOR); 00190 load_outData->labeltype(BT_LABEL_TYPE); 00191 00192 dataPath = new Fl_Input(CTRL_L+100,85,CTRL_W*4,20,"Data group @>>"); 00193 dataPath->textfont(1); 00194 dataPath->labelcolor(TXT_COLOR2); 00195 dataPath->box(BOX_TYPE2); 00196 dataPath->textcolor(FL_RED); 00197 dataPath->labelsize(label_size); 00198 00199 out_File = new Fl_Choice(CTRL_L+380,110,70,20,"Cur. Setting"); 00200 out_File->menu(setting); 00201 out_File->textfont(1); 00202 out_File->labelcolor(FL_YELLOW); 00203 out_File->labelfont(5); 00204 out_File->labelsize(label_size); 00205 out_File->textsize(11); 00206 out_File->callback(select_setting_cb); 00207 out_File->box(BOX_TYPE2); 00208 00209 txt_seriePath = new Fl_Input(CTRL_L+520,110,70,20,"Save as"); 00210 txt_seriePath->textcolor(FL_BLUE); 00211 txt_seriePath->textfont(1); 00212 txt_seriePath->box(BOX_TYPE2); 00213 txt_seriePath->labelcolor(FL_YELLOW); 00214 txt_seriePath->labelfont(5); 00215 txt_seriePath->labelsize(label_size); 00216 txt_seriePath->textsize(11); 00217 00218 00219 loadSerie = new Fl_Button(CTRL_L+600,110,70,20,"<<(Re)Load"); 00220 loadSerie->callback(readPrefs_cb); 00221 loadSerie->box(BOX_TYPE2); 00222 loadSerie->color(COLOR2); 00223 loadSerie->labelcolor(FL_RED); 00224 loadSerie->labeltype(BT_LABEL_TYPE); 00225 loadSerie->labelsize(label_size); 00226 00227 serieName = new Fl_Input(CTRL_L+100,110,CTRL_W*4,20,"Setting label @>>"); 00228 serieName->textfont(1); 00229 serieName->box(BOX_TYPE2); 00230 serieName->textcolor(FL_BLUE); 00231 serieName->labelcolor(FL_YELLOW); 00232 serieName->labelfont(5); 00233 serieName->labelsize(label_size); 00234 serieName->textsize(11); 00235 00236 helpPath = new Fl_Input(CTRL_L+380,85,290,20,"help file@>>"); 00237 helpPath->labelcolor(TXT_COLOR2); 00238 helpPath->box(BOX_TYPE2); 00239 helpPath->textsize(label_size); 00240 helpPath->tooltip("Enter here the browser name and the path for the help file. E.g. firefox /home/user/csmusgen/html/index.html"); 00241 00242 bt_loadHelp = new Fl_Button(CTRL_L2+W2-130+40,85,CTRL_W+10,20,"Load..."); 00243 bt_loadHelp->callback(btloadHelp_cb); 00244 bt_loadHelp->box(BOX_TYPE2); 00245 bt_loadHelp->color(COLOR2); 00246 bt_loadHelp->tooltip("Load html help file"); 00247 bt_loadHelp->labelcolor(BT_TXT_COLOR); 00248 bt_loadHelp->labeltype(BT_LABEL_TYPE); 00249 00250 bt_writePrefs2 = new Fl_Button(5,10,CTRL_W,CTRL_H,"Close"); 00251 //bt_writePrefs2->box(BOX_TYPE); 00252 bt_writePrefs2->color(COLOR2); 00253 bt_writePrefs2->value(0); 00254 bt_writePrefs2->labelcolor(FL_RED); 00255 bt_writePrefs2->labelsize(16); 00256 bt_writePrefs2->labeltype(BT_LABEL_TYPE); 00257 bt_writePrefs2->callback(exitPathWin_cb); 00258 00259 bt_exitPathWin = new Fl_Button(CTRL_L+680,110,CTRL_W+10,CTRL_H,"Save"); 00260 bt_exitPathWin->color(COLOR2); 00261 // bt_exitPathWin->box(BOX_TYPE); 00262 bt_exitPathWin->labelsize(16); 00263 bt_exitPathWin->labeltype(BT_LABEL_TYPE); 00264 bt_exitPathWin->labelcolor(FL_GREEN); 00265 bt_exitPathWin->callback(writePrefs_cb); 00266 00267 csLine = new Fl_Input(CTRL_L+40,140,W2-70,20,"Csound @>>"); 00268 csLine->box(BOX_TYPE2); 00269 csLine->labelcolor(TXT_COLOR2); 00270 csLine->color(FL_BLACK); 00271 csLine->textcolor(FL_WHITE); 00272 csLine->textsize(10); 00273 //csLine->textfont(1); 00274 csLine->cursor_color(TXT_COLOR2); 00275 csLine->labelsize(label_size); 00276 csLine->selection_color(FL_DARK_CYAN); 00277 00278 wavLine = new Fl_Input(CTRL_L+40,165,W2-70,20,"Audio @>>"); 00279 wavLine->box(BOX_TYPE2); 00280 wavLine->labelcolor(TXT_COLOR2); 00281 wavLine->textsize(10); 00282 // wavLine->textfont(1); 00283 wavLine->color(FL_BLACK); 00284 wavLine->textcolor(FL_WHITE); 00285 wavLine->cursor_color(TXT_COLOR2); 00286 wavLine->labelsize(label_size); 00287 wavLine->selection_color(FL_DARK_CYAN); 00288 00289 readPrefsHelp(); 00290 readPrefsStart(); 00291 readPrefs(); 00292 00293 if (LOADPATH == 0) { 00294 readPrefsSerie(); 00295 LOADPATH = 1; readPrefsStart(); 00296 00297 } 00298 def_act(); 00299 00300 winPath->end(); 00301 winPath->show(); 00302 }
Here is the call graph for this function:
void winPath_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 317 of file csmusgen.cpp.
References makeWinPath(), and winPath.
00318 { 00319 winPath->redraw(); 00320 makeWinPath(); 00321 }
Here is the call graph for this function:
Fl_Double_Window * make_help_window | ( | ) |
Definition at line 389 of file csmusgen.cpp.
References fontsDec_cb(), fontsDef_cb(), fontsInc_cb(), helpPath, helpV, hlpWin, and w.
00389 { 00390 Fl_Double_Window* w; 00391 { hlpWin = new Fl_Double_Window(70, 100, 750,520,"csmusgen Handbook"); 00392 w = hlpWin; 00393 helpV = new Fl_Help_View(0, 0, 750, 480); 00394 00395 Fl_Button *bt_fontsInc = new Fl_Button(10,485,30,30,"A"); 00396 bt_fontsInc->callback(fontsInc_cb); 00397 bt_fontsInc->labelsize(22); 00398 bt_fontsInc->labeltype(FL_EMBOSSED_LABEL); 00399 00400 Fl_Button *bt_fontsDec = new Fl_Button(45,485,30,30,"A"); 00401 bt_fontsDec->callback(fontsDec_cb); 00402 bt_fontsDec->labelsize(14); 00403 bt_fontsDec->labeltype(FL_EMBOSSED_LABEL); 00404 00405 Fl_Button *bt_fontsDef = new Fl_Button(80,485,30,30,"DEF"); 00406 bt_fontsDef->callback(fontsDef_cb); 00407 bt_fontsDef->labelsize(11); 00408 bt_fontsDef->labeltype(FL_EMBOSSED_LABEL); 00409 00410 hlpWin->end(); 00411 helpV->load(helpPath->value()); 00412 helpV->textfont(0); 00413 00414 } 00415 w->end(); 00416 w->resizable(w); 00417 w->show(); 00418 00419 }
Here is the call graph for this function:
void fontsInc_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
void fontsDec_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
void fontsDef_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 338 of file csmusgen.cpp.
References helpV.
Referenced by make_help_window().
00339 { 00340 helpV->textsize(12); 00341 }
void startWin_callback | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 345 of file csmusgen.cpp.
References startWin, and write_chk_start().
Referenced by makeStartWin().
00346 { 00347 write_chk_start(); 00348 delete startWin; 00349 }
Here is the call graph for this function:
void makeStartWin | ( | ) |
Definition at line 351 of file csmusgen.cpp.
References BT_LABEL_TYPE, chk_show_startwin, startWin, and startWin_callback().
Referenced by make_form(), and makestartWin_cb().
00352 { 00353 startWin = new Fl_Window(200,320,400,280,"csmusgen start"); 00354 startWin->set_modal(); 00355 startWin->color(FL_WHITE); 00356 startWin->callback(startWin_callback); 00357 Fl_Button *btCloseStartWin = new Fl_Button(480,0,20,20,"X"); 00358 btCloseStartWin->box(FL_NO_BOX); 00359 btCloseStartWin->labelsize(11); 00360 btCloseStartWin->labeltype(BT_LABEL_TYPE); 00361 btCloseStartWin->callback(startWin_callback); 00362 btCloseStartWin->labelcolor(FL_RED); 00363 00364 Fl_Multiline_Output *out1 = new Fl_Multiline_Output(5,25,390,150); 00365 out1->box(FL_BORDER_BOX); 00366 out1->color(FL_WHITE); 00367 out1->labelcolor(FL_RED); 00368 out1->label("CSMUSGEN - VERSION 0.1.4"); 00369 out1->align(FL_ALIGN_TOP_LEFT); 00370 out1->labelfont(FL_BOLD); 00371 out1->labelsize(22); 00372 out1->textfont(1); 00373 out1->textsize(14); 00374 out1->value("\n COPYRIGHT 2012 - Luigi Negretti Lanner.\n csmusgen comes with ABSOLUTELY\n NO WARRANTY. This is free software, and\n you are welcome to redistribute it\n under certain conditions. For more\n details consult the\n Copyright notice present on the help."); 00375 00376 chk_show_startwin = new Fl_Round_Button(5,220,20,20,"Show this window at the start"); 00377 chk_show_startwin->value(1); 00378 chk_show_startwin->labelcolor(FL_DARK_BLUE); 00379 00380 startWin->end(); 00381 startWin->show(); 00382 }
Here is the call graph for this function:
void makestartWin_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 384 of file csmusgen.cpp.
References makeStartWin().
00385 { 00386 makeStartWin(); 00387 }
Here is the call graph for this function:
void help_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 421 of file csmusgen.cpp.
References helpPath.
00422 { 00423 // make_help_window(); 00424 system(helpPath->value()); 00425 }
void actGen_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 1646 of file csmusgen.cpp.
References bt_calc_act, bt_enable_act, def_act(), outMinMaxAct, and readPrefs().
Referenced by make_form().
01647 { 01648 if (bt_enable_act->value() == 1) 01649 { 01650 bt_calc_act->activate(); 01651 outMinMaxAct->activate(); 01652 readPrefs(); 01653 } 01654 else if (bt_enable_act->value() == 0) 01655 { 01656 outMinMaxAct->deactivate(); 01657 outMinMaxAct->value(0); 01658 01659 bt_calc_act->deactivate(); 01660 bt_calc_act->value(0); 01661 def_act(); 01662 } 01663 }
Here is the call graph for this function:
void winIncDecsClose_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 430 of file csmusgen.cpp.
References win_incDecs.
Referenced by makeWin_IncDecS().
00431 { 00432 delete win_incDecs; 00433 }
void makeWin_IncDecS | ( | ) |
Definition at line 435 of file csmusgen.cpp.
References BOX_TYPE, BT_LABEL_TYPE, bt_SetValSeries, but_incDecs, chOperator, COLOR, COLOR2, funcMenuItems, H, incDecFrame, incDecSmenu, incDecSmenuParams, incDecSmenuParamsb, inp_incDecs, inp_setValue, operatorMenu, setSvalMenu, setSvalMenuParams, setSvalMenuParamsb, setValue, W, win_incDecs, and winIncDecsClose_cb().
00436 { 00437 win_incDecs = new Fl_Window(100+W/2-110,50+H-300,220,270,"Arithmetic functions"); 00438 win_incDecs->color(COLOR); 00439 00440 incDecFrame = new Fl_Box(25,20,150,100,"Inc - Dec series"); 00441 incDecFrame->box(FL_EMBOSSED_BOX); 00442 incDecFrame->color(COLOR); 00443 incDecFrame->labelcolor(FL_WHITE); 00444 incDecFrame->align(FL_ALIGN_TOP_LEFT); 00445 00446 inp_incDecs = new Fl_Value_Input(30,40,50,25,"Value"); 00447 inp_incDecs->box(FL_BORDER_BOX); 00448 inp_incDecs->align(FL_ALIGN_TOP); 00449 inp_incDecs->labelcolor(FL_WHITE); 00450 00451 chOperator = new Fl_Choice(90,40,80,25,"Operator"); 00452 chOperator->box(FL_BORDER_BOX); 00453 chOperator->menu(operatorMenu); 00454 chOperator->align(FL_ALIGN_TOP); 00455 chOperator->labelcolor(FL_WHITE); 00456 00457 but_incDecs = new Fl_Menu_Button(30,70,140,25,"Choice series"); 00458 if (funcMenuItems == 0){ 00459 but_incDecs->menu(incDecSmenu); 00460 } 00461 if (funcMenuItems == 1){ 00462 but_incDecs->menu(incDecSmenuParams); 00463 } 00464 if (funcMenuItems == 2){ 00465 but_incDecs->menu(incDecSmenuParamsb); 00466 } 00467 but_incDecs->box(FL_BORDER_BOX); 00468 but_incDecs->color(COLOR2); 00469 00470 Fl_Button *bt_close = new Fl_Button(180,120,30,30,"X"); 00471 bt_close->callback(winIncDecsClose_cb); 00472 bt_close->box(BOX_TYPE); 00473 bt_close->labelcolor(FL_RED); 00474 bt_close->labeltype(BT_LABEL_TYPE); 00475 bt_close->tooltip("Close this window"); 00476 00477 setValue = new Fl_Box(25,150,150,100,"Set series value"); 00478 setValue->box(FL_EMBOSSED_BOX); 00479 setValue->color(COLOR); 00480 setValue->labelcolor(FL_WHITE); 00481 setValue->align(FL_ALIGN_TOP_LEFT); 00482 00483 inp_setValue = new Fl_Value_Input(30,170,50,25,"Value"); 00484 inp_setValue->box(FL_BORDER_BOX); 00485 inp_setValue->align(FL_ALIGN_TOP); 00486 inp_setValue->labelcolor(FL_WHITE); 00487 00488 bt_SetValSeries = new Fl_Menu_Button(30,200,140,25,"Choice series"); 00489 bt_SetValSeries->box(FL_BORDER_BOX); 00490 if (funcMenuItems == 0){ 00491 bt_SetValSeries->menu(setSvalMenu); 00492 } 00493 if (funcMenuItems == 1){ 00494 bt_SetValSeries->menu(setSvalMenuParams); 00495 } 00496 if (funcMenuItems == 2){ 00497 bt_SetValSeries->menu(setSvalMenuParamsb); 00498 } 00499 bt_SetValSeries->color(COLOR2); 00500 00501 win_incDecs->resizable(win_incDecs); 00502 win_incDecs->set_modal(); 00503 win_incDecs->end(); 00504 win_incDecs->show(); 00505 }
Here is the call graph for this function:
void makeWin_IncDecS_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 507 of file csmusgen.cpp.
References funcMenuItems, and makeWin_IncDecS().
00508 { 00509 funcMenuItems = 0; 00510 makeWin_IncDecS(); 00511 }
Here is the call graph for this function:
void clsWinClose_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 513 of file csmusgen.cpp.
References cls_win.
Referenced by colors_win().
00514 { 00515 delete cls_win; 00516 }
void colors_win | ( | ) |
Definition at line 518 of file csmusgen.cpp.
References BOX_TYPE, BOX_TYPE2, bt_colorDec, bt_colorInc, bt_doneColor, BT_LABEL_TYPE, bt_resetColor, cls_win, clsWinClose_cb(), COLOR, colorBox, colorCounter, colorDec_cb(), colorInc_cb(), countColor_cb(), H, resetColor_cb(), setColor_cb(), and W.
Referenced by colors_win_cb().
00519 { 00520 cls_win = new Fl_Single_Window(W/2-150,H/2-25,330,50,"Choice color"); 00521 cls_win->color(COLOR); 00522 00523 colorCounter = new Fl_Value_Input(50,5,50,30); 00524 colorCounter->callback(countColor_cb); 00525 colorCounter->box(BOX_TYPE2); 00526 colorCounter->value(COLOR); 00527 00528 bt_colorDec = new Fl_Button(20,5,25,30,"@<"); 00529 bt_colorDec->callback(colorDec_cb); 00530 00531 bt_colorInc = new Fl_Button(105,5,25,30,"@>"); 00532 bt_colorInc->callback(colorInc_cb); 00533 00534 colorBox = new Fl_Box(140,5,40,30); 00535 colorBox->color(COLOR); 00536 colorBox->box(FL_BORDER_BOX); 00537 00538 bt_doneColor = new Fl_Button(190,5,40,30,"Done"); 00539 bt_doneColor->callback(setColor_cb); 00540 bt_doneColor->labelsize(11); 00541 bt_doneColor->box(BOX_TYPE2); 00542 00543 bt_resetColor = new Fl_Button(235,5,40,30,"Default"); 00544 bt_resetColor->callback(resetColor_cb); 00545 bt_resetColor->labelsize(11); 00546 bt_resetColor->box(BOX_TYPE2); 00547 00548 Fl_Button *bt_closeClsWin = new Fl_Button(285,5,30,30,"X"); 00549 bt_closeClsWin->box(BOX_TYPE); 00550 bt_closeClsWin->labelcolor(FL_RED); 00551 bt_closeClsWin->labeltype(BT_LABEL_TYPE); 00552 bt_closeClsWin->tooltip("Close this window"); 00553 bt_closeClsWin->callback(clsWinClose_cb); 00554 00555 cls_win->set_modal(); 00556 cls_win->end(); 00557 cls_win->show(); 00558 }
Here is the call graph for this function:
void colors_win_cb | ( | Fl_Widget * | , | |
void * | ||||
) |
Definition at line 560 of file csmusgen.cpp.
References colors_win().
00561 { 00562 colors_win(); 00563 }
Here is the call graph for this function:
void make_form | ( | ) |
Definition at line 565 of file csmusgen.cpp.
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, actDb_cb(), actDur_cb(), actGen_cb(), actInstr_cb(), actPitch_cb(), actVal, ADD_TOP, allParams, auto_ctp, BOX_TYPE, BOX_TYPE2, BOX_TYPE3, bt_calc_act, bt_clearScore, bt_enable_act, bt_enable_db, bt_enable_dur, bt_enable_instr, bt_enable_pch, bt_exit, bt_formula, BT_LABEL_TYPE, bt_resetCounter, BT_TXT_COLOR, BT_TXT_COLOR2, bt_writePrefs, check_value, clearsco_cb(), COLOR, COLOR2, COLOR3, COLOR_SEL, counterpointAct, counterpointDb, counterpointDur, counterpointInstr, counterpointPitch, ctpAct, ctpDb, ctpDur, ctpInstr, ctpPitch, CTRL_H, CTRL_H2, CTRL_L, CTRL_LABEL_COLOR, CTRL_T, CTRL_W, db_1, db_10, db_11, db_12, db_2, db_3, db_4, db_5, db_6, db_7, db_8, db_9, defact_cb(), dur_1, dur_10, dur_11, dur_12, dur_2, dur_3, dur_4, dur_5, dur_6, dur_7, dur_8, dur_9, err_lim_cb(), genFrame, H, HB, IN_TEXT_FONTS, 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, makeStartWin(), makeWinPath(), max_act, max_db, max_dur, max_instr, max_pch, mBar, MEMO, menuBar, min_act, min_db, min_dur, min_instr, min_pch, nserie, outMinMaxAct, outMinMaxDb, outMinMaxDur, outMinMaxInstr, outMinMaxPitch, outSerieAct, outSerieDb, outSerieDur, outSerieInstr, outSeriePitch, pch_1, pch_10, pch_11, pch_12, pch_2, pch_3, pch_4, pch_5, pch_6, pch_7, pch_8, pch_9, read_chk_start(), readPrefsColor(), resetCounter_cb(), seriesFrame, show_formula, solveFormula_cb(), SPACE, tot_pitchMax, tot_pitchMin, totDbMax, totDbMin, totDurMax, totDurMin, totInstrMax, totInstrMin, TXT_COLOR, TXT_COLOR2, TXT_SIZE, W, window, window_callback(), and writePrefs_cb().
Referenced by main().
00566 { 00567 readPrefsColor(); 00568 window = new Fl_Window(100,50,W,H,"csmusgen - Main window"); 00569 window->color(COLOR); 00570 // window->resizable(window); 00571 window->callback(window_callback); 00572 window->iconlabel("CSeriesIco.png"); 00573 00574 menuBar = new Fl_Menu_Bar(0,0,W,20); 00575 menuBar->menu(mBar); 00576 menuBar->box(BOX_TYPE2); 00577 menuBar->color(COLOR); 00578 menuBar->textcolor(TXT_COLOR2); 00579 menuBar->textsize(12); 00580 00581 seriesFrame = new Fl_Box(CTRL_L-2,CTRL_T-5+ADD_TOP,CTRL_W*12+5,CTRL_H*10-10); 00582 seriesFrame->box(FL_ENGRAVED_BOX); 00583 seriesFrame->align(FL_ALIGN_TOP); 00584 seriesFrame->color(COLOR3); 00585 seriesFrame->labelcolor(CTRL_LABEL_COLOR); 00586 00587 pch_1 = new Fl_Value_Input(CTRL_L,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00588 pch_1->textsize(TXT_SIZE); 00589 pch_1->box(BOX_TYPE3); 00590 pch_1->align(FL_ALIGN_TOP_LEFT); 00591 pch_1->color(COLOR3); 00592 pch_1->textcolor(TXT_COLOR); 00593 pch_1->selection_color(COLOR_SEL); 00594 pch_1->labelcolor(CTRL_LABEL_COLOR); 00595 pch_1->tooltip("pitch serie"); 00596 pch_1->cursor_color(TXT_COLOR2); 00597 pch_1->textfont(IN_TEXT_FONTS); 00598 00599 pch_2 = new Fl_Value_Input(CTRL_L+CTRL_W,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00600 pch_2->box(BOX_TYPE3); 00601 pch_2->textsize(TXT_SIZE); 00602 pch_2->color(COLOR3); 00603 pch_2->textcolor(TXT_COLOR); 00604 pch_2->selection_color(COLOR_SEL); 00605 pch_2->tooltip("pitch serie"); 00606 pch_2->cursor_color(TXT_COLOR2); 00607 pch_2->textfont(IN_TEXT_FONTS); 00608 00609 pch_3 = new Fl_Value_Input(CTRL_L+CTRL_W*2,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00610 pch_3->box(BOX_TYPE3); 00611 pch_3->textsize(TXT_SIZE); 00612 pch_3->color(COLOR3); 00613 pch_3->textcolor(TXT_COLOR); 00614 pch_3->selection_color(COLOR_SEL); 00615 pch_3->tooltip("pitch serie"); 00616 pch_3->cursor_color(TXT_COLOR2); 00617 pch_3->textfont(IN_TEXT_FONTS); 00618 00619 pch_4 = new Fl_Value_Input(CTRL_L+CTRL_W*3,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00620 pch_4->box(BOX_TYPE3); 00621 pch_4->textsize(TXT_SIZE); 00622 pch_4->color(COLOR3); 00623 pch_4->textcolor(TXT_COLOR); 00624 pch_4->selection_color(COLOR_SEL); 00625 pch_4->tooltip("pitch serie"); 00626 pch_4->cursor_color(TXT_COLOR2); 00627 pch_4->textfont(IN_TEXT_FONTS); 00628 00629 pch_5 = new Fl_Value_Input(CTRL_L+CTRL_W*4,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00630 pch_5->box(BOX_TYPE3); 00631 pch_5->textsize(TXT_SIZE); 00632 pch_5->color(COLOR3); 00633 pch_5->textcolor(TXT_COLOR); 00634 pch_5->selection_color(COLOR_SEL); 00635 pch_5->tooltip("pitch serie"); 00636 pch_5->cursor_color(TXT_COLOR2); 00637 pch_5->textfont(IN_TEXT_FONTS); 00638 00639 pch_6 = new Fl_Value_Input(CTRL_L+CTRL_W*5,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00640 pch_6->box(BOX_TYPE3); 00641 pch_6->textsize(TXT_SIZE); 00642 pch_6->color(COLOR3); 00643 pch_6->textcolor(TXT_COLOR); 00644 pch_6->selection_color(COLOR_SEL); 00645 pch_6->tooltip("pitch serie"); 00646 pch_6->cursor_color(TXT_COLOR2); 00647 pch_6->textfont(IN_TEXT_FONTS); 00648 00649 pch_7 = new Fl_Value_Input(CTRL_L+CTRL_W*6,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00650 pch_7->box(BOX_TYPE3); 00651 pch_7->textsize(TXT_SIZE); 00652 pch_7->color(COLOR3); 00653 pch_7->textcolor(TXT_COLOR); 00654 pch_7->selection_color(COLOR_SEL); 00655 pch_7->tooltip("pitch serie"); 00656 pch_7->cursor_color(TXT_COLOR2); 00657 pch_7->textfont(IN_TEXT_FONTS); 00658 00659 pch_8 = new Fl_Value_Input(CTRL_L+CTRL_W*7,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00660 pch_8->box(BOX_TYPE3); 00661 pch_8->textsize(TXT_SIZE); 00662 pch_8->color(COLOR3); 00663 pch_8->textcolor(TXT_COLOR); 00664 pch_8->selection_color(COLOR_SEL); 00665 pch_8->tooltip("pitch serie"); 00666 pch_8->cursor_color(TXT_COLOR2); 00667 pch_8->textfont(IN_TEXT_FONTS); 00668 00669 pch_9 = new Fl_Value_Input(CTRL_L+CTRL_W*8,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00670 pch_9->box(BOX_TYPE3); 00671 pch_9->textsize(TXT_SIZE); 00672 pch_9->color(COLOR3); 00673 pch_9->textcolor(TXT_COLOR); 00674 pch_9->selection_color(COLOR_SEL); 00675 pch_9->tooltip("pitch serie"); 00676 pch_9->cursor_color(TXT_COLOR2); 00677 pch_9->textfont(IN_TEXT_FONTS); 00678 00679 pch_10 = new Fl_Value_Input(CTRL_L+CTRL_W*9,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00680 pch_10->box(BOX_TYPE3); 00681 pch_10->textsize(TXT_SIZE); 00682 pch_10->color(COLOR3); 00683 pch_10->textcolor(TXT_COLOR); 00684 pch_10->selection_color(COLOR_SEL); 00685 pch_10->tooltip("pitch serie"); 00686 pch_10->cursor_color(TXT_COLOR2); 00687 pch_10->textfont(IN_TEXT_FONTS); 00688 00689 pch_11 = new Fl_Value_Input(CTRL_L+CTRL_W*10,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00690 pch_11->box(BOX_TYPE3); 00691 pch_11->textsize(TXT_SIZE); 00692 pch_11->color(COLOR3); 00693 pch_11->textcolor(TXT_COLOR); 00694 pch_11->selection_color(COLOR_SEL); 00695 pch_11->tooltip("pitch serie"); 00696 pch_11->cursor_color(TXT_COLOR2); 00697 pch_11->textfont(IN_TEXT_FONTS); 00698 00699 pch_12 = new Fl_Value_Input(CTRL_L+CTRL_W*11,CTRL_T+ADD_TOP,CTRL_W,CTRL_H); 00700 pch_12->box(BOX_TYPE3); 00701 pch_12->textsize(TXT_SIZE); 00702 pch_12->color(COLOR3); 00703 pch_12->textcolor(TXT_COLOR); 00704 pch_12->selection_color(COLOR_SEL); 00705 pch_12->tooltip("pitch serie"); 00706 pch_12->cursor_color(TXT_COLOR2); 00707 pch_12->textfont(IN_TEXT_FONTS); 00708 00709 counterpointPitch = new Fl_Choice(CTRL_L-90+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP,CTRL_W,CTRL_H,"Counterp."); 00710 counterpointPitch->menu(ctpPitch); 00711 counterpointPitch->color(COLOR2); 00712 counterpointPitch->box(BOX_TYPE2); 00713 counterpointPitch->textcolor(FL_DARK_BLUE); 00714 counterpointPitch->labelsize(11); 00715 counterpointPitch->labelcolor(TXT_COLOR2); 00716 counterpointPitch->align(FL_ALIGN_TOP_LEFT); 00717 00718 outSeriePitch = new Fl_Light_Button(CTRL_L-20+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP,HB,CTRL_H,"M"); 00719 outSeriePitch->box(FL_PLASTIC_UP_BOX); 00720 outSeriePitch->value(1); 00721 outSeriePitch->labelsize(11); 00722 outSeriePitch->selection_color(FL_GREEN); 00723 outSeriePitch->labelcolor(FL_RED); 00724 outSeriePitch->tooltip(MEMO); 00725 ///////////////////// 00726 00727 dur_1 = new Fl_Value_Input(CTRL_L,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00728 dur_1->box(BOX_TYPE3); 00729 dur_1->align(FL_ALIGN_TOP_LEFT); 00730 dur_1->textsize(TXT_SIZE); 00731 dur_1->color(COLOR3); 00732 dur_1->textcolor(TXT_COLOR); 00733 dur_1->selection_color(COLOR_SEL); 00734 dur_1->labelcolor(CTRL_LABEL_COLOR); 00735 dur_1->tooltip("dur serie"); 00736 dur_1->cursor_color(TXT_COLOR2); 00737 dur_1->callback(defact_cb); 00738 dur_1->textfont(IN_TEXT_FONTS); 00739 00740 dur_2 = new Fl_Value_Input(CTRL_L+CTRL_W,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00741 dur_2->box(BOX_TYPE3); 00742 dur_2->textsize(TXT_SIZE); 00743 dur_2->color(COLOR3); 00744 dur_2->textcolor(TXT_COLOR); 00745 dur_2->selection_color(COLOR_SEL); 00746 dur_2->tooltip("dur serie"); 00747 dur_2->cursor_color(TXT_COLOR2); 00748 dur_2->callback(defact_cb); 00749 dur_2->textfont(IN_TEXT_FONTS); 00750 00751 dur_3 = new Fl_Value_Input(CTRL_L+CTRL_W*2,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00752 dur_3->box(BOX_TYPE3); 00753 dur_3->textsize(TXT_SIZE); 00754 dur_3->color(COLOR3); 00755 dur_3->textcolor(TXT_COLOR); 00756 dur_3->selection_color(COLOR_SEL); 00757 dur_3->tooltip("dur serie"); 00758 dur_3->cursor_color(TXT_COLOR2); 00759 dur_3->callback(defact_cb); 00760 dur_3->textfont(IN_TEXT_FONTS); 00761 00762 dur_4 = new Fl_Value_Input(CTRL_L+CTRL_W*3,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00763 dur_4->box(BOX_TYPE3); 00764 dur_4->textsize(TXT_SIZE); 00765 dur_4->color(COLOR3); 00766 dur_4->textcolor(TXT_COLOR); 00767 dur_4->selection_color(COLOR_SEL); 00768 dur_4->tooltip("dur serie"); 00769 dur_4->cursor_color(TXT_COLOR2); 00770 dur_4->callback(defact_cb); 00771 dur_4->textfont(IN_TEXT_FONTS); 00772 00773 dur_5 = new Fl_Value_Input(CTRL_L+CTRL_W*4,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00774 dur_5->box(BOX_TYPE3); 00775 dur_5->textsize(TXT_SIZE); 00776 dur_5->color(COLOR3); 00777 dur_5->textcolor(TXT_COLOR); 00778 dur_5->selection_color(COLOR_SEL); 00779 dur_5->tooltip("dur serie"); 00780 dur_5->cursor_color(TXT_COLOR2); 00781 dur_5->callback(defact_cb); 00782 dur_5->textfont(IN_TEXT_FONTS); 00783 00784 dur_6 = new Fl_Value_Input(CTRL_L+CTRL_W*5,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00785 dur_6->box(BOX_TYPE3); 00786 dur_6->textsize(TXT_SIZE); 00787 dur_6->color(COLOR3); 00788 dur_6->textcolor(TXT_COLOR); 00789 dur_6->selection_color(COLOR_SEL); 00790 dur_6->tooltip("dur serie"); 00791 dur_6->cursor_color(TXT_COLOR2); 00792 dur_6->callback(defact_cb); 00793 dur_6->textfont(IN_TEXT_FONTS); 00794 00795 dur_7 = new Fl_Value_Input(CTRL_L+CTRL_W*6,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00796 dur_7->box(BOX_TYPE3); 00797 dur_7->textsize(TXT_SIZE); 00798 dur_7->color(COLOR3); 00799 dur_7->textcolor(TXT_COLOR); 00800 dur_7->selection_color(COLOR_SEL); 00801 dur_7->tooltip("dur serie"); 00802 dur_7->cursor_color(TXT_COLOR2); 00803 dur_7->callback(defact_cb); 00804 dur_7->textfont(IN_TEXT_FONTS); 00805 00806 dur_8 = new Fl_Value_Input(CTRL_L+CTRL_W*7,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00807 dur_8->box(BOX_TYPE3); 00808 dur_8->textsize(TXT_SIZE); 00809 dur_8->color(COLOR3); 00810 dur_8->textcolor(TXT_COLOR); 00811 dur_8->selection_color(COLOR_SEL); 00812 dur_8->tooltip("dur serie"); 00813 dur_8->cursor_color(TXT_COLOR2); 00814 dur_8->callback(defact_cb); 00815 dur_8->textfont(IN_TEXT_FONTS); 00816 00817 dur_9 = new Fl_Value_Input(CTRL_L+CTRL_W*8,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00818 dur_9->box(BOX_TYPE3); 00819 dur_9->textsize(TXT_SIZE); 00820 dur_9->color(COLOR3); 00821 dur_9->textcolor(TXT_COLOR); 00822 dur_9->selection_color(COLOR_SEL); 00823 dur_9->tooltip("dur serie"); 00824 dur_9->cursor_color(TXT_COLOR2); 00825 dur_9->callback(defact_cb); 00826 dur_9->textfont(IN_TEXT_FONTS); 00827 00828 dur_10 = new Fl_Value_Input(CTRL_L+CTRL_W*9,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00829 dur_10->box(BOX_TYPE3); 00830 dur_10->textsize(TXT_SIZE); 00831 dur_10->color(COLOR3); 00832 dur_10->textcolor(TXT_COLOR); 00833 dur_10->selection_color(COLOR_SEL); 00834 dur_10->tooltip("dur serie"); 00835 dur_10->cursor_color(TXT_COLOR2); 00836 dur_10->callback(defact_cb); 00837 dur_10->textfont(IN_TEXT_FONTS); 00838 00839 dur_11 = new Fl_Value_Input(CTRL_L+CTRL_W*10,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00840 dur_11->box(BOX_TYPE3); 00841 dur_11->textsize(TXT_SIZE); 00842 dur_11->color(COLOR3); 00843 dur_11->textcolor(TXT_COLOR); 00844 dur_11->selection_color(COLOR_SEL); 00845 dur_11->tooltip("dur serie"); 00846 dur_11->cursor_color(TXT_COLOR2); 00847 dur_11->callback(defact_cb); 00848 dur_11->textfont(IN_TEXT_FONTS); 00849 00850 dur_12 = new Fl_Value_Input(CTRL_L+CTRL_W*11,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H); 00851 dur_12->box(BOX_TYPE3); 00852 dur_12->textsize(TXT_SIZE); 00853 dur_12->color(COLOR3); 00854 dur_12->textcolor(TXT_COLOR); 00855 dur_12->selection_color(COLOR_SEL); 00856 dur_12->tooltip("dur serie"); 00857 dur_12->cursor_color(TXT_COLOR2); 00858 dur_12->textfont(IN_TEXT_FONTS); 00859 00860 counterpointDur = new Fl_Choice(CTRL_L-90+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP+CTRL_H+20,CTRL_W,CTRL_H,"Counterp."); 00861 counterpointDur->menu(ctpDur); 00862 counterpointDur->color(COLOR2); 00863 counterpointDur->box(BOX_TYPE2); 00864 counterpointDur->textcolor(FL_DARK_BLUE); 00865 counterpointDur->labelsize(11); 00866 counterpointDur->labelcolor(TXT_COLOR2); 00867 counterpointDur->align(FL_ALIGN_TOP_LEFT); 00868 00869 outSerieDur = new Fl_Light_Button(CTRL_L-20+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP+CTRL_H+20,HB,CTRL_H,"M"); 00870 outSerieDur->box(FL_PLASTIC_UP_BOX); 00871 outSerieDur->value(1); 00872 outSerieDur->labelsize(11); 00873 outSerieDur->selection_color(FL_GREEN); 00874 outSerieDur->labelcolor(FL_RED); 00875 outSerieDur->tooltip(MEMO); 00876 00877 /////////////// 00878 00879 db_1 = new Fl_Value_Input(CTRL_L,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00880 db_1->box(BOX_TYPE3); 00881 db_1->align(FL_ALIGN_TOP_LEFT); 00882 db_1->textsize(TXT_SIZE); 00883 db_1->color(COLOR3); 00884 db_1->textcolor(TXT_COLOR); 00885 db_1->selection_color(COLOR_SEL); 00886 db_1->labelcolor(CTRL_LABEL_COLOR); 00887 db_1->tooltip("db serie"); 00888 db_1->cursor_color(TXT_COLOR2); 00889 db_1->textfont(IN_TEXT_FONTS); 00890 00891 db_2 = new Fl_Value_Input(CTRL_L+CTRL_W,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00892 db_2->box(BOX_TYPE3); 00893 db_2->textsize(TXT_SIZE); 00894 db_2->color(COLOR3); 00895 db_2->textcolor(TXT_COLOR); 00896 db_2->selection_color(COLOR_SEL); 00897 db_2->tooltip("db serie"); 00898 db_2->cursor_color(TXT_COLOR2); 00899 db_2->textfont(IN_TEXT_FONTS); 00900 00901 db_3 = new Fl_Value_Input(CTRL_L+CTRL_W*2,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00902 db_3->box(BOX_TYPE3); 00903 db_3->textsize(TXT_SIZE); 00904 db_3->color(COLOR3); 00905 db_3->textcolor(TXT_COLOR); 00906 db_3->selection_color(COLOR_SEL); 00907 db_3->tooltip("db serie"); 00908 db_3->cursor_color(TXT_COLOR2); 00909 db_3->textfont(IN_TEXT_FONTS); 00910 00911 db_4 = new Fl_Value_Input(CTRL_L+CTRL_W*3,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00912 db_4->box(BOX_TYPE3); 00913 db_4->textsize(TXT_SIZE); 00914 db_4->color(COLOR3); 00915 db_4->textcolor(TXT_COLOR); 00916 db_4->selection_color(COLOR_SEL); 00917 db_4->tooltip("db serie"); 00918 db_4->cursor_color(TXT_COLOR2); 00919 db_4->textfont(IN_TEXT_FONTS); 00920 00921 db_5 = new Fl_Value_Input(CTRL_L+CTRL_W*4,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00922 db_5->box(BOX_TYPE3); 00923 db_5->textsize(TXT_SIZE); 00924 db_5->color(COLOR3); 00925 db_5->textcolor(TXT_COLOR); 00926 db_5->selection_color(COLOR_SEL); 00927 db_5->tooltip("db serie"); 00928 db_5->cursor_color(TXT_COLOR2); 00929 db_5->textfont(IN_TEXT_FONTS); 00930 00931 db_6 = new Fl_Value_Input(CTRL_L+CTRL_W*5,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00932 db_6->box(BOX_TYPE3); 00933 db_6->textsize(TXT_SIZE); 00934 db_6->color(COLOR3); 00935 db_6->textcolor(TXT_COLOR); 00936 db_6->selection_color(COLOR_SEL); 00937 db_6->tooltip("db serie"); 00938 db_6->cursor_color(TXT_COLOR2); 00939 db_6->textfont(IN_TEXT_FONTS); 00940 00941 db_7 = new Fl_Value_Input(CTRL_L+CTRL_W*6,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00942 db_7->box(BOX_TYPE3); 00943 db_7->textsize(TXT_SIZE); 00944 db_7->color(COLOR3); 00945 db_7->textcolor(TXT_COLOR); 00946 db_7->selection_color(COLOR_SEL); 00947 db_7->tooltip("db serie"); 00948 db_7->cursor_color(TXT_COLOR2); 00949 db_7->textfont(IN_TEXT_FONTS); 00950 00951 db_8 = new Fl_Value_Input(CTRL_L+CTRL_W*7,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00952 db_8->box(BOX_TYPE3); 00953 db_8->textsize(TXT_SIZE); 00954 db_8->color(COLOR3); 00955 db_8->textcolor(TXT_COLOR); 00956 db_8->selection_color(COLOR_SEL); 00957 db_8->tooltip("db serie"); 00958 db_8->cursor_color(TXT_COLOR2); 00959 db_8->textfont(IN_TEXT_FONTS); 00960 00961 db_9 = new Fl_Value_Input(CTRL_L+CTRL_W*8,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00962 db_9->box(BOX_TYPE3); 00963 db_9->textsize(TXT_SIZE); 00964 db_9->color(COLOR3); 00965 db_9->textcolor(TXT_COLOR); 00966 db_9->selection_color(COLOR_SEL); 00967 db_9->tooltip("db serie"); 00968 db_9->cursor_color(TXT_COLOR2); 00969 db_9->textfont(IN_TEXT_FONTS); 00970 00971 db_10 = new Fl_Value_Input(CTRL_L+CTRL_W*9,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00972 db_10->box(BOX_TYPE3); 00973 db_10->textsize(TXT_SIZE); 00974 db_10->color(COLOR3); 00975 db_10->textcolor(TXT_COLOR); 00976 db_10->selection_color(COLOR_SEL); 00977 db_10->tooltip("db serie"); 00978 db_10->cursor_color(TXT_COLOR2); 00979 db_10->textfont(IN_TEXT_FONTS); 00980 00981 db_11 = new Fl_Value_Input(CTRL_L+CTRL_W*10,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00982 db_11->box(BOX_TYPE3); 00983 db_11->textsize(TXT_SIZE); 00984 db_11->color(COLOR3); 00985 db_11->textcolor(TXT_COLOR); 00986 db_11->selection_color(COLOR_SEL); 00987 db_11->tooltip("db serie"); 00988 db_11->cursor_color(TXT_COLOR2); 00989 db_11->textfont(IN_TEXT_FONTS); 00990 00991 db_12 = new Fl_Value_Input(CTRL_L+CTRL_W*11,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H); 00992 db_12->box(BOX_TYPE3); 00993 db_12->textsize(TXT_SIZE); 00994 db_12->color(COLOR3); 00995 db_12->textcolor(TXT_COLOR); 00996 db_12->selection_color(COLOR_SEL); 00997 db_12->tooltip("db serie"); 00998 db_12->cursor_color(TXT_COLOR2); 00999 db_12->textfont(IN_TEXT_FONTS); 01000 01001 counterpointDb = new Fl_Choice(CTRL_L-90+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP+CTRL_H*3+20,CTRL_W,CTRL_H,"Counterp."); 01002 counterpointDb->menu(ctpDb); 01003 counterpointDb->color(COLOR2); 01004 counterpointDb->box(BOX_TYPE2); 01005 counterpointDb->textcolor(FL_DARK_BLUE); 01006 counterpointDb->labelsize(11); 01007 counterpointDb->labelcolor(TXT_COLOR2); 01008 counterpointDb->align(FL_ALIGN_TOP_LEFT); 01009 01010 outSerieDb = new Fl_Light_Button(CTRL_L-20+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP+CTRL_H*3+20,HB,CTRL_H,"M"); 01011 outSerieDb->box(FL_PLASTIC_UP_BOX); 01012 outSerieDb->value(1); 01013 outSerieDb->labelsize(11); 01014 outSerieDb->selection_color(FL_GREEN); 01015 outSerieDb->labelcolor(FL_RED); 01016 outSerieDb->tooltip(MEMO); 01017 01018 01019 //////////////////////////////// 01020 01021 instr_1 = new Fl_Value_Input(CTRL_L,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01022 instr_1->box(BOX_TYPE3); 01023 instr_1->align(FL_ALIGN_TOP_LEFT); 01024 instr_1->textsize(TXT_SIZE); 01025 instr_1->color(COLOR3); 01026 instr_1->textcolor(TXT_COLOR); 01027 instr_1->selection_color(COLOR_SEL); 01028 instr_1->labelcolor(CTRL_LABEL_COLOR); 01029 instr_1->tooltip("instr serie"); 01030 instr_1->cursor_color(TXT_COLOR2); 01031 instr_1->textfont(IN_TEXT_FONTS); 01032 01033 instr_2 = new Fl_Value_Input(CTRL_L+CTRL_W,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01034 instr_2->box(BOX_TYPE3); 01035 instr_2->textsize(TXT_SIZE); 01036 instr_2->color(COLOR3); 01037 instr_2->textcolor(TXT_COLOR); 01038 instr_2->selection_color(COLOR_SEL); 01039 instr_2->tooltip("instr serie"); 01040 instr_2->cursor_color(TXT_COLOR2); 01041 instr_2->textfont(IN_TEXT_FONTS); 01042 01043 instr_3 = new Fl_Value_Input(CTRL_L+CTRL_W*2,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01044 instr_3->box(BOX_TYPE3); 01045 instr_3->textsize(TXT_SIZE); 01046 instr_3->color(COLOR3); 01047 instr_3->textcolor(TXT_COLOR); 01048 instr_3->selection_color(COLOR_SEL); 01049 instr_3->tooltip("instr serie"); 01050 instr_3->cursor_color(TXT_COLOR2); 01051 instr_3->textfont(IN_TEXT_FONTS); 01052 01053 instr_4 = new Fl_Value_Input(CTRL_L+CTRL_W*3,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01054 instr_4->box(BOX_TYPE3); 01055 instr_4->textsize(TXT_SIZE); 01056 instr_4->color(COLOR3); 01057 instr_4->textcolor(TXT_COLOR); 01058 instr_4->selection_color(COLOR_SEL); 01059 instr_4->tooltip("instr serie"); 01060 instr_4->cursor_color(TXT_COLOR2); 01061 instr_4->textfont(IN_TEXT_FONTS); 01062 01063 instr_5 = new Fl_Value_Input(CTRL_L+CTRL_W*4,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01064 instr_5->box(BOX_TYPE3); 01065 instr_5->textsize(TXT_SIZE); 01066 instr_5->color(COLOR3); 01067 instr_5->textcolor(TXT_COLOR); 01068 instr_5->selection_color(COLOR_SEL); 01069 instr_5->tooltip("instr serie"); 01070 instr_5->cursor_color(TXT_COLOR2); 01071 instr_5->textfont(IN_TEXT_FONTS); 01072 01073 instr_6 = new Fl_Value_Input(CTRL_L+CTRL_W*5,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01074 instr_6->box(BOX_TYPE3); 01075 instr_6->textsize(TXT_SIZE); 01076 instr_6->color(COLOR3); 01077 instr_6->textcolor(TXT_COLOR); 01078 instr_6->selection_color(COLOR_SEL); 01079 instr_6->tooltip("instr serie"); 01080 instr_6->cursor_color(TXT_COLOR2); 01081 instr_6->textfont(IN_TEXT_FONTS); 01082 01083 instr_7 = new Fl_Value_Input(CTRL_L+CTRL_W*6,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01084 instr_7->box(BOX_TYPE3); 01085 instr_7->textsize(TXT_SIZE); 01086 instr_7->color(COLOR3); 01087 instr_7->textcolor(TXT_COLOR); 01088 instr_7->selection_color(COLOR_SEL); 01089 instr_7->tooltip("instr serie"); 01090 instr_7->cursor_color(TXT_COLOR2); 01091 instr_7->textfont(IN_TEXT_FONTS); 01092 01093 instr_8 = new Fl_Value_Input(CTRL_L+CTRL_W*7,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01094 instr_8->box(BOX_TYPE3); 01095 instr_8->textsize(TXT_SIZE); 01096 instr_8->color(COLOR3); 01097 instr_8->textcolor(TXT_COLOR); 01098 instr_8->selection_color(COLOR_SEL); 01099 instr_8->tooltip("instr serie"); 01100 instr_8->cursor_color(TXT_COLOR2); 01101 instr_8->textfont(IN_TEXT_FONTS); 01102 01103 instr_9 = new Fl_Value_Input(CTRL_L+CTRL_W*8,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01104 instr_9->box(BOX_TYPE3); 01105 instr_9->textsize(TXT_SIZE); 01106 instr_9->color(COLOR3); 01107 instr_9->textcolor(TXT_COLOR); 01108 instr_9->selection_color(COLOR_SEL); 01109 instr_9->tooltip("instr serie"); 01110 instr_9->cursor_color(TXT_COLOR2); 01111 instr_9->textfont(IN_TEXT_FONTS); 01112 01113 instr_10 = new Fl_Value_Input(CTRL_L+CTRL_W*9,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01114 instr_10->box(BOX_TYPE3); 01115 instr_10->textsize(TXT_SIZE); 01116 instr_10->color(COLOR3); 01117 instr_10->textcolor(TXT_COLOR); 01118 instr_10->selection_color(COLOR_SEL); 01119 instr_10->tooltip("instr serie"); 01120 instr_10->cursor_color(TXT_COLOR2); 01121 instr_10->textfont(IN_TEXT_FONTS); 01122 01123 instr_11 = new Fl_Value_Input(CTRL_L+CTRL_W*10,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01124 instr_11->box(BOX_TYPE3); 01125 instr_11->textsize(TXT_SIZE); 01126 instr_11->color(COLOR3); 01127 instr_11->textcolor(TXT_COLOR); 01128 instr_11->selection_color(COLOR_SEL); 01129 instr_11->tooltip("instr serie"); 01130 instr_11->cursor_color(TXT_COLOR2); 01131 instr_11->textfont(IN_TEXT_FONTS); 01132 01133 instr_12 = new Fl_Value_Input(CTRL_L+CTRL_W*11,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H); 01134 instr_12->box(BOX_TYPE3); 01135 instr_12->textsize(TXT_SIZE); 01136 instr_12->color(COLOR3); 01137 instr_12->textcolor(TXT_COLOR); 01138 instr_12->selection_color(COLOR_SEL); 01139 instr_12->tooltip("instr serie"); 01140 instr_12->cursor_color(TXT_COLOR2); 01141 instr_12->textfont(IN_TEXT_FONTS); 01142 01143 counterpointInstr = new Fl_Choice(CTRL_L-90+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP+CTRL_H*5+20,CTRL_W,CTRL_H,"Counterp."); 01144 counterpointInstr->menu(ctpInstr); 01145 counterpointInstr->color(COLOR2); 01146 counterpointInstr->box(BOX_TYPE2); 01147 counterpointInstr->textcolor(FL_DARK_BLUE); 01148 counterpointInstr->labelsize(11); 01149 counterpointInstr->labelcolor(TXT_COLOR2); 01150 counterpointInstr->align(FL_ALIGN_TOP_LEFT); 01151 01152 outSerieInstr = new Fl_Light_Button(CTRL_L-20+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP+CTRL_H*5+20,HB,CTRL_H,"M"); 01153 outSerieInstr->box(FL_PLASTIC_UP_BOX); 01154 outSerieInstr->value(1); 01155 outSerieInstr->labelsize(11); 01156 outSerieInstr->selection_color(FL_GREEN); 01157 outSerieInstr->labelcolor(FL_RED); 01158 outSerieInstr->tooltip(MEMO); 01159 01160 //////////////////////////////// 01161 01162 act_1 = new Fl_Value_Input(CTRL_L,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01163 act_1->box(BOX_TYPE3); 01164 act_1->align(FL_ALIGN_TOP_LEFT); 01165 act_1->textsize(TXT_SIZE); 01166 act_1->color(COLOR3); 01167 act_1->textcolor(TXT_COLOR); 01168 act_1->selection_color(COLOR_SEL); 01169 act_1->labelcolor(CTRL_LABEL_COLOR); 01170 act_1->tooltip("action time serie"); 01171 act_1->cursor_color(TXT_COLOR2); 01172 act_1->textfont(IN_TEXT_FONTS); 01173 act_1->callback(defact_cb); 01174 01175 act_2 = new Fl_Value_Input(CTRL_L+CTRL_W,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01176 act_2->box(BOX_TYPE3); 01177 act_2->textsize(TXT_SIZE); 01178 act_2->color(COLOR3); 01179 act_2->textcolor(TXT_COLOR); 01180 act_2->selection_color(COLOR_SEL); 01181 act_2->tooltip("action time serie"); 01182 act_2->cursor_color(TXT_COLOR2); 01183 act_2->textfont(IN_TEXT_FONTS); 01184 01185 act_3 = new Fl_Value_Input(CTRL_L+CTRL_W*2,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01186 act_3->box(BOX_TYPE3); 01187 act_3->textsize(TXT_SIZE); 01188 act_3->color(COLOR3); 01189 act_3->textcolor(TXT_COLOR); 01190 act_3->selection_color(COLOR_SEL); 01191 act_3->tooltip("action time serie"); 01192 act_3->cursor_color(TXT_COLOR2); 01193 act_3->textfont(IN_TEXT_FONTS); 01194 01195 act_4 = new Fl_Value_Input(CTRL_L+CTRL_W*3,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01196 act_4->box(BOX_TYPE3); 01197 act_4->textsize(TXT_SIZE); 01198 act_4->color(COLOR3); 01199 act_4->textcolor(TXT_COLOR); 01200 act_4->selection_color(COLOR_SEL); 01201 act_4->tooltip("action time serie"); 01202 act_4->cursor_color(TXT_COLOR2); 01203 act_4->textfont(IN_TEXT_FONTS); 01204 01205 act_5 = new Fl_Value_Input(CTRL_L+CTRL_W*4,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01206 act_5->box(BOX_TYPE3); 01207 act_5->textsize(TXT_SIZE); 01208 act_5->color(COLOR3); 01209 act_5->textcolor(TXT_COLOR); 01210 act_5->selection_color(COLOR_SEL); 01211 act_5->tooltip("action time serie"); 01212 act_5->cursor_color(TXT_COLOR2); 01213 act_5->textfont(IN_TEXT_FONTS); 01214 01215 act_6 = new Fl_Value_Input(CTRL_L+CTRL_W*5,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01216 act_6->box(BOX_TYPE3); 01217 act_6->textsize(TXT_SIZE); 01218 act_6->color(COLOR3); 01219 act_6->textcolor(TXT_COLOR); 01220 act_6->selection_color(COLOR_SEL); 01221 act_6->tooltip("action time serie"); 01222 act_6->cursor_color(TXT_COLOR2); 01223 act_6->textfont(IN_TEXT_FONTS); 01224 01225 act_7 = new Fl_Value_Input(CTRL_L+CTRL_W*6,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01226 act_7->box(BOX_TYPE3); 01227 act_7->textsize(TXT_SIZE); 01228 act_7->color(COLOR3); 01229 act_7->textcolor(TXT_COLOR); 01230 act_7->selection_color(COLOR_SEL); 01231 act_7->tooltip("action time serie"); 01232 act_7->cursor_color(TXT_COLOR2); 01233 act_7->textfont(IN_TEXT_FONTS); 01234 01235 act_8 = new Fl_Value_Input(CTRL_L+CTRL_W*7,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01236 act_8->box(BOX_TYPE3); 01237 act_8->textsize(TXT_SIZE); 01238 act_8->color(COLOR3); 01239 act_8->textcolor(TXT_COLOR); 01240 act_8->selection_color(COLOR_SEL); 01241 act_8->tooltip("action time serie"); 01242 act_8->cursor_color(TXT_COLOR2); 01243 act_8->textfont(IN_TEXT_FONTS); 01244 01245 act_9 = new Fl_Value_Input(CTRL_L+CTRL_W*8,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01246 act_9->box(BOX_TYPE3); 01247 act_9->textsize(TXT_SIZE); 01248 act_9->color(COLOR3); 01249 act_9->textcolor(TXT_COLOR); 01250 act_9->selection_color(COLOR_SEL); 01251 act_9->tooltip("action time serie"); 01252 act_9->cursor_color(TXT_COLOR2); 01253 act_9->textfont(IN_TEXT_FONTS); 01254 01255 act_10 = new Fl_Value_Input(CTRL_L+CTRL_W*9,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01256 act_10->box(BOX_TYPE3); 01257 act_10->textsize(TXT_SIZE); 01258 act_10->color(COLOR3); 01259 act_10->textcolor(TXT_COLOR); 01260 act_10->selection_color(COLOR_SEL); 01261 act_10->tooltip("action time serie"); 01262 act_10->cursor_color(TXT_COLOR2); 01263 act_10->textfont(IN_TEXT_FONTS); 01264 01265 act_11 = new Fl_Value_Input(CTRL_L+CTRL_W*10,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01266 act_11->box(BOX_TYPE3); 01267 act_11->textsize(TXT_SIZE); 01268 act_11->color(COLOR3); 01269 act_11->textcolor(TXT_COLOR); 01270 act_11->selection_color(COLOR_SEL); 01271 act_11->tooltip("action time serie"); 01272 act_11->cursor_color(TXT_COLOR2); 01273 act_11->textfont(IN_TEXT_FONTS); 01274 01275 act_12 = new Fl_Value_Input(CTRL_L+CTRL_W*11,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H); 01276 act_12->box(BOX_TYPE3); 01277 act_12->textsize(TXT_SIZE); 01278 act_12->color(COLOR3); 01279 act_12->textcolor(TXT_COLOR); 01280 act_12->selection_color(COLOR_SEL); 01281 act_12->tooltip("action time serie"); 01282 act_12->cursor_color(TXT_COLOR2); 01283 act_12->textfont(IN_TEXT_FONTS); 01284 01285 counterpointAct = new Fl_Choice(CTRL_L-90+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP+CTRL_H*7+20,CTRL_W,CTRL_H,"Counterp."); 01286 counterpointAct->menu(ctpAct); 01287 counterpointAct->color(COLOR2); 01288 counterpointAct->box(BOX_TYPE2); 01289 counterpointAct->textcolor(FL_DARK_BLUE); 01290 counterpointAct->labelsize(11); 01291 counterpointAct->labelcolor(TXT_COLOR2); 01292 counterpointAct->align(FL_ALIGN_TOP_LEFT); 01293 01294 outSerieAct = new Fl_Light_Button(CTRL_L-20+CTRL_W*12+CTRL_W*2+5,CTRL_T+ADD_TOP+CTRL_H*7+20,HB,CTRL_H,"M"); 01295 outSerieAct->box(FL_PLASTIC_UP_BOX); 01296 outSerieAct->value(1); 01297 outSerieAct->labelsize(11); 01298 outSerieAct->selection_color(FL_GREEN); 01299 outSerieAct->labelcolor(FL_RED); 01300 outSerieAct->tooltip(MEMO); 01301 01302 /////////////////////////////// 01303 01304 genFrame = new Fl_Box(CTRL_L,CTRL_T+(ADD_TOP-30)+235,CTRL_W*14+20,CTRL_H*7+5,"Series controls"); 01305 genFrame->box(FL_EMBOSSED_BOX); 01306 genFrame->align(FL_ALIGN_TOP_LEFT); 01307 genFrame->color(COLOR); 01308 genFrame->labelcolor(CTRL_LABEL_COLOR); 01309 01310 actVal = new Fl_Value_Input(CTRL_L+CTRL_W*13+15,CTRL_T+(ADD_TOP-30)+240,CTRL_W,CTRL_H,"act:"); 01311 actVal->box(BOX_TYPE2); 01312 actVal->textsize(TXT_SIZE); 01313 actVal->labelcolor(CTRL_LABEL_COLOR); 01314 actVal->callback(defact_cb); 01315 01316 in_w = new Fl_Value_Input(CTRL_L+CTRL_W*13+25,CTRL_T+(ADD_TOP-30)+275,CTRL_W-10,CTRL_H,"w = "); 01317 in_w->box(BOX_TYPE2); 01318 in_w->labelcolor(CTRL_LABEL_COLOR); 01319 in_w->value(.125); 01320 in_w->tooltip("w is a duration constant"); 01321 01322 in_x = new Fl_Value_Input(CTRL_L+CTRL_W*13+25,CTRL_T+(ADD_TOP-30)+300,CTRL_W-10,CTRL_H,"x = "); 01323 in_x->box(BOX_TYPE2); 01324 in_x->labelcolor(CTRL_LABEL_COLOR); 01325 in_x->value(.25); 01326 in_x->tooltip("x is a duration constant"); 01327 01328 in_y = new Fl_Value_Input(CTRL_L+CTRL_W*13+25,CTRL_T+(ADD_TOP-30)+325,CTRL_W-10,CTRL_H,"y = "); 01329 in_y->box(BOX_TYPE2); 01330 in_y->labelcolor(CTRL_LABEL_COLOR); 01331 in_y->value(.5); 01332 in_y->tooltip("y is a duration constant"); 01333 01334 in_z = new Fl_Value_Input(CTRL_L+CTRL_W*13+25,CTRL_T+(ADD_TOP-30)+350,CTRL_W-10,CTRL_H,"z = "); 01335 in_z->box(BOX_TYPE2); 01336 in_z->labelcolor(CTRL_LABEL_COLOR); 01337 in_z->value(1); 01338 in_z->tooltip("z is a duration constant"); 01339 01340 logic_a = new Fl_Value_Input(CTRL_L+5,CTRL_T+(ADD_TOP-30)+260,CTRL_W/2,CTRL_H,"Formula:"); 01341 logic_a->box(BOX_TYPE2); 01342 logic_a->align(FL_ALIGN_TOP_LEFT); 01343 logic_a->textsize(TXT_SIZE); 01344 logic_a->labelcolor(CTRL_LABEL_COLOR); 01345 01346 logic_b = new Fl_Value_Input(CTRL_L+5+CTRL_W/2,CTRL_T+(ADD_TOP-30)+260,CTRL_W/2,CTRL_H); 01347 logic_b->box(BOX_TYPE2); 01348 logic_b->textsize(TXT_SIZE); 01349 01350 logic_c = new Fl_Value_Input(CTRL_L+5+CTRL_W,CTRL_T+(ADD_TOP-30)+260,CTRL_W/2,CTRL_H); 01351 logic_c->box(BOX_TYPE2); 01352 logic_c->textsize(TXT_SIZE); 01353 01354 bt_formula = new Fl_Button(CTRL_L+5+CTRL_W+35,CTRL_T+(ADD_TOP-30)+260,CTRL_W,CTRL_H,"Enter"); 01355 bt_formula->box(BOX_TYPE); 01356 bt_formula->callback(solveFormula_cb); 01357 bt_formula->labelcolor(BT_TXT_COLOR2); 01358 01359 show_formula = new Fl_Output(CTRL_L+CTRL_W*3,CTRL_T+(ADD_TOP-30)+260,CTRL_W+5,CTRL_H); 01360 show_formula->box(BOX_TYPE2); 01361 show_formula->textsize(TXT_SIZE); 01362 show_formula->labelcolor(CTRL_LABEL_COLOR); 01363 show_formula->value("case n."); 01364 01365 auto_ctp = new Fl_Menu_Button(CTRL_L+15+CTRL_W*4,CTRL_T+(ADD_TOP-30)+260,CTRL_W*2,CTRL_H,"Write:"); 01366 auto_ctp->menu(allParams); 01367 auto_ctp->box(BOX_TYPE2); 01368 auto_ctp->color(COLOR2); 01369 auto_ctp->textcolor(FL_DARK_BLUE); 01370 auto_ctp->labelcolor(FL_DARK_BLUE); 01371 01372 //CTRL_L+5+CTRL_W*5+20 01373 nserie = new Fl_Value_Output(CTRL_L+5+CTRL_W*6+20,CTRL_T+(ADD_TOP-30)+260,CTRL_W,CTRL_H,"num. of series written:"); 01374 nserie->align(FL_ALIGN_TOP_LEFT); 01375 nserie->box(FL_PLASTIC_DOWN_BOX); 01376 nserie->textsize(TXT_SIZE); 01377 nserie->labelcolor(CTRL_LABEL_COLOR); 01378 nserie->color(FL_BLUE); 01379 01380 bt_resetCounter = new Fl_Button(CTRL_L+5+CTRL_W*6+75,CTRL_T+(ADD_TOP-30)+260,CTRL_W,CTRL_H,"reset"); 01381 bt_resetCounter->box(BOX_TYPE); 01382 bt_resetCounter->color(COLOR2); 01383 bt_resetCounter->callback(resetCounter_cb); 01384 01385 //bt_moreParams = new Fl_Light_Button(CTRL_L+5+CTRL_W*7+85,CTRL_T+(ADD_TOP-30)+260,CTRL_W,CTRL_H,""); 01386 01387 bt_clearScore = new Fl_Button(CTRL_L+25+CTRL_W*8+SPACE*15,CTRL_T+(ADD_TOP-30)+260,CTRL_W,CTRL_H2,"&CLEAR"); 01388 bt_clearScore->box(BOX_TYPE); 01389 bt_clearScore->color(COLOR2); 01390 bt_clearScore->callback(clearsco_cb); 01391 bt_clearScore->tooltip("delete all contents of the current score file"); 01392 bt_clearScore->labelcolor(BT_TXT_COLOR); 01393 bt_clearScore->labeltype(BT_LABEL_TYPE); 01394 01395 bt_enable_pch = new Fl_Light_Button(CTRL_L+5,CTRL_T+(ADD_TOP-40)+300,CTRL_W*2-10,CTRL_H,"Pitch generation"); 01396 bt_enable_pch->box(BOX_TYPE2); 01397 bt_enable_pch->color(COLOR2); 01398 bt_enable_pch->value(1); 01399 bt_enable_pch->labelcolor(FL_DARK_BLUE); 01400 bt_enable_pch->tooltip("Enable / disable generative functions for the pitch serie"); 01401 bt_enable_pch->labelsize(11); 01402 bt_enable_pch->callback(actPitch_cb); 01403 01404 outMinMaxPitch = new Fl_Light_Button(CTRL_L+5,CTRL_T+(ADD_TOP-15)+300,HB,CTRL_H,"M"); 01405 outMinMaxPitch->box(FL_PLASTIC_UP_BOX); 01406 outMinMaxPitch->value(1); 01407 outMinMaxPitch->labelsize(11); 01408 outMinMaxPitch->selection_color(FL_GREEN); 01409 outMinMaxPitch->labelcolor(FL_RED); 01410 outMinMaxPitch->tooltip("memorize the min and max pitch values"); 01411 01412 01413 bt_enable_dur = new Fl_Light_Button(CTRL_L+5+CTRL_W+40,CTRL_T+(ADD_TOP-40)+300,CTRL_W*2-10,CTRL_H,"Dur generation"); 01414 bt_enable_dur->box(BOX_TYPE2); 01415 bt_enable_dur->color(COLOR2); 01416 bt_enable_dur->value(1); 01417 bt_enable_dur->labelcolor(FL_DARK_BLUE); 01418 bt_enable_dur->tooltip("Enable / disable generative functions for the durations serie"); 01419 bt_enable_dur->labelsize(11); 01420 bt_enable_dur->callback(actDur_cb); 01421 01422 outMinMaxDur = new Fl_Light_Button(CTRL_L+5+CTRL_W*2+5,CTRL_T+(ADD_TOP-15)+300,HB,CTRL_H,"M"); 01423 outMinMaxDur->box(FL_PLASTIC_UP_BOX); 01424 outMinMaxDur->value(1); 01425 outMinMaxDur->labelsize(11); 01426 outMinMaxDur->selection_color(FL_GREEN); 01427 outMinMaxDur->labelcolor(FL_RED); 01428 outMinMaxDur->tooltip("memorize the min and max duration values"); 01429 01430 bt_enable_db = new Fl_Light_Button(CTRL_L+5+CTRL_W*3+30,CTRL_T+(ADD_TOP-40)+300,CTRL_W*2-10,CTRL_H,"dB generation"); 01431 bt_enable_db->box(BOX_TYPE2); 01432 bt_enable_db->color(COLOR2); 01433 bt_enable_db->labelcolor(FL_DARK_BLUE); 01434 bt_enable_db->value(1); 01435 bt_enable_db->tooltip("Enable / disable generative functions for the db serie"); 01436 bt_enable_db->labelsize(11); 01437 bt_enable_db->callback(actDb_cb); 01438 01439 outMinMaxDb = new Fl_Light_Button(CTRL_L+5+CTRL_W*4+10,CTRL_T+(ADD_TOP-15)+300,HB,CTRL_H,"M"); 01440 outMinMaxDb->box(FL_PLASTIC_UP_BOX); 01441 outMinMaxDb->value(1); 01442 outMinMaxDb->labelsize(11); 01443 outMinMaxDb->selection_color(FL_GREEN); 01444 outMinMaxDb->labelcolor(FL_RED); 01445 outMinMaxDb->tooltip("memorize the min and max dB values"); 01446 01447 bt_enable_instr = new Fl_Light_Button(CTRL_L+5+CTRL_W*5+20,CTRL_T+(ADD_TOP-40)+300,CTRL_W*2-10,CTRL_H,"Instr generation"); 01448 bt_enable_instr->box(BOX_TYPE2); 01449 bt_enable_instr->color(COLOR2); 01450 bt_enable_instr->labelcolor(FL_DARK_BLUE); 01451 bt_enable_instr->value(0); 01452 bt_enable_instr->labelsize(11); 01453 bt_enable_instr->tooltip("Enable / disable generative functions for the instr serie"); 01454 bt_enable_instr->callback(actInstr_cb); 01455 01456 outMinMaxInstr = new Fl_Light_Button(CTRL_L+5+CTRL_W*6+15,CTRL_T+(ADD_TOP-15)+300,HB,CTRL_H,"M"); 01457 outMinMaxInstr->box(FL_PLASTIC_UP_BOX); 01458 outMinMaxInstr->value(0); 01459 outMinMaxInstr->labelsize(11); 01460 outMinMaxInstr->selection_color(FL_GREEN); 01461 outMinMaxInstr->labelcolor(FL_RED); 01462 outMinMaxInstr->tooltip("memorize the min and max instr values"); 01463 01464 bt_enable_act = new Fl_Light_Button(CTRL_L+5+CTRL_W*7+10,CTRL_T+(ADD_TOP-40)+300,CTRL_W,CTRL_H,"En. act"); 01465 bt_enable_act->callback(actGen_cb); 01466 bt_enable_act->box(BOX_TYPE2); 01467 bt_enable_act->color(COLOR2); 01468 bt_enable_act->labelcolor(FL_DARK_BLUE); 01469 bt_enable_act->value(0); 01470 bt_enable_act->labelsize(11); 01471 bt_enable_act->tooltip("Enable / disable act serie"); 01472 01473 bt_calc_act = new Fl_Light_Button(CTRL_L+5+CTRL_W*8+10,CTRL_T+(ADD_TOP-40)+300,CTRL_W*2-5,CTRL_H,"Act generation"); 01474 bt_calc_act->box(BOX_TYPE2); 01475 bt_calc_act->color(COLOR2); 01476 bt_calc_act->value(0); 01477 bt_calc_act->labelcolor(FL_DARK_BLUE); 01478 bt_calc_act->tooltip("Enable / disable generative functions for the act serie"); 01479 bt_calc_act->labelsize(11); 01480 bt_calc_act->deactivate(); 01481 01482 outMinMaxAct = new Fl_Light_Button(CTRL_L+5+CTRL_W*8+20,CTRL_T+(ADD_TOP-15)+300,HB,CTRL_H,"M"); 01483 outMinMaxAct->box(FL_PLASTIC_UP_BOX); 01484 outMinMaxAct->value(0); 01485 outMinMaxAct->labelsize(11); 01486 outMinMaxAct->selection_color(FL_GREEN); 01487 outMinMaxAct->labelcolor(FL_RED); 01488 outMinMaxAct->tooltip("memorize the min and max act values"); 01489 01490 bt_writePrefs = new Fl_Button(CTRL_L+25+CTRL_W*8+SPACE*15,CTRL_T+(ADD_TOP-30)+300,CTRL_W,CTRL_H2,"SAVE"); 01491 bt_writePrefs->box(BOX_TYPE); 01492 bt_writePrefs->color(COLOR2); 01493 bt_writePrefs->value(0); 01494 bt_writePrefs->labelcolor(FL_GREEN); 01495 bt_writePrefs->labelsize(16); 01496 bt_writePrefs->labeltype(BT_LABEL_TYPE); 01497 bt_writePrefs->callback(writePrefs_cb); 01498 01499 bt_exit = new Fl_Button(CTRL_L+25+CTRL_W*8+SPACE*15,CTRL_T+(ADD_TOP-30)+340,CTRL_W,CTRL_H2,"EXIT"); 01500 bt_exit->box(BOX_TYPE); 01501 bt_exit->color(COLOR2); 01502 bt_exit->value(0); 01503 bt_exit->labelcolor(FL_RED); 01504 bt_exit->labelsize(16); 01505 bt_exit->labeltype(BT_LABEL_TYPE); 01506 bt_exit->callback(window_callback); 01507 01508 min_pch = new Fl_Choice(CTRL_L+5,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"Pitch min"); 01509 min_pch->menu(tot_pitchMin); 01510 min_pch->box(BOX_TYPE2); 01511 min_pch->align(FL_ALIGN_TOP_LEFT); 01512 min_pch->labelcolor(FL_YELLOW); 01513 min_pch->labelsize(11); 01514 min_pch->value(0); 01515 min_pch->color(COLOR3); 01516 min_pch->textcolor(TXT_COLOR); 01517 min_pch->textsize(11); 01518 min_pch->callback(err_lim_cb); 01519 min_pch->tooltip("Select the min value for the pitch series"); 01520 01521 max_pch = new Fl_Choice(CTRL_L+5+CTRL_W,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"Pitch max"); 01522 max_pch->menu(tot_pitchMax); 01523 max_pch->box(BOX_TYPE2); 01524 max_pch->align(FL_ALIGN_TOP_LEFT); 01525 max_pch->labelcolor(FL_YELLOW); 01526 max_pch->labelsize(11); 01527 max_pch->value(83); 01528 max_pch->color(COLOR3); 01529 max_pch->textcolor(TXT_COLOR); 01530 max_pch->textsize(11); 01531 max_pch->callback(err_lim_cb); 01532 max_pch->tooltip("Select the max value for the pitch series"); 01533 01534 min_dur = new Fl_Choice(CTRL_L+5+CTRL_W*2+5,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"Dur min"); 01535 min_dur->menu(totDurMin); 01536 min_dur->box(BOX_TYPE2); 01537 min_dur->align(FL_ALIGN_TOP_LEFT); 01538 min_dur->labelcolor(FL_YELLOW); 01539 min_dur->color(COLOR3); 01540 min_dur->labelsize(9); 01541 min_dur->textcolor(TXT_COLOR); 01542 min_dur->value(0); 01543 min_dur->textsize(10); 01544 min_dur->callback(err_lim_cb); 01545 min_dur->tooltip("Select the min value for the dur series"); 01546 01547 01548 max_dur = new Fl_Choice(CTRL_L+5+CTRL_W*3+5,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"Dur max"); 01549 max_dur->menu(totDurMax); 01550 max_dur->box(BOX_TYPE2); 01551 max_dur->align(FL_ALIGN_TOP_LEFT); 01552 max_dur->labelcolor(FL_YELLOW); 01553 max_dur->color(COLOR3); 01554 max_dur->labelsize(11); 01555 max_dur->textcolor(TXT_COLOR); 01556 max_dur->value(34); 01557 max_dur->textsize(11); 01558 max_dur->callback(err_lim_cb); 01559 max_dur->tooltip("Select the max value for the dur series"); 01560 01561 min_db = new Fl_Choice(CTRL_L+5+CTRL_W*4+10,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"Db min"); 01562 min_db->menu(totDbMin); 01563 min_db->box(BOX_TYPE2); 01564 min_db->align(FL_ALIGN_TOP_LEFT); 01565 min_db->labelcolor(FL_YELLOW); 01566 min_db->color(COLOR3); 01567 min_db->labelsize(11); 01568 min_db->textcolor(TXT_COLOR); 01569 min_db->value(0); 01570 min_db->textsize(11); 01571 min_db->callback(err_lim_cb); 01572 min_db->tooltip("Select the min value for the db series"); 01573 01574 max_db = new Fl_Choice(CTRL_L+5+CTRL_W*5+10,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"Db max"); 01575 max_db->menu(totDbMax); 01576 max_db->box(BOX_TYPE2); 01577 max_db->align(FL_ALIGN_TOP_LEFT); 01578 max_db->labelcolor(FL_YELLOW); 01579 max_db->color(COLOR3); 01580 max_db->labelsize(11); 01581 max_db->textcolor(TXT_COLOR); 01582 max_db->value(79); 01583 max_db->textsize(11); 01584 max_db->callback(err_lim_cb); 01585 max_db->tooltip("Select the max value for the db series"); 01586 01587 min_instr = new Fl_Choice(CTRL_L+5+CTRL_W*6+15,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"Instr min"); 01588 min_instr->menu(totInstrMin); 01589 min_instr->box(BOX_TYPE2); 01590 min_instr->align(FL_ALIGN_TOP_LEFT); 01591 min_instr->labelcolor(FL_YELLOW); 01592 min_instr->color(COLOR3); 01593 min_instr->labelsize(11); 01594 min_instr->textcolor(TXT_COLOR); 01595 min_instr->value(0); 01596 min_instr->textsize(11); 01597 min_instr->callback(err_lim_cb); 01598 min_instr->tooltip("Select the min value for the instr series"); 01599 01600 max_instr = new Fl_Choice(CTRL_L+5+CTRL_W*7+15,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"Instr max"); 01601 max_instr->menu(totInstrMax); 01602 max_instr->box(BOX_TYPE2); 01603 max_instr->align(FL_ALIGN_TOP_LEFT); 01604 max_instr->labelcolor(FL_YELLOW); 01605 max_instr->color(COLOR3); 01606 max_instr->labelsize(11); 01607 max_instr->textcolor(TXT_COLOR); 01608 max_instr->value(23); 01609 max_instr->textsize(11); 01610 max_instr->callback(err_lim_cb); 01611 max_instr->tooltip("Select the max value for the instr series"); 01612 01613 min_act = new Fl_Value_Input(CTRL_L+5+CTRL_W*8+20,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"act min"); 01614 min_act->align(FL_ALIGN_TOP_LEFT); 01615 min_act->labelcolor(FL_YELLOW); 01616 min_act->color(COLOR3); 01617 min_act->labelsize(11); 01618 min_act->textcolor(TXT_COLOR); 01619 min_act->value(0); 01620 min_act->textsize(11); 01621 min_act->tooltip("Select the min value for the act series.\nInsert values from 0 to up"); 01622 01623 01624 max_act = new Fl_Value_Input(CTRL_L+5+CTRL_W*9+20,CTRL_T+(ADD_TOP-30)+350,CTRL_W,CTRL_H,"act max"); 01625 max_act->align(FL_ALIGN_TOP_LEFT); 01626 max_act->labelcolor(FL_YELLOW); 01627 max_act->color(COLOR3); 01628 max_act->labelsize(11); 01629 max_act->textcolor(TXT_COLOR); 01630 max_act->value(1800); 01631 max_act->textsize(11); 01632 max_act->tooltip("Select the max value for the act series.\nInsert values from 18000 to down"); 01633 01634 window->end(); 01635 window->show(); 01636 makeWinPath(); 01637 01638 read_chk_start(); 01639 01640 if(check_value == 1) { 01641 makeStartWin(); 01642 } 01643 01644 }
Here is the call graph for this function:
int main | ( | ) |
Definition at line 1717 of file csmusgen.cpp.
References make_form().
01718 { 01719 make_form(); 01720 return Fl::run(); 01721 }
Here is the call graph for this function:
Fl_Menu_Bar* mBarHelp |
Definition at line 325 of file csmusgen.cpp.
Fl_Help_View* helpV |
Definition at line 326 of file csmusgen.cpp.
Referenced by fontsDec_cb(), fontsDef_cb(), fontsInc_cb(), and make_help_window().
Fl_Window* startWin |