Commit 66bf046e authored by Jérome Decoodt's avatar Jérome Decoodt

Work on MacOS preferences. Need to be completed, improved, and debugged...

parent b68c1a2b
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
int i_object_id; int i_object_id;
VLCTreeItem *o_parent; VLCTreeItem *o_parent;
NSMutableArray *o_children; NSMutableArray *o_children;
int i_object_category;
} }
+ (VLCTreeItem *)rootItem; + (VLCTreeItem *)rootItem;
...@@ -35,6 +36,7 @@ ...@@ -35,6 +36,7 @@
- (int)getObjectID; - (int)getObjectID;
- (NSString *)getName; - (NSString *)getName;
- (BOOL)hasPrefs:(NSString *)o_module_name; - (BOOL)hasPrefs:(NSString *)o_module_name;
- (NSView *)showView:(NSScrollView *)o_prefs_view;
@end @end
......
This diff is collapsed.
...@@ -22,16 +22,18 @@ ...@@ -22,16 +22,18 @@
*****************************************************************************/ *****************************************************************************/
@interface VLCConfigControl : NSBox @interface VLCConfigControl : NSView
{ {
vlc_object_t *p_this; vlc_object_t *p_this;
module_config_t *p_item;
char *psz_name; char *psz_name;
NSTextField *o_label; NSTextField *o_label;
int i_type; int i_type;
vlc_bool_t b_advanced; vlc_bool_t b_advanced;
NSView *contentView;
} }
+ (VLCConfigControl *)newControl: (module_config_t *)p_item withView: (NSView *)o_parent_view withObject: (vlc_object_t *)p_this; + (VLCConfigControl *)newControl: (module_config_t *)p_item withView: (NSView *)o_parent_view withObject: (vlc_object_t *)p_this offset:(NSPoint) offset;
- (id)initWithFrame: (NSRect)frame item: (module_config_t *)p_item withObject: (vlc_object_t *)_p_this; - (id)initWithFrame: (NSRect)frame item: (module_config_t *)p_item withObject: (vlc_object_t *)_p_this;
- (NSString *)getName; - (NSString *)getName;
- (int)getType; - (int)getType;
...@@ -50,6 +52,7 @@ ...@@ -50,6 +52,7 @@
} }
@end @end
#if 0
@interface ModuleConfigControl : VLCConfigControl @interface ModuleConfigControl : VLCConfigControl
{ {
...@@ -57,7 +60,7 @@ ...@@ -57,7 +60,7 @@
} }
@end @end
#endif
@interface StringConfigControl : VLCConfigControl @interface StringConfigControl : VLCConfigControl
{ {
NSTextField *o_textfield; NSTextField *o_textfield;
...@@ -71,7 +74,6 @@ ...@@ -71,7 +74,6 @@
} }
@end @end
@interface FileConfigControl : VLCConfigControl @interface FileConfigControl : VLCConfigControl
{ {
NSTextField *o_textfield; NSTextField *o_textfield;
...@@ -114,6 +116,7 @@ ...@@ -114,6 +116,7 @@
- (void)textfieldChanged:(NSNotification *)o_notification; - (void)textfieldChanged:(NSNotification *)o_notification;
@end @end
#if 0
@interface FloatConfigControl : VLCConfigControl @interface FloatConfigControl : VLCConfigControl
{ {
...@@ -142,3 +145,4 @@ ...@@ -142,3 +145,4 @@
} }
@end @end
#endif
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment