-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
/*! \file render.cpp
** \brief Template File
**
** $Id: render.cpp,v 1.2 2005/01/10 08:13:44 darco Exp $
**
** \legal
-** Copyright (c) 2002 Robert B. Quattlebaum Jr.
+** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
-** This software and associated documentation
-** are CONFIDENTIAL and PROPRIETARY property of
-** the above-mentioned copyright holder.
+** This package is free software; you can redistribute it and/or
+** modify it under the terms of the GNU General Public License as
+** published by the Free Software Foundation; either version 2 of
+** the License, or (at your option) any later version.
**
-** You may not copy, print, publish, or in any
-** other way distribute this software without
-** a prior written agreement with
-** the copyright holder.
+** This package is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+** General Public License for more details.
** \endlegal
*/
/* ========================================================================= */
#include "render.h"
#include "app.h"
#include <gtkmm/frame.h>
-#include <sinfg/target_scanline.h>
-#include <sinfg/canvas.h>
+#include <synfig/target_scanline.h>
+#include <synfig/canvas.h>
#include "asyncrenderer.h"
#endif
using namespace std;
using namespace etl;
-using namespace sinfg;
+using namespace synfig;
using namespace studio;
/* === M A C R O S ========================================================= */
/* === M E T H O D S ======================================================= */
-RenderSettings::RenderSettings(Gtk::Window& parent,handle<sinfgapp::CanvasInterface> canvas_interface):
+RenderSettings::RenderSettings(Gtk::Window& parent,handle<synfigapp::CanvasInterface> canvas_interface):
Gtk::Dialog(_("Render Settings"),parent,false,true),
canvas_interface_(canvas_interface),
adjustment_quality(3,0,9),
sigc::bind(sigc::mem_fun(*this,&RenderSettings::set_target),String())
));
- sinfg::Target::Book::iterator iter;
- sinfg::Target::Book book(sinfg::Target::book());
+ synfig::Target::Book::iterator iter;
+ synfig::Target::Book book(synfig::Target::book());
for(iter=book.begin();iter!=book.end();iter++)
{
try
{
- entry_filename.set_text(Glib::build_filename(Glib::get_home_dir(),"Desktop/output.png"));
+ entry_filename.set_text(Glib::build_filename(Glib::get_home_dir(),Glib::ustring("Desktop")+ETL_DIRECTORY_SEPERATOR+Glib::ustring("output.png")));
}
catch(...)
{
- sinfg::warning("Averted crash!");
+ synfig::warning("Averted crash!");
entry_filename.set_text("output.png");
}
}
void
-RenderSettings::set_target(sinfg::String name)
+RenderSettings::set_target(synfig::String name)
{
target_name=name;
}