- NSBox *o_box;
- NSRect s_crc;
- NSView *o_cview;
- NSPopUpButton *o_modules;
- NSButton *o_btn_select;
- NSButton *o_btn_configure;
- char * psz_duptip = strdup(p_item->psz_longtext);
-
-#define MODULE_BUTTON( button, title, sel ) \
- { \
- s_brc.size.height = 32; \
- s_brc.origin.x += s_brc.size.width + 10; \
- s_brc.size.width = s_crc.size.width - s_brc.origin.x - 10; \
- button = [[NSButton alloc] initWithFrame: s_brc]; \
- [button setButtonType: NSMomentaryPushInButton]; \
- [button setBezelStyle: NSRoundedBezelStyle]; \
- [button setTitle: title]; \
- [button setTag: i_module_tag++]; \
- [button setTarget: self]; \
- [button setAction: @selector(sel)]; \
- [o_cview addSubview: [button autorelease]]; \
- }
-
- s_rc.size.height = 107;
- s_rc.size.width = s_vrc.size.width - X_ORIGIN * 2 - 20;
- s_rc.origin.y += i_module_tag == 3 ? Y_ORIGIN : 20;
-
- CHECK_VIEW_HEIGHT;
-
- o_box = [[NSBox alloc] initWithFrame: s_rc];
- [o_box setTitle: [NSApp localizedString: p_item->psz_text]];
- [o_view addSubview: [o_box autorelease]];
- s_rc.origin.y += s_rc.size.height + 10;
- o_cview = [[VLCFlippedView alloc] initWithFrame: s_rc];
- [o_box setContentView: [o_cview autorelease]];
- s_crc = [o_cview bounds];
-
- s_brc = NSMakeRect( 5, 10, 200, 30 );
- o_modules = [[NSPopUpButton alloc] initWithFrame: s_brc];
- [o_modules setTag: i_module_tag++];
- [o_modules setTarget: self];
- [o_modules setAction: @selector(moduleSelected:)];
- if ( psz_duptip != NULL )