#include <FXDocument.h>
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 FXString & | getTitle () const |
void | setFilename (const FXString &path) |
const FXString & | getFilename () 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 |
FX::FXDocument::FXDocument | ( | ) |
Constructor.
virtual FX::FXDocument::~FXDocument | ( | ) | [virtual] |
Destructor.
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] |
virtual void FX::FXDocument::load | ( | FXStream & | store | ) | [virtual] |
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).