X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=c7120def97b07775ebec4bc409d068381985a200;hb=28f28705612902c15cd0702cc891fba35bf2d2df;hp=794e0d10ea5342a553650e2720709e8a68a0db92;hpb=16b3beced25134bef064705568ecb893a6be4e79;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 794e0d1..c7120de 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -1,6 +1,6 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file main.cpp -** \brief SINFG Tool +** \brief SYNFIG Tool ** ** $Id: main.cpp,v 1.9 2005/01/23 04:41:10 darco Exp $ ** @@ -34,44 +34,44 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #endif using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; /* === M A C R O S ========================================================= */ enum exit_code { - SINFGTOOL_OK =0, - SINFGTOOL_FILENOTFOUND =1, - SINFGTOOL_BORRED =2, - SINFGTOOL_HELP =3, - SINFGTOOL_UNKNOWNARGUMENT =4, - SINFGTOOL_UNKNOWNERROR =5, - SINFGTOOL_INVALIDTARGET =6, - SINFGTOOL_RENDERFAILURE =7, - SINFGTOOL_BLANK =8, - SINFGTOOL_BADVERSION =9 + SYNFIGTOOL_OK =0, + SYNFIGTOOL_FILENOTFOUND =1, + SYNFIGTOOL_BORRED =2, + SYNFIGTOOL_HELP =3, + SYNFIGTOOL_UNKNOWNARGUMENT =4, + SYNFIGTOOL_UNKNOWNERROR =5, + SYNFIGTOOL_INVALIDTARGET =6, + SYNFIGTOOL_RENDERFAILURE =7, + SYNFIGTOOL_BLANK =8, + SYNFIGTOOL_BADVERSION =9 }; #ifndef VERSION #define VERSION "unknown" -#define PACKAGE "sinfg-tool" +#define PACKAGE "synfig-tool" #endif #ifdef DEFAULT_QUALITY @@ -90,7 +90,7 @@ bool print_benchmarks=false; /* === M E T H O D S ======================================================= */ -class Progress : public sinfg::ProgressCallback +class Progress : public synfig::ProgressCallback { const char *program; @@ -126,7 +126,7 @@ public: } }; -class RenderProgress : public sinfg::ProgressCallback +class RenderProgress : public synfig::ProgressCallback { string taskname; @@ -256,7 +256,7 @@ void guid_test() cout<<"GUID Test"<>8)<<'.'<<((__TCPLUSPLUS__&255)>>4)<<'.'<<(__TCPLUSPLUS__&15); #endif - cout<first<get_name()<get_local_name()<get_version()<first<first<first<first<begin() != '-') { //cerr<<*iter->begin()<<"-----------"<c_str()))); @@ -704,7 +704,7 @@ int extract_RendDesc(arg_list_t &arg_list,RendDesc &desc) } if(span) desc.set_span(span); - return SINFGTOOL_OK; + return SYNFIGTOOL_OK; } int extract_quality(arg_list_t &arg_list,int &quality) @@ -722,7 +722,7 @@ int extract_quality(arg_list_t &arg_list,int &quality) } } - return SINFGTOOL_OK; + return SYNFIGTOOL_OK; } int extract_threads(arg_list_t &arg_list,int &threads) @@ -740,7 +740,7 @@ int extract_threads(arg_list_t &arg_list,int &threads) } } - return SINFGTOOL_OK; + return SYNFIGTOOL_OK; } int extract_target(arg_list_t &arg_list,string &type) @@ -759,7 +759,7 @@ int extract_target(arg_list_t &arg_list,string &type) } } - return SINFGTOOL_OK; + return SYNFIGTOOL_OK; } int extract_append(arg_list_t &arg_list,string &filename) @@ -778,13 +778,13 @@ int extract_append(arg_list_t &arg_list,string &filename) } } - return SINFGTOOL_OK; + return SYNFIGTOOL_OK; } int extract_outfile(arg_list_t &arg_list,string &outfile) { arg_list_t::iterator iter, next; - int ret=SINFGTOOL_FILENOTFOUND; + int ret=SYNFIGTOOL_FILENOTFOUND; outfile.clear(); for(next=arg_list.begin(),iter=next++;iter!=arg_list.end();iter=next++) @@ -795,7 +795,7 @@ int extract_outfile(arg_list_t &arg_list,string &outfile) iter=next++; outfile=*iter; arg_list.erase(iter); - ret=SINFGTOOL_OK; + ret=SYNFIGTOOL_OK; } } @@ -818,7 +818,7 @@ int extract_canvasid(arg_list_t &arg_list,string &canvasid) } } - return SINFGTOOL_OK; + return SYNFIGTOOL_OK; } /* === M E T H O D S ======================================================= */ @@ -834,15 +834,15 @@ int main(int argc, char *argv[]) progname=argv[0]; Progress p(argv[0]); - if(!SINFG_CHECK_VERSION()) + if(!SYNFIG_CHECK_VERSION()) { - cerr<<_("FATAL: Sinfg Version Mismatch")<render(&p)) { cerr<<"Render Failure."<