Inheritance diagram for CP_AskSaveChangesDialog:
Dialog handlers | |
virtual void | HandleEvent (NavEventCallbackMessage inSelector, NavCBRec &ioParams) |
virtual void | HandleNavUserAction (NavUserAction inUserAction) |
CP_E_NavDialogResult | GetNavDialogResult (NavUserAction inUserAction) |
Public Member Functions | |
Constructor / Destructor | |
CP_AskSaveChangesDialog () | |
Constructor. | |
virtual | ~CP_AskSaveChangesDialog () throw () |
Destructor. | |
Protected Member Functions | |
virtual NavDialogRef | CreateDialog (NavDialogCreationOptions &inOptions, NavEventUPP inEventUPP, void *inUserData) |
virtual void | RunPlatformDialog () |
Protected Attributes | |
CP_FileSelectionCallback * | fSelectionCallback |
CP_SaveChangesCallback * | fSaveChangesCallback |
CP_SaveChangesCallback * | fRevertCallback |
CP_SaveChangesCallback * | fDontSaveChangesCallback |
CP_SaveChangesCallback * | fCancelCallback |
NavDialogRef | fNavDialog |
bool | fDialogIsRunning |
NavDialogCreationOptions | fNavDialogOptions |
|
Constructor.
|
|
Destructor.
|
|
Creates the MacOS NavigationServices dialog NavCreateAskSaveChangesDialog to ask the user if they want to save changes.
Implements CP_FileSystemDialogs_Base. |
|
Sets up and displays a MessabeBox to ask the user if they want to save changes to the file. When the user responds to the choices in the dialog, one of the registered slots for this object will be called to handle the result.
Reimplemented from CP_FileSystemDialogs_Base. |
|
Runs the platforms file system / NavigationServices dialog. This calls the virtual RunPlatformDialog which handles the actual dialog, depending on the dialog and OS being used.
|
|
Sets the modality of the dialog, and optionally specifies a parent window to use in positioning the dialog relative to the passed in window.
|
|
Sets the callback when the user makes a file selection.
|
|
Sets the callback when the user chooses to save changes.
|
|
Sets the callback when the user chooses to revert to last saved file.
|
|
Sets the callback when the user chooses not to save changes.
|
|
Sets the callback when the user cancels Navigation Services dialog.
|
|
Sets the applications name for this dialog, if the underlying OS supports the display of the apps name.
|
|
Sets the file name for this dialog, if the underlying OS supports the display of the file name. The file name only applies if this dialog is saving a file, and the user is suppling a default file name.
|
|
Options used to control appearance and behavior of Navigation Services dialog. |
|
Returns the last user action of the dialog.
|
|
Returns the MacOS NavDialogRef for the current Navigation Services dialog.
|
|
Returns the MacOS NavDialogOptionFlags for the current Navigation Services dialog. These are the options that control the appearance and behavior of the dialog.
|
|
Sets the MacOS NavDialogOptionFlags for the current Navigation Services dialog. These are the options that control the appearance and behavior of the dialog.
|
|
Event handler to handle events in the NavigationServices dialogs.
Reimplemented in CP_FileSystemDialogs_Reply. |
|
Called when a kNavCBUserAction call is encountered.
|
|
Returns the result of the user dismissing the NavigationServices dialog.
|
|
Called when a kNavCBStart call is encountered.
|
|
Called when a kNavCBTerminate call is encountered.
|
|
|
|
Signal called when the user selects a file. |
|
Signal called when the user responds to the AskSaveChanges dialog. |
|
Signal called when the user responds to the AskRevert dialog. |
|
Signal called when the user responds to the AskSaveChanges/AskRevert dialog. |
|
Signal called when the user responds to the AskSaveChanges/AskRevert dialog. |
|
MacOS NavDialogRef for the current Navigation Services dialog. |
|
Flag to indicate the dialog is currently running. |