mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 09:51:08 +00:00
Add instance vars
This commit is contained in:
parent
9acdc77dd2
commit
dd2851da69
2 changed files with 27 additions and 8 deletions
|
@ -45,14 +45,19 @@ typedef NSUInteger NSPDFPanelOptions;
|
|||
DEFINE_BLOCK_TYPE(GSPDFPanelCompletionHandler, void, NSInteger);
|
||||
|
||||
@interface NSPDFPanel : NSObject
|
||||
{
|
||||
NSViewController *_accessoryController;
|
||||
NSPDFPanelOptions _options;
|
||||
NSString *_defaultFileName;
|
||||
}
|
||||
|
||||
+ (NSPDFPanel *) panel;
|
||||
|
||||
- (NSViewController *) accessoryController;
|
||||
- (void) setAccessoryController: (NSViewController *)accessoryView;
|
||||
- (void) setAccessoryController: (NSViewController *)accessoryController;
|
||||
|
||||
- (NSPDFPanelOptions) options;
|
||||
- (void) setPDFPanelOptions: (NSPDFPanelOptions)opts;
|
||||
- (void) setOptions: (NSPDFPanelOptions)opts;
|
||||
|
||||
- (NSString *) defaultFileName;
|
||||
- (void) setDefaultFileName: (NSString *)fileName;
|
||||
|
|
|
@ -35,31 +35,45 @@
|
|||
return nil;
|
||||
}
|
||||
|
||||
- (NSViewController *) accessoryController
|
||||
- init
|
||||
{
|
||||
return nil;
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
_options = NSPDFPanelShowsPaperSize;
|
||||
_defaultFileName = @"";
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) setAccessoryController: (NSViewController *)accessoryView
|
||||
- (NSViewController *) accessoryController
|
||||
{
|
||||
return _accessoryController;
|
||||
}
|
||||
|
||||
- (void) setAccessoryController: (NSViewController *)accessoryController
|
||||
{
|
||||
ASSIGN(_accessoryController, accessoryController);
|
||||
}
|
||||
|
||||
- (NSPDFPanelOptions) options
|
||||
{
|
||||
return 0;
|
||||
return _options;
|
||||
}
|
||||
|
||||
- (void) setPDFPanelOptions: (NSPDFPanelOptions)opts
|
||||
- (void) setOptions: (NSPDFPanelOptions)opts
|
||||
{
|
||||
_options = opts;
|
||||
}
|
||||
|
||||
- (NSString *) defaultFileName
|
||||
{
|
||||
return nil;
|
||||
return _defaultFileName;
|
||||
}
|
||||
|
||||
- (void) setDefaultFileName: (NSString *)fileName
|
||||
{
|
||||
ASSIGNCOPY(_defaultFileName, fileName);
|
||||
}
|
||||
|
||||
- (void) begineSheetWithPDFInfo: (NSPDFInfo *)pdfInfo
|
||||
|
|
Loading…
Reference in a new issue