separate short_name for packages, moved full_name,short_name and icon_filename to Packaged

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@173 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-25 14:19:36 +00:00
parent f7d12a4114
commit 031266c71b
12 changed files with 41 additions and 63 deletions
+9 -5
View File
@@ -64,10 +64,7 @@ class Package {
const String& absoluteFilename() const;
/// The time this package was last modified
inline wxDateTime lastModified() const { return modified; }
/// Get an input stream for the package icon, if there is any
virtual InputStreamP openIconFile();
/// Open a package, should only be called when the package is constructed using the default constructor!
/// @pre open not called before [TODO]
void open(const String& package);
@@ -187,6 +184,13 @@ class Packaged : public Package {
Packaged();
virtual ~Packaged() {}
String short_name; ///< Short name of this package
String full_name; ///< Name of this package, for menus etc.
String icon_filename; ///< Filename of icon to use in package lists
/// Get an input stream for the package icon, if there is any
InputStreamP openIconFile();
/// Open a package, and read the data
void open(const String& package);
void save();
@@ -196,7 +200,7 @@ class Packaged : public Package {
/// filename of the data file, and extension of the package file
virtual String typeName() const = 0;
/// Can be overloaded to do validation after loading
virtual void validate(Version file_app_version) {}
virtual void validate(Version file_app_version);
DECLARE_REFLECTION_VIRTUAL();
};