[Frugalware-git] frugal-tweak: *added acces to webservice *can synchronise note with some box \o/

bouleetbil bouleetbil at frogdev.info
Thu Nov 18 21:59:07 CET 2010


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=c325eea667a5d6191bd342161003433c59f2f7ad

commit c325eea667a5d6191bd342161003433c59f2f7ad
Author: bouleetbil <bouleetbil at frogdev.info>
Date:   Thu Nov 18 21:55:17 2010 +0100

*added acces to webservice
*can synchronise note with some box \o/

diff --git a/frugal-mono-tools/FrugalNote.cs b/frugal-mono-tools/FrugalNote.cs
new file mode 100644
index 0000000..4a87d61
--- /dev/null
+++ b/frugal-mono-tools/FrugalNote.cs
@@ -0,0 +1,160 @@
+// /*
+//  *  Copyright (C) 2010 by Gaetan Gourdin <bouleetbil at frogdev.info>
+//  *
+//  *  This program 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.
+//  *
+//  *  This program 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.
+//  *
+//  *  You should have received a copy of the GNU General Public License
+//  *  along with this program; if not, write to the Free Software
+//  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+//  */
+using System;
+namespace frugalmonotools
+{
+
+	[System.Web.Services.WebServiceBinding(Name="FrugalNotesSoap", Namespace="http://tempuri.org/")]
+	[System.Diagnostics.DebuggerStepThroughAttribute()]
+	[System.ComponentModel.DesignerCategoryAttribute("code")]
+public partial class FrugalNotes : System.Web.Services.Protocols.SoapHttpClientProtocol {
+
+    private System.Threading.SendOrPostCallback SendNoteOperationCompleted;
+
+    private System.Threading.SendOrPostCallback GetNoteOperationCompleted;
+
+    public FrugalNotes() {
+        this.Url = "http://dors.frugalware.org/webservices/FrugalNotes.asmx";
+    }
+
+    public event SendNoteCompletedEventHandler SendNoteCompleted;
+
+    public event GetNoteCompletedEventHandler GetNoteCompleted;
+
+    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SendNote", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
+    public bool SendNote(string user, string pass, string note) {
+        object[] results = this.Invoke("SendNote", new object[] {
+                    user,
+                    pass,
+                    note});
+        return ((bool)(results[0]));
+    }
+
+    public System.IAsyncResult BeginSendNote(string user, string pass, string note, System.AsyncCallback callback, object asyncState) {
+        return this.BeginInvoke("SendNote", new object[] {
+                    user,
+                    pass,
+                    note}, callback, asyncState);
+    }
+
+    public bool EndSendNote(System.IAsyncResult asyncResult) {
+        object[] results = this.EndInvoke(asyncResult);
+        return ((bool)(results[0]));
+    }
+
+    public void SendNoteAsync(string user, string pass, string note) {
+        this.SendNoteAsync(user, pass, note, null);
+    }
+
+    public void SendNoteAsync(string user, string pass, string note, object userState) {
+        if ((this.SendNoteOperationCompleted == null)) {
+            this.SendNoteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendNoteCompleted);
+        }
+        this.InvokeAsync("SendNote", new object[] {
+                    user,
+                    pass,
+                    note}, this.SendNoteOperationCompleted, userState);
+    }
+
+    private void OnSendNoteCompleted(object arg) {
+        if ((this.SendNoteCompleted != null)) {
+            System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
+            this.SendNoteCompleted(this, new SendNoteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
+        }
+    }
+
+    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetNote", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
+    public string GetNote(string user, string pass) {
+        object[] results = this.Invoke("GetNote", new object[] {
+                    user,
+                    pass});
+        return ((string)(results[0]));
+    }
+
+    public System.IAsyncResult BeginGetNote(string user, string pass, System.AsyncCallback callback, object asyncState) {
+        return this.BeginInvoke("GetNote", new object[] {
+                    user,
+                    pass}, callback, asyncState);
+    }
+
+    public string EndGetNote(System.IAsyncResult asyncResult) {
+        object[] results = this.EndInvoke(asyncResult);
+        return ((string)(results[0]));
+    }
+
+    public void GetNoteAsync(string user, string pass) {
+        this.GetNoteAsync(user, pass, null);
+    }
+
+    public void GetNoteAsync(string user, string pass, object userState) {
+        if ((this.GetNoteOperationCompleted == null)) {
+            this.GetNoteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNoteCompleted);
+        }
+        this.InvokeAsync("GetNote", new object[] {
+                    user,
+                    pass}, this.GetNoteOperationCompleted, userState);
+    }
+
+    private void OnGetNoteCompleted(object arg) {
+        if ((this.GetNoteCompleted != null)) {
+            System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
+            this.GetNoteCompleted(this, new GetNoteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
+        }
+    }
+}
+
+public partial class SendNoteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
+
+    private object[] results;
+
+    internal SendNoteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
+            base(exception, cancelled, userState) {
+        this.results = results;
+    }
+
+    public bool Result {
+        get {
+            this.RaiseExceptionIfNecessary();
+            return ((bool)(this.results[0]));
+        }
+    }
+}
+
+public delegate void SendNoteCompletedEventHandler(object sender, SendNoteCompletedEventArgs args);
+
+public partial class GetNoteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
+
+    private object[] results;
+
+    internal GetNoteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
+            base(exception, cancelled, userState) {
+        this.results = results;
+    }
+
+    public string Result {
+        get {
+            this.RaiseExceptionIfNecessary();
+            return ((string)(this.results[0]));
+        }
+    }
+}
+
+public delegate void GetNoteCompletedEventHandler(object sender, GetNoteCompletedEventArgs args);
+
+}
+
diff --git a/frugal-mono-tools/WID_Notes.cs b/frugal-mono-tools/WID_Notes.cs
index 5fe5ec9..9fb4ae9 100644
--- a/frugal-mono-tools/WID_Notes.cs
+++ b/frugal-mono-tools/WID_Notes.cs
@@ -22,6 +22,7 @@ namespace frugalmonotools
[System.ComponentModel.ToolboxItem(true)]
public partial class WID_Notes : Gtk.Bin
{
+		const string cch_UrlWebService="http://dors.frugalware.org/webservices/FrugalNotes.asmx";
const string cch_FileNote= "/notes.txt";
public WID_Notes ()
{
@@ -47,6 +48,30 @@ namespace frugalmonotools
MainClass.configuration.ConfSave();
}

+		protected virtual void OnBTNSendClicked (object sender, System.EventArgs e)
+		{
+			//send to server
+			FrugalNotes note = new FrugalNotes();
+			if(note.SendNote(MainClass.configuration.Get_NoteLogin(),MainClass.configuration.Get_NotePass(),TXT_Note.Buffer.Text))
+			{
+				LIB_Info.Text="Note sending to server";
+			}
+			else
+			{
+				LIB_Info.Text="Error : could not send note to the server";
+			}
+			LIB_Info.Visible=true;
+		}
+
+		protected virtual void OnBTNDownloadClicked (object sender, System.EventArgs e)
+		{
+			//get from server
+			FrugalNotes note = new FrugalNotes();
+			TXT_Note.Buffer.Text = note.GetNote(MainClass.configuration.Get_NoteLogin(),MainClass.configuration.Get_NotePass());
+		}
+
+
+


}
diff --git a/frugal-mono-tools/frugal-mono-tools.csproj b/frugal-mono-tools/frugal-mono-tools.csproj
index e286b0a..a0afd3f 100644
--- a/frugal-mono-tools/frugal-mono-tools.csproj
+++ b/frugal-mono-tools/frugal-mono-tools.csproj
@@ -51,6 +51,8 @@
<Reference Include="notify-sharp, Version=0.4.0.0, Culture=neutral, PublicKeyToken=2df29c54e245917a" />
<Reference Include="System.ServiceProcess" />
<Reference Include="dbus-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5675b0c3093115b5" />
+    <Reference Include="System.Web" />
+    <Reference Include="System.Web.Services" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="gtk-gui\gui.stetic">
@@ -154,6 +156,7 @@
<Compile Include="gtk-gui\frugalmonotools.MessageBox.cs" />
<Compile Include="WID_Notes.cs" />
<Compile Include="gtk-gui\frugalmonotools.WID_Notes.cs" />
+    <Compile Include="FrugalNote.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Notes.cs b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Notes.cs
index 988a693..e90326b 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Notes.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Notes.cs
@@ -12,6 +12,8 @@ namespace frugalmonotools

