void FAUST_change_qtguistyle(const char *style_name){ QString filename = OS_get_full_program_file_path("packages/faust2/architecture/faust/gui/Styles/" + QString(getFaustGuiStyle()) + ".qss"); disk_t *disk = DISK_open_for_reading(filename); if (disk==NULL){ GFX_Message(NULL, "File not found (%s)", filename.toUtf8().constData()); } else { QString stylesheet = DISK_read_qstring_file(disk); if (DISK_close_and_delete(disk)==false) { GFX_Message(NULL, "Unable to read from %s", filename.toUtf8().constData()); stylesheet = ""; } if (stylesheet!="") g_qtgui_stylesheet = stylesheet; } if (g_qtgui_stylesheet != "") for(auto faustqdialog : g_faustqdialogs) faustqdialog->setStyleSheet(g_qtgui_stylesheet); }
void NewSong_CurrPos(struct Tracker_Windows *window){ //char temp[4098]; //sprintf(temp,"%s%s%s",OS_get_program_path(), OS_get_directory_separator(), "new_song.rad"); //Load_CurrPos_org(window,talloc_strdup(temp)); Load_CurrPos_org(window, OS_get_full_program_file_path(STRING_create("new_song.rad"))); GFX_SetWindowTitle(root->song->tracker_windows, STRING_create("Radium - New song.")); dc.filename=NULL; }