mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-28 00:55:39 +00:00
eaf7df7ad5
Folders should now be sorted alphabetically. Will now fall back to a system font if LinLibertine.ttf is not found. Added a Menu button. Began working on a simple menu.
33 lines
534 B
C++
33 lines
534 B
C++
#ifndef _FOLDER_H_
|
|
#define _FOLDER_H_
|
|
|
|
#include "FileData.h"
|
|
#include <vector>
|
|
|
|
class SystemData;
|
|
|
|
class FolderData : public FileData
|
|
{
|
|
public:
|
|
FolderData(SystemData* system, std::string path, std::string name);
|
|
~FolderData();
|
|
|
|
bool isFolder();
|
|
std::string getName();
|
|
std::string getPath();
|
|
|
|
unsigned int getFileCount();
|
|
FileData* getFile(unsigned int i);
|
|
|
|
void pushFileData(FileData* file);
|
|
|
|
void sort();
|
|
private:
|
|
SystemData* mSystem;
|
|
std::string mPath;
|
|
std::string mName;
|
|
std::vector<FileData*> mFileVector;
|
|
};
|
|
|
|
#endif
|