12 #ifndef __PRM_FileHistoryMenu__
13 #define __PRM_FileHistoryMenu__
29 prmBuildHistoryMenu(
PRM_Name *theMRUfiles,
int thelistsize,
40 max = (numfiles >= thelistsize) ? thelistsize-1 : numfiles;
41 for (i = 0; i <
max; i++)
45 theMRUfiles[i].
setToken((
const char *)manager
46 ->getFilenameFromList(i, filetype));
47 theMRUfiles[i].
setLabel(formattedName);
55 prmBuildPICMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
62 prmBuildGEOMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
69 prmBuildRAMPMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
76 prmBuildCAPTMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
83 prmBuildCLIPMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
90 prmBuildPAINTMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
97 prmBuildLUTMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
104 prmBuildCMDMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
111 prmBuildMIDIMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
118 prmBuildTXTMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
125 prmBuildI3DMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
132 prmBuildCHANMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
139 prmBuildSIMMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
146 prmBuildSIMDATAMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
153 prmBuildDIRMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
160 prmBuildMISCMRUList(
void *,
PRM_Name *theMRUfiles,
int thelistsize,
174 callBackFunction = prmBuildPICMRUList;
177 callBackFunction = prmBuildGEOMRUList;
180 callBackFunction = prmBuildCAPTMRUList;
183 callBackFunction = prmBuildRAMPMRUList;
186 callBackFunction = prmBuildCLIPMRUList;
189 callBackFunction = prmBuildPAINTMRUList;
192 callBackFunction = prmBuildLUTMRUList;
195 callBackFunction = prmBuildCMDMRUList;
198 callBackFunction = prmBuildMIDIMRUList;
201 callBackFunction = prmBuildTXTMRUList;
204 callBackFunction = prmBuildI3DMRUList;
207 callBackFunction = prmBuildCHANMRUList;
210 callBackFunction = prmBuildSIMMRUList;
213 callBackFunction = prmBuildSIMDATAMRUList;
216 callBackFunction = prmBuildDIRMRUList;
219 callBackFunction = prmBuildMISCMRUList;
223 return callBackFunction;
227 prmFindHistoryMenuBuilder(
PRM_Type type)
230 prmGetHistoryCallbackFunction(type));
238 == prmGetHistoryCallbackFunction(type));
void setToken(const char *s)
Sets the token, doing a deep copy.
void getFormattedFilenameFromList(int index, FS_FileHistoryType filetype, UT_String &path) const
PRM_ChoiceGenFunc getChoiceGenerator() const
void(* PRM_ChoiceGenFunc)(void *thedata, PRM_Name *thechoicenames, int thelistsize, const PRM_SpareData *thespareptr, const PRM_Parm *theparm)
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
#define FSgetFileHistoryManager
const PRM_PathType & getPathType() const
int numFilesInList(FS_FileHistoryType filetype) const
void setLabel(const char *s)
Sets the label, doing a deep copy.