Add tabview enum to header, fix signture issue.

This commit is contained in:
Gregory John Casamento 2021-10-13 08:26:37 -04:00
parent 723ddc2a22
commit 73c03767df
4 changed files with 24 additions and 15 deletions

View file

@ -1,3 +1,9 @@
2021-10-13 Gregory John Casamento <greg.casamento@gmail.com>
* Headers/Additions/GNUstepGUI/GSTheme.h: Add tabview enum
* Source/GSAutocompleteWindow.h: Fix signature mismatch
* Source/GSThemeDrawing.m: Move tabview enum to header.
2021-10-12 Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSBitmapImageRep.m: Change initWithBitmapDataPlanes:...

View file

@ -391,6 +391,22 @@ typedef enum {
GSThemeSelectedState /** A control which is selected */
} GSThemeControlState;
/**
* This enumeration is used when selecting the NSTabView.
*/
typedef enum {
GSTabSelectedLeft,
GSTabSelectedRight,
GSTabSelectedToUnSelectedJunction,
GSTabSelectedFill,
GSTabUnSelectedLeft,
GSTabUnSelectedRight,
GSTabUnSelectedToSelectedJunction,
GSTabUnSelectedJunction,
GSTabUnSelectedFill,
GSTabBackgroundFill
} GSTabPart;
/** Notification sent when a theme has just become active.<br />
* The notification is posted by the -activate method.<br />
* This is primarily for internal use by AppKit controls which

View file

@ -65,8 +65,8 @@
- (void) moveDownSelection;
// Delegate
- (int) numberOfRowsInTableView: (NSTableView*)aTableView;
- (NSInteger) numberOfRowsInTableView: (NSTableView*)aTableView;
- (id) tableView: (NSTableView*)aTableView
objectValueForTableColumn: (NSTableColumn*)aTableColumn
row: (int)rowIndex;
row: (NSInteger)rowIndex;
@end

View file

@ -2075,19 +2075,6 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
}
}
typedef enum {
GSTabSelectedLeft,
GSTabSelectedRight,
GSTabSelectedToUnSelectedJunction,
GSTabSelectedFill,
GSTabUnSelectedLeft,
GSTabUnSelectedRight,
GSTabUnSelectedToSelectedJunction,
GSTabUnSelectedJunction,
GSTabUnSelectedFill,
GSTabBackgroundFill
} GSTabPart;
- (NSImage *)imageForTabPart: (GSTabPart)part type: (NSTabViewType)type
{
NSMutableString *imageName = [NSMutableString stringWithCapacity: 32];