Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::SDIPolicy Class Reference

class SDIPolicy policy class for Single Document Interface This is the implementation of the regular SDI architecture, with all the tipical operations on a document that we can find in an application having a single document. More...

#include <vcf/ApplicationKit/DocManagerPolicy.h>

List of all members.

Public Member Functions

 SDIPolicy ()
bool usesMainWindow ()
 tells if we want the application to use the main applicaiton's window for a document this is true in a SDI application.
bool saveBeforeNewDocument ()
 tells if we want the application to save the current document before activating a new document
void afterNewDocument (Document *newDocument)
 callback function managing the operation to be done after a new document has been created
DocumentgetCurrentDocument ()
 gets the document that currently has the focus, so to speak, in the application
void setCurrentDocument (VCF::Document *doc)
 sets the specified document as the active one in the application
void closeDocument ()
 closes the window associated to the current document
bool closeDocumentWindow (Window *window)
 closes the specified window
String getDocumentName (Document *doc)
 gets the appropriate name for the current document , the name
void documentWindowActivated (Window *window)
String getDocumentWindowCaption (Document *doc)
void mergeWindowMenus (Menu *appMenu, Menu *documentWindowMenu)
 merges the menu specific of the document window, with the generic application's menu Menu* appMenu, the menu general for any application Menu* documentWindowMenu, the menu specific for this application's document window

Public Attributes

DocumentcurrentDocument_
bool menusMerged_


Detailed Description

class SDIPolicy policy class for Single Document Interface This is the implementation of the regular SDI architecture, with all the tipical operations on a document that we can find in an application having a single document.


Constructor & Destructor Documentation

VCF::SDIPolicy::SDIPolicy  )  [inline]
 


Member Function Documentation

void VCF::SDIPolicy::afterNewDocument Document newDocument  )  [inline]
 

callback function managing the operation to be done after a new document has been created

void VCF::SDIPolicy::closeDocument  )  [inline]
 

closes the window associated to the current document

bool VCF::SDIPolicy::closeDocumentWindow Window window  )  [inline]
 

closes the specified window

void VCF::SDIPolicy::documentWindowActivated Window window  )  [inline]
 

Document* VCF::SDIPolicy::getCurrentDocument  )  [inline]
 

gets the document that currently has the focus, so to speak, in the application

String VCF::SDIPolicy::getDocumentName Document doc  )  [inline]
 

gets the appropriate name for the current document , the name

String VCF::SDIPolicy::getDocumentWindowCaption Document doc  )  [inline]
 

void VCF::SDIPolicy::mergeWindowMenus Menu appMenu,
Menu documentWindowMenu
[inline]
 

merges the menu specific of the document window, with the generic application's menu Menu* appMenu, the menu general for any application Menu* documentWindowMenu, the menu specific for this application's document window

bool VCF::SDIPolicy::saveBeforeNewDocument  )  [inline]
 

tells if we want the application to save the current document before activating a new document

void VCF::SDIPolicy::setCurrentDocument VCF::Document doc  )  [inline]
 

sets the specified document as the active one in the application

bool VCF::SDIPolicy::usesMainWindow  )  [inline]
 

tells if we want the application to use the main applicaiton's window for a document this is true in a SDI application.


Member Data Documentation

Document* VCF::SDIPolicy::currentDocument_
 

bool VCF::SDIPolicy::menusMerged_
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information