mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
nibDataWithOpenObjects: * GormCore/GormFilePrefsManager.m: Rename nibData to nibDataWithOpenObjects: * GormCore/GormNibWrapperBuilder.m: Create the IBOpenObjects list in buildWrapper... * GormCore/GormResource.m: Properly assign the data to the ivar in initWithData:... * GormCore/GormWrapperBuilder.m: Correct image loading and saving issue. * GormCore/GormWrapperLoader.m: Correct image problem. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23293 72102866-910b-0410-8b05-ffd578937521
110 lines
1.9 KiB
Objective-C
110 lines
1.9 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;
|
|
|
|
// encoded ivars...
|
|
int 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;
|
|
|
|
/**
|
|
* The current Gorm version.
|
|
*/
|
|
+ (int) currentVersion;
|
|
@end
|