projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revised Spanish translation for synfigstudio. Thanks genete.
[synfig.git]
/
synfig-studio
/
tags
/
stable
/
src
/
gtkmm
/
instance.h
diff --git
a/synfig-studio/tags/stable/src/gtkmm/instance.h
b/synfig-studio/tags/stable/src/gtkmm/instance.h
index
9f1c193
..
06a0fa4
100644
(file)
--- a/
synfig-studio/tags/stable/src/gtkmm/instance.h
+++ b/
synfig-studio/tags/stable/src/gtkmm/instance.h
@@
-6,6
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \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
@@
-37,6
+38,7
@@
#include <synfig/canvas.h>
/* === M A C R O S ========================================================= */
#include <synfig/canvas.h>
/* === M A C R O S ========================================================= */
+#define DEFAULT_FILENAME_PREFIX _("Synfig Animation ") // will be followed by a different number for each document
/* === T Y P E D E F S ===================================================== */
/* === T Y P E D E F S ===================================================== */
@@
-54,6
+56,13
@@
class Instance : public synfigapp::Instance
public:
typedef std::list< etl::handle<CanvasView> > CanvasViewList;
public:
typedef std::list< etl::handle<CanvasView> > CanvasViewList;
+ enum Status
+ {
+ STATUS_OK,
+ STATUS_ERROR,
+ STATUS_CANCEL
+ };
+
class CanvasTreeModel : public Gtk::TreeModel::ColumnRecord
{
public:
class CanvasTreeModel : public Gtk::TreeModel::ColumnRecord
{
public:
@@
-167,14
+176,18
@@
public:
const CanvasViewList & canvas_view_list()const { return canvas_view_list_; }
const CanvasViewList & canvas_view_list()const { return canvas_view_list_; }
- bool save_as(const synfig::String &filename)const;
-
bool save_as(const synfig::String &filename);
bool save_as(const synfig::String &filename);
+ //! returns true if the instance has a real filename associated with it, rather than the made up "synfig animation 1" or some such
+ bool has_real_filename();
+
//! Opens a "Save As" dialog, and then saves the composition to that file
//! Opens a "Save As" dialog, and then saves the composition to that file
- void dialog_save_as();
+ //! returns true if the save was successful
+ bool dialog_save_as();
+
+ void open();
-
bool
save();
+
Status
save();
void dialog_cvs_commit();
void dialog_cvs_commit();