VCF::UIPolicyManager Class Reference
helper class for any document interface policy it manages things like merging menus, etc. More...
#include <vcf/ApplicationKit/UIPolicyManager.h>
Public Types | |
| enum | StandardAccelerator { saApplicationQuit = 1, saApplicationAbout, saApplicationPreferences, saFileNew, saFileOpen, saFileSave, saFileSaveAs, saFilePrint, saFilePageSetup, saEditUndo, saEditRedo, saEditCut, saEditCopy, saEditPaste, saEditDelete, saEditSelectAll, saEditFind, saEditFindNext, saHelpContents, saFileExit = saApplicationQuit, saEditFindAgain = saEditFindNext } |
| These are a standard set of accelerators types that are common to various windowing platforms. More... | |
Public Member Functions | |
| UIPolicyManager () | |
| virtual | ~UIPolicyManager () |
| virtual void | mergeMenus (Menu *appMenu, Menu *windowMenu)=0 |
merges the appMenu into the windowMenu
| |
| virtual Frame * | getOwnerForDialog ()=0 |
| virtual Rect | adjustInitialDialogBounds (Dialog *dialog)=0 |
| virtual String | transformMnemonicValues (const String &input)=0 |
This returns a transformed string that is suitable for passing to text drawing API's when the input string has mnemonic values in it. | |
| virtual AcceleratorKey::Value | getStandardAcceleratorFor (const StandardAccelerator &val)=0 |
| Returns an AcceleratorKey::Value that represents the virtual key code and keyboard modifier(s) for the requested standard accelerator. | |
Detailed Description
helper class for any document interface policy it manages things like merging menus, etc.
Member Enumeration Documentation
|
|
These are a standard set of accelerators types that are common to various windowing platforms. Use these values to determine the proper accelerator key code and modifier(s) to use rather than hard coding them. |
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
|
|
|
|
|
|
Returns an AcceleratorKey::Value that represents the virtual key code and keyboard modifier(s) for the requested standard accelerator. Some platforms may not support all the accelerators in the StandardAccelerator enum, and if this is the case the returned value will be 0 and AcceleratorKey::Value::isEmpty() will return true. |
|
||||||||||||
|
merges the appMenu into the windowMenu
|
|
|
This is platform dependant, so not all platforms will handle this the same way. |
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/UIPolicyManager.h
