Inheritance diagram for os::DirectoryView:
Public Member Functions | |
DirectoryView (const Rect &cFrame, const String &cPath, uint32 nModeFlags=F_MULTI_SELECT|F_RENDER_BORDER, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nViewFlags=WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE) | |
~DirectoryView () | |
void | ReRead () |
void | SetPath (const String &cPath) |
String | GetPath () const |
FileRow * | GetFile (int nRow) const |
void | SetDirChangeMsg (Message *pcMsg) |
virtual void | DirChanged (const String &cNewPath) |
virtual void | Invoked (int nFirstRow, int nLastRow) |
virtual bool | DragSelection (const Point &cPos) |
virtual void | HandleMessage (Message *pcMessage) |
Handle a message targeted at this handler. | |
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. | |
virtual void | MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) |
Hook called by the system when the mouse is moved. | |
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. | |
Friends | |
class | os_priv::DirKeeper |
Classes | |
struct | ReadDirParam |
struct | State |
os::DirectoryView::DirectoryView | ( | const Rect & | cFrame, | |
const String & | cPath, | |||
uint32 | nModeFlags = F_MULTI_SELECT|F_RENDER_BORDER , |
|||
uint32 | nResizeMask = CF_FOLLOW_LEFT|CF_FOLLOW_TOP , |
|||
uint32 | nViewFlags = WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE | |||
) |
os::DirectoryView::~DirectoryView | ( | ) |
void os::DirectoryView::ReRead | ( | ) |
void os::DirectoryView::SetPath | ( | const String & | cPath | ) |
String os::DirectoryView::GetPath | ( | ) | const |
FileRow* os::DirectoryView::GetFile | ( | int | nRow | ) | const [inline] |
void os::DirectoryView::SetDirChangeMsg | ( | Message * | pcMsg | ) |
virtual void os::DirectoryView::DirChanged | ( | const String & | cNewPath | ) | [virtual] |
virtual void os::DirectoryView::Invoked | ( | int | nFirstRow, | |
int | nLastRow | |||
) | [virtual] |
Reimplemented from os::ListView.
virtual bool os::DirectoryView::DragSelection | ( | const Point & | cPos | ) | [virtual] |
Reimplemented from os::ListView.
virtual void os::DirectoryView::HandleMessage | ( | Message * | pcMessage | ) | [virtual] |
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(). pcMessage | The message that should be handled. This message will be deleted by the looper when HandleMessage() returns unless you detach it with os::Looper::DetachCurrentMessage(), |
Reimplemented from os::Handler.
virtual void os::DirectoryView::AttachedToWindow | ( | ) | [virtual] |
Reimplemented from os::Control.
virtual void os::DirectoryView::DetachedFromWindow | ( | ) | [virtual] |
Reimplemented from os::Control.
virtual void os::DirectoryView::MouseUp | ( | const Point & | cPosition, | |
uint32 | nButtons, | |||
Message * | pcData | |||
) | [virtual] |
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. cPosition | Mouse position in the views coordinate system at the time the mouse was pressed. | |
nButtons | Index 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. | |
pcData | Pointer 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. |
Reimplemented from os::ListView.
virtual void os::DirectoryView::MouseMove | ( | const Point & | cNewPos, | |
int | nCode, | |||
uint32 | nButtons, | |||
Message * | pcData | |||
) | [virtual] |
cNewPos | New mouse position given in the views coordinate system. | |
nCode | Enter/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). | |
nButtons | Bitmask 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. | |
pcData | Pointer 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. |
Reimplemented from os::ListView.
virtual void os::DirectoryView::KeyDown | ( | const char * | pzString, | |
const char * | pzRawString, | |||
uint32 | nQualifiers | |||
) | [virtual] |
pzString | String 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. | |
pzRawString | Same 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'. | |
nQualifiers | Bitmask describing which qualifiers that was active when the key was pressed. |
Reimplemented from os::ListView.
friend class os_priv::DirKeeper [friend] |