~thindil/vallheru/vte

« back to all changes in this revision

Viewing changes to VTE/gtk-gui/VTE.MainWindow.cs

  • Committer: thindil
  • Date: 2012-04-23 09:58:01 UTC
  • Revision ID: thindil@tuxfamily.org-20120423095801-gkubgabw68sz515u
added option to clear form and delete existing location

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
                private global::Gtk.UIManager UIManager;
8
8
                private global::Gtk.Action saveAction;
9
9
                private global::Gtk.Action editAction;
 
10
                private global::Gtk.Action clearAction;
 
11
                private global::Gtk.Action deleteAction;
10
12
                private global::Gtk.VBox vbox1;
11
13
                private global::Gtk.Toolbar toolbar1;
12
14
                private global::Gtk.Table table2;
51
53
                        w1.Add (this.saveAction, null);
52
54
                        this.editAction = new global::Gtk.Action ("editAction", null, global::Mono.Unix.Catalog.GetString ("Edytuj istniejącą lokację."), "gtk-edit");
53
55
                        w1.Add (this.editAction, null);
 
56
                        this.clearAction = new global::Gtk.Action ("clearAction", null, global::Mono.Unix.Catalog.GetString ("Wyczyść wszystkie pola"), "gtk-clear");
 
57
                        w1.Add (this.clearAction, null);
 
58
                        this.deleteAction = new global::Gtk.Action ("deleteAction", null, global::Mono.Unix.Catalog.GetString ("Usuń istniejącą lokację"), "gtk-delete");
 
59
                        w1.Add (this.deleteAction, null);
54
60
                        this.UIManager.InsertActionGroup (w1, 0);
55
61
                        this.AddAccelGroup (this.UIManager.AccelGroup);
56
62
                        this.Name = "VTE.MainWindow";
61
67
                        this.vbox1.Name = "vbox1";
62
68
                        this.vbox1.Spacing = 6;
63
69
                        // Container child vbox1.Gtk.Box+BoxChild
64
 
                        this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar1'><toolitem name='saveAction' action='saveAction'/><toolitem name='editAction' action='editAction'/></toolbar></ui>");
 
70
                        this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar1'><toolitem name='clearAction' action='clearAction'/><toolitem name='saveAction' action='saveAction'/><toolitem name='editAction' action='editAction'/><toolitem name='deleteAction' action='deleteAction'/></toolbar></ui>");
65
71
                        this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1")));
66
72
                        this.toolbar1.Name = "toolbar1";
67
73
                        this.toolbar1.ShowArrow = false;
412
418
                        this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
413
419
                        this.saveAction.Activated += new global::System.EventHandler (this.OnAddActionActivated);
414
420
                        this.editAction.Activated += new global::System.EventHandler (this.OnEditActionActivated);
 
421
                        this.clearAction.Activated += new global::System.EventHandler (this.OnClearActionActivated);
 
422
                        this.deleteAction.Activated += new global::System.EventHandler (this.OnDeleteActionActivated);
415
423
                        this.btndelitem.Clicked += new global::System.EventHandler (this.OnBtndelitemClicked);
416
424
                        this.btnedititem.Clicked += new global::System.EventHandler (this.OnBtnedititemClicked);
417
425
                        this.btnadditem.Clicked += new global::System.EventHandler (this.OnBtnadditemClicked);