A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Theme Editor: Integrated target db with project creation code. Now changing the target option in the New Project dialog will change the available options for wps documents, and the target id is stored in the new config file

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27451 a1c6a512-1295-4272-9138-f99709370657

+49 -1
+1
utils/themeeditor/gui/editorwindow.cpp
··· 332 332 333 333 /* Generating the config file */ 334 334 QString config = tr("# Config file for ") + info.name + "\n"; 335 + config.append("#target: " + info.target + "\n\n"); 335 336 QString wpsBase = "/.rockbox/wps/"; 336 337 if(info.sbs) 337 338 config.append("sbs: " + wpsBase + info.name + ".sbs\n");
+42 -1
utils/themeeditor/gui/newprojectdialog.cpp
··· 49 49 { 50 50 ui->targetBox->insertItem(i, QIcon(), targets.name(i), targets.id(i)); 51 51 } 52 + targetChange(0); 52 53 53 - /* Connecting the browse button */ 54 + /* Connecting the browse button and target box */ 54 55 QObject::connect(ui->browseButton, SIGNAL(clicked()), 55 56 this, SLOT(browse())); 57 + QObject::connect(ui->targetBox, SIGNAL(currentIndexChanged(int)), 58 + this, SLOT(targetChange(int))); 56 59 } 57 60 58 61 NewProjectDialog::~NewProjectDialog() ··· 114 117 ui->locationBox->text()); 115 118 ui->locationBox->setText(path); 116 119 } 120 + 121 + void NewProjectDialog::targetChange(int target) 122 + { 123 + TargetData targets; 124 + 125 + if(targets.fm(target)) 126 + { 127 + ui->fmsBox->setEnabled(true); 128 + ui->rfmsBox->setEnabled(true); 129 + } 130 + else 131 + { 132 + ui->fmsBox->setChecked(false); 133 + ui->rfmsBox->setChecked(false); 134 + 135 + ui->fmsBox->setEnabled(false); 136 + ui->rfmsBox->setEnabled(false); 137 + } 138 + 139 + if(targets.remoteDepth(target) == TargetData::None) 140 + { 141 + ui->rwpsBox->setChecked(false); 142 + ui->rsbsBox->setChecked(false); 143 + ui->rfmsBox->setChecked(false); 144 + 145 + ui->rsbsBox->setEnabled(false); 146 + ui->rwpsBox->setEnabled(false); 147 + ui->rfmsBox->setEnabled(false); 148 + } 149 + else 150 + { 151 + ui->rsbsBox->setEnabled(true); 152 + ui->rwpsBox->setEnabled(true); 153 + if(targets.fm(target)) 154 + ui->rfmsBox->setEnabled(true); 155 + } 156 + 157 + }
+1
utils/themeeditor/gui/newprojectdialog.h
··· 88 88 89 89 private slots: 90 90 void browse(); 91 + void targetChange(int target); 91 92 92 93 private: 93 94 Ui::NewProjectDialog *ui;
+5
utils/themeeditor/models/targetdata.h
··· 47 47 48 48 QString id(int index){ return indices.key(index, ""); } 49 49 QString name(int index){ return entries[index].name; } 50 + QRect screenSize(int index){ return entries[index].size; } 51 + QRect remoteSize(int index){ return entries[index].rSize; } 52 + ScreenDepth screenDepth(int index){ return entries[index].depth; } 53 + ScreenDepth remoteDepth(int index){ return entries[index].rDepth; } 54 + bool fm(int index){ return entries[index].fm; } 50 55 51 56 private: 52 57 struct Entry