Pyro higlevel API
Classes | Public Member Functions | Friends | List of all members
os::IconDirectoryView Class Reference

Directory view suitable for file-requesters and other file browsers. More...

Inheritance diagram for os::IconDirectoryView:
os::IconView os::Control os::View os::Invoker os::Handler

Classes

class  Private
 

Public Member Functions

 IconDirectoryView (const Rect &cFrame, const String &cPath, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP)
 Creates a new directory view. More...
 
 ~IconDirectoryView ()
 
void ReRead ()
 Rereads the directory content. More...
 
void SetPath (const String &cPath)
 Sets the current path. More...
 
String GetPath () const
 Returns the current path. More...
 
ImageGetDirIcon () const
 Returns the icon of the current directory. More...
 
bool JobsPending () const
 Returns whether there are still pending jobs. More...
 
void SetDirChangeMsg (Message *pcMsg)
 Sets the message that is sent when the directory changes. More...
 
void SetDirectoryLocked (bool bLocked)
 Sets whether the current directory is locked. More...
 
void SetAutoLaunch (bool bAutoLaunch)
 Sets whether invoked files are automatically launched. More...
 
virtual void DirChanged (const String &cNewPath)
 
virtual void Invoked (uint nIcon, os::IconData *pcData)
 Called when an icon is invoked. More...
 
virtual void DragSelection (os::Point cStartPoint)
 Called when an icon should be dragged. More...
 
virtual void OpenContextMenu (os::Point cPosition, bool bMouseOverIcon)
 Called when the context menu of one icon should be opened. More...
 
virtual void HandleMessage (Message *pcMessage)
 Handle a message targeted at this handler. More...
 
virtual void AttachedToWindow ()
 
virtual void DetachedFromWindow ()
 
virtual void MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData)
 Hook called by the system when a mouse button is release. More...
 
virtual void MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData)
 Hook called by the system when the mouse is moved. More...
 
virtual void KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers)
 Hook called by the system when a key is pressed while the view has focus. More...
 
- Public Member Functions inherited from os::IconView
 IconView (const Rect &cFrame, os::String zName, uint32 nResizeMask)
 Constructor. More...
 
 ~IconView ()
 
virtual void EnableStatusChanged (bool bIsEnabled)
 
virtual void SelectionChanged ()
 Called when the selection changes. More...
 
view_type GetView () const
 Returns the curent view type. More...
 
void SetView (view_type eType)
 Sets a new view type. More...
 
void SetTextColor (os::Color32_s sColor)
 Sets a new text color. More...
 
void SetTextShadowColor (os::Color32_s sColor)
 Sets a new color for the shadows of the text. More...
 
void SetSelectionColor (os::Color32_s sColor)
 Sets a new color for the selection. More...
 
void SetBackgroundColor (os::Color32_s sColor)
 Sets a new background color. More...
 
void SetBackground (os::Image *pcImage)
 Sets a new background image. More...
 
void SetSingleClick (bool bSingle)
 Enables/Disables single click mode. More...
 
bool IsSingleClick () const
 Returns whether single click mode is enabled. More...
 
void SetAutoSort (bool bAutoSort)
 Enables/Disables sorting. More...
 
bool IsAutoSort () const
 Returns whether sorting is enabled. More...
 
void SetMultiSelect (bool bMultiSelect)
 Enables/Disables multiselect. More...
 
bool IsMultiSelect () const
 Returns whether multiselect is enabled. More...
 
void Clear ()
 Clears the iconview. More...
 
uint AddIcon (os::Image *pcIcon, os::IconData *pcData)
 Adds a new icon to the iconview. More...
 
void RemoveIcon (uint nIcon)
 Removes an icon. More...
 
uint GetIconCount ()
 Returns the number of icons. More...
 
os::String GetIconString (uint nIcon, uint nString)
 Returns a string of an icon. More...
 
os::ImageGetIconImage (uint nIcon)
 Returns the image of an icon. More...
 
os::IconDataGetIconData (uint nIcon)
 Returns the private data of an icon. More...
 
bool GetIconSelected (uint nIcon)
 Returns whether one icon is selected. More...
 
os::Point GetIconPosition (uint nIcon)
 Returns the current position of an icon. More...
 
