CsvExplorer_Widget
CsvExplorer_Widget
Widget for browsing CSV/delimited text files. More…
#include <CsvExplorer_Widget.hpp>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | fileLoaded(QString const & file_path) Emitted when a file is successfully loaded. |
| void | errorOccurred(QString const & message) Emitted when an error occurs. |
Public Functions
| Name | |
|---|---|
| CsvExplorer_Widget(std::shared_ptr< DataManager > data_manager =[nullptr], QWidget * parent =[nullptr]) Construct the CsvExplorer_Widget. |
|
| ~CsvExplorer_Widget() override | |
| bool | loadFile(QString const & file_path) Load and display a CSV file. |
| QString | currentFilePath() const Get the currently loaded file path. |
Detailed Description
class CsvExplorer_Widget;Widget for browsing CSV/delimited text files.
Provides:
- File browse and path display
- Parse configuration panel (delimiter, header lines, quote char, etc.)
- Metadata panel (file size, line count, column count, detected structure)
- Lazy-loading data preview table that updates on configuration changes
Public Signals Documentation
signal fileLoaded
void fileLoaded(
QString const & file_path
)Emitted when a file is successfully loaded.
Parameters:
- file_path Path to the loaded file
signal errorOccurred
void errorOccurred(
QString const & message
)Emitted when an error occurs.
Parameters:
- message Error message
Public Functions Documentation
function CsvExplorer_Widget
explicit CsvExplorer_Widget(
std::shared_ptr< DataManager > data_manager =nullptr,
QWidget * parent =nullptr
)Construct the CsvExplorer_Widget.
Parameters:
- data_manager DataManager for future data import integration
- parent Parent widget
function ~CsvExplorer_Widget
~CsvExplorer_Widget() overridefunction loadFile
bool loadFile(
QString const & file_path
)Load and display a CSV file.
Parameters:
- file_path Path to the CSV file
Return: true if file was loaded successfully
function currentFilePath
inline QString currentFilePath() constGet the currently loaded file path.
Return: File path, or empty if no file loaded
Updated on 2026-11-13 at 20:25:41 +0000