@@ -57,14 +57,14 @@ MainWindow::MainWindow(IAudioService* audioService,
5757 _startupInTraySwitch = statupInTray;
5858
5959 _styleHelper = new StyleHelper (this );
60- _eelEditor = new EELEditor (this );
60+ // TODO _eelEditor = new EELEditor(this);
6161 _trayIcon = new TrayIcon (this );
6262 _autostart = new AutostartManager (this );
6363
64- _appMgrFragment = new FragmentHost<AppManagerFragment*>(new AppManagerFragment (_audioService->appManager (), this ), WAF::BottomSide, this );
65- _statusFragment = new FragmentHost<StatusFragment*>(new StatusFragment (this ), WAF::BottomSide, this );
66- _presetFragment = new FragmentHost<PresetFragment*>(new PresetFragment (_audioService, this ), WAF::LeftSide, this );
67- _settingsFragment = new FragmentHost<SettingsFragment*>(new SettingsFragment (_trayIcon, _audioService, _autostart, this ), WAF::BottomSide, this );
64+ // TODO _appMgrFragment = new FragmentHost<AppManagerFragment*>(new AppManagerFragment(_audioService->appManager(), this), WAF::BottomSide, this);
65+ // TODO _statusFragment = new FragmentHost<StatusFragment*>(new StatusFragment(this), WAF::BottomSide, this);
66+ // TODO _presetFragment = new FragmentHost<PresetFragment*>(new PresetFragment(_audioService, this), WAF::LeftSide, this);
67+ // TODO _settingsFragment = new FragmentHost<SettingsFragment*>(new SettingsFragment(_trayIcon, _audioService, _autostart, this), WAF::BottomSide, this);
6868 }
6969
7070 // Prepare base UI
@@ -116,27 +116,6 @@ MainWindow::MainWindow(IAudioService* audioService,
116116 ciArgs.channels = ciArgs.frames = -1 ;
117117 onConvolverInfoChanged (ciArgs);
118118 connect (_audioService, &IAudioService::convolverInfoChanged, this , &MainWindow::onConvolverInfoChanged);
119-
120- _eelEditor->attachHost (_audioService);
121- connect (_eelEditor, &EELEditor::executionRequested, [this ](QString path){
122- if (QFileInfo::exists (path) && QFileInfo (path).isFile ())
123- {
124- ui->liveprog ->setCurrentLiveprog (path);
125- }
126- else
127- {
128- QMessageBox::critical (_eelEditor, tr (" Cannot execute script" ),
129- tr (" The current EEL file (at '%1') does not exist anymore on the filesystem. Please reopen the file manually." ).arg (path));
130- return ;
131- }
132-
133- applyConfig ();
134-
135- if (path == ui->liveprog ->currentLiveprog ())
136- {
137- _audioService->reloadLiveprog ();
138- }
139- });
140119 }
141120
142121 // Prepare tray icon
@@ -220,9 +199,7 @@ MainWindow::MainWindow(IAudioService* audioService,
220199 connect (&DspConfig::instance (), &DspConfig::configBuffered, this , &MainWindow::loadConfig);
221200 DspConfig::instance ().load ();
222201
223- connect (_settingsFragment->fragment (), &SettingsFragment::launchSetupWizard, this , &MainWindow::launchFirstRunSetup);
224- connect (_settingsFragment->fragment (), &SettingsFragment::reopenSettings, _settingsFragment, &FragmentHost<SettingsFragment*>::slideOutIn);
225- connect (_styleHelper, &StyleHelper::iconColorChanged, _settingsFragment->fragment (), &SettingsFragment::updateButtonStyle);
202+ // connect(_styleHelper, &StyleHelper::iconColorChanged, _settingsFragment->fragment(), &SettingsFragment::updateButtonStyle);
226203 }
227204
228205 // Init 3-dot menu button
@@ -264,8 +241,6 @@ MainWindow::MainWindow(IAudioService* audioService,
264241 menu->addAction (tr (" Load from file" ), this , SLOT (loadExternalFile ()));
265242 menu->addAction (tr (" Save to file" ), this , SLOT (saveExternalFile ()));
266243 menu->addSeparator ();
267- menu->addAction (tr (" Open LiveprogIDE" ), _eelEditor, &EELEditor::show);
268- menu->addSeparator ();
269244 menu->addAction (tr (" What's this... (Select UI element)" ), this , []()
270245 {
271246 QWhatsThis::enterWhatsThisMode ();
@@ -329,8 +304,6 @@ MainWindow::MainWindow(IAudioService* audioService,
329304 connect (ui->conv_files , &FileSelectionWidget::bookmarkAdded, ui->conv_fav , &FileSelectionWidget::enumerateFiles);
330305
331306 // Liveprog
332- ui->liveprog ->coupleIDE (_eelEditor);
333- ui->liveprog ->updateList ();
334307 connect (ui->liveprog , &LiveprogSelectionWidget::liveprogReloadRequested, _audioService, &IAudioService::reloadLiveprog);
335308 connect (ui->liveprog , &LiveprogSelectionWidget::unitLabelUpdateRequested, ui->info , qOverload<const QString&>(&FadingLabel::setAnimatedText));
336309 }
@@ -1333,8 +1306,6 @@ void MainWindow::connectActions()
13331306
13341307 connect (ui->eq_r_fixed , &QRadioButton::clicked, this , &MainWindow::onEqModeUpdated);
13351308 connect (ui->eq_r_flex , &QRadioButton::clicked, this , &MainWindow::onEqModeUpdated);
1336-
1337- connect (_eelEditor, &EELEditor::scriptSaved, ui->liveprog , &LiveprogSelectionWidget::updateFromEelEditor);
13381309}
13391310
13401311// Setup wizard
0 commit comments