private global::Gtk.TextView TXT_Note;

+		private global::Gtk.Label LIB_Info;
+
private global::Gtk.HBox hbox1;

private global::Gtk.Button BTN_Download;
@@ -46,7 +48,7 @@ namespace frugalmonotools
this.notebook2 = new global::Gtk.Notebook ();
this.notebook2.CanFocus = true;
this.notebook2.Name = "notebook2";
-			this.notebook2.CurrentPage = 1;
+			this.notebook2.CurrentPage = 0;
// Container child notebook2.Gtk.Notebook+NotebookChild
this.vbox1 = new global::Gtk.VBox ();
this.vbox1.Name = "vbox1";
@@ -64,6 +66,15 @@ namespace frugalmonotools
global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
w2.Position = 0;
// Container child vbox1.Gtk.Box+BoxChild
+			this.LIB_Info = new global::Gtk.Label ();
+			this.LIB_Info.Name = "LIB_Info";
+			this.LIB_Info.LabelProp = global::Mono.Unix.Catalog.GetString ("label3");
+			this.vbox1.Add (this.LIB_Info);
+			global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.LIB_Info]));
+			w3.Position = 1;
+			w3.Expand = false;
+			w3.Fill = false;
+			// Container child vbox1.Gtk.Box+BoxChild
this.hbox1 = new global::Gtk.HBox ();
this.hbox1.Name = "hbox1";
this.hbox1.Spacing = 6;
@@ -73,83 +84,83 @@ namespace frugalmonotools
this.BTN_Download.Name = "BTN_Download";
this.BTN_Download.UseUnderline = true;
// Container child BTN_Download.Gtk.Container+ContainerChild
-			global::Gtk.Alignment w3 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+			global::Gtk.Alignment w4 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
// Container child GtkAlignment.Gtk.Container+ContainerChild
-			global::Gtk.HBox w4 = new global::Gtk.HBox ();
-			w4.Spacing = 2;
+			global::Gtk.HBox w5 = new global::Gtk.HBox ();
+			w5.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
-			global::Gtk.Image w5 = new global::Gtk.Image ();
-			w5.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-down", global::Gtk.IconSize.Menu);
-			w4.Add (w5);
+			global::Gtk.Image w6 = new global::Gtk.Image ();
+			w6.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-down", global::Gtk.IconSize.Menu);
+			w5.Add (w6);
// Container child GtkHBox.Gtk.Container+ContainerChild
-			global::Gtk.Label w7 = new global::Gtk.Label ();
-			w7.LabelProp = global::Mono.Unix.Catalog.GetString ("Get from server");
-			w7.UseUnderline = true;
-			w4.Add (w7);
-			w3.Add (w4);
-			this.BTN_Download.Add (w3);
+			global::Gtk.Label w8 = new global::Gtk.Label ();
+			w8.LabelProp = global::Mono.Unix.Catalog.GetString ("Get from server");
+			w8.UseUnderline = true;
+			w5.Add (w8);
+			w4.Add (w5);
+			this.BTN_Download.Add (w4);
this.hbox1.Add (this.BTN_Download);
-			global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.BTN_Download]));
-			w11.Position = 0;
-			w11.Expand = false;
-			w11.Fill = false;
+			global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.BTN_Download]));
+			w12.Position = 0;
+			w12.Expand = false;
+			w12.Fill = false;
// Container child hbox1.Gtk.Box+BoxChild
this.BTN_Send = new global::Gtk.Button ();
this.BTN_Send.CanFocus = true;
this.BTN_Send.Name = "BTN_Send";
this.BTN_Send.UseUnderline = true;
// Container child BTN_Send.Gtk.Container+ContainerChild
-			global::Gtk.Alignment w12 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+			global::Gtk.Alignment w13 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
// Container child GtkAlignment.Gtk.Container+ContainerChild
-			global::Gtk.HBox w13 = new global::Gtk.HBox ();
-			w13.Spacing = 2;
+			global::Gtk.HBox w14 = new global::Gtk.HBox ();
+			w14.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
-			global::Gtk.Image w14 = new global::Gtk.Image ();
-			w14.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-up", global::Gtk.IconSize.Menu);
-			w13.Add (w14);
+			global::Gtk.Image w15 = new global::Gtk.Image ();
+			w15.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-up", global::Gtk.IconSize.Menu);
+			w14.Add (w15);
// Container child GtkHBox.Gtk.Container+ContainerChild
-			global::Gtk.Label w16 = new global::Gtk.Label ();
-			w16.LabelProp = global::Mono.Unix.Catalog.GetString ("Send to server");
-			w16.UseUnderline = true;
-			w13.Add (w16);
-			w12.Add (w13);
-			this.BTN_Send.Add (w12);
+			global::Gtk.Label w17 = new global::Gtk.Label ();
+			w17.LabelProp = global::Mono.Unix.Catalog.GetString ("Send to server");
+			w17.UseUnderline = true;
+			w14.Add (w17);
+			w13.Add (w14);
+			this.BTN_Send.Add (w13);
this.hbox1.Add (this.BTN_Send);
-			global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.BTN_Send]));
-			w20.Position = 1;
-			w20.Expand = false;
-			w20.Fill = false;
+			global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.BTN_Send]));
+			w21.Position = 1;
+			w21.Expand = false;
+			w21.Fill = false;
// Container child hbox1.Gtk.Box+BoxChild
this.BTN_Save = new global::Gtk.Button ();
this.BTN_Save.CanFocus = true;
this.BTN_Save.Name = "BTN_Save";
this.BTN_Save.UseUnderline = true;
// Container child BTN_Save.Gtk.Container+ContainerChild
-			global::Gtk.Alignment w21 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+			global::Gtk.Alignment w22 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
// Container child GtkAlignment.Gtk.Container+ContainerChild
-			global::Gtk.HBox w22 = new global::Gtk.HBox ();
-			w22.Spacing = 2;
+			global::Gtk.HBox w23 = new global::Gtk.HBox ();
+			w23.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
-			global::Gtk.Image w23 = new global::Gtk.Image ();
-			w23.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save", global::Gtk.IconSize.Menu);
-			w22.Add (w23);
+			global::Gtk.Image w24 = new global::Gtk.Image ();
+			w24.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save", global::Gtk.IconSize.Menu);
+			w23.Add (w24);
// Container child GtkHBox.Gtk.Container+ContainerChild
-			global::Gtk.Label w25 = new global::Gtk.Label ();
-			w25.LabelProp = global::Mono.Unix.Catalog.GetString ("Save");
-			w25.UseUnderline = true;
-			w22.Add (w25);
-			w21.Add (w22);
-			this.BTN_Save.Add (w21);
+			global::Gtk.Label w26 = new global::Gtk.Label ();
+			w26.LabelProp = global::Mono.Unix.Catalog.GetString ("Save");
+			w26.UseUnderline = true;
+			w23.Add (w26);
+			w22.Add (w23);
+			this.BTN_Save.Add (w22);
this.hbox1.Add (this.BTN_Save);
-			global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.BTN_Save]));
-			w29.Position = 2;
-			w29.Expand = false;
-			w29.Fill = false;
-			this.vbox1.Add (this.hbox1);
-			global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
-			w30.Position = 1;
+			global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.BTN_Save]));
+			w30.Position = 2;
w30.Expand = false;
w30.Fill = false;
+			this.vbox1.Add (this.hbox1);
+			global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
+			w31.Position = 2;
+			w31.Expand = false;
+			w31.Fill = false;
this.notebook2.Add (this.vbox1);
// Notebook tab
this.label1 = new global::Gtk.Label ();
@@ -166,10 +177,10 @@ namespace frugalmonotools
this.label3.Name = "label3";
this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("You can synchronise with Internet. Just choose a login/user.\nInscription is free.");
this.vbox2.Add (this.label3);
-			global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.label3]));
-			w32.Position = 0;
-			w32.Expand = false;
-			w32.Fill = false;
+			global::Gtk.Box.BoxChild w33 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.label3]));
+			w33.Position = 0;
+			w33.Expand = false;
+			w33.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild
this.SAI_Login = new global::Gtk.Entry ();
this.SAI_Login.CanFocus = true;
@@ -178,10 +189,10 @@ namespace frugalmonotools
this.SAI_Login.IsEditable = true;
this.SAI_Login.InvisibleChar = '•';
this.vbox2.Add (this.SAI_Login);
-			global::Gtk.Box.BoxChild w33 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.SAI_Login]));
-			w33.Position = 1;
-			w33.Expand = false;
-			w33.Fill = false;
+			global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.SAI_Login]));
+			w34.Position = 1;
+			w34.Expand = false;
+			w34.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild
this.SAI_Pass = new global::Gtk.Entry ();
this.SAI_Pass.CanFocus = true;
@@ -191,10 +202,10 @@ namespace frugalmonotools
this.SAI_Pass.Visibility = false;
this.SAI_Pass.InvisibleChar = '•';
this.vbox2.Add (this.SAI_Pass);
-			global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.SAI_Pass]));
-			w34.Position = 2;
-			w34.Expand = false;
-			w34.Fill = false;
+			global::Gtk.Box.BoxChild w35 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.SAI_Pass]));
+			w35.Position = 2;
+			w35.Expand = false;
+			w35.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild
this.hbox2 = new global::Gtk.HBox ();
this.hbox2.Name = "hbox2";
@@ -205,34 +216,34 @@ namespace frugalmonotools
this.BTN_SaveOptions.Name = "BTN_SaveOptions";
this.BTN_SaveOptions.UseUnderline = true;
// Container child BTN_SaveOptions.Gtk.Container+ContainerChild
-			global::Gtk.Alignment w35 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+			global::Gtk.Alignment w36 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
// Container child GtkAlignment.Gtk.Container+ContainerChild
-			global::Gtk.HBox w36 = new global::Gtk.HBox ();
-			w36.Spacing = 2;
+			global::Gtk.HBox w37 = new global::Gtk.HBox ();
+			w37.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
-			global::Gtk.Image w37 = new global::Gtk.Image ();
-			w37.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save", global::Gtk.IconSize.Menu);
-			w36.Add (w37);
+			global::Gtk.Image w38 = new global::Gtk.Image ();
+			w38.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save", global::Gtk.IconSize.Menu);
+			w37.Add (w38);
// Container child GtkHBox.Gtk.Container+ContainerChild
-			global::Gtk.Label w39 = new global::Gtk.Label ();
-			w39.LabelProp = global::Mono.Unix.Catalog.GetString ("Save");
-			w39.UseUnderline = true;
-			w36.Add (w39);
-			w35.Add (w36);
-			this.BTN_SaveOptions.Add (w35);
+			global::Gtk.Label w40 = new global::Gtk.Label ();
+			w40.LabelProp = global::Mono.Unix.Catalog.GetString ("Save");
+			w40.UseUnderline = true;
+			w37.Add (w40);
+			w36.Add (w37);
+			this.BTN_SaveOptions.Add (w36);
this.hbox2.Add (this.BTN_SaveOptions);
-			global::Gtk.Box.BoxChild w43 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.BTN_SaveOptions]));
-			w43.Position = 2;
-			w43.Expand = false;
-			w43.Fill = false;
-			this.vbox2.Add (this.hbox2);
-			global::Gtk.Box.BoxChild w44 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
-			w44.Position = 4;
+			global::Gtk.Box.BoxChild w44 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.BTN_SaveOptions]));
+			w44.Position = 2;
w44.Expand = false;
w44.Fill = false;
+			this.vbox2.Add (this.hbox2);
+			global::Gtk.Box.BoxChild w45 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
+			w45.Position = 4;
+			w45.Expand = false;
+			w45.Fill = false;
this.notebook2.Add (this.vbox2);
-			global::Gtk.Notebook.NotebookChild w45 = ((global::Gtk.Notebook.NotebookChild)(this.notebook2[this.vbox2]));
-			w45.Position = 1;
+			global::Gtk.Notebook.NotebookChild w46 = ((global::Gtk.Notebook.NotebookChild)(this.notebook2[this.vbox2]));
+			w46.Position = 1;
// Notebook tab
this.label2 = new global::Gtk.Label ();
this.label2.Name = "label2";
@@ -244,7 +255,8 @@ namespace frugalmonotools
this.Child.ShowAll ();
}
this.Hide ();
-			this.BTN_Download.Clicked += new global::System.EventHandler (this.OnBTNSaveClicked);
+			this.BTN_Download.Clicked += new global::System.EventHandler (this.OnBTNDownloadClicked);
+			this.BTN_Send.Clicked += new global::System.EventHandler (this.OnBTNSendClicked);
this.BTN_Save.Clicked += new global::System.EventHandler (this.OnBTNSaveClicked);
this.BTN_SaveOptions.Clicked += new global::System.EventHandler (this.OnBTNSaveOptionsClicked);
}
diff --git a/frugal-mono-tools/gtk-gui/gui.stetic b/frugal-mono-tools/gtk-gui/gui.stetic
index 1947975..a809d6a 100644
--- a/frugal-mono-tools/gtk-gui/gui.stetic
+++ b/frugal-mono-tools/gtk-gui/gui.stetic
@@ -3972,7 +3972,7 @@ Public License instead of this License.
<widget class="Gtk.Notebook" id="notebook2">
<property name="MemberName" />
<property name="CanFocus">True</property>
-        <property name="CurrentPage">1</property>
+        <property name="CurrentPage">0</property>
<child>
<widget class="Gtk.VBox" id="vbox1">
<property name="MemberName" />
@@ -3996,6 +3996,18 @@ Public License instead of this License.
</packing>
</child>
<child>
+              <widget class="Gtk.Label" id="LIB_Info">
+                <property name="MemberName" />
+                <property name="LabelProp" translatable="yes">label3</property>
+              </widget>
+              <packing>
+                <property name="Position">1</property>
+                <property name="AutoSize">True</property>
+                <property name="Expand">False</property>
+                <property name="Fill">False</property>
+              </packing>
+            </child>
+            <child>
<widget class="Gtk.HBox" id="hbox1">
<property name="MemberName" />
<property name="Spacing">6</property>
@@ -4007,7 +4019,7 @@ Public License instead of this License.
<property name="Icon">stock:gtk-go-down Menu</property>
<property name="Label" translatable="yes">Get from server</property>
<property name="UseUnderline">True</property>
-                    <signal name="Clicked" handler="OnBTNSaveClicked" />
+                    <signal name="Clicked" handler="OnBTNDownloadClicked" />
</widget>
<packing>
<property name="Position">0</property>
@@ -4024,6 +4036,7 @@ Public License instead of this License.
<property name="Icon">stock:gtk-go-up Menu</property>
<property name="Label" translatable="yes">Send to server</property>
<property name="UseUnderline">True</property>
+                    <signal name="Clicked" handler="OnBTNSendClicked" />
</widget>
<packing>
<property name="Position">1</property>
@@ -4051,7 +4064,7 @@ Public License instead of this License.
</child>
</widget>
<packing>
-                <property name="Position">1</property>
+                <property name="Position">2</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>


More information about the Frugalware-git mailing list