21 #ifndef FXFILESELECTOR_H 22 #define FXFILESELECTOR_H 31 class FXFileAssociations;
43 class FXHorizontalFrame;
51 SELECTFILE_MULTIPLE_ALL,
95 static FXint countFilenames(
const FXString&
string);
102 long onCmdAccept(
FXObject*,FXSelector,
void*);
103 long onCmdFilter(
FXObject*,FXSelector,
void*);
104 long onCmdItemDblClicked(
FXObject*,FXSelector,
void*);
105 long onCmdItemSelected(
FXObject*,FXSelector,
void*);
106 long onCmdItemDeselected(
FXObject*,FXSelector,
void*);
107 long onCmdDirectoryUp(
FXObject*,FXSelector,
void*);
108 long onUpdDirectoryUp(
FXObject*,FXSelector,
void*);
109 long onUpdDirTree(
FXObject*,FXSelector,
void*);
110 long onCmdDirTree(
FXObject*,FXSelector,
void*);
111 long onCmdHome(
FXObject*,FXSelector,
void*);
112 long onCmdWork(
FXObject*,FXSelector,
void*);
113 long onCmdBookmark(
FXObject*,FXSelector,
void*);
114 long onCmdUnBookmark(
FXObject*,FXSelector,
void*);
115 long onCmdVisit(
FXObject*,FXSelector,
void*);
116 long onCmdNew(
FXObject*,FXSelector,
void*);
117 long onUpdNew(
FXObject*,FXSelector,
void*);
118 long onCmdRename(
FXObject*,FXSelector,
void*);
119 long onCmdCopy(
FXObject*,FXSelector,
void*);
120 long onCmdMove(
FXObject*,FXSelector,
void*);
121 long onCmdLink(
FXObject*,FXSelector,
void*);
122 long onCmdRemove(
FXObject*,FXSelector,
void*);
123 long onUpdSelected(
FXObject*,FXSelector,
void*);
124 long onPopupMenu(
FXObject*,FXSelector,
void*);
125 long onCmdImageSize(
FXObject*,FXSelector,
void*);
126 long onUpdImageSize(
FXObject*,FXSelector,
void*);
127 long onUpdNavigable(
FXObject*,FXSelector,
void*);
130 ID_FILEFILTER=FXPacker::ID_LAST,
159 virtual void create();
168 void setFilename(
const FXString& path);
181 void setDirectory(
const FXString& path);
187 void setSelectMode(FXuint mode);
193 void setPattern(
const FXString& ptrn);
199 void setMatchMode(FXuint mode);
202 FXuint getMatchMode()
const;
218 void setPatternList(
const FXString& patterns);
227 void setCurrentPattern(FXint patno);
230 FXint getCurrentPattern()
const;
233 void setPatternText(FXint patno,
const FXString& text);
236 FXString getPatternText(FXint patno)
const;
239 FXint getNumPatterns()
const;
242 void allowPatternEntry(FXbool flag);
245 FXbool allowPatternEntry()
const;
248 void setItemSpace(FXint s);
251 FXint getItemSpace()
const;
254 void setFileBoxStyle(FXuint style);
257 FXuint getFileBoxStyle()
const;
260 FXbool showHiddenFiles()
const;
263 void showHiddenFiles(FXbool flag);
266 FXbool showImages()
const;
269 void showImages(FXbool flag);
272 FXint getImageSize()
const;
275 void setImageSize(FXint size);
278 void showReadOnly(FXbool flag);
281 FXbool shownReadOnly()
const;
284 void setReadOnly(FXbool flag);
287 FXbool getReadOnly()
const;
290 void allowNavigation(FXbool flag);
296 void setDraggableFiles(FXbool flag);
299 FXbool getDraggableFiles()
const;
302 void setTimeFormat(
const FXString& fmt);
335 virtual void save(
FXStream& store)
const;
The Matrix layout manager automatically arranges its child windows in rows and columns.
Definition: FXMatrix.h:56
A File List widget provides an icon rich view of the file system.
Definition: FXFileList.h:131
FXbool allowNavigation() const
Is navigation allowed?
Definition: FXFileSelector.h:293
An icon source is a class that loads an icon of any type.
Definition: FXIconSource.h:47
Base composite.
Definition: FXComposite.h:32
Horizontal frame layout manager widget is used to automatically place child-windows horizontally from...
Definition: FXHorizontalFrame.h:36
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
FXButton * cancelButton() const
Return a pointer to the "Cancel" button.
Definition: FXFileSelector.h:165
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:42
FXuint getSelectMode() const
Return file selection mode.
Definition: FXFileSelector.h:190
Packer is a layout manager which automatically places child windows inside its area against the left...
Definition: FXPacker.h:48
A text field is a single-line text entry widget.
Definition: FXTextField.h:63
The FileAssociations object manages file associations between a file extension and a FileAssoc record...
Definition: FXFileAssociations.h:101
A Directory Box widget allows the user to select parts of a file path.
Definition: FXDirBox.h:49
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
The Recent Files group manages a most recently used (MRU) file list by means of the standard system r...
Definition: FXRecentFiles.h:49
A Combo Box provides a way to select a string from a list of strings.
Definition: FXComboBox.h:65
FXButton * acceptButton() const
Return a pointer to the "Accept" button.
Definition: FXFileSelector.h:162
File selection widget.
Definition: FXFileSelector.h:57
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42