20 #ifndef PAWS_FILENAVIGATION_HEADER 21 #define PAWS_FILENAVIGATION_HEADER 38 virtual void Execute(
const csString &
string) = 0;
51 virtual bool PostSetup();
52 virtual bool OnButtonPressed(
int mouseButton,
int keyModifier,
pawsWidget* widget);
54 virtual void OnListAction(
pawsListBox* selected,
int status);
55 virtual bool OnKeyDown(utf32_char keyCode, utf32_char key,
int modifiers);
63 virtual const char* GetFullPathFilename();
66 virtual const char* GetCurrentPath();
75 virtual int GetSelectionState();
78 virtual void SetActionButtonText(
const char* actiontext);
81 virtual bool SetSelectedFilename(
const char* filename);
83 virtual bool SetFileFilters(
const char* filename);
86 virtual bool FillFileList();
91 const csString &label,
const csString &filter,
iOnFileSelectedAction* action,
const char* xmlWidget =
"filenavigation.xml");
95 virtual bool SetFilterForSelection(
const char* filename);
96 virtual const char* GetFilterForSelection();
98 virtual bool SmartAppendPath(
const char* append);
100 virtual bool SmartSetPath(
const char* path);
101 virtual bool UpOnePath();
102 virtual bool DownOnePath(
const char* pathstring,
int pathlen);
103 virtual bool RelativeIsFile(
const char* filename);
134 #endif // #ifndef PAWS_FILENAVIGATION_HEADER int selection_state
Stores the current selection state (none selected, canceled, or perform)
csString current_path
The current virtual path.
virtual void Execute(const csString &string)=0
pawsListBox * filelistbox
The file display listbox child of this widget.
pawsListBox * dirlistbox
The directory display listbox child of this widget.
CREATE_PAWS_FACTORY(pawsFileNavigation)
A simple list box widget.
char * fullpathandfilename
A buffer used to construct the full path and file of a selected file. Not always valid.
csRef< iVFS > vfs
A reference to the iVFS for the file system, used for navigation.
iOnFileSelectedAction * action
void void Initialize(iObjectRegistry *object_reg)
A basic combo box widget.
csArray< csString > zip_mounts
virtual ~iOnFileSelectedAction()