CocoaListBox.h
Go to the documentation of this file.
//
// CocoaListBox.h
//
//
// Created by Samuel Strupp on 17.08.10.
//
#import <Cocoa/Cocoa.h>
#import "CocoaGwenGUIProtocol.h"
typedef void (*gwenListBoxActionPtr)(NSTableView *listbox, void *data);
@interface CocoaListBox : NSTableView <CocoaGwenGUIProtocol>
{
gwenListBoxActionPtr c_actionPtr;
void *c_actionData;
BOOL fillX;
BOOL fillY;
NSMutableArray *dataArray;
}
@property BOOL fillX;
@property BOOL fillY;
-(void) setC_ActionPtr:(gwenListBoxActionPtr)ptr Data:(void *)data;
-(void) setTitelsAndCreateColumns:(NSString *)titleString;
-(NSString *) titlesString;
-(void) addDataRowString:(NSString *)dataRowString;
-(NSString *) dataRowStringForRow:(NSUInteger)index;
-(void) clearDataRows;
-(BOOL) setColumnWidthTo:(NSInteger)widthInPixels forColumn:(NSInteger)index;
-(NSInteger) widthOfColumn:(NSInteger)index;
-(BOOL) setSortOrderTo:(BOOL)ascending ForColumnWithIndex:(NSUInteger)index;
-(NSInteger) sortOrderForColumnAtIndex:(NSUInteger)index;
@end
CocoaGwenGUIProtocol.h
gwenListBoxActionPtr
void(* gwenListBoxActionPtr)(NSTableView *listbox, void *data)
Definition CocoaListBox.h:11
CocoaListBox
Definition CocoaListBox.h:15
-[CocoaListBox titlesString]
NSString * titlesString()
CocoaListBox::dataArray
NSMutableArray * dataArray
Definition CocoaListBox.h:22
CocoaListBox::fillX
BOOL fillX
Definition CocoaListBox.h:19
CocoaListBox::c_actionPtr
gwenListBoxActionPtr c_actionPtr
Definition CocoaListBox.h:16
CocoaListBox::c_actionData
void * c_actionData
Definition CocoaListBox.h:17
CocoaListBox::fillY
BOOL fillY
Definition CocoaListBox.h:20
-[CocoaListBox clearDataRows]
void clearDataRows()
CocoaGwenGUIProtocol-p
Definition CocoaGwenGUIProtocol.h:12