Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

CP_FinderLike_TV_DataBrowser_Doc Class Reference

CP_Document class to handle the data from the main window and reading / writing contents.

List of all members.

Public Member Functions

Constructor / Destructor
 CP_FinderLike_TV_DataBrowser_Doc (CPLAT::CP_ScriptableObject *inContainer, CPLAT::FourCharCode inDocType)
 Constructor.
virtual ~CP_FinderLike_TV_DataBrowser_Doc () throw ()
FileSystem
void GetListingDirectory ()
Document UI
virtual void HandleCreateDocumentUI (SInt32 inPostCreateFlags=CP_E_Doc_Create_DoNothing)
Persist
virtual void DoPostCreate (SInt32 inPostCreateFlags=CP_E_Doc_Create_DoNothing)

Static Public Member Functions

Creator
static CPLAT::CP_Document_Base * DocumentCreator (CPLAT::CP_ScriptableObject *inContainer, CPLAT::FourCharCode inDocumentClass)

Protected Attributes

CPLAT::CP_FileSystemSpec fDirectory
CP_DataSource_FileSpecsfFileSpecsDataSource

Private Types

typedef CPLAT::CP_Document<
CPLAT::CP_UndoPolicy_None,
CPLAT::CP_PrintPolicy_None > 
inherited

Private Member Functions

Slots
void GetDirectory_Callback (CPLAT::CP_FileSystemDialogs_Base *inSendingDialog, const CPLAT::CP_FileSystemSpec &inSelection, bool inOverwrite)
Misc
void PopulateTable (CPLAT::CP_TV_DataBrowser *inBrowser)


Member Typedef Documentation

typedef CPLAT::CP_Document<CPLAT::CP_UndoPolicy_None, CPLAT::CP_PrintPolicy_None> CP_FinderLike_TV_DataBrowser_Doc::inherited [private]
 


Constructor & Destructor Documentation

CP_FinderLike_TV_DataBrowser_Doc::CP_FinderLike_TV_DataBrowser_Doc CPLAT::CP_ScriptableObject *  inContainer,
CPLAT::FourCharCode  inDocType
 

Constructor.

Parameters:
inContainer The scriptable object that serves as a container for this document. In this case it will be the application object.
inDocType The documents default file type.
Exceptions:
none 

CP_FinderLike_TV_DataBrowser_Doc::~CP_FinderLike_TV_DataBrowser_Doc  )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CPLAT::CP_Document_Base * CP_FinderLike_TV_DataBrowser_Doc::DocumentCreator CPLAT::CP_ScriptableObject *  inContainer,
CPLAT::FourCharCode  inDocumentClass
[static]
 

Called when some action has requested we create a new document object. This is usually called from the CP_DocumentFactoryManager when it needs to create a new document.

Parameters:
inContainer The scriptable object that serves as a container for this document. In this case it will be the application object.
inDocumentClass The documents default file type.
Exceptions:
none 
Returns:
void

void CP_FinderLike_TV_DataBrowser_Doc::GetListingDirectory  ) 
 

Called to ask the user to select the directory to list the files from.

Exceptions:
none 
Returns:
void

void CP_FinderLike_TV_DataBrowser_Doc::HandleCreateDocumentUI SInt32  inPostCreateFlags = CP_E_Doc_Create_DoNothing  )  [virtual]
 

Called when the document wants to create the main user interface for the document. In this demo we create a window, with a CP_TextView in it.

Parameters:
inPostCreateFlags Not used.
Exceptions:
none 
Returns:
void

void CP_FinderLike_TV_DataBrowser_Doc::DoPostCreate SInt32  inPostCreateFlags = CP_E_Doc_Create_DoNothing  )  [virtual]
 

Called when the document is created. We use this opportunity to ask the user to select the directory to list the files from.

Parameters:
inPostCreateFlags Not used.
Exceptions:
none 
Returns:
void

void CP_FinderLike_TV_DataBrowser_Doc::GetDirectory_Callback CPLAT::CP_FileSystemDialogs_Base *  inSendingDialog,
const CPLAT::CP_FileSystemSpec &  inSelection,
bool  inOverwrite
[private]
 

Callback from the GetDirectory dialog when the user has selected the directory to list files from.

Parameters:
inSendingDialog Not used.
inSelection The selected directory.
inOverwrite Not used.
Exceptions:
none 
Returns:
void

void CP_FinderLike_TV_DataBrowser_Doc::PopulateTable CPLAT::CP_TV_DataBrowser *  inBrowser  )  [private]
 

Populates the passed in data browser from the files located in the selected directory.

Parameters:
inBrowser The data browser object to add the data to.
Exceptions:
none 
Returns:
void


Member Data Documentation

CPLAT::CP_FileSystemSpec CP_FinderLike_TV_DataBrowser_Doc::fDirectory [protected]
 

CP_DataSource_FileSpecs* CP_FinderLike_TV_DataBrowser_Doc::fFileSpecsDataSource [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:28:27 2005 for CPLAT_MacOS by  doxygen 1.4.0