FXFileSelector

class FXFileSelector

File selection widget

Inheritance:


Public Methods

[more] FXFileSelector(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
Constructor
[more]FXButton* acceptButton() const
Return a pointer to the "Accept" button
[more]FXButton* cancelButton() const
Return a pointer to the "Cancel" button
[more]void setFilename(const FXString& path)
Change file name
[more]FXString getFilename() const
Return file name, if any
[more]FXString* getFilenames() const
Return array of strings containing the selected file names, terminated by an empty string.
[more]void setPattern(const FXString& ptrn)
Change file pattern
[more]FXString getPattern() const
Return file pattern
[more]void setPatternList(const FXString& patterns)
Change the list of file patterns shown in the file dialog.
[more]void setPatternList(const FXchar** ptrns)
Set list of patterns as name,pattern pairs.
[more]FXString getPatternList() const
Return list of patterns
[more]void setCurrentPattern(FXint n)
After setting the list of patterns, this call will initially select pattern n as the active one
[more]FXint getCurrentPattern() const
Return current pattern number
[more]FXString getPatternText(FXint patno) const
Get pattern text for given pattern number
[more]void setPatternText(FXint patno, const FXString& text)
Change pattern text for pattern number
[more]void setDirectory(const FXString& path)
Change directory
[more]FXString getDirectory() const
Return directory
[more]void setItemSpace(FXint s)
Set the inter-item spacing (in pixels)
[more]FXint getItemSpace() const
Return the inter-item spacing (in pixels)
[more]void setFileBoxStyle(FXuint style)
Change file list style
[more]FXuint getFileBoxStyle() const
Return file list style
[more]void setSelectMode(FXuint mode)
Change file selection mode
[more]FXuint getSelectMode() const
Return file selection mode
[more]void showReadOnly(FXbool show)
Show readonly button
[more]FXbool shownReadOnly() const
Return TRUE if readonly is shown
[more]void setReadOnly(FXbool state)
Set initial state of readonly button
[more]FXbool getReadOnly() const
Get readonly state
[more]virtual void save(FXStream& store) const
Save object to a stream
[more]virtual void load(FXStream& store)
Load object from a stream
[more]virtual ~FXFileSelector()
Destructor


Inherited from FXPacker:

Public Methods

ovirtual FXint getDefaultWidth()
ovirtual FXint getDefaultHeight()
ovoid setFrameStyle(FXuint style)
oFXuint getFrameStyle() const
ovoid setPackingHints(FXuint ph)
oFXuint getPackingHints() const
oFXint getBorderWidth() const
ovoid setPadTop(FXint pt)
oFXint getPadTop() const
ovoid setPadBottom(FXint pb)
oFXint getPadBottom() const
ovoid setPadLeft(FXint pl)
oFXint getPadLeft() const
ovoid setPadRight(FXint pr)
oFXint getPadRight() const
ovoid setHiliteColor(FXColor clr)
oFXColor getHiliteColor() const
ovoid setShadowColor(FXColor clr)
oFXColor getShadowColor() const
ovoid setBorderColor(FXColor clr)
oFXColor getBorderColor() const
ovoid setBaseColor(FXColor clr)
oFXColor getBaseColor() const
ovoid setHSpacing(FXint hs)
oFXint getHSpacing() const
ovoid setVSpacing(FXint vs)
oFXint getVSpacing() const


Inherited from FXComposite:

Public Methods

ovirtual void create()
ovirtual void detach()
ovirtual void destroy()
oFXint maxChildWidth() const
oFXint maxChildHeight() const
ovirtual FXbool isComposite() const


Inherited from FXWindow:

Public Methods

oFXWindow* getParent() const
oFXWindow* getOwner() const
oFXWindow* getShell() const
oFXWindow* getRoot() const
oFXWindow* getNext() const
oFXWindow* getPrev() const
oFXWindow* getFirst() const
oFXWindow* getLast() const
oFXWindow* getFocus() const
ovoid setKey(FXuint k)
oFXuint getKey() const
ovoid setTarget(FXObject* t)
oFXObject* getTarget() const
ovoid setSelector(FXSelector sel)
oFXSelector getSelector() const
oFXint getX() const
oFXint getY() const
ovirtual FXint getWidthForHeight(FXint givenheight)
ovirtual FXint getHeightForWidth(FXint givenwidth)
ovoid setX(FXint x)
ovoid setY(FXint y)
ovoid setWidth(FXint w)
ovoid setHeight(FXint h)
ovoid setLayoutHints(FXuint lout)
oFXuint getLayoutHints() const
oFXAccelTable* getAccelTable() const
ovoid setAccelTable(FXAccelTable* acceltable)
ovoid addHotKey(FXHotKey code)
ovoid remHotKey(FXHotKey code)
oFXbool isShell() const
oFXbool isChildOf(const FXWindow* window) const
oFXbool containsChild(const FXWindow* child) const
oFXWindow* getChildAt(FXint x, FXint y) const
oFXint numChildren() const
oFXint indexOfChild(const FXWindow* window) const
oFXWindow* childAtIndex(FXint index) const
ostatic FXWindow* commonAncestor(FXWindow* a, FXWindow* b)
ovoid setDefaultCursor(FXCursor* cur)
oFXCursor* getDefaultCursor() const
ovoid setDragCursor(FXCursor* cur)
oFXCursor* getDragCursor() const
oFXint getCursorPosition(FXint& x, FXint& y, FXuint& buttons) const
oFXint setCursorPosition(FXint x, FXint y)
oFXbool isEnabled() const
oFXbool isActive() const
ovirtual FXbool canFocus() const
oFXbool hasFocus() const
ovirtual void setFocus()
ovirtual void killFocus()
ovirtual void setDefault(FXbool enable=TRUE)
oFXbool isDefault() const
ovoid setInitial(FXbool enable=TRUE)
oFXbool isInitial() const
ovirtual void enable()
ovirtual void disable()
ovirtual void raise()
ovirtual void lower()
ovirtual void move(FXint x, FXint y)
ovirtual void resize(FXint w, FXint h)
ovirtual void position(FXint x, FXint y, FXint w, FXint h)
ovirtual void recalc()
ovoid forceRefresh()
ovirtual void reparent(FXWindow* newparent)
ovoid scroll(FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy)
ovoid update(FXint x, FXint y, FXint w, FXint h)
ovoid update()
ovoid repaint(FXint x, FXint y, FXint w, FXint h)
ovoid repaint()
ovoid grab()
ovoid ungrab()
oFXbool grabbed() const
ovoid grabKeyboard()
ovoid ungrabKeyboard()
oFXbool grabbedKeyboard() const
ovirtual void show()
ovirtual void hide()
oFXbool shown() const
oFXbool underCursor() const
oFXbool hasSelection() const
oFXbool acquireSelection(const FXDragType* types, FXuint numtypes)
oFXbool releaseSelection()
oFXbool hasClipboard() const
oFXbool acquireClipboard(const FXDragType* types, FXuint numtypes)
oFXbool releaseClipboard()
ovoid dropEnable()
ovoid dropDisable()
oFXbool isDropEnabled() const
oFXbool isDragging() const
oFXbool beginDrag(const FXDragType* types, FXuint numtypes)
oFXbool handleDrag(FXint x, FXint y, FXDragAction action=DRAG_COPY)
oFXbool endDrag(FXbool drop=TRUE)
oFXbool isDropTarget() const
ovoid setDragRectangle(FXint x, FXint y, FXint w, FXint h, FXbool wantupdates=TRUE)
ovoid clearDragRectangle()
ovoid acceptDrop(FXDragAction action=DRAG_ACCEPT)
oFXDragAction didAccept() const
oFXbool inquireDNDTypes(FXDNDOrigin origin, FXDragType*& types, FXuint& numtypes)
oFXbool offeredDNDType(FXDNDOrigin origin, FXDragType type)
oFXDragAction inquireDNDAction() const
oFXbool setDNDData(FXDNDOrigin origin, FXDragType type, FXuchar* data, FXuint size)
oFXbool getDNDData(FXDNDOrigin origin, FXDragType type, FXuchar*& data, FXuint& size)
ovirtual FXbool contains(FXint parentx, FXint parenty) const
ovoid translateCoordinatesFrom(FXint& tox, FXint& toy, const FXWindow* fromwindow, FXint fromx, FXint fromy) const
ovoid translateCoordinatesTo(FXint& tox, FXint& toy, const FXWindow* towindow, FXint fromx, FXint fromy) const
ovirtual void setBackColor(FXColor clr)
oFXColor getBackColor() const
ovoid linkBefore(FXWindow* sibling)
ovoid linkAfter(FXWindow* sibling)


Inherited from FXDrawable:

Public Methods

oFXint getWidth() const
oFXint getHeight() const
oFXVisual* getVisual() const
ovoid setVisual(FXVisual* vis)


Inherited from FXId:

Public Methods

oFXApp* getApp() const
oFXID id() const
ovoid setUserData(void* ptr)
ovoid* getUserData() const


Inherited from FXObject:

Public Methods

oconst FXchar* getClassName() const
oFXbool isMemberOf(const FXMetaClass* metaclass) const


Documentation

File selection widget
o FXFileSelector(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
Constructor

oFXButton* acceptButton() const
Return a pointer to the "Accept" button

oFXButton* cancelButton() const
Return a pointer to the "Cancel" button

ovoid setFilename(const FXString& path)
Change file name

oFXString getFilename() const
Return file name, if any

oFXString* getFilenames() const
Return array of strings containing the selected file names, terminated by an empty string. This string array must be freed using delete []. If no files were selected, a NULL is returned.

ovoid setPattern(const FXString& ptrn)
Change file pattern

oFXString getPattern() const
Return file pattern

ovoid setPatternList(const FXString& patterns)
Change the list of file patterns shown in the file dialog. Each pattern comprises an optional name, followed by a pattern in parentheses. The patterns are separated by newlines. For example,

"*\n*.cpp,*.cc\n*.hpp,*.hh,*.h"

and

"All Files (*)\nC++ Sources (*.cpp,*.cc)\nC++ Headers (*.hpp,*.hh,*.h)"

will set the same three patterns, but the former shows no pattern names.

ovoid setPatternList(const FXchar** ptrns)
Set list of patterns as name,pattern pairs. The list should be terminated with a final NULL string. (DEPRECATED)

oFXString getPatternList() const
Return list of patterns

ovoid setCurrentPattern(FXint n)
After setting the list of patterns, this call will initially select pattern n as the active one

oFXint getCurrentPattern() const
Return current pattern number

oFXString getPatternText(FXint patno) const
Get pattern text for given pattern number

ovoid setPatternText(FXint patno, const FXString& text)
Change pattern text for pattern number

ovoid setDirectory(const FXString& path)
Change directory

oFXString getDirectory() const
Return directory

ovoid setItemSpace(FXint s)
Set the inter-item spacing (in pixels)

oFXint getItemSpace() const
Return the inter-item spacing (in pixels)

ovoid setFileBoxStyle(FXuint style)
Change file list style

oFXuint getFileBoxStyle() const
Return file list style

ovoid setSelectMode(FXuint mode)
Change file selection mode

oFXuint getSelectMode() const
Return file selection mode

ovoid showReadOnly(FXbool show)
Show readonly button

oFXbool shownReadOnly() const
Return TRUE if readonly is shown

ovoid setReadOnly(FXbool state)
Set initial state of readonly button

oFXbool getReadOnly() const
Get readonly state

ovirtual void save(FXStream& store) const
Save object to a stream

ovirtual void load(FXStream& store)
Load object from a stream

ovirtual ~FXFileSelector()
Destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.