X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fdistance.h;fp=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fdistance.h;h=decd040c4a3c0ee419dff2a4fa0dc5d60b679e0b;hb=28f28705612902c15cd0702cc891fba35bf2d2df;hp=44d88bc3677dce6d54336e088a191b0cc307d01d;hpb=2c43cbfff01496919316f600ee76112be551392d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/distance.h b/synfig-core/trunk/src/synfig/distance.h index 44d88bc..decd040 100644 --- a/synfig-core/trunk/src/synfig/distance.h +++ b/synfig-core/trunk/src/synfig/distance.h @@ -1,4 +1,4 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file distance.h ** \brief Template Header ** @@ -21,8 +21,8 @@ /* === S T A R T =========================================================== */ -#ifndef __SINFG_DISTANCE_H -#define __SINFG_DISTANCE_H +#ifndef __SYNFIG_DISTANCE_H +#define __SYNFIG_DISTANCE_H /* === H E A D E R S ======================================================= */ @@ -35,7 +35,7 @@ /* === C L A S S E S & S T R U C T S ======================================= */ -namespace sinfg { +namespace synfig { class RendDesc; @@ -70,15 +70,15 @@ public: Distance(){ } Distance(const value_type& value, System system):value_(value),system_(system) { } - explicit Distance(const sinfg::String& string); + explicit Distance(const synfig::String& string); operator Real()const { return value_; } Distance& operator=(const Real& rhs) { value_=rhs; return *this; } - Distance& operator=(const sinfg::String& rhs); + Distance& operator=(const synfig::String& rhs); - sinfg::String get_string(int digits=4)const; + synfig::String get_string(int digits=4)const; const System& get_system()const { return system_; } @@ -93,9 +93,9 @@ public: Real units(const RendDesc& rend_desc)const; static Real meters_to_system(Real x, System target_system); - static System ident_system(const sinfg::String& str); - static sinfg::String system_name(System system); - static sinfg::String system_local_name(System system); + static System ident_system(const synfig::String& str); + static synfig::String system_name(System system); + static synfig::String system_local_name(System system); const Distance& operator+=(const Distance &rhs) { value_+=meters_to_system(rhs.meters(),system_); return *this; } const Distance& operator-=(const Distance &rhs) { value_-=meters_to_system(rhs.meters(),system_); return *this; } @@ -120,7 +120,7 @@ public: */ }; // END of class Distance -}; // END of namespace sinfg +}; // END of namespace synfig /* === E N D =============================================================== */