void AddIconString (uint nIcon, os::String zName)
 Adds a string of an icon. More...
 
void SetIconString (uint nIcon, uint nString, os::String zString)
 Sets a string of an icon. More...
 
void SetIconImage (uint nIcon, os::Image *pcImage)
 Sets the image of an icon. More...
 
void SetIconSelected (uint nIcon, bool bSelected, bool bDeselectAll=true)
 Sets the selection status of an icon. More...
 
void SetIconPosition (uint nIcon, os::Point cPosition)
 Sets the position of an icon. More...
 
os::Point GetIconSize ()
 Returns the current icon size that is assumed by the iconview. More...
 
void RenderIcon (uint nIcon, os::View *pcView, os::Point cPosition)
 Renders an icon in a view. More...
 
void RenderIcon (os::String zName, os::Image *pcImage, os::View *pcView, os::Point cPosition)
 Renders an icon in a view. More...
 
void Layout ()
 Relayouts the view. More...
 
os::Point ConvertToView (os::Point cPoint)
 
void StartScroll (scroll_direction eDirection)
 Start scrolling. More...
 
void StopScroll ()
 Stops scrolling. More...
 
void ScrollToIcon (uint nIcon)
 Scrolls to an icon. More...
 
void SetSelChangeMsg (os::Message *pcMessage)
 Sets the selection change message. More...
 
void SetInvokeMsg (os::Message *pcMessage)
 Sets the invoke message. More...
 
virtual os::MessageGetSelChangeMsg ()
 Returns the selection change message. More...
 
virtual os::MessageGetInvokeMsg ()
 Returns the invoke message. More...
 
virtual void MakeFocus (bool bFocus=true)
 Change focus of the IconView. More...
 
virtual void SetTabOrder (int nOrder=NEXT_TAB_ORDER)
 Set the keyboard manouvering sorting order. More...
 
virtual int GetTabOrder () const
 Get the keybord manouvering order. More...
 
virtual int GetTabOrder ()
 
- Public Member Functions inherited from os::Control
 Control (const Rect &cFrame, const String &cName, const String &cLabel, Message *pcMessage, uint32 nResizeMask, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND)
 
 ~Control ()
 
virtual bool PreValueChange (Variant *pcNewValue)
 
virtual void PostValueChange (const Variant &cNewValue)
 
virtual void LabelChanged (const String &cNewLabel)
 
virtual bool Invoked (Message *pcMessage)
 Intercept outgoing messages. More...
 
virtual void SetEnable (bool bEnabled)
 
virtual bool IsEnabled (void) const
 
virtual void SetLabel (const String &cLabel)
 
virtual String GetLabel (void) const
 
virtual void SetValue (Variant cValue, bool bInvoke=true)
 
virtual Variant GetValue () const
 
virtual void __CTRL_reserved1__ ()
 
virtual void __CTRL_reserved2__ ()
 
virtual void __CTRL_reserved3__ ()
 
virtual void __CTRL_reserved4__ ()
 
virtual void __CTRL_reserved5__ ()
 
- Public Member Functions inherited from os::View
 View (const Rect &cFrame, const String &cTitle, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND)
 View constructor. More...
 
virtual ~View ()
 View destructor. More...
 
virtual void AllAttached ()
 
virtual void AllDetached ()
 
virtual void Activated (bool bIsActive)
 Hook called when the view gain or loose focus. More...
 
virtual void WindowActivated (bool bIsActive)
 Hook called when the window hosting this view gain or loose focus. More...
 
virtual void Paint (const Rect &cUpdateRect)
 Called by the system update "damaged" areas of the view. More...
 
virtual void MouseDown (const Point &cPosition, uint32 nButtons)
 Hook called by the system when a mouse button is pressed. More...
 
virtual void KeyUp (const char *pzString, const char *pzRawString, uint32 nQualifiers)
 Hook called by the system when a key is released while the view has focus. More...
 
virtual void FrameMoved (const Point &cDelta)
 Virtual hook called by the system when the view is moved within it's parent. More...
 
virtual void FrameSized (const Point &cDelta)
 Virtual hook called by the system when the view is resized. More...
 
virtual void ViewScrolled (const Point &cDelta)
 Virtual hook called by the system when the view content is scrolled. More...
 
