Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
UNavServicesDialogs::LCustomFileDesignator Class Reference

#include <UCustomNavServicesDialogs.h>

List of all members.

Public Member Functions

 LCustomFileDesignator ()
 ~LCustomFileDesignator ()
bool AskDesignateFile (ConstStringPtr inDefaultName, ESaveFormat &ioSaveFormat)

Detailed Description

Definition at line 16 of file UCustomNavServicesDialogs.h.


Constructor & Destructor Documentation

Definition at line 217 of file UCustomNavServicesDialogs.cpp.

{

}

Definition at line 225 of file UCustomNavServicesDialogs.cpp.

{
}

Member Function Documentation

bool UNavServicesDialogs::LCustomFileDesignator::AskDesignateFile ( ConstStringPtr  inDefaultName,
ESaveFormat ioSaveFormat 
)

Definition at line 234 of file UCustomNavServicesDialogs.cpp.

{
       StNavEventUPP        eventUPP(NavCustomEventProc);

  CNavCustomPutFileCallbackData callbackData(kCustomSaveFilePanelSize, kCustomSaveFilePanelDITLResID, ioSaveFormat);
  
       LString::CopyPStr(inDefaultName, mNavOptions.savedFileName);

       mNavReply.SetDefaultValues();

       AEDesc*              defaultLocationDesc = nil;
       if (not mDefaultLocation.IsNull()) {
              defaultLocationDesc = mDefaultLocation;

              if (mSelectDefault) {
                     mNavOptions.dialogOptionFlags |= kNavSelectDefaultLocation;
              } else {
                     mNavOptions.dialogOptionFlags &= ~kNavSelectDefaultLocation;
              }
       }

       UDesktop::Deactivate();

       OSErr err = ::NavPutFile(
                                          defaultLocationDesc,
                                          mNavReply,
                                          &mNavOptions,
                                          eventUPP,
                                          mFileType,
                                          mFileCreator,
                                          &callbackData);

       UDesktop::Activate();

       if ( (err != noErr) && (err != userCanceledErr) ) {
              Throw_(err);
       }

  ioSaveFormat = callbackData.GetSaveFormat();
       return mNavReply.IsValid();
}

Here is the call graph for this function:

Here is the caller graph for this function:


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