the massive preparations - settings and sysConf
This commit is contained in:
parent
35a2bb7a53
commit
e12bf82f49
12476
po/furnace.pot
12476
po/furnace.pot
File diff suppressed because it is too large
Load diff
12476
po/pt_BR.po
12476
po/pt_BR.po
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,7 @@ echo '"MIME-Version: 1.0\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
' >> po/furnace.pot
|
' >> po/furnace.pot
|
||||||
|
|
||||||
find src/ -type f -regex ".*\(cpp\|h\)$" | xargs xgettext --omit-header -k_ -k_N -L C++ -o - >> po/furnace.pot || exit 1
|
find src/ -type f -regex ".*\(cpp\|h\)$" | xargs xgettext --omit-header -k_ -k_N -L C++ --from-code=UTF-8 -j -o po/furnace.pot || exit 1
|
||||||
|
|
||||||
cd po
|
cd po
|
||||||
for i in ${EXPORT_LANGS[@]}; do
|
for i in ${EXPORT_LANGS[@]}; do
|
||||||
|
|
|
@ -29,23 +29,23 @@
|
||||||
#define FURNACE_FFT_CUTOFF 0.1
|
#define FURNACE_FFT_CUTOFF 0.1
|
||||||
|
|
||||||
const char* chanOscRefs[]={
|
const char* chanOscRefs[]={
|
||||||
"None (0%)",
|
_N("None (0%)"),
|
||||||
"None (50%)",
|
_N("None (50%)"),
|
||||||
"None (100%)",
|
_N("None (100%)"),
|
||||||
|
|
||||||
"Frequency",
|
_N("Frequency"),
|
||||||
"Volume",
|
_N("Volume"),
|
||||||
"Channel",
|
_N("Channel"),
|
||||||
"Brightness",
|
_N("Brightness"),
|
||||||
|
|
||||||
"Note Trigger"
|
_N("Note Trigger")
|
||||||
};
|
};
|
||||||
|
|
||||||
const char* autoColsTypes[]={
|
const char* autoColsTypes[]={
|
||||||
"Off",
|
_N("Off"),
|
||||||
"Mode 1",
|
_N("Mode 1"),
|
||||||
"Mode 2",
|
_N("Mode 2"),
|
||||||
"Mode 3"
|
_N("Mode 3")
|
||||||
};
|
};
|
||||||
|
|
||||||
static void _drawOsc(const ImDrawList* drawList, const ImDrawCmd* cmd) {
|
static void _drawOsc(const ImDrawList* drawList, const ImDrawCmd* cmd) {
|
||||||
|
@ -338,8 +338,8 @@ void FurnaceGUI::drawChanOsc() {
|
||||||
if (ImGui::ColorEdit4(_("Background"),(float*)&chanOscGrad.bgColor)) {
|
if (ImGui::ColorEdit4(_("Background"),(float*)&chanOscGrad.bgColor)) {
|
||||||
updateChanOscGradTex=true;
|
updateChanOscGradTex=true;
|
||||||
}
|
}
|
||||||
ImGui::Combo(_("X Axis##AxisX"),&chanOscColorX,chanOscRefs,GUI_OSCREF_MAX);
|
ImGui::Combo(_("X Axis##AxisX"),&chanOscColorX,LocalizedComboGetter,chanOscRefs,GUI_OSCREF_MAX);
|
||||||
ImGui::Combo(_("Y Axis##AxisY"),&chanOscColorY,chanOscRefs,GUI_OSCREF_MAX);
|
ImGui::Combo(_("Y Axis##AxisY"),&chanOscColorY,LocalizedComboGetter,chanOscRefs,GUI_OSCREF_MAX);
|
||||||
|
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
|
|
|
@ -601,7 +601,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::Text(_("Note"));
|
ImGui::Text(_("Note"));
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##NCondition",&i.noteMode,queryModes,GUI_QUERY_MAX);
|
ImGui::Combo("##NCondition",&i.noteMode,LocalizedComboGetter,queryModes,GUI_QUERY_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (FIRST_VISIBLE(i.noteMode)) {
|
if (FIRST_VISIBLE(i.noteMode)) {
|
||||||
if ((i.noteMode==GUI_QUERY_RANGE || i.noteMode==GUI_QUERY_RANGE_NOT) && i.note>=120) {
|
if ((i.noteMode==GUI_QUERY_RANGE || i.noteMode==GUI_QUERY_RANGE_NOT) && i.note>=120) {
|
||||||
|
@ -669,7 +669,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::Text(_("Ins"));
|
ImGui::Text(_("Ins"));
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##ICondition",&i.insMode,queryModes,GUI_QUERY_MAX);
|
ImGui::Combo("##ICondition",&i.insMode,LocalizedComboGetter,queryModes,GUI_QUERY_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (FIRST_VISIBLE(i.insMode)) {
|
if (FIRST_VISIBLE(i.insMode)) {
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
|
@ -687,7 +687,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::Text(_("Volume"));
|
ImGui::Text(_("Volume"));
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##VCondition",&i.volMode,queryModes,GUI_QUERY_MAX);
|
ImGui::Combo("##VCondition",&i.volMode,LocalizedComboGetter,queryModes,GUI_QUERY_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (FIRST_VISIBLE(i.volMode)) {
|
if (FIRST_VISIBLE(i.volMode)) {
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
|
@ -707,7 +707,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::Text(_("Effect"));
|
ImGui::Text(_("Effect"));
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##ECondition",&i.effectMode[j],queryModes,GUI_QUERY_MAX);
|
ImGui::Combo("##ECondition",&i.effectMode[j],LocalizedComboGetter,queryModes,GUI_QUERY_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (FIRST_VISIBLE(i.effectMode[j])) {
|
if (FIRST_VISIBLE(i.effectMode[j])) {
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
|
@ -725,7 +725,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::Text(_("Value"));
|
ImGui::Text(_("Value"));
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##EVCondition",&i.effectValMode[j],queryModes,GUI_QUERY_MAX);
|
ImGui::Combo("##EVCondition",&i.effectValMode[j],LocalizedComboGetter,queryModes,GUI_QUERY_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (FIRST_VISIBLE(i.effectValMode[j])) {
|
if (FIRST_VISIBLE(i.effectValMode[j])) {
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
|
@ -865,7 +865,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::BeginDisabled(!queryReplaceNoteDo);
|
ImGui::BeginDisabled(!queryReplaceNoteDo);
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##NRMode",&queryReplaceNoteMode,queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
ImGui::Combo("##NRMode",&queryReplaceNoteMode,LocalizedComboGetter,queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
if (queryReplaceNoteMode==GUI_QUERY_REPLACE_SET) {
|
if (queryReplaceNoteMode==GUI_QUERY_REPLACE_SET) {
|
||||||
|
@ -915,7 +915,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::BeginDisabled(!queryReplaceInsDo);
|
ImGui::BeginDisabled(!queryReplaceInsDo);
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##IRMode",&queryReplaceInsMode,queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
ImGui::Combo("##IRMode",&queryReplaceInsMode,LocalizedComboGetter,queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
if (queryReplaceInsMode==GUI_QUERY_REPLACE_SET) {
|
if (queryReplaceInsMode==GUI_QUERY_REPLACE_SET) {
|
||||||
|
@ -944,7 +944,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::BeginDisabled(!queryReplaceVolDo);
|
ImGui::BeginDisabled(!queryReplaceVolDo);
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##VRMode",&queryReplaceVolMode,queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
ImGui::Combo("##VRMode",&queryReplaceVolMode,LocalizedComboGetter,queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
if (queryReplaceVolMode==GUI_QUERY_REPLACE_SET) {
|
if (queryReplaceVolMode==GUI_QUERY_REPLACE_SET) {
|
||||||
|
@ -975,7 +975,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::BeginDisabled(!queryReplaceEffectDo[i]);
|
ImGui::BeginDisabled(!queryReplaceEffectDo[i]);
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##ERMode",&queryReplaceEffectMode[i],queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
ImGui::Combo("##ERMode",&queryReplaceEffectMode[i],LocalizedComboGetter,queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
if (queryReplaceEffectMode[i]==GUI_QUERY_REPLACE_SET) {
|
if (queryReplaceEffectMode[i]==GUI_QUERY_REPLACE_SET) {
|
||||||
|
@ -1004,7 +1004,7 @@ void FurnaceGUI::drawFindReplace() {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::BeginDisabled(!queryReplaceEffectValDo[i]);
|
ImGui::BeginDisabled(!queryReplaceEffectValDo[i]);
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##ERModeV",&queryReplaceEffectValMode[i],queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
ImGui::Combo("##ERModeV",&queryReplaceEffectValMode[i],LocalizedComboGetter,queryReplaceModes,GUI_QUERY_REPLACE_MAX);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
if (queryReplaceEffectValMode[i]==GUI_QUERY_REPLACE_SET) {
|
if (queryReplaceEffectValMode[i]==GUI_QUERY_REPLACE_SET) {
|
||||||
|
|
|
@ -515,6 +515,12 @@ bool FurnaceGUI::InvCheckbox(const char* label, bool* value) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FurnaceGUI::LocalizedComboGetter(void* data, int idx, const char** out_text) {
|
||||||
|
const char* const* items=(const char* const*)data;
|
||||||
|
if (out_text) *out_text=_(items[idx]);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void FurnaceGUI::sameLineMaybe(float width) {
|
void FurnaceGUI::sameLineMaybe(float width) {
|
||||||
if (width<0.0f) width=ImGui::GetFrameHeight();
|
if (width<0.0f) width=ImGui::GetFrameHeight();
|
||||||
|
|
||||||
|
|
|
@ -2674,6 +2674,9 @@ class FurnaceGUI {
|
||||||
void renderFMPreviewOPZ(const DivInstrumentFM& params, int pos=0);
|
void renderFMPreviewOPZ(const DivInstrumentFM& params, int pos=0);
|
||||||
void renderFMPreviewESFM(const DivInstrumentFM& params, const DivInstrumentESFM& esfmParams, int pos=0);
|
void renderFMPreviewESFM(const DivInstrumentFM& params, const DivInstrumentESFM& esfmParams, int pos=0);
|
||||||
|
|
||||||
|
// combo with locale
|
||||||
|
static bool LocalizedComboGetter(void* data, int idx, const char** out_text);
|
||||||
|
|
||||||
// these ones offer ctrl-wheel fine value changes.
|
// these ones offer ctrl-wheel fine value changes.
|
||||||
bool CWSliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format=NULL, ImGuiSliderFlags flags=0);
|
bool CWSliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format=NULL, ImGuiSliderFlags flags=0);
|
||||||
bool CWVSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format=NULL, ImGuiSliderFlags flags=0);
|
bool CWVSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format=NULL, ImGuiSliderFlags flags=0);
|
||||||
|
|
|
@ -5643,7 +5643,7 @@ void FurnaceGUI::drawInsEdit() {
|
||||||
}
|
}
|
||||||
int cmd=ins->gb.hwSeq[i].cmd;
|
int cmd=ins->gb.hwSeq[i].cmd;
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
if (ImGui::Combo("##HWSeqCmd",&cmd,gbHWSeqCmdTypes,DivInstrumentGB::DIV_GB_HWCMD_MAX)) {
|
if (ImGui::Combo("##HWSeqCmd",&cmd,LocalizedComboGetter,gbHWSeqCmdTypes,DivInstrumentGB::DIV_GB_HWCMD_MAX)) {
|
||||||
if (ins->gb.hwSeq[i].cmd!=cmd) {
|
if (ins->gb.hwSeq[i].cmd!=cmd) {
|
||||||
ins->gb.hwSeq[i].cmd=cmd;
|
ins->gb.hwSeq[i].cmd=cmd;
|
||||||
ins->gb.hwSeq[i].data=0;
|
ins->gb.hwSeq[i].data=0;
|
||||||
|
@ -5976,7 +5976,7 @@ void FurnaceGUI::drawInsEdit() {
|
||||||
}
|
}
|
||||||
int cmd=ins->su.hwSeq[i].cmd;
|
int cmd=ins->su.hwSeq[i].cmd;
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
if (ImGui::Combo("##HWSeqCmd",&cmd,suHWSeqCmdTypes,DivInstrumentSoundUnit::DIV_SU_HWCMD_MAX)) {
|
if (ImGui::Combo("##HWSeqCmd",&cmd,LocalizedComboGetter,suHWSeqCmdTypes,DivInstrumentSoundUnit::DIV_SU_HWCMD_MAX)) {
|
||||||
if (ins->su.hwSeq[i].cmd!=cmd) {
|
if (ins->su.hwSeq[i].cmd!=cmd) {
|
||||||
ins->su.hwSeq[i].cmd=cmd;
|
ins->su.hwSeq[i].cmd=cmd;
|
||||||
ins->su.hwSeq[i].val=0;
|
ins->su.hwSeq[i].val=0;
|
||||||
|
|
|
@ -50,7 +50,7 @@ void FurnaceGUI::drawLog() {
|
||||||
ImGui::Text(_("Level"));
|
ImGui::Text(_("Level"));
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||||
ImGui::Combo("##LogLevel",&logLevel,logLevels,5);
|
ImGui::Combo("##LogLevel",&logLevel,LocalizedComboGetter,logLevels,5);
|
||||||
if (ImGui::BeginTable("LogView",3,ImGuiTableFlags_ScrollY|ImGuiTableFlags_BordersInnerV)) {
|
if (ImGui::BeginTable("LogView",3,ImGuiTableFlags_ScrollY|ImGuiTableFlags_BordersInnerV)) {
|
||||||
ImGui::PushFont(patFont);
|
ImGui::PushFont(patFont);
|
||||||
|
|
||||||
|
|
|
@ -953,7 +953,7 @@ void FurnaceGUI::drawSampleEdit() {
|
||||||
if (resampleTarget<0) resampleTarget=0;
|
if (resampleTarget<0) resampleTarget=0;
|
||||||
if (resampleTarget>96000) resampleTarget=96000;
|
if (resampleTarget>96000) resampleTarget=96000;
|
||||||
}
|
}
|
||||||
ImGui::Combo(_("Filter"),&resampleStrat,resampleStrats,6);
|
ImGui::Combo(_("Filter"),&resampleStrat,LocalizedComboGetter,resampleStrats,6);
|
||||||
if (ImGui::Button(_("Resample"))) {
|
if (ImGui::Button(_("Resample"))) {
|
||||||
sample->prepareUndo(true);
|
sample->prepareUndo(true);
|
||||||
e->lockEngine([this,sample,targetRate]() {
|
e->lockEngine([this,sample,targetRate]() {
|
||||||
|
|
1992
src/gui/settings.cpp
1992
src/gui/settings.cpp
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -506,8 +506,6 @@ int main(int argc, char** argv) {
|
||||||
} else {
|
} else {
|
||||||
logV("text domain 2: %s",localeRet);
|
logV("text domain 2: %s",localeRet);
|
||||||
}
|
}
|
||||||
|
|
||||||
logV(_("this is a test!"));
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
initParams();
|
initParams();
|
||||||
|
|
Loading…
Reference in a new issue