X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Ftime.h;h=5acc15ef7360e26cae13d3ff1824044311bd5282;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=5ea2a898212a17f912ecbb292b5572a3be856059;hpb=cc54c38609ee9745ad678e5e9b9d7d2912be9c95;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/time.h b/synfig-core/trunk/src/synfig/time.h index 5ea2a89..5acc15e 100644 --- a/synfig-core/trunk/src/synfig/time.h +++ b/synfig-core/trunk/src/synfig/time.h @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -54,7 +55,8 @@ public: FORMAT_NORMAL=0, //!< Represents the default method of printing the time FORMAT_NOSPACES=(1<<0), //!< Remove any whitespace FORMAT_FULL=(1<<1), //!< Do not remove units that have "zero" value - FORMAT_VIDEO=(1<<2), //!< Use the HH:MM:SS.ff format + FORMAT_VIDEO=(1<<2), //!< Use the HH:MM:SS.FF format + FORMAT_FRAMES=(1<<3), //!< Use the FF format (frames only) FORMAT_END=(1<<4) //!< \internal Not used }; // END of enum Format @@ -62,7 +64,7 @@ public: private: value_type value_; - static const value_type epsilon_() { return static_cast(0.0005); } + static value_type epsilon_() { return static_cast(0.0005); } public: Time() { } @@ -98,6 +100,10 @@ public: /*! \see Format */ String get_string(float fps=0, Time::Format format=FORMAT_NORMAL)const; +#ifdef _DEBUG + const char *c_str()const; +#endif + //! \writeme bool is_valid()const;