virtual void FontChanged (Font *pcNewFont)
 Called to notify the view that the font has changed. More...
 
virtual Point GetPreferredSize (bool bLargest) const
 
virtual Point GetContentSize () const
 
virtual void WheelMoved (const Point &cDelta)
 Hook called by the system when the scroll-wheel is rotated. More...
 
virtual void AddChild (View *pcView, bool bAssignTabOrder=false)
 
void RemoveChild (View *pcChild)
 
void RemoveThis ()
 
ViewGetChildAt (const Point &cPos) const
 
ViewGetChildAt (int nIndex) const
 
ViewGetParent () const
 
ScrollBarGetVScrollBar () const
 
ScrollBarGetHScrollBar () const
 
WindowGetWindow () const
 
String GetTitle () const
 
virtual const ShortcutKeyGetShortcut () const
 
virtual void SetShortcut (const ShortcutKey &cShortcut)
 Set keyboard shortcut. More...
 
virtual void SetShortcutFromLabel (const String &cLabel)
 Set keyboard shortcut from Label. More...
 
void SetContextMenu (Menu *pcMenu)
 Set popup menu for a View. More...
 
MenuGetContextMenu () const
 Get popup menu. More...
 
uint32 GetQualifiers () const
 
void GetMouse (Point *pcPosition, uint32 *pnButtons) const
 
void SetMousePos (const Point &cPosition)
 
void BeginDrag (Message *pcData, const Point &cOffset, const Bitmap *pcBitmap, Handler *pcReplyTarget=NULL)
 Start a drag and drop operation. More...
 
void BeginDrag (Message *pcData, const Point &cOffset, const Rect &cBounds, Handler *pcReplyTarget=NULL)
 Start a drag and drop operation. More...
 
void SetFlags (uint32 nFlags)
 
uint32 GetFlags (uint32 nMask=~0L) const
 
void SetResizeMask (uint32 nFlags)
 
uint32 GetResizeMask () const
 
void Show (bool bVisible=true)
 Show/hide a view and all it's children. More...
 
void Hide ()
 
bool IsVisible () const
 
virtual bool HasFocus () const
 
Rect GetFrame () const
 
Rect GetBounds () const
 
Rect GetNormalizedBounds () const
 
float Width () const
 
float Height () const
 
Point GetLeftTop () const
 
virtual void SetFrame (const Rect &cRect, bool bNotifyServer=true)
 Set the size and position relative to the parent view. More...
 
virtual void MoveBy (const Point &cDelta)
 Move the view within the parent coordinate system. More...
 
virtual void MoveBy (float vDeltaX, float vDeltaY)
 
virtual void MoveTo (const Point &cPos)
 Set the views position within the parent coordinate system. More...
 
virtual void MoveTo (float x, float y)
 
virtual void ResizeBy (const Point &cDelta)
 
virtual void ResizeBy (float vDeltaW, float vDeltaH)
 
virtual void ResizeTo (const Point &cSize)
 Set a new absolute size for the view. More...
 
virtual void ResizeTo (float W, float H)
 Set a new absolute size for the view. More...
 
void SetDrawingRegion (const Region &cReg)
 Restrict rendering using a clipping region. More...
 
void ClearDrawingRegion ()
 Remove any previously assigned drawing region. More...
 
void SetShapeRegion (const Region &cReg)
 Define a non-square shape for the view. More...
 
void ClearShapeRegion ()
 Remove any previously assigned shape region. More...
 
virtual int ToggleDepth ()
 
Point ConvertFromParent (const Point &cPoint) const
 
void ConvertFromParent (Point *cPoint) const
 
Rect ConvertFromParent (const Rect &cRect) const
 
void ConvertFromParent (Rect *cRect) const
 
Point ConvertToWindow (const Point &cPoint) const
 
void ConvertToWindow (Point *cPoint) const
 
Rect ConvertToWindow (const Rect &cRect) const
 
void ConvertToWindow (Rect *cRect) const
 
Point ConvertFromWindow (const Point &cPoint) const
 
void ConvertFromWindow (Point *cPoint) const
 
Rect ConvertFromWindow (const Rect &cRect) const
 
void ConvertFromWindow (Rect *cRect) const
 
