Просмотр исходного кода

Missing files window: plugin/found page hints; UI windows inventory (FL forms vs LYNX)

Ka1-S 1 месяц назад
Родитель
Сommit
1f2a6ab659
4 измененных файлов с 168 добавлено и 8 удалено
  1. 140 0
      docs/analise/UI_windows_inventory.md
  2. 2 0
      resources/i18n/pt-BR.txt
  3. 13 1
      src/ui/I18nData.h
  4. 13 7
      src/ui/MissingFilesDialog.cpp

+ 140 - 0
docs/analise/UI_windows_inventory.md

@@ -0,0 +1,140 @@
+# UI windows inventory: FL Studio 2026 vs LYNX (round 81)
+
+What windows and dialogs FL Studio 2026 has, and where LYNX stands on each. Purpose: a queue of windows still to
+build, in priority order (bottom of this file). Clean-room: only window names, labels and the behaviour a user sees
+are used; no artwork, no layouts copied pixel for pixel.
+
+## Sources
+
+- [DATA] The Delphi form resources (RT_RCDATA, `TPF0` streams) of `FLEngine_x64.dll` (FL Studio 2026, 22 227 016
+  bytes), listed with REA `inspect_pe_resources` (327 resources, 128 RCDATA, 108 of them forms) and read with a small
+  binary-DFM reader written for this round (`tmp/r81/py/dfm.py`: component tree, `Caption`/`Hint`/`Items` only).
+  Window titles below are the forms' `Caption`s.
+- [DATA] UTF-16/ANSI strings of the same DLL for messages that are not in a form (missing samples/plugins).
+- [DOC] FL Studio's manual (general knowledge of the menus that open each window).
+- Native-UI capture of FL itself was not needed for this inventory (the forms list is complete for FLEngine; plugin
+  windows live in the plugin DLLs and are covered by the REA plugin rounds).
+
+FL's forms that are not user-facing windows were left out: `TFLBaseVectorForm`, `TMEBaseModalForm`,
+`TPRBaseToolForm`, `TDragDockObjectForm`, `TQuickDockForm`, `TQuickPopupMenuWindow`, `TQuickEditToolbarContainer`,
+`TMEResModule`, `TShortcutsModule`, `TTestForm`, `TTutorialHighlightForm`, `TNotificationForm`, `TBridgedEditorForm`.
+Licensing / shop / cloud forms (`TUnlockForm`, `TSharewareForm`, `TRedeemCodeForm`, `TInAppShopForm`,
+`TCloudAccountsForm`, `TWelcomeUnlockForm`, `TWelcomeGDPRForm`, Settings › Account) have no LYNX equivalent by design.
+
+Status: **exists** = LYNX has a window that does the job; **partial** = part of it exists (often as a menu, not a
+window); **missing** = nothing yet; **n/a** = not applicable to LYNX.
+
+## Main windows
+
+| FL form (Caption) | What it is | LYNX | Notes |
+|---|---|---|---|
+| TFruityLoopsMainForm "FL Studio" | main window, menus, toolbar | exists | MainComponent + Workspace |
+| TStepSeqForm "Channel rack" | channel rack | exists | ChannelRackComponent |
+| (piano roll form in FLEngine code) | piano roll | exists | PianoRollComponent |
+| (playlist) | playlist | exists | PlaylistComponent (other agents own clips/menus) |
+| TFXForm | mixer | exists | MixerComponent |
+| TBrowserForm "FL Studio Browser", TSampleListForm "Browser" | browser | exists | BrowserComponent |
+| TPluginForm | plugin wrapper window | exists | PluginWindow (+ LYNX's own editors) |
+| TFLHintBarForm | hint bar | exists | HintBar |
+| TToolbarForm / TTouchKeybForm "Touch keyboard" | on-screen keyboard | missing | typing keyboard as piano exists, no on-screen keys |
+| TPythonForm "Script output" | Python scripting console | n/a | LYNX has no scripting |
+| TPluginMonitorForm "Plugin performance monitor" | CPU per plugin | missing | |
+| TGraphEditorForm | event graph (channel/mixer automation editor) | partial | automation clip editor (AutomationUi) |
+
+## Settings ("Settings" = TMIDIForm, one window with pages)
+
+| Page | Content in FL | LYNX | Notes |
+|---|---|---|---|
+| Audio | device, sample rate, buffer, resampling quality, preview/metronome track, CPU options | partial | JUCE device selector dialog (Options › Audio settings); no mixer/CPU options |
+| MIDI | input/output devices, controller type, ports, sync, velocity curves | missing | every MIDI input is enabled and plays the selected channel |
+| General | GUI scaling, animations, startup project/template, splash, undo levels, language, note names | partial | spread over the Options menu (splash, startup sound, language, toolbar, UI scale) |
+| File | browser extra search folders, plugin folders, backup (autosave), user data folder | partial | browser folders (Browser › Add folder), plugin folders (setup wizard), autosave folder (menu) - no single page |
+| Project | time settings (PPQ, beats per bar, steps per beat), data folder, pan law, playlist crossfades | missing | tempo/time signature only from the toolbar and markers |
+| Info | title, author, genre, web link, comments, working time | missing | FL's title/artist/genre/url are already parsed from .flp (flp::Project) but not kept |
+| About | version, license | exists | About LYNX |
+| Theme | theme selector | n/a | one LYNX theme |
+| Debug | debug log | n/a | |
+
+## Dialogs and tool windows
+
+| FL form (Caption) | LYNX | Notes |
+|---|---|---|
+| TMissingPluginsForm + "%d sample(s) required by this project could not be located." | **exists (round 81)** | Missing files window: samples (search folder, locate, skip, remembered folders), plugins with replacements, auto-relocated list |
+| TInfoForm "Song info" (shown on opening) | missing | see Settings › Info |
+| TNewProjForm "New project" (PPQ, time signature, name/location, info) | partial | File › New + templates menu; no dialog |
+| TProjectRenameForm "Rename project" | missing | |
+| TRenderForm / TWAVRenderForm "WAV rendering" | exists | Export dialog: WAV 16/24/32f, FLAC, OGG, sample rate, tail, stems |
+| TMEMP3OptionsForm "MP3 export" | missing | no MP3 encoder |
+| TMEOggOptionsForm "Ogg Vorbis export" | partial | OGG export, no quality options |
+| TExportScoreForm "Export as score sheet" | missing | |
+| TMIDIImportForm "Import MIDI data" | partial | .mid opens as a project / into a channel, no options dialog |
+| TDWPRenderForm "DirectWave Instrument rendering" | n/a | |
+| TShortcutForm / TShortcutEditorForm "Manage shortcuts" | partial | keys.json edited by hand (Options menu) |
+| TPaletteEditorForm "Palette editor" | missing | fixed LYNX palette |
+| TThemeEditorForm "Theme selector" | n/a | |
+| TTapTempoForm "Tempo tapper" | exists | tempo menu › Tap tempo |
+| TAddMarkerSettingsForm "Marker settings" | partial | add/rename marker menu items |
+| TPRTimeSigForm "Time signature change" | partial | playlist signature menu |
+| TPLClipPropForm "Clip properties" | missing | (playlist is another agent's area) |
+| TPLMergeArrangementForm "Merge arrangement" | missing | arrangements exist |
+| TPRNotePropForm "Note properties" | exists | Note inspector in the Piano Roll |
+| TEventEditForm "Piano roll - " (event editor) | missing | automation editor covers automation clips only |
+| TEnvMapForm "Mapping" (velocity/controller curves) | missing | |
+| TParamCtrlForm (link to controller) | exists | "Link to MIDI controller" |
+| TMIDIInputForm "Remote control settings", TMIDIInputForm_Generic "Global link settings" | partial | MIDI learn exists, no settings dialog |
+| TPlugListForm / TPluginListForm (plugin picker / database) | partial | quick-add palette + scan; no plugin manager window |
+| (Plugin Manager is a separate FL app) | missing | scan folders, list, errors, favourites |
+| TLargePluginDataForm | n/a | |
+| TNameEditForm (rename/colour) | exists | Rename and color dialog |
+| TMsgForm / TFLMsgForm / TFLBasePluginsMsgDlg | exists | LYNX alert windows |
+| TWelcomeWizard "Welcome to FL Studio" | exists | Setup wizard (language, audio, plugin folders) |
+| TSpeechForm "Speech properties" | missing | speech synthesis: low value |
+| TDemucsForm, TDeverbForm | missing | stem separation / de-reverb: large DSP projects |
+| TScriptDialog "Configure script" | n/a | |
+| (undo history in the Browser) | exists | Undo history window |
+
+### Piano roll tools (TPR* forms)
+
+| FL form (Caption) | LYNX | Notes |
+|---|---|---|
+| TPRQuantizeForm "Piano roll - quantizer" | partial | quantise starts / starts and lengths (menu), no dialog with strength/swing |
+| TPRSliceForm "Piano roll - chopper" | partial | "Chop to grid" |
+| TPRArpForm "Piano roll - arpeggiator" | exists | Arpeggiate tool |
+| TPRStrumForm "Piano roll - strumizer" | exists | Strum tool |
+| TPRFlipForm "Piano roll - score flipper" | exists | Flip tool |
+| TPRRandomForm "Piano roll - randomizer" | exists | Randomise tool |
+| TPRLevelScaleForm "Piano roll - level scaling" | exists | Scale levels tool |
+| TPRKeyLimitForm "Piano roll - limiter / transposer" | exists | Limit tool |
+| TPRLegatoForm "Piano roll - articulator" | partial | "Make legato" |
+| TPRFlamForm "Piano roll - flamer" | missing | |
+| TPRLFOForm "Piano roll - LFO" | missing | |
+| TPRTripletForm "Piano roll - claw machine" | missing | |
+| TPRScoreCreatorForm "Piano roll - riff machine" | missing | |
+| TPRChordToolForm "Piano roll - generate chord progression" | missing | |
+| TPRFillForm "Advanced fill" | partial | fill every N steps, Euclidean fill |
+
+### Edison / audio editor tools (TME* forms)
+
+Amp, Blur, Claw machine, Decimate, Clean up (denoise), Drum(loop) stretcher, Filter, Equalizer, Convert to
+automation, Loop tuner, Convolution reverb, Level scaling, Smooth up, Time stretcher / pitch shifter, Vocal
+denoiser, Sample properties: **missing** (LYNX has no audio editor; channel sampler settings cover reverse,
+normalise, region and stretch). These belong to an "Audio editor" feature, not to single windows.
+
+## Queue (not done in round 81), priority order
+
+1. **Settings window** with pages, starting with *Project* (tempo, time signature, swing, PPQ shown) and *Info*
+   (title, author, genre, web link, comments - kept in .lynx, imported from .flp), then *File* (search folders of
+   the missing-files window, Browser folders, plugin folders, autosave folder) and *General* (moves the scattered
+   Options items into one page).
+2. **Plugin manager**: scanned plugins (name, vendor, format, path, status), scan folders, rescan, failed plugins.
+3. **Event editor** for a channel's or insert's parameter events (FL's TEventEditForm), next to automation clips.
+4. **MIDI settings** page: inputs on/off, which channel each input plays, output/sync.
+5. Piano roll tools still missing: quantizer dialog (strength, swing, start/end), chopper dialog, flamer, LFO,
+   articulator dialog, claw machine, riff machine, chord progression.
+6. **Shortcut manager** (a GUI over keys.json).
+7. **Touch keyboard** window.
+8. **Clip properties**, **Merge arrangement** (after the Playlist work of the other agents lands).
+9. **Plugin performance monitor**.
+10. Export options: MP3, OGG quality, dither choice; **MIDI import** options; **Export as score sheet**.
+11. New project dialog (PPQ, time signature, folder, info), Rename project, Palette editor.
+12. Audio editor (Edison-like) tools - large, its own project.

+ 2 - 0
resources/i18n/pt-BR.txt

@@ -1258,3 +1258,5 @@ countries: br
 "Nothing: the slot was left out of the mixer" = "Nada: o slot ficou fora do Mixer"
 "Silence: the channel keeps the plugin's settings until it is installed" = "Silêncio: o canal guarda as configurações do plugin até ele ser instalado"
 "Bypassed: the slot keeps the plugin's settings until it is installed" = "Desativado: o slot guarda as configurações do plugin até ele ser instalado"
+"Install them, scan for plugins (Options menu), then open the project again." = "Instale-os, procure plugins (menu Opções) e abra o projeto de novo."
+"Already in use: nothing to do. Save the project to keep the new places." = "Já em uso: nada a fazer. Salve o projeto para manter os novos locais."

+ 13 - 1
src/ui/I18nData.h

@@ -3762,6 +3762,18 @@ inline constexpr unsigned char ptBR[] = {
 101, 115, 97, 116, 105, 118, 97, 100, 111, 58, 32, 111, 32, 115, 108, 111, 116, 32, 103, 117, 97, 114, 100, 97,
 32, 97, 115, 32, 99, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115, 32, 100, 111, 32, 112,
 108, 117, 103, 105, 110, 32, 97, 116, 195, 169, 32, 101, 108, 101, 32, 115, 101, 114, 32, 105, 110, 115, 116, 97,
-108, 97, 100, 111, 34, 10,
+108, 97, 100, 111, 34, 10, 34, 73, 110, 115, 116, 97, 108, 108, 32, 116, 104, 101, 109, 44, 32, 115, 99, 97,
+110, 32, 102, 111, 114, 32, 112, 108, 117, 103, 105, 110, 115, 32, 40, 79, 112, 116, 105, 111, 110, 115, 32, 109,
+101, 110, 117, 41, 44, 32, 116, 104, 101, 110, 32, 111, 112, 101, 110, 32, 116, 104, 101, 32, 112, 114, 111, 106,
+101, 99, 116, 32, 97, 103, 97, 105, 110, 46, 34, 32, 61, 32, 34, 73, 110, 115, 116, 97, 108, 101, 45, 111,
+115, 44, 32, 112, 114, 111, 99, 117, 114, 101, 32, 112, 108, 117, 103, 105, 110, 115, 32, 40, 109, 101, 110, 117,
+32, 79, 112, 195, 167, 195, 181, 101, 115, 41, 32, 101, 32, 97, 98, 114, 97, 32, 111, 32, 112, 114, 111, 106,
+101, 116, 111, 32, 100, 101, 32, 110, 111, 118, 111, 46, 34, 10, 34, 65, 108, 114, 101, 97, 100, 121, 32, 105,
+110, 32, 117, 115, 101, 58, 32, 110, 111, 116, 104, 105, 110, 103, 32, 116, 111, 32, 100, 111, 46, 32, 83, 97,
+118, 101, 32, 116, 104, 101, 32, 112, 114, 111, 106, 101, 99, 116, 32, 116, 111, 32, 107, 101, 101, 112, 32, 116,
+104, 101, 32, 110, 101, 119, 32, 112, 108, 97, 99, 101, 115, 46, 34, 32, 61, 32, 34, 74, 195, 161, 32, 101,
+109, 32, 117, 115, 111, 58, 32, 110, 97, 100, 97, 32, 97, 32, 102, 97, 122, 101, 114, 46, 32, 83, 97, 108,
+118, 101, 32, 111, 32, 112, 114, 111, 106, 101, 116, 111, 32, 112, 97, 114, 97, 32, 109, 97, 110, 116, 101, 114,
+32, 111, 115, 32, 110, 111, 118, 111, 115, 32, 108, 111, 99, 97, 105, 115, 46, 34, 10,
 };
 } // namespace lynx::i18n::data

+ 13 - 7
src/ui/MissingFilesDialog.cpp

@@ -201,12 +201,15 @@ public:
         auto actions = area.removeFromBottom (30);
         area.removeFromBottom (10);
         list.setBounds (area);
-        searchButton.setBounds (actions.removeFromLeft (150));
-        actions.removeFromLeft (8);
-        locateButton.setBounds (actions.removeFromLeft (110));
-        actions.removeFromLeft (8);
-        skipButton.setBounds (actions.removeFromLeft (110));
-        actions.removeFromLeft (12);
+        if (page == Page::samples)
+        {
+            searchButton.setBounds (actions.removeFromLeft (150));
+            actions.removeFromLeft (8);
+            locateButton.setBounds (actions.removeFromLeft (110));
+            actions.removeFromLeft (8);
+            skipButton.setBounds (actions.removeFromLeft (110));
+            actions.removeFromLeft (12);
+        }
         stopButton.setBounds (actions.removeFromRight (80));
         status.setBounds (actions);
     }
@@ -254,7 +257,10 @@ private:
         locateButton.setEnabled (! searching && list.getNumSelectedRows() > 0);
         skipButton.setEnabled (list.getNumSelectedRows() > 0);
         stopButton.setVisible (searching && samplesPage);
-        status.setVisible (samplesPage);
+        if (page == Page::plugins)
+            status.setText (info.plugins.empty() ? juce::String() : tr ("Install them, scan for plugins (Options menu), then open the project again."), juce::dontSendNotification);
+        else if (page == Page::found)
+            status.setText (info.autoRelocated.empty() ? juce::String() : tr ("Already in use: nothing to do. Save the project to keep the new places."), juce::dontSendNotification);
 
         applyButton.setButtonText (found > 0 ? tr ("Apply ({0})", { juce::String (found) }) : tr ("Apply"));
         applyButton.setEnabled (found > 0 && ! searching);