34 NSRect frame = [textBrowser frame];
35 frame.size.width = value;
36 [textBrowser setFrame:frame];
41 NSRect frame = [textBrowser frame];
42 frame.size.height = value;
43 [textBrowser setFrame:frame];
53 "Function is not appropriate for this type of widget (%s)",
78 return [textBrowser frame].size.width;
81 return [textBrowser frame].size.height;
88 "Function is not appropriate for this type of widget (%s)",
107 if (value && *value) {
113 NSString *basePathString = nil;
114 if (basePath && *basePath) {
115 basePathString = [[NSString alloc] initWithCString:basePath encoding:NSUTF8StringEncoding];
118 NSString *stringValue = [[NSString alloc] initWithCString:value encoding:NSUTF8StringEncoding];
119 [textBrowser setStringValue:stringValue BasePath:basePathString];
120 [stringValue release];
121 [basePathString release];
130 "Function is not appropriate for this type of widget (%s)",
141 const char *defaultValue) {
148 NSString* stringValue = [textBrowser stringValue];
149 if (stringValue && [stringValue length] > 0)
150 return [stringValue cStringUsingEncoding:NSUTF8StringEncoding];
159 "Function is not appropriate for this type of widget (%s)",
173 wParent=GWEN_Widget_Tree_GetParent(w);
177 textBrowser = [[[
CocoaTextBrowser alloc] initWithFrame:NSMakeRect(0.0, 0.0, 30.0, 30.0) frameName:nil groupName:nil] autorelease];
182 NSString *stringValue = [[NSString alloc] initWithCString:s encoding:NSUTF8StringEncoding];
183 [textBrowser setStringValue:stringValue];
184 [stringValue release];
#define COCOA_DIALOG_WIDGET_REAL
#define COCOA_DIALOG_WIDGET_CONTENT
#define DBG_WARN(dbg_logger, format,...)
GWEN_STRINGLIST * GWEN_Dialog_GetMediaPaths(const GWEN_DIALOG *dlg)
#define GWEN_WIDGET_FLAGS_FILLY
#define GWEN_WIDGET_FLAGS_FILLX
@ GWEN_DialogProperty_Height
@ GWEN_DialogProperty_Enabled
@ GWEN_DialogProperty_Value
@ GWEN_DialogProperty_Focus
@ GWEN_DialogProperty_Width
#define GWEN_ERROR_INVALID
const char * GWEN_StringListEntry_Data(const GWEN_STRINGLISTENTRY *se)
GWEN_STRINGLISTENTRY * GWEN_StringList_FirstEntry(const GWEN_STRINGLIST *sl)
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
static GWENHYWFAR_CB int CocoaGui_WTextBrowser_GetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
int CocoaGui_WTextBrowser_Setup(GWEN_WIDGET *w)
static GWENHYWFAR_CB int CocoaGui_WTextBrowser_SetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
static GWENHYWFAR_CB int CocoaGui_WTextBrowser_SetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
static GWENHYWFAR_CB const char * CocoaGui_WTextBrowser_GetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)