Point ConvertToScreen (const Point &cPoint) const
 
void ConvertToScreen (Point *cPoint) const
 
Rect ConvertToScreen (const Rect &cRect) const
 
void ConvertToScreen (Rect *cRect) const
 
Point ConvertFromScreen (const Point &cPoint) const
 
void ConvertFromScreen (Point *cPoint) const
 
Rect ConvertFromScreen (const Rect &cRect) const
 
void ConvertFromScreen (Rect *cRect) const
 
void Invalidate (const Rect &cRect, bool bRecurse=false)
 Add a rectangle to the damage list. More...
 
void Invalidate (bool bRecurse=false)
 Invalidate the whole view. More...
 
void Flush ()
 Flush the render queue. More...
 
void Sync ()
 Flush the render queue. More...
 
void SetDrawingMode (drawing_mode nMode)
 
drawing_mode GetDrawingMode () const
 
void SetFont (Font *pcFont)
 Change the views text font. More...
 
FontGetFont () const
 
void SetFgColor (int nRed, int nGreen, int nBlue, int nAlpha=255)
 
void SetFgColor (Color32_s sColor)
 
Color32_s GetFgColor () const
 
void SetBgColor (int nRed, int nGreen, int nBlue, int nAlpha=255)
 
void SetBgColor (Color32_s sColor)
 
Color32_s GetBgColor () const
 
void SetEraseColor (int nRed, int nGreen, int nBlue, int nAlpha=255)
 
void SetEraseColor (Color32_s sColor)
 
Color32_s GetEraseColor () const
 
void MovePenTo (const Point &cPos)
 
void MovePenTo (float x, float y)
 
void MovePenBy (const Point &cPos)
 
void MovePenBy (float x, float y)
 
Point GetPenPosition () const
 Get the current pen position. More...
 
void DrawLine (const Point &cToPoint)
 
void DrawLine (const Point &cFromPnt, const Point &cToPnt)
 
virtual void ScrollBy (const Point &cDelta)
 
virtual void ScrollBy (float vDeltaX, float vDeltaY)
 
virtual void ScrollTo (Point cTopLeft)
 
virtual void ScrollTo (float x, float y)
 
Point GetScrollOffset () const
 
void ScrollRect (const Rect &cSrcRect, const Rect &cDstRect)
 Copy a rectangle from one location to another within the view. More...
 
void FillRect (const Rect &cRect)
 
void FillRect (const Rect &cRect, Color32_s sColor)
 
void DrawBitmap (const Bitmap *pcBitmap, const Rect &cSrcRect, const Rect &cDstRect)
 Render a bitmap into the view. More...
 
void EraseRect (const Rect &cRect)
 
void DrawFrame (const Rect &cRect, uint32 nFlags)
 
void DrawRoundedFrame (const os::Rect &cReizeFrame=os::Rect(1, 4,-1,-4), const os::Color32_s &cColor=get_default_color(COL_SHADOW))
 
void DrawRoundedFrame (const os::Rect &cFrame, const os::Rect &cReizeFrame=os::Rect(1, 4,-1,-4), const os::Color32_s &cColor=get_default_color(COL_SHADOW))
 
void DrawString (const Point &cPos, const String &cString)
 
void DrawString (const String &cString)
 Render a text-string at the current pen position. More...
 
void DrawString (const char *pzStr, int Len=-1)
 
void DrawText (const Rect &cPos, const String &cString, uint32 nFlags=0)
 Render a text-string in a specified rectangle. More...
 
void DrawSelectedText (const Rect &cPos, const String &cString, const IPoint &cSel1, const IPoint &cSel2, uint32 nMode=SEL_CHAR, uint32 nFlags=0)
 
void GetSelection (const String &cClipboard="__system_clipboard__")
 
void GetTruncatedStrings (const char **pazStringArray, int nStringCount, uint32 nMode, float nWidth, char **pazResultArray) const
 
float GetStringWidth (const String &cString) const
 
float GetStringWidth (const char *pzString, int nLen=-1) const
 
void GetStringWidths (const char **apzStringArray, const int *anLengthArray, int nStringCount, float *avWidthArray) const
 
Point GetTextExtent (const String &cString, uint32 nFlags=0, int nTargetWidth=-1) const
 
