gwenhywfar 4.0.3

CocoaListBox.h

Go to the documentation of this file.
00001 //
00002 //  CocoaListBox.h
00003 //  
00004 //
00005 //  Created by Samuel Strupp on 17.08.10.
00006 //
00007 
00008 #import <Cocoa/Cocoa.h>
00009 #import "CocoaGwenGUIProtocol.h"
00010 
00011 typedef void (*gwenListBoxActionPtr)(NSTableView *listbox, void* data);
00012 
00013 @interface CocoaListBox : NSTableView <CocoaGwenGUIProtocol> {
00014         gwenListBoxActionPtr c_actionPtr;
00015         void* c_actionData;
00016         
00017         BOOL fillX;
00018         BOOL fillY;
00019         
00020         NSMutableArray *dataArray;
00021 }
00022 
00023 @property BOOL fillX;
00024 @property BOOL fillY;
00025 
00026 -(void) setC_ActionPtr:(gwenListBoxActionPtr)ptr Data:(void*)data;
00027 
00028 -(void) setTitelsAndCreateColumns:(NSString*)titleString;
00029 -(NSString*) titlesString;
00030 -(void) addDataRowString:(NSString*)dataRowString;
00031 -(NSString*) dataRowStringForRow:(NSUInteger)index;
00032 -(void) clearDataRows;
00033 
00034 -(BOOL) setColumnWidthTo:(NSInteger)widthInPixels forColumn:(NSInteger)index;
00035 -(NSInteger) widthOfColumn:(NSInteger)index;
00036 -(BOOL) setSortOrderTo:(BOOL)ascending ForColumnWithIndex:(NSUInteger)index;
00037 -(NSInteger) sortOrderForColumnAtIndex:(NSUInteger)index;
00038 
00039 @end