r3browgd
real/gadget/r3browgd.h
r3gad
File browse gadget. Allows the user to select a file name.
r3Gadget
R3CLID_GADGET
r3Browsegadget
R3CLID_BROWSEGADGET - 278
String, BrowsePrompt, NoUserInterface, BrowseImage, ReportCancel, Relative,
multi-inheritance!
R3BRGM_BROWSESTR
BROWSESTR
R3BRGM_BROWSESTR
obj.BROWSESTR();
Private method.
R3BRGM_OPENBROWSEWINDOW
OPENBROWSEWINDOW
R3BRGM_OPENBROWSEWINDOW
obj.OPENBROWSEWINDOW();
Called by 'Browse' button or the user (see NoUserInterface). when the user selects a string, the caller is informed through mapchanges
R3BRGM_SHOWIMAGE
SHOWIMAGE
R3BRGM_SHOWIMAGE
obj.SHOWIMAGE();
Show the currently selected image.
String
String
R3BRGA_String
String
char*
file name
jsobj.SetString(value);
value = jsobj.GetString();
char* value = ...;
R3SetAttrs(r3obj, R3BRGA_String, value, R3TAG_END);
char* value;
R3GetAttrs(r3obj, R3BRGA_String, &value, R3TAG_END);
BrowsePrompt
BrowsePrompt
R3BRGA_BrowsePrompt
String
char*
title for the 'File' dialog, such as 'Select texture' etc.
jsobj.SetBrowsePrompt(value);
char* value = ...;
R3SetAttrs(r3obj, R3BRGA_BrowsePrompt, value, R3TAG_END);
NoUserInterface
NoUserInterface
R3BRGA_NoUserInterface
Boolean
R3BOOL
R3RM_CREATE/no browse and string controls, caller can fetch file name by sending R3BRGM_OPENBROWSEWINDOW. NOTE: if defined, gadget has no gui and it cannot be inserted to a geometry managers
jsobj.SetNoUserInterface(value);
R3BOOL value = ...;
R3SetAttrs(r3obj, R3BRGA_NoUserInterface, value, R3TAG_END);
BrowseImage
BrowseImage
R3BRGA_BrowseImage
Boolean
R3BOOL
(create only) if true, 'show' button is added allowing the usr to view the selected image
value = jsobj.GetBrowseImage();
R3BOOL value;
R3GetAttrs(r3obj, R3BRGA_BrowseImage, &value, R3TAG_END);
ReportCancel
ReportCancel
R3BRGA_ReportCancel
Boolean
R3BOOL
if set reports cancel as R3OGM_CANCEL
jsobj.SetReportCancel(value);
value = jsobj.GetReportCancel();
R3BOOL value = ...;
R3SetAttrs(r3obj, R3BRGA_ReportCancel, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3BRGA_ReportCancel, &value, R3TAG_END);
Relative
Relative
R3BRGA_Relative
Boolean
R3BOOL
return relative path if in current or program folder
jsobj.SetRelative(value);
value = jsobj.GetRelative();
R3BOOL value = ...;
R3SetAttrs(r3obj, R3BRGA_Relative, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3BRGA_Relative, &value, R3TAG_END);