// ui.h - file browser, sidebar controls, and PNG export
#ifndef UI_H
#define UI_H

#include "spectrogram_types.h"

// --- File browser ---
void ScanDirectory(const char* path);
void FreeBrowserFiles(void);
void DrawFileBrowser(void);

// --- Sidebar ---
void DrawSidebar(void);

// --- PNG export ---
void ExportPNG(const SpectrogramApp* spa, const char* dirPath);

// --- About / help dialog ---
void DrawAboutDialog(void);

// --- Auto-crop notice splash ---
// Shown right after ApplyAutoCrop changed the view; OK keeps the crop,
// Uncrop restores the full freq + time view.
void DrawAutocropNotice(void);

#endif // UI_H
