Back to index

salome-gui  6.5.0
Public Slots | Public Member Functions | Static Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | Friends
CAF_EXPORT Protocol Reference

#include <CAF_Application.h>

Inheritance diagram for CAF_EXPORT:
Inheritance graph
[legend]
Collaboration diagram for CAF_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Slots

virtual void onHelpAbout ()

Public Member Functions

 CAF_Application ()
 CAF_Application (const Handle(TDocStd_Application)&)
virtual ~CAF_Application ()
virtual QString applicationName () const
 Handle (TDocStd_Application) stdApp() const
virtual QString getFileFilter () const
 CAF_Operation (SUIT_Application *)
virtual ~CAF_Operation ()
 CAF_Study (SUIT_Application *theApp)
 CAF_Study (SUIT_Application *theApp, Handle(TDocStd_Document)&aStdDoc)
virtual ~CAF_Study ()
virtual bool createDocument (const QString &)
virtual void closeDocument (bool=true)
virtual bool openDocument (const QString &)
virtual bool saveDocumentAs (const QString &)
bool isSaved () const
bool isModified () const
void doModified (bool=true)
void undoModified ()
void clearModified ()
bool undo ()
bool redo ()
bool canUndo () const
bool canRedo () const
QStringList undoNames () const
QStringList redoNames () const
 Handle (TDocStd_Document) stdDoc() const

Static Public Member Functions

static QString toQString (const TCollection_AsciiString &)
static QString toQString (const TCollection_ExtendedString &)
static TCollection_ExtendedString toExtString (const QString &)
static TCollection_AsciiString toAsciiString (const QString &)
static Quantity_Color color (const QColor &)
static QColor color (const Quantity_Color &)

Protected Types

enum  { EditUndoId = STD_Application::UserID, EditRedoId, UserID }

Protected Slots

virtual bool onUndo (int)
virtual bool onRedo (int)

Protected Member Functions

virtual void createActions ()
virtual void updateCommandsStatus ()
virtual SUIT_StudycreateNewStudy ()
bool undo (CAF_Study *doc)
bool redo (CAF_Study *doc)
virtual void setStdApp (const Handle(TDocStd_Application)&)
 Handle (TDocStd_Document) stdDoc() const
 Handle (TDocStd_Application) stdApp() const
CAF_ApplicationcafApplication () const
virtual bool openTransaction ()
virtual bool abortTransaction ()
virtual bool hasTransaction () const
virtual bool commitTransaction (const QString &=QString())
virtual void setStdDoc (Handle(TDocStd_Document)&)

Private Member Functions

 Handle (TDocStd_Application) myStdApp
 Handle (TDocStd_Document) myStdDoc

Private Attributes

int myModifiedCnt

Friends

class CAF_Operation

Detailed Description

Definition at line 38 of file CAF_Application.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
EditUndoId 
EditRedoId 
UserID 

Definition at line 61 of file CAF_Application.h.


Constructor & Destructor Documentation

virtual CAF_EXPORT::~CAF_Application ( ) [virtual]
virtual CAF_EXPORT::~CAF_Operation ( ) [virtual]
virtual CAF_EXPORT::~CAF_Study ( ) [virtual]

Member Function Documentation

virtual bool CAF_EXPORT::abortTransaction ( ) [protected, virtual]
virtual QString CAF_EXPORT::applicationName ( ) const [virtual]
CAF_EXPORT::CAF_Application ( const Handle(TDocStd_Application)&  )
CAF_EXPORT::CAF_Operation ( SUIT_Application *  )
CAF_EXPORT::CAF_Study ( SUIT_Application *  theApp)
CAF_EXPORT::CAF_Study ( SUIT_Application *  theApp,
Handle(TDocStd_Document)&  aStdDoc 
)
bool CAF_EXPORT::canRedo ( ) const
bool CAF_EXPORT::canUndo ( ) const
virtual void CAF_EXPORT::closeDocument ( bool  = true) [virtual]
static Quantity_Color CAF_EXPORT::color ( const QColor &  ) [static]
static QColor CAF_EXPORT::color ( const Quantity_Color &  ) [static]
virtual bool CAF_EXPORT::commitTransaction ( const QString &  = QString()) [protected, virtual]
virtual void CAF_EXPORT::createActions ( ) [protected, virtual]
virtual bool CAF_EXPORT::createDocument ( const QString &  ) [virtual]
virtual SUIT_Study* CAF_EXPORT::createNewStudy ( ) [protected, virtual]
void CAF_EXPORT::doModified ( bool  = true)
virtual QString CAF_EXPORT::getFileFilter ( ) const [virtual]
CAF_EXPORT::Handle ( TDocStd_Document  ) const [protected]
CAF_EXPORT::Handle ( TDocStd_Application  ) const
CAF_EXPORT::Handle ( TDocStd_Document  ) const
CAF_EXPORT::Handle ( TDocStd_Application  ) const [protected]
CAF_EXPORT::Handle ( TDocStd_Application  ) [private]
CAF_EXPORT::Handle ( TDocStd_Document  ) [private]
virtual bool CAF_EXPORT::hasTransaction ( ) const [protected, virtual]
bool CAF_EXPORT::isModified ( ) const
bool CAF_EXPORT::isSaved ( ) const
virtual void CAF_EXPORT::onHelpAbout ( ) [virtual, slot]
virtual bool CAF_EXPORT::onRedo ( int  ) [protected, virtual, slot]
virtual bool CAF_EXPORT::onUndo ( int  ) [protected, virtual, slot]
virtual bool CAF_EXPORT::openDocument ( const QString &  ) [virtual]
virtual bool CAF_EXPORT::openTransaction ( ) [protected, virtual]
bool CAF_EXPORT::redo ( )
bool CAF_EXPORT::redo ( CAF_Study doc) [protected]
QStringList CAF_EXPORT::redoNames ( ) const
virtual bool CAF_EXPORT::saveDocumentAs ( const QString &  ) [virtual]
virtual void CAF_EXPORT::setStdApp ( const Handle(TDocStd_Application)&  ) [protected, virtual]
virtual void CAF_EXPORT::setStdDoc ( Handle(TDocStd_Document)&  ) [protected, virtual]
static TCollection_AsciiString CAF_EXPORT::toAsciiString ( const QString &  ) [static]
static TCollection_ExtendedString CAF_EXPORT::toExtString ( const QString &  ) [static]
static QString CAF_EXPORT::toQString ( const TCollection_AsciiString &  ) [static]
static QString CAF_EXPORT::toQString ( const TCollection_ExtendedString &  ) [static]
bool CAF_EXPORT::undo ( )
bool CAF_EXPORT::undo ( CAF_Study doc) [protected]
QStringList CAF_EXPORT::undoNames ( ) const
virtual void CAF_EXPORT::updateCommandsStatus ( ) [protected, virtual]

Friends And Related Function Documentation

friend class CAF_Operation [friend]

Definition at line 84 of file CAF_Study.h.


Member Data Documentation

Definition at line 82 of file CAF_Study.h.


The documentation for this protocol was generated from the following files: