FX::FXDocument Class Reference

#include <FXDocument.h>

Inheritance diagram for FX::FXDocument:

Inheritance graph
[legend]

List of all members.


Detailed Description

Abstract base class for documents.

Public Types

enum  { ID_TITLE, ID_FILENAME, ID_LAST }

Public Member Functions

long onUpdTitle (FXObject *, FXSelector, void *)
long onUpdFilename (FXObject *, FXSelector, void *)
 FXDocument ()
FXbool isModified () const
void setModified (FXbool mdfy=TRUE)
void setTitle (const FXString &name)
const FXStringgetTitle () const
void setFilename (const FXString &path)
const FXStringgetFilename () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXDocument ()
virtual long onDefault (FXObject *, FXSelector, void *)
const FXchar * getClassName () const
bool isMemberOf (const FXMetaClass *metaclass) const
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const

Constructor & Destructor Documentation

FX::FXDocument::FXDocument (  ) 

Constructor.

virtual FX::FXDocument::~FXDocument (  )  [virtual]

Destructor.


Member Function Documentation

FXbool FX::FXDocument::isModified (  )  const [inline]

Return true if document is modified.

void FX::FXDocument::setModified ( FXbool  mdfy = TRUE  )  [inline]

Set its modified state.

void FX::FXDocument::setTitle ( const FXString name  ) 

Set document title.

const FXString& FX::FXDocument::getTitle (  )  const [inline]

Get document title.

void FX::FXDocument::setFilename ( const FXString path  ) 

Set document filename.

const FXString& FX::FXDocument::getFilename (  )  const [inline]

Get document filename.

virtual void FX::FXDocument::save ( FXStream store  )  const [virtual]

Save document to a stream.

Reimplemented from FX::FXObject.

virtual void FX::FXDocument::load ( FXStream store  )  [virtual]

Load document from a stream.

Reimplemented from FX::FXObject.

virtual long FX::FXObject::onDefault ( FXObject ,
FXSelector  ,
void *   
) [virtual, inherited]

Called for unhandled messages.

Reimplemented in FX::FXDelegator, FX::FXGLViewer, FX::FXMDIChild, and FX::FXMDIClient.

const FXchar* FX::FXObject::getClassName (  )  const [inherited]

Get class name of some object.

bool FX::FXObject::isMemberOf ( const FXMetaClass metaclass  )  const [inherited]

Check if object is member of metaclass.

virtual long FX::FXObject::tryHandle ( FXObject sender,
FXSelector  sel,
void *  ptr 
) [virtual, inherited]

Try handle message safely.

QTransString FX::FXObject::tr ( const char *  text,
const char *  hint = 0 
) [inherited]

Returns a human translated version of the text to the locale language (warning: uses a virtual method call, so can't use before construction)

virtual void* FX::FXObject::getPythonObject (  )  const [inline, virtual, inherited]

Returns the python object representing this instance (if created in python).

virtual void FX::FXObject::decouplePythonObject (  )  const [inline, virtual, inherited]

Causes decoupling of python object from this object (deletes self).


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 21:58:24 2008 for TnFOX by doxygen v1.5.6