int GetStringLength (const String &cString, float vWidth, bool bIncludeLast=false) const
 
int GetStringLength (const char *pzString, int nLen, float vWidth, bool bIncludeLast=false) const
 
void GetStringLengths (const char **apzStringArray, const int *anLengthArray, int nStringCount, float vWidth, int *anMaxLengthArray, bool bIncludeLast=false) const
 
void GetFontHeight (font_height *psHeight) const
 
void Ping (int nSize=0) const
 
void SetToolTip (const os::String &t)
 
os::String GetToolTip () const
 
Point ConvertToParent (const Point &cPoint) const
 Translate a os::Point into our parents coordinate system. More...
 
void ConvertToParent (Point *cPoint) const
 Translate a os::Point into our parents coordinate system. More...
 
Rect ConvertToParent (const Rect &cRect) const
 
void ConvertToParent (Rect *cRect) const
 
- Public Member Functions inherited from os::Handler
 Handler (const String &cName)
 Construct a handler. More...
 
virtual ~Handler ()
 Destructor. More...
 
virtual void TimerTick (int nID)
 Timer dispatch member. More...
 
String GetName () const
 Get the handlers name. More...
 
void SetName (const String &cName)
 Rename the handler. More...
 
LooperGetLooper () const
 Get a pointer to the looper this handler belongs to. More...
 
void SetNextHandler (Handler *pcNextHandler)
 Set a handler that should handle messages this handler is not interrested in. More...
 
HandlerGetNextHandler () const
 Get the next handler in a handler chain. More...
 
void AddFilter (MessageFilter *pcFilter)
 
void RemoveFilter (MessageFilter *pcFilter)
 
const MsgFilterListGetFilterList () const
 
const uint32 GetToken ()
 Get the handlers token. More...
 
- Public Member Functions inherited from os::Invoker
 Invoker ()
 Default constructor. More...
 
 Invoker (Message *pcMessage)
 Constructor. More...
 
 Invoker (Message *pcMessage, const Handler *pcHandler, const Looper *pcLooper=NULL)
 Constructor. More...
 
 Invoker (Message *pcMessage, const Messenger &cTarget)
 Constructor. More...
 
virtual ~Invoker ()
 Destructor. More...
 
virtual status_t SetMessage (Message *pcMessage)
 Assign a new message to the invoker. More...
 
MessageGetMessage () const
 Get the message currently assigned to the invoker. More...
 
uint32 GetCode () const
 Get the code field from the currently assigned message. More...
 
virtual void TargetChanged (const Messenger &cOldTarget)
 Virtual hook called by the system after the target has been changed. More...
 
virtual void MessageChanged (const Message &cOldMsg)
 Virtual hook called by the system after the message has been changed. More...
 
virtual status_t SetTarget (const Handler *pcHandler, const Looper *pcLooper=NULL)
 Set a new message target. More...
 
virtual status_t SetTarget (const Messenger &cMessenger)
 Set a new message target. More...
 
bool IsTargetLocal () const
 Check if the target lives in our process. More...
 
HandlerGetTarget (Looper **ppcLooper=NULL) const
 Get the current target. More...
 
Messenger GetMessenger () const
 Get the messenger used to target messages sendt by the invoker. More...
 
virtual status_t SetHandlerForReply (Handler *pcHandler)
 Set a reply target for messages sendt by this messenger. More...
 
HandlerGetHandlerForReply () const
 Get the current reply target for replies on messages sendt by the invoker. More...
 
virtual status_t Invoke (Message *pcMessage=NULL)
 Send the current message to the current target. More...
 

Friends

class os_priv::DirKeeper
 

Additional Inherited Members

- Public Types inherited from os::IconView
enum  scroll_direction {
  SCROLL_UP,
  SCROLL_DOWN,
  SCROLL_LEFT,
  SCROLL_RIGHT
}
 
enum  view_type {
  VIEW_ICONS,
  VIEW_LIST,
  VIEW_DETAILS,
  VIEW_ICONS_DESKTOP
}
 The different view types. More...
 

Detailed Description

Description:
See Also
os::FileRequester
Author
Arno Klenke (arno_.nosp@m.klen.nosp@m.ke@ya.nosp@m.hoo..nosp@m.de)

Constructor & Destructor Documentation

IconDirectoryView::IconDirectoryView ( const Rect cFrame,
const String cPath,
uint32  nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP 
)
IconDirectoryView::~IconDirectoryView ( )

Member Function Documentation

void IconDirectoryView::AttachedToWindow ( void  )
virtual
void IconDirectoryView::DetachedFromWindow ( void  )
virtual
void IconDirectoryView::DirChanged ( const String cNewPath)
virtual
void IconDirectoryView::DragSelection ( os::Point  cStartPoint)
virtual
os::Image * IconDirectoryView::GetDirIcon ( ) const
os::String IconDirectoryView::GetPath ( ) const
void IconDirectoryView::HandleMessage ( Message pcMessage)
virtual
Description:
Overload this member to dispatch messages sendt to this handler. When a looper receives a message for one of it's handlers it will call the taget handlers HandleMessage() to allow the handler to dispatch the message.
The message passed in pcMessage is also available through os::Looper::GetCurrentMessage() and os::Looper::DetachCurrentMessage() until this member returns. This is normally not very usefull for HandleMessage() itself but it can be convinient for other members called from HandleMessage() in case they need data from the message that was not passed on from HandleMessage().
The looper will be locked when this member is called. The default implementation of this member will pass the message on to the next handler if one was set with SetNextHandler().
Note
Never do any lenthy operations in any hook members that are called from the looper thread if the looper is involved with the GUI (for example if the looper is a os::Window). The looper will not be able to dispatch messages until the hook returns so spending a long time in this members will make the GUI feel unresponsive.
Parameters
pcMessageThe message that should be handled. This message will be deleted by the looper when HandleMessage() returns unless you detach it with os::Looper::DetachCurrentMessage(),
See Also
os::Looper::DispatchMessage(), os::Looper::DetachCurrentMessage()
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Reimplemented from os::Handler.

References os::IconView::AddIcon(), os::IconView::AddIconString(), os::Path::Append(), os::String::c_str(), os::Window::CenterInWindow(), os::Directory::CreateDirectoryDialog(), os::delete_files(), os::Message::FindBool(), os::Message::FindData(), os::Message::FindInt(), os::Message::FindInt64(), os::Message::FindPointer(), os::Message::FindString(), g_aFileImage, g_aFolderImage, os::Message::GetCode(), os_priv::DirKeeper::GetCurrentDir(), os::IconDirectoryView::Private::GetDriveIcon(), os::IconView::GetIconCount(), os::IconView::GetIconData(), os::IconView::GetIconSelected(), os::IconView::GetIconString(), os::Directory::GetNextEntry(), os_priv::DirKeeper::GetNode(), os::Path::GetPath(), os::BitmapImage::GetSize(), os::FSNode::GetStat(), os::Catalog::GetString(), os::RegistrarManager::GetTypeAndIcon(), os::IconView::GetView(), os::View::GetWindow(), os::Handler::HandleMessage(), os::RegistrarManager::Launch(), os::IconView::Layout(), os::BitmapImage::Load(), os::DirectoryIconData::m_bBrokenLink, os::IconDirectoryView::Private::m_cPath, os::IconDirectoryView::Private::m_nJobsPending, os::IconDirectoryView::Private::m_pcCatalog, os::IconDirectoryView::Private::m_pcDirKeeper, os::IconDirectoryView::Private::m_pcManager, os::DirectoryIconData::m_pcMonitor, os::DirectoryIconData::m_sStat, os::DirectoryIconData::m_zPath, os::Window::MakeFocus(), os::Handler::Messenger, os::Volumes::MountDialog(), os::move_files(), os::Looper::PostMessage(), os::IconView::RemoveIcon(), ReRead(), os::Directory::Rewind(), os::IconView::SetIconImage(), os::IconView::SetIconString(), os::BitmapImage::SetSize(), os::Window::Show(), os::T_ANY_TYPE, os::Volumes::Unmount(), os::IconView::VIEW_ICONS, and os::IconView::VIEW_ICONS_DESKTOP.

void IconDirectoryView::Invoked ( uint  nIcon,
os::IconData pcData 
)
virtual
bool IconDirectoryView::JobsPending ( ) const
Description:
Returns whether there are still pending jobs like copying, deleting, etc... The view should not be deleted before false is returned.
Returns
Whether there are pending jobs.
Author
Arno Klenke (arno_.nosp@m.klen.nosp@m.ke@ya.nosp@m.hoo..nosp@m.de)

References os::IconDirectoryView::Private::m_nJobsPending.

void IconDirectoryView::KeyDown ( const char *  pzString,
const char *  pzRawString,
uint32  nQualifiers 
)
virtual
Description:
Overload this member if your view need to handle keyboard input. This member is called to allow the view to handle M_KEY_DOWN messages. The most common members are exctracted from the message and passed as parameters but you might need to obtain the raw message with os::Looper::GetCurrentMessage() and find some members yourself if you the data you needed are not passed in.
For example if you need the raw key-code for the pressed key you will have to lookup the "_raw_key" member from the message.
Parameters
pzStringString containing a single UTF-8 encoded character. This is the character generated by the pressed key according to the current keymap accounting for any qualifiers that might be pressed.
pzRawStringSame as pzString except that the key is converted without accounting for qualifiers. Ie. if 'A' is pressed while pressing <SHIFT> pzString will contain 'A' and pzRawString will contain 'a'.
nQualifiersBitmask describing which qualifiers that was active when the key was pressed.
See Also
KeyUp(), os::Looper::GetCurrentMessage()
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Reimplemented from os::View.

References os::Path::Append(), DirChanged(), os::Message::FindInt32(), os::Looper::GetCurrentMessage(), os::Handler::GetLooper(), os::Path::GetPath(), os::View::GetWindow(), os::View::KeyDown(), os::IconDirectoryView::Private::m_bLocked, os::IconDirectoryView::Private::m_cPath, os::Looper::PostMessage(), ReRead(), VK_BACKSPACE, VK_DELETE, and VK_FUNCTION_KEY.

void IconDirectoryView::MouseMove ( const Point cNewPos,
int  nCode,
uint32  nButtons,
Message pcData 
)
virtual
Description:
This member is called from the window thread whenever the mouse is moved above the view or if the view has focus.
Oveload this member if your view need to handle mouse-move events.
The default implementation of this member will call MouseMove() on it's parent view if one exists.
Parameters
cNewPosNew mouse position given in the views coordinate system.
nCodeEnter/exit code. This is MOUSE_ENTERED when the mouse first enter the view, MOUSE_EXITED when the mouse leaves the view, MOUSE_INSIDE whenever the mouse move withing the boundary of the view and MOUSE_OUTSIDE when the mouse move outside the view (will only happen if the view has focus).
nButtonsBitmask telling which buttons that are currently pressed. Bit 0 is button 1 (left), bit 1 is button 2 (right), and bit 2 is button 3 (middle), and so on.
pcDataPointer to a Message object containing the dragged data if the user is in the middle of a drag and drop operation. Otherwise this pointer is NULL. Look at BeginDrag() for a more detailed description of the drag and drop system.
See Also
MouseDown(), MouseUp(), WheelMoved(), BeginDrag()
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Reimplemented from os::View.

References os::Path::Append(), os::Rect::bottom, os::String::c_str(), os::IconView::ConvertToView(), os::Rect::DoIntersect(), os::Message::FindString(), os::View::GetBounds(), os::IconView::GetIconCount(), os::IconView::GetIconData(), os::IconView::GetIconPosition(), os::IconView::GetIconSize(), os::IconView::GetView(), os::Rect::left, os::IconDirectoryView::Private::m_cPath, os::DirectoryIconData::m_sStat, os::DirectoryIconData::m_zPath, os::MOUSE_EXITED, os::MOUSE_OUTSIDE, os::View::MouseMove(), os::Rect::right, os::IconView::SCROLL_DOWN, os::IconView::SCROLL_LEFT, os::IconView::SCROLL_RIGHT, os::IconView::SCROLL_UP, os::IconView::SetIconSelected(), os::IconView::StartScroll(), os::IconView::StopScroll(), os::Rect::top, os::IconView::VIEW_DETAILS, os::IconView::VIEW_ICONS, os::IconView::VIEW_LIST, os::Point::x, and os::Point::y.

void IconDirectoryView::MouseUp ( const Point cPosition,
uint32  nButtons,
Message pcData 
)
virtual
Description:
This member is called from the window thread whenever a mouse button is released above the view. You can overload this member if your view need to know about mouse-up events or if your view support drag and drop.
If mouse-up was the result of ending a drag and drop operation the pcData member will point to a Message containing the dragged data. Look at BeginDrag() for a more detailed description of the drag and drop system.
The default implementation of this member will call MouseDown() on it's parent view if one exists.
Parameters
cPositionMouse position in the views coordinate system at the time the mouse was pressed.
nButtonsIndex of the pressed button. Buttons start at 1 for the left button, 2 for the right button, 3 for the middle button. Additional buttons might be supported by the mouse driver and will then be assigned numbers from 4 and up.
pcDataPointer to a Message object containing the dragged data if this mouse-up was the end of a drag and drop operation. If no data was dragged it will be NULL.
See Also
MouseDown(), MouseMove(), WheelMoved()
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Reimplemented from os::View.

References os::Path::Append(), os::String::c_str(), os::IconView::ConvertToView(), os::copy_files(), os::Rect::DoIntersect(), os::Message::FindPoint(), os::Message::FindString(), os::Path::GetDir(), os::IconView::GetIconCount(), os::IconView::GetIconData(), os::IconView::GetIconPosition(), os::IconView::GetIconSize(), os::Application::GetInstance(), os::Path::GetLeaf(), os::Path::GetPath(), os::Application::GetQualifiers(), os::View::GetQualifiers(), os::IconView::GetView(), os::IconDirectoryView::Private::m_cPath, os::IconDirectoryView::Private::m_nJobsPending, os::DirectoryIconData::m_sStat, os::DirectoryIconData::m_zPath, os::Handler::Messenger, os::View::MouseUp(), os::move_files(), QUAL_ALT, QUAL_CTRL, os::IconView::SetIconPosition(), os::IconView::StopScroll(), os::IconView::VIEW_DETAILS, os::IconView::VIEW_LIST, os::Point::x, and os::Point::y.

void IconDirectoryView::OpenContextMenu ( os::Point  cPosition,
bool  bMouseOverIcon 
)
virtual
void IconDirectoryView::ReRead ( )
void IconDirectoryView::SetAutoLaunch ( bool  bAutoLaunch)
Description:
Sets whether invoked files are automatically launched when they are invoked.
Parameters
bAutoLaunch- Enables/Disables this feature.
Author
Arno Klenke (arno_.nosp@m.klen.nosp@m.ke@ya.nosp@m.hoo..nosp@m.de)

References os::IconDirectoryView::Private::m_bAutoLaunch.

Referenced by os::FileRequester::FileRequester().

void IconDirectoryView::SetDirChangeMsg ( Message pcMsg)
Description:
Sets the message that is sent when the directory changes.
Parameters
pcMsg- The message.
Author
Arno Klenke (arno_.nosp@m.klen.nosp@m.ke@ya.nosp@m.hoo..nosp@m.de)

References os::IconDirectoryView::Private::m_pcDirChangeMsg.

Referenced by os::FileRequester::FileRequester().

void IconDirectoryView::SetDirectoryLocked ( bool  bLocked)
Description:
Sets whether the current directory is locked. When the user tries to access another directory, the message set by SetDirChangeMsg() is sent, but the directory is not changed.
Parameters
bLocked- Enables/Disables this feature.
Author
Arno Klenke (arno_.nosp@m.klen.nosp@m.ke@ya.nosp@m.hoo..nosp@m.de)

References os::IconDirectoryView::Private::m_bLocked.

void IconDirectoryView::SetPath ( const String cPath)
Description:
Sets the current path. After this call you have to call the ReRead() method.
Parameters
cPath- The new path. Please make sure that is is valid.
Author
Arno Klenke (arno_.nosp@m.klen.nosp@m.ke@ya.nosp@m.hoo..nosp@m.de)

References os::String::c_str(), DirChanged(), os::Path::GetPath(), os::IconDirectoryView::Private::m_cPath, and os::Path::SetTo().

Referenced by os::FileRequester::HandleMessage(), and os::FileRequester::SetPath().

Friends And Related Function Documentation

friend class os_priv::DirKeeper
friend