tge/engine/gui/controls/guiDirectoryFileListCtrl.h
2025-02-17 23:17:30 -06:00

41 lines
892 B
C++
Executable File

#ifndef _GUI_DIRECTORYFILELISTCTRL_H_
#define _GUI_DIRECTORYFILELISTCTRL_H_
#ifndef _PLATFORM_H_
#include "platform/platform.h"
#endif
#ifndef _GUITEXTLISTCTRL_H_
#include "gui/controls/guiTextListCtrl.h"
#endif
class GuiDirectoryFileListCtrl : public GuiTextListCtrl
{
private:
typedef GuiTextListCtrl Parent;
protected:
StringTableEntry mFilePath;
StringTableEntry mFilter;
void openDirectory();
public:
GuiDirectoryFileListCtrl();
DECLARE_CONOBJECT(GuiDirectoryFileListCtrl);
/// Set the current path to grab files from
bool setCurrentPath( StringTableEntry path, StringTableEntry filter );
bool setCurrentFilter( StringTableEntry filter );
/// Get the currently selected file's name
StringTableEntry getSelectedFileName();
virtual void onMouseDown(const GuiEvent &event);
bool onWake();
};
#endif