gwenhywfar  5.11.1beta
CocoaListBox.h
Go to the documentation of this file.
1 //
2 // CocoaListBox.h
3 //
4 //
5 // Created by Samuel Strupp on 17.08.10.
6 //
7 
8 #import <Cocoa/Cocoa.h>
10 
11 typedef void (*gwenListBoxActionPtr)(NSTableView *listbox, void *data);
12 
13 @interface CocoaListBox : NSTableView <CocoaGwenGUIProtocol>
14 {
16  void *c_actionData;
17 
18  BOOL fillX;
19  BOOL fillY;
20 
21  NSMutableArray *dataArray;
22 }
23 
24 @property BOOL fillX;
25 @property BOOL fillY;
26 
27 -(void) setC_ActionPtr:(gwenListBoxActionPtr)ptr Data:(void *)data;
28 
29 -(void) setTitelsAndCreateColumns:(NSString *)titleString;
30 -(NSString *) titlesString;
31 -(void) addDataRowString:(NSString *)dataRowString;
32 -(NSString *) dataRowStringForRow:(NSUInteger)index;
33 -(void) clearDataRows;
34 
35 -(BOOL) setColumnWidthTo:(NSInteger)widthInPixels forColumn:(NSInteger)index;
36 -(NSInteger) widthOfColumn:(NSInteger)index;
37 -(BOOL) setSortOrderTo:(BOOL)ascending ForColumnWithIndex:(NSUInteger)index;
38 -(NSInteger) sortOrderForColumnAtIndex:(NSUInteger)index;
39 
40 @end
void(* gwenListBoxActionPtr)(NSTableView *listbox, void *data)
Definition: CocoaListBox.h:11
NSMutableArray * dataArray
Definition: CocoaListBox.h:22
gwenListBoxActionPtr c_actionPtr
Definition: CocoaListBox.h:16
void * c_actionData
Definition: CocoaListBox.h:17