#include <ufinder.hpp>
Inheritance diagram for ubit::UFinder:

Public Member Functions | |
| UFinder (const UStr &pathname=".") | |
| virtual void | open (const UStr &pathname) |
| opens a directory or a file (the second variant normalizes pathname). | |
| virtual void | openParent () |
| virtual void | openEntry () |
| virtual void | nextEntry () |
| virtual void | previousEntry () |
| navigates in the finder. | |
| virtual bool | browseHosts () |
| virtual UFinderHost * | addHost (const UStr &hostname, int pos=-1) |
| virtual UFinderHost * | addHostCB (const UStr *hostname, int pos=-1) |
| virtual void | removeHost (UFinderHost *) |
| virtual void | addHosts (const std::vector< UStr * > &hostnames) |
| virtual void | addHosts (const char *hostnames[]) |
| virtual void | createClone (const UStr &hostname) |
| creates a synchronized clone on hostname. | |
| virtual void | setTracking (bool) |
| virtual void | setTracking (bool doc, bool icons) |
| tracking mode updates the value while the scrollbar is being dragged (default is true). | |
| virtual UFinderListener * | getListener () |
| virtual void | setListener (UFinderListener *) |
| gets/set the current listener. | |
| Options & | getOptions () |
| returns the options of the UFinder. | |
| UDocbox * | getCurrentBox () |
| returns the docbox or the iconbox which is currently shown. | |
| UIconbox * | getIconbox () |
| UIcon * | getSelectedIcon () |
| return the icon box that is currently shown (if any, null otherwise), and the selected icon in this iconbox. | |
| UDocbox * | getDocbox () |
| UDoc * | getDoc () |
| return the document box that is currently shown (if any, null otherwise), and the document icon in this docbox. | |
| UBox * | getGlass () |
| returns the glass box that is on top of the document box. | |
| virtual void | zoom (float zoom=1.) |
| virtual void | zoomIn () |
| virtual void | zoomOut () |
| virtual void | setZoomQuantum (float) |
| UCtlmenu & | getContextMenu () |
| returns the Contextual menu of the Finder. | |
| virtual void | openContextMenuIn (UBox &) |
| virtual UCtlmenu & | createContextMenu () |
| void | showDocGlass (bool state) |
| shows/hides the document glass. | |
| void | showSideBar (bool state) |
| shows/hides the side bar (located on the left side). | |
| void | showAlert (const UStr &msg) |
| void | hideAlert () |
| shows/hides an alert message. | |
Protected Member Functions | |
| void | openFBox (UFilebox &) |
| void | openMsg (UMessageEvent &) |
| virtual void | openImpl (const UStr &path, int path_mode, int path_type) |
| virtual int | openFile (const UStr &path, int path_type) |
| virtual int | openDir (const UStr &path, int path_type) |
| virtual int | openDir (UFinderDir *) |
| virtual void | showFile (const UStr &path, UDoc *) |
| virtual void | showDir (const UStr &path) |
| virtual void | showPreview (UIcon *) |
| virtual void | showPreviewRequest (UIcon *) |
| virtual void | showIconPreviews () |
| virtual void | addToHistory (UFinderDir *) |
| virtual void | removeFromHistory (UFinderDir *) |
| virtual UFinderDir * | findDir (const UStr &path) |
| virtual void | showDirInfo (UFinderDir *) |
| virtual void | removeIconbox (UFinderDir *, bool upd) |
| virtual void | iconSelectCB (UIconbox *) |
| virtual void | iconActionCB (UIconbox *) |
| virtual void | elementAction (UEvent &, UDoc *) |
| virtual void | browseCB (UMessageEvent &) |
| bool | isBrowsing () const |
| virtual void | createCloneRequest (UMessageEvent &) |
| virtual UFrame * | createCloneFrame (const UStr &title) |
Friends | |
| class | UFinderDir |
| class | UFinderHost |
| class | UFinderFullwin |
| class | UFinderControls |
| class | UFinderCom |
| UDocbox * ubit::UFinder::getCurrentBox | ( | ) |
returns the docbox or the iconbox which is currently shown.
return the same value as getIconbox() or getDocbox() depending on which object is shown.
| void ubit::UFinder::setListener | ( | UFinderListener * | ) | [virtual] |
gets/set the current listener.
the finder creates a default listener that opens documents when hyperlinks are clicked (see UFinderListener) limitation: only one listener in this version!
1.4.7