// Constructor. synthv1widget_jack::synthv1widget_jack ( synthv1_jack *pSynth ) : synthv1widget(), m_pSynth(pSynth) #ifdef CONFIG_NSM , m_pNsmClient(NULL) #endif { // Special style paths... if (QDir(CONFIG_PLUGINSDIR).exists()) QApplication::addLibraryPath(CONFIG_PLUGINSDIR); // Custom style theme... synthv1_config *pConfig = synthv1_config::getInstance(); if (pConfig && !pConfig->sCustomStyleTheme.isEmpty()) QApplication::setStyle(QStyleFactory::create(pConfig->sCustomStyleTheme)); // Initialize (user) interface stuff... m_pSynthUi = new synthv1_ui(m_pSynth); // May initialize the scheduler/work notifier. initSchedNotifier(); // Initialize preset stuff... // initPreset(); updateParamValues(); }
synthv1widget_lv2::synthv1widget_lv2 ( synthv1_lv2 *pSynth, LV2UI_Controller controller, LV2UI_Write_Function write_function ) : synthv1widget() { m_pSynthUi = new synthv1_lv2ui(pSynth, controller, write_function); #ifdef CONFIG_LV2_EXTERNAL_UI m_external_host = NULL; #endif #ifdef CONFIG_LV2_UI_IDLE m_bIdleClosed = false; #endif for (uint32_t i = 0; i < synthv1::NUM_PARAMS; ++i) m_params_def[i] = true; // May initialize the scheduler/work notifier. initSchedNotifier(); clearPreset(); }
// Constructor. drumkv1widget_lv2::drumkv1widget_lv2 ( drumkv1_lv2 *pDrumk, LV2UI_Controller controller, LV2UI_Write_Function write_function ) : drumkv1widget() { m_pDrumkUi = new drumkv1_lv2ui(pDrumk, controller, write_function); #ifdef CONFIG_LV2_EXTERNAL_UI m_external_host = NULL; #endif #ifdef CONFIG_LV2_UI_IDLE m_bIdleClosed = false; #endif for (uint32_t i = 0; i < drumkv1::NUM_PARAMS; ++i) m_params_def[i] = true; // May initialize the scheduler/work notifier. initSchedNotifier(); // Initial update, always... refreshElements(); activateElement(); }