Displays the amount of disk space left in the current data directory. More...
#include <ControlPanel.h>
Public Member Functions | |
DiskSpaceMeter () | |
~DiskSpaceMeter () | |
void | updateDiskSpace (float percent) |
Updates the free disk space displayed by the DiskSpaceMeter. | |
void | paint (Graphics &g) |
Draws the DiskSpaceMeter. |
Displays the amount of disk space left in the current data directory.
The DiskSpaceMeter is located in the ControlPanel. When the GUI is launched (or the data directory is changed), a built-in JUCE method is used to find the amount of free space.
Note that the DiskSpaceMeter currently displays only relative, not absolute disk space.
DiskSpaceMeter::DiskSpaceMeter | ( | ) |
DiskSpaceMeter::~DiskSpaceMeter | ( | ) |
void DiskSpaceMeter::updateDiskSpace | ( | float | percent | ) |
Updates the free disk space displayed by the DiskSpaceMeter.
Called by the ControlPanel.
void DiskSpaceMeter::paint | ( | Graphics & | g | ) |
Draws the DiskSpaceMeter.