void T1_ensure_t2_is_initialized(void){ if (ATOMIC_GET(g_use_t2_thread)==Use_T2_Thread::UNINITIALIZED){ if(SETTINGS_read_bool("opengl_draw_in_separate_process",true)) ATOMIC_SET(g_use_t2_thread, Use_T2_Thread::YES); else ATOMIC_SET(g_use_t2_thread, Use_T2_Thread::NO); } }
bool doRangePasteCut(void){ static bool has_inited = false; if (has_inited==false){ g_do_range_paste_cut = SETTINGS_read_bool("range_paste_cut", true); has_inited = true; } return g_do_range_paste_cut; }
bool doRangePasteScrollDown(void){ static bool has_inited = false; if (has_inited==false){ g_do_range_paste_scroll_down = SETTINGS_read_bool("range_paste_scroll_down", true); has_inited = true; } return g_do_range_paste_scroll_down; }
bool doAutoRepeat(void){ static bool has_inited = false; if (has_inited==false){ g_do_autorepeat = SETTINGS_read_bool("keyboard_autorepeat", false); has_inited = true; } return g_do_autorepeat; }
bool doScrollEditLines(void){ static bool has_inited = false; if (has_inited==false){ g_do_scroll_edit_lines = SETTINGS_read_bool("arrow_keys_scroll_edit_lines", false); has_inited = true; } return g_do_scroll_edit_lines; }
bool doScrollPlay(void){ static bool has_inited = false; if (has_inited==false){ g_scrollplay = SETTINGS_read_bool("scroll_play", true); has_inited = true; } return g_scrollplay; }
void setApplicationColors(QApplication *app){ EditorWidget *my_widget = root==NULL ? NULL : root->song==NULL ? NULL : static_cast<EditorWidget*>(root->song->tracker_windows->os_visual.widget); override_default_qt_colors = SETTINGS_read_bool("override_default_qt_colors",true); #if 1 static bool first_run = true; if(first_run==true){ sys_palette = QApplication::palette(); SETTINGS_write_bool("override_default_qt_colors",override_default_qt_colors); first_run=false; } #endif printf("here\n"); application = app; if(my_widget==NULL) updateApplication(my_widget,app); else updateAll(my_widget); }
bool PR_is_initing_vst_first(void){ return SETTINGS_read_bool("init_vst_first", false); }