void ParametricMode::create_objects() { add_item(new BC_MenuItem(mode_to_text(ParametricBand::LOWPASS))); add_item(new BC_MenuItem(mode_to_text(ParametricBand::HIGHPASS))); add_item(new BC_MenuItem(mode_to_text(ParametricBand::BANDPASS))); add_item(new BC_MenuItem(mode_to_text(ParametricBand::NONE))); }
int ParametricMode::text_to_mode(char *text) { if(!strcmp(mode_to_text(ParametricBand::LOWPASS), text)) return ParametricBand::LOWPASS; if(!strcmp(mode_to_text(ParametricBand::HIGHPASS), text)) return ParametricBand::HIGHPASS; if(!strcmp(mode_to_text(ParametricBand::BANDPASS), text)) return ParametricBand::BANDPASS; if(!strcmp(mode_to_text(ParametricBand::NONE), text)) return ParametricBand::NONE; return ParametricBand::BANDPASS; }
int Batch::text_to_mode(char *text) { if(!strcasecmp(mode_to_text(RECORD_INFINITE), text)) return RECORD_INFINITE; if(!strcasecmp(mode_to_text(RECORD_TIMED), text)) return RECORD_TIMED; // if(!strcasecmp(mode_to_text(RECORD_LOOP), text)) return RECORD_LOOP; // if(!strcasecmp(mode_to_text(RECORD_SCENETOSCENE), text)) return RECORD_SCENETOSCENE; return RECORD_INFINITE; }
ParametricMode::ParametricMode(ParametricEQ *plugin, int x, int y, int band) : BC_PopupMenu(x, y, 150, mode_to_text(plugin->config.band[band].mode)) { //printf("ParametricMode::ParametricMode %d %d\n", band, plugin->config.band[band].mode); this->plugin = plugin; this->band = band; }
int VModePatch::create_objects() { add_item(new VModePatchItem(this, mode_to_text(TRANSFER_NORMAL), TRANSFER_NORMAL)); add_item(new VModePatchItem(this, mode_to_text(TRANSFER_ADDITION), TRANSFER_ADDITION)); add_item(new VModePatchItem(this, mode_to_text(TRANSFER_SUBTRACT), TRANSFER_SUBTRACT)); add_item(new VModePatchItem(this, mode_to_text(TRANSFER_MULTIPLY), TRANSFER_MULTIPLY)); add_item(new VModePatchItem(this, mode_to_text(TRANSFER_DIVIDE), TRANSFER_DIVIDE)); add_item(new VModePatchItem(this, mode_to_text(TRANSFER_REPLACE), TRANSFER_REPLACE)); add_item(new VModePatchItem(this, mode_to_text(TRANSFER_MAX), TRANSFER_MAX)); return 0; }