#include <gtkmm/notebook.h>
#include <gtkmm/spinbutton.h>
#include "widget_enum.h"
+#include "autorecover.h"
#include <ETL/stringf>
#include <ETL/misc>
// Misc - single_threaded
misc_table->attach(toggle_single_threaded, 0, 2, 4, 5, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
+ // Misc - auto backup interval
+ misc_table->attach(*manage(new Gtk::Label(_("Auto Backup Interval (0 to disable)"))), 0, 1, 5, 6, Gtk::SHRINK|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
+ misc_table->attach(auto_backup_interval, 1, 2, 5, 6, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
+
show_all_children();
}
// Set the single_threaded flag
App::single_threaded=toggle_single_threaded.get_active();
+ // Set the auto backup interval
+ App::auto_recover->set_timeout(auto_backup_interval.get_value() * 1000);
+
App::distance_system=Distance::System(widget_enum->get_value());
App::save_settings();
// Refresh the status of the single_threaded flag
toggle_single_threaded.set_active(App::single_threaded);
+
+ // Refresh the value of the auto backup interval
+ auto_backup_interval.set_value(App::auto_recover->get_timeout() / 1000);
}
GammaPattern::GammaPattern():
#include <gtkmm/drawingarea.h>
#include <gtkmm/optionmenu.h>
#include <gtkmm/checkbutton.h>
+#include <gtkmm/widget_time.h>
#include <synfig/gamma.h>
#include <synfig/time.h>
Gtk::Menu *timestamp_menu;
Widget_Enum *widget_enum;
+
+ Widget_Time auto_backup_interval;
public:
void set_time_format(synfig::Time::Format time_format);