projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a macro to check the type of value before using it. This will be used by each...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
canvas.h
diff --git
a/synfig-core/trunk/src/synfig/canvas.h
b/synfig-core/trunk/src/synfig/canvas.h
index
af168f9
..
a62c641
100644
(file)
--- a/
synfig-core/trunk/src/synfig/canvas.h
+++ b/
synfig-core/trunk/src/synfig/canvas.h
@@
-45,6
+45,8
@@
/* === M A C R O S ========================================================= */
/* === M A C R O S ========================================================= */
+#define CURRENT_CANVAS_VERSION "0.2"
+
/* === T Y P E D E F S ===================================================== */
/* === C L A S S E S & S T R U C T S ======================================= */
/* === T Y P E D E F S ===================================================== */
/* === C L A S S E S & S T R U C T S ======================================= */
@@
-90,6
+92,10
@@
private:
/*! \see set_description(), get_description() */
String description_;
/*! \see set_description(), get_description() */
String description_;
+ //! Contains the canvas' version string
+ /*! \see set_version(), get_version() */
+ String version_;
+
//! Contains the author's name
/*! \see set_author(), get_author() */
String author_;
//! Contains the author's name
/*! \see set_author(), get_author() */
String author_;
@@
-290,6
+296,12
@@
public:
//! Sets the name of the canvas
void set_name(const String &x);
//! Sets the name of the canvas
void set_name(const String &x);
+ //! Gets the version string of the canvas
+ const String get_version()const { return version_; }
+
+ //! Sets the version string of the canvas
+ void set_version(const String &x) { version_ = x; }
+
//! Gets the author of the canvas
const String & get_author()const { return author_; }
//! Gets the author of the canvas
const String & get_author()const { return author_; }