projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a gui checkbox rather than using a #define to switch the quadrant limiting...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
lyr_std
/
import.cpp
diff --git
a/synfig-core/trunk/src/modules/lyr_std/import.cpp
b/synfig-core/trunk/src/modules/lyr_std/import.cpp
index
f6dae6c
..
a130984
100644
(file)
--- a/
synfig-core/trunk/src/modules/lyr_std/import.cpp
+++ b/
synfig-core/trunk/src/modules/lyr_std/import.cpp
@@
-1,11
+1,12
@@
/* === S Y N F I G ========================================================= */
/*! \file import.cpp
/* === S Y N F I G ========================================================= */
/*! \file import.cpp
-** \brief Im
age Import Layer Implementation
+** \brief Im
plementation of the "Import Image" layer
**
** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** $Id$
**
** \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
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-54,8
+55,8
@@
using namespace etl;
SYNFIG_LAYER_INIT(Import);
SYNFIG_LAYER_SET_NAME(Import,"import");
SYNFIG_LAYER_INIT(Import);
SYNFIG_LAYER_SET_NAME(Import,"import");
-SYNFIG_LAYER_SET_LOCAL_NAME(Import,
_("Import
"));
-SYNFIG_LAYER_SET_CATEGORY(Import,_("Other"));
+SYNFIG_LAYER_SET_LOCAL_NAME(Import,
N_("Import Image
"));
+SYNFIG_LAYER_SET_CATEGORY(Import,
N
_("Other"));
SYNFIG_LAYER_SET_VERSION(Import,"0.1");
SYNFIG_LAYER_SET_CVS_ID(Import,"$Id$");
SYNFIG_LAYER_SET_VERSION(Import,"0.1");
SYNFIG_LAYER_SET_CVS_ID(Import,"$Id$");
@@
-83,7
+84,7
@@
Import::set_param(const String & param, const ValueBase &value)
{
try{
IMPORT(time_offset);
{
try{
IMPORT(time_offset);
- if(param=="filename" && value.same_as(filename))
+ if(param=="filename" && value.same_
type_
as(filename))
{
if(!get_canvas())
{
{
if(!get_canvas())
{
@@
-143,7
+144,7
@@
Import::set_param(const String & param, const ValueBase &value)
if(is_absolute_path(newfilename))
filename_with_path=newfilename;
else
if(is_absolute_path(newfilename))
filename_with_path=newfilename;
else
- filename_with_path=get_canvas()->get_file_path()+ETL_DIRECTORY_SEP
E
RATOR+newfilename;
+ filename_with_path=get_canvas()->get_file_path()+ETL_DIRECTORY_SEP
A
RATOR+newfilename;
handle<Importer> newimporter;
handle<Importer> newimporter;
@@
-151,7
+152,7
@@
Import::set_param(const String & param, const ValueBase &value)
if(!newimporter)
{
if(!newimporter)
{
- newimporter=Importer::open(get_canvas()->get_file_path()+ETL_DIRECTORY_SEP
E
RATOR+basename(newfilename));
+ newimporter=Importer::open(get_canvas()->get_file_path()+ETL_DIRECTORY_SEP
A
RATOR+basename(newfilename));
if(!newimporter)
{
synfig::error(strprintf("Unable to create an importer object with file \"%s\"",filename_with_path.c_str()));
if(!newimporter)
{
synfig::error(strprintf("Unable to create an importer object with file \"%s\"",filename_with_path.c_str()));