mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
133 lines
2.2 KiB
Objective-C
133 lines
2.2 KiB
Objective-C
/* All Rights reserved */
|
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
@interface GormFilePrefsManager : NSObject <NSCoding>
|
|
{
|
|
id showIncompatibilities;
|
|
id targetVersion;
|
|
id gormAppVersion;
|
|
id archiveType;
|
|
id iwindow;
|
|
id itable;
|
|
id fileType;
|
|
|
|
// encoded ivars...
|
|
NSInteger version;
|
|
NSString *targetVersionName;
|
|
NSString *archiveTypeName;
|
|
|
|
// version profiles...
|
|
NSDictionary *versionProfiles;
|
|
NSDictionary *currentProfile;
|
|
}
|
|
/**
|
|
* Show incompatibilities in the panel.
|
|
*/
|
|
- (void) showIncompatibilities: (id)sender;
|
|
|
|
/**
|
|
* Action called when the target version pulldown is selected.
|
|
*/
|
|
- (void) selectTargetVersion: (id)sender;
|
|
|
|
/**
|
|
* Action called when the archive type pulldown is selected.
|
|
*/
|
|
- (void) selectArchiveType: (id)sender;
|
|
|
|
/**
|
|
* Loads the encoded file info.
|
|
*/
|
|
- (BOOL) loadFromData: (NSData *)data;
|
|
|
|
/**
|
|
* Loads the encoded file info.
|
|
*/
|
|
- (BOOL) loadFromFile: (NSString *)path;
|
|
|
|
/**
|
|
* Saves the encoded file info.
|
|
*/
|
|
- (NSData *) data;
|
|
|
|
/**
|
|
* Saves the encoded file info.
|
|
*/
|
|
- (NSData *) nibDataWithOpenItems: (NSArray *)openItems;
|
|
|
|
/**
|
|
* Saves the encoded file info.
|
|
*/
|
|
- (BOOL) saveToFile: (NSString *)path;
|
|
|
|
/**
|
|
* Loads the profile.
|
|
*/
|
|
- (void) loadProfile: (NSString *)version;
|
|
|
|
// accessors...
|
|
|
|
/**
|
|
* Gorm Version of the current archive.
|
|
*/
|
|
- (int) version;
|
|
|
|
/**
|
|
* Which version of the gui library, by name.
|
|
*/
|
|
- (NSString *)targetVersionName;
|
|
|
|
/**
|
|
* Which achive type, by name.
|
|
*/
|
|
- (NSString *)archiveTypeName;
|
|
|
|
/**
|
|
* Are we set to the latest version? Returns YES, if so.
|
|
*/
|
|
- (BOOL) isLatest;
|
|
|
|
// set class versions
|
|
/**
|
|
* Sets the version of the classes.
|
|
*/
|
|
- (void) setClassVersions;
|
|
|
|
/**
|
|
* Restores the versions to the most current.
|
|
*/
|
|
- (void) restoreClassVersions;
|
|
|
|
/**
|
|
* Returns the version of the class in the current profile.
|
|
*/
|
|
- (int) versionOfClass: (NSString *)className;
|
|
|
|
// file type...
|
|
/**
|
|
* File type name...
|
|
*/
|
|
- (void) setFileTypeName: (NSString *)ft;
|
|
|
|
/**
|
|
* return file type.
|
|
*/
|
|
- (NSString *) fileTypeName;
|
|
|
|
/**
|
|
* The current Gorm version.
|
|
*/
|
|
+ (int) currentVersion;
|
|
|
|
/**
|
|
* Current profile for the current model file.
|
|
*/
|
|
- (NSDictionary *) currentProfile;
|
|
|
|
/**
|
|
* Version information for the model file.
|
|
*/
|
|
- (NSDictionary *) versionProfiles;
|
|
|
|
@end
|