gwenhywfar  4.10.0beta
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> {
15  void* c_actionData;
16 
17  BOOL fillX;
18  BOOL fillY;
19 
20  NSMutableArray *dataArray;
21 }
22 
23 @property BOOL fillX;
24 @property BOOL fillY;
25 
26 -(void) setC_ActionPtr:(gwenListBoxActionPtr)ptr Data:(void*)data;
27 
28 -(void) setTitelsAndCreateColumns:(NSString*)titleString;
29 -(NSString*) titlesString;
30 -(void) addDataRowString:(NSString*)dataRowString;
31 -(NSString*) dataRowStringForRow:(NSUInteger)index;
32 -(void) clearDataRows;
33 
34 -(BOOL) setColumnWidthTo:(NSInteger)widthInPixels forColumn:(NSInteger)index;
35 -(NSInteger) widthOfColumn:(NSInteger)index;
36 -(BOOL) setSortOrderTo:(BOOL)ascending ForColumnWithIndex:(NSUInteger)index;
37 -(NSInteger) sortOrderForColumnAtIndex:(NSUInteger)index;
38 
39 @end