Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=f292c751992f741ec275fa10e6c7d4fce67f700b
commit f292c751992f741ec275fa10e6c7d4fce67f700b Author: bouleetbil <bouleet...@frogdev.info> Date: Tue Sep 21 23:00:07 2010 +0200 *Added GUI grub support now should write it :p diff --git a/frugal-irc/gtk-gui/MainWindow.cs b/frugal-irc/gtk-gui/MainWindow.cs index fa61549..b6785cb 100644 --- a/frugal-irc/gtk-gui/MainWindow.cs +++ b/frugal-irc/gtk-gui/MainWindow.cs @@ -163,7 +163,7 @@ public partial class MainWindow this.BTN_Send.CanFocus = true; this.BTN_Send.Name = "BTN_Send"; this.BTN_Send.UseUnderline = true; - this.BTN_Send.Label = global::Mono.Unix.Catalog.GetString ("Send"); + this.BTN_Send.Label = global::Mono.Unix.Catalog.GetString ("_Send"); this.hbox2.Add (this.BTN_Send); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.BTN_Send])); w11.Position = 1; diff --git a/frugal-mono-tools/Fen_Menu.cs b/frugal-mono-tools/Fen_Menu.cs index 49a784a..9eba4ae 100644 --- a/frugal-mono-tools/Fen_Menu.cs +++ b/frugal-mono-tools/Fen_Menu.cs @@ -30,6 +30,7 @@ namespace frugalmonotools private const string cch_updateConf="Config Files"; private const string cch_packages="Packages"; private const string cch_hardware="Hardware"; + private const string cch_grub="Grub"; private const string cch_services="Services"; private const string cch_network="Network"; private const string cch_loginManager="Login Manager"; @@ -54,6 +55,7 @@ namespace frugalmonotools WID_Hardware fen_hardware ; WID_LoginManager fen_loginManager; WID_Logs fen_logs; + WID_Grub fen_grub; protected Gtk.TreeIter iter; public Fen_Menu () : base(Gtk.WindowType.Toplevel) @@ -103,6 +105,12 @@ namespace frugalmonotools ListMenu.AppendValues(iconet.ScaleSimple(20,20, Gdk.InterpType.Nearest),cch_network); Pixbuf icologin = global::Gdk.Pixbuf.LoadFromResource ("frugalmonotools.Pictures.icons.loginmanager.png"); ListMenu.AppendValues(icologin.ScaleSimple(20,20, Gdk.InterpType.Nearest),cch_loginManager); + string ouput = Outils.getoutput("uname -a"); + if (ouput.IndexOf("i686") >=0 || ouput.IndexOf("x86_64")>=0) + { + Pixbuf icogrub = global::Gdk.Pixbuf.LoadFromResource ("frugalmonotools.Pictures.icons.grub.png"); + ListMenu.AppendValues(icogrub.ScaleSimple(20,20, Gdk.InterpType.Nearest),cch_grub); + } Pixbuf icosup = global::Gdk.Pixbuf.LoadFromResource ("frugalmonotools.Pictures.icons.support.png"); ListMenu.AppendValues(icosup.ScaleSimple(20,20, Gdk.InterpType.Nearest),cch_support); Pixbuf iconews = global::Gdk.Pixbuf.LoadFromResource ("frugalmonotools.Pictures.icons.news.png"); @@ -202,6 +210,12 @@ namespace frugalmonotools this.fen_network.InitNetworkManager(); break; + case cch_grub: + this.fen_grub= new WID_Grub(); + this.HBOX_Details.PackStart(fen_grub); + this.HBOX_Details.ShowAll(); + break; + case cch_logs: this.fen_logs = new WID_Logs(); this.HBOX_Details.PackStart(fen_logs); diff --git a/frugal-mono-tools/Pictures/icons/grub.png b/frugal-mono-tools/Pictures/icons/grub.png new file mode 100644 index 0000000..394f60d Binary files /dev/null and b/frugal-mono-tools/Pictures/icons/grub.png differ diff --git a/frugal-mono-tools/WID_Grub.cs b/frugal-mono-tools/WID_Grub.cs new file mode 100644 index 0000000..30d5544 --- /dev/null +++ b/frugal-mono-tools/WID_Grub.cs @@ -0,0 +1,30 @@ +// /* +// * Copyright (C) 2010 by Gaetan Gourdin <bouleet...@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.ComponentModel.ToolboxItem(true)] + public partial class WID_Grub : Gtk.Bin + { + public WID_Grub () + { + this.Build (); + } + } +} + diff --git a/frugal-mono-tools/frugal-mono-tools.csproj b/frugal-mono-tools/frugal-mono-tools.csproj index 460407f..d9f3b91 100644 --- a/frugal-mono-tools/frugal-mono-tools.csproj +++ b/frugal-mono-tools/frugal-mono-tools.csproj @@ -83,6 +83,7 @@ <EmbeddedResource Include="Pictures\icons\updateconf.png" /> <EmbeddedResource Include="Pictures\Mono-powered.png" /> <EmbeddedResource Include="Pictures\icons\logs.png" /> + <EmbeddedResource Include="Pictures\icons\grub.png" /> </ItemGroup> <ItemGroup> <Compile Include="gtk-gui\generated.cs" /> @@ -133,6 +134,8 @@ <Compile Include="gtk-gui\frugalmonotools.WID_UpdateConf.cs" /> <Compile Include="WID_Logs.cs" /> <Compile Include="gtk-gui\frugalmonotools.WID_Logs.cs" /> + <Compile Include="WID_Grub.cs" /> + <Compile Include="gtk-gui\frugalmonotools.WID_Grub.cs" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Grub.cs b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Grub.cs new file mode 100644 index 0000000..e941143 --- /dev/null +++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Grub.cs @@ -0,0 +1,117 @@ + +// This file has been generated by the GUI designer. Do not modify. +namespace frugalmonotools +{ + public partial class WID_Grub + { + private global::Gtk.VBox vbox1; + + private global::Gtk.ComboBox CBO_Entry; + + private global::Gtk.Label LIB_Title; + + private global::Gtk.Entry SAI_Title; + + private global::Gtk.ScrolledWindow GtkScrolledWindow; + + private global::Gtk.TextView TXT_Options; + + private global::Gtk.HBox hbox1; + + private global::Gtk.Button BTN_Apply; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget frugalmonotools.WID_Grub + global::Stetic.BinContainer.Attach (this); + this.Name = "frugalmonotools.WID_Grub"; + // Container child frugalmonotools.WID_Grub.Gtk.Container+ContainerChild + this.vbox1 = new global::Gtk.VBox (); + this.vbox1.Name = "vbox1"; + this.vbox1.Spacing = 6; + // Container child vbox1.Gtk.Box+BoxChild + this.CBO_Entry = global::Gtk.ComboBox.NewText (); + this.CBO_Entry.Name = "CBO_Entry"; + this.vbox1.Add (this.CBO_Entry); + global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.CBO_Entry])); + w1.Position = 0; + w1.Expand = false; + w1.Fill = false; + // Container child vbox1.Gtk.Box+BoxChild + this.LIB_Title = new global::Gtk.Label (); + this.LIB_Title.Name = "LIB_Title"; + this.LIB_Title.LabelProp = global::Mono.Unix.Catalog.GetString ("Title"); + this.vbox1.Add (this.LIB_Title); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.LIB_Title])); + w2.Position = 1; + w2.Expand = false; + w2.Fill = false; + // Container child vbox1.Gtk.Box+BoxChild + this.SAI_Title = new global::Gtk.Entry (); + this.SAI_Title.CanFocus = true; + this.SAI_Title.Name = "SAI_Title"; + this.SAI_Title.IsEditable = true; + this.SAI_Title.InvisibleChar = 'â¢'; + this.vbox1.Add (this.SAI_Title); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.SAI_Title])); + w3.Position = 2; + w3.Expand = false; + w3.Fill = false; + // Container child vbox1.Gtk.Box+BoxChild + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow.Name = "GtkScrolledWindow"; + this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child GtkScrolledWindow.Gtk.Container+ContainerChild + this.TXT_Options = new global::Gtk.TextView (); + this.TXT_Options.CanFocus = true; + this.TXT_Options.Name = "TXT_Options"; + this.GtkScrolledWindow.Add (this.TXT_Options); + this.vbox1.Add (this.GtkScrolledWindow); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); + w5.Position = 3; + // Container child vbox1.Gtk.Box+BoxChild + this.hbox1 = new global::Gtk.HBox (); + this.hbox1.Name = "hbox1"; + this.hbox1.Spacing = 6; + // Container child hbox1.Gtk.Box+BoxChild + this.BTN_Apply = new global::Gtk.Button (); + this.BTN_Apply.CanFocus = true; + this.BTN_Apply.Name = "BTN_Apply"; + this.BTN_Apply.UseUnderline = true; + // Container child BTN_Apply.Gtk.Container+ContainerChild + global::Gtk.Alignment w6 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); + // Container child GtkAlignment.Gtk.Container+ContainerChild + global::Gtk.HBox w7 = new global::Gtk.HBox (); + w7.Spacing = 2; + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Image w8 = new global::Gtk.Image (); + w8.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-apply", global::Gtk.IconSize.Menu); + w7.Add (w8); + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Label w10 = new global::Gtk.Label (); + w10.LabelProp = global::Mono.Unix.Catalog.GetString ("Apply"); + w10.UseUnderline = true; + w7.Add (w10); + w6.Add (w7); + this.BTN_Apply.Add (w6); + this.hbox1.Add (this.BTN_Apply); + global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.BTN_Apply])); + w14.PackType = ((global::Gtk.PackType)(1)); + w14.Position = 2; + w14.Expand = false; + w14.Fill = false; + this.vbox1.Add (this.hbox1); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); + w15.PackType = ((global::Gtk.PackType)(1)); + w15.Position = 4; + w15.Expand = false; + w15.Fill = false; + this.Add (this.vbox1); + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.Hide (); + } + } +} diff --git a/frugal-mono-tools/gtk-gui/gui.stetic b/frugal-mono-tools/gtk-gui/gui.stetic index 679771c..35205a1 100644 --- a/frugal-mono-tools/gtk-gui/gui.stetic +++ b/frugal-mono-tools/gtk-gui/gui.stetic @@ -2812,4 +2812,107 @@ Public License instead of this License. </widget> </child> </widget> + <widget class="Gtk.Bin" id="frugalmonotools.WID_Grub" design-size="300 300"> + <property name="MemberName" /> + <property name="Visible">False</property> + <child> + <widget class="Gtk.VBox" id="vbox1"> + <property name="MemberName" /> + <property name="Spacing">6</property> + <child> + <widget class="Gtk.ComboBox" id="CBO_Entry"> + <property name="MemberName" /> + <property name="IsTextCombo">True</property> + <property name="Items" translatable="yes" /> + </widget> + <packing> + <property name="Position">0</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> + </child> + <child> + <widget class="Gtk.Label" id="LIB_Title"> + <property name="MemberName" /> + <property name="LabelProp" translatable="yes">Title</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.Entry" id="SAI_Title"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="IsEditable">True</property> + <property name="InvisibleChar">â¢</property> + </widget> + <packing> + <property name="Position">2</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> + </child> + <child> + <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> + <property name="MemberName" /> + <property name="ShadowType">In</property> + <child> + <widget class="Gtk.TextView" id="TXT_Options"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="ShowScrollbars">True</property> + <property name="Text" translatable="yes" /> + </widget> + </child> + </widget> + <packing> + <property name="Position">3</property> + <property name="AutoSize">True</property> + </packing> + </child> + <child> + <widget class="Gtk.HBox" id="hbox1"> + <property name="MemberName" /> + <property name="Spacing">6</property> + <child> + <placeholder /> + </child> + <child> + <placeholder /> + </child> + <child> + <widget class="Gtk.Button" id="BTN_Apply"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="Type">TextAndIcon</property> + <property name="Icon">stock:gtk-apply Menu</property> + <property name="Label" translatable="yes">Apply</property> + <property name="UseUnderline">True</property> + </widget> + <packing> + <property name="PackType">End</property> + <property name="Position">2</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> + </child> + </widget> + <packing> + <property name="PackType">End</property> + <property name="Position">4</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> + </child> + </widget> + </child> + </widget> </stetic-interface> \ No newline at end of file
_______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git