Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

os::FileRequester Class Reference

Generic file requester. More...

#include <filerequester.h>

Inheritance diagram for os::FileRequester::

os::Window os::Looper os::Handler List of all members.

Public Types

enum  file_req_mode_t {
  LOAD_REQ,
  SAVE_REQ
}
enum  {
  NODE_FILE = 0x01,
  NODE_DIR = 0x02
}

Public Methods

 FileRequester (file_req_mode_t nMode=LOAD_REQ, Messenger *pcTarget=NULL, const char *pzPath=NULL, uint32 nNodeType=NODE_FILE, bool bMultiSelect=true, Message *pcMessage=NULL, FileFilter *pcFilter=NULL, bool bModal=false, bool bHideWhenDone=true, const char *pzOkLabel=NULL, const char *pzCancelLabel=NULL)
virtual void HandleMessage (Message *pcMessage)
 Handle a message targeted at this handler. More...

virtual void FrameSized (const Point &cDelta)
void SetPath (const std::string &cPath)
std::string GetPath () const

Detailed Description

Description:
See also:
os::DirectoryView
Author:
Kurt Skauen ([email protected])


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
NODE_FILE  
NODE_DIR  

enum os::FileRequester::file_req_mode_t
 

Enumeration values:
LOAD_REQ  
SAVE_REQ  


Constructor & Destructor Documentation

FileRequester::FileRequester file_req_mode_t nMode = LOAD_REQ,
Messenger * pcTarget = NULL,
const char * pzPath = NULL,
uint32 nNodeType = NODE_FILE,
bool bMultiSelect = true,
Message * pcMessage = NULL,
FileFilter * pcFilter = NULL,
bool bModal = false,
bool bHideWhenDone = true,
const char * pzOkLabel = NULL,
const char * pzCancelLabel = NULL
 


Member Function Documentation

void FileRequester::FrameSized const Point & cDelta [virtual]
 

Reimplemented from os::Window.

std::string FileRequester::GetPath const
 

void FileRequester::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:
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(),
See also:
os::Looper::DispatchMessage(), os::Looper::DetachCurrentMessage()
Author:
Kurt Skauen ([email protected])

Reimplemented from os::Handler.

void FileRequester::SetPath const std::string & a_cPath
 


Generated at Tue Sep 11 15:27:47 2001 for AtheOS higlevel API by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001