2015-06-05 16:50:52 -04:00
|
|
|
#ifndef TYRO_FILE_PANE_H
|
|
|
|
#define TYRO_FILE_PANE_H
|
|
|
|
|
|
|
|
class FilePane : public wxGenericDirCtrl {
|
|
|
|
public:
|
|
|
|
FilePane(
|
|
|
|
wxWindow *parent,
|
|
|
|
const wxWindowID id = wxID_ANY,
|
|
|
|
const wxString &dir = wxDirDialogDefaultFolderStr,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
2015-06-18 13:34:54 -04:00
|
|
|
long style = wxDIRCTRL_3D_INTERNAL | wxDIRCTRL_EDIT_LABELS |
|
|
|
|
wxDIRCTRL_SHOW_FILTERS | wxDIRCTRL_MULTIPLE,
|
2015-06-05 16:50:52 -04:00
|
|
|
const wxString &filter = wxEmptyString
|
|
|
|
);
|
|
|
|
~FilePane();
|
|
|
|
private:
|
|
|
|
wxMenu *contextMenu = nullptr;
|
|
|
|
void BindEvents();
|
|
|
|
void CreateContextMenu();
|
|
|
|
void OpenSelectedFiles();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* TYRO_FILE_PANE_H */
|
|
|
|
|