.
1 /*
2 Copyright (C) 2013 Johan Mattsson
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 3 of the
7 License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13 */
14
15 namespace BirdFont {
16
17 public class SaveDialogListener : GLib.Object {
18
19 public signal void signal_save ();
20 public signal void signal_discard ();
21 public signal void signal_cancel ();
22
23 public string message;
24 public string discard_message;
25 public string save_message;
26
27 public SaveDialogListener () {
28 this.message = t_("Save?");
29 this.save_message = t_("Save");
30 this.discard_message = t_("Discard");
31 }
32
33 public void save () {
34 signal_save ();
35 }
36
37 public void discard () {
38 signal_discard ();
39 }
40 }
41
42 }
43