Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=3965212ada51640ba0ad649083e424ac6a97e8ab
commit 3965212ada51640ba0ad649083e424ac6a97e8ab Author: bouleetbil <bouleet...@frogdev.info> Date: Sun Dec 19 23:33:20 2010 +0100 *draft identi/twitter GUI diff --git a/frugal-mono-tools/Twitter/GUI/TreeMessage.cs b/frugal-mono-tools/Twitter/GUI/TreeMessage.cs new file mode 100644 index 0000000..be7df17 --- /dev/null +++ b/frugal-mono-tools/Twitter/GUI/TreeMessage.cs @@ -0,0 +1,121 @@ +// /* +// * This file is part of the microblog <http://code.google.com/p/froggymicroblog/> +// * +// * Copyright (c) 2009, bouleetbil <bouleet...@frogdev.info> +// * All rights reserved. +// * +// * Redistribution and use in source and binary forms, with or without modification, are +// * permitted provided that the following conditions are met: +// * +// * - Redistributions of source code must retain the above copyright notice, this list +// * of conditions and the following disclaimer. +// * - Redistributions in binary form must reproduce the above copyright notice, this list +// * of conditions and the following disclaimer in the documentation and/or other +// * materials provided with the distribution. +// * - Neither the name of the Twitterizer nor the names of its contributors may be +// * used to endorse or promote products derived from this software without specific +// * prior written permission. +// * +// * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +// * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +// * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +// * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// * POSSIBILITY OF SUCH DAMAGE. +// */ + + +using System; +using System.Collections; + +namespace frugalmonotools +{ + /// <summary> + /// Pour la treeview des messages + /// </summary> + public class TreeMessage : IComparable + { + private DateTime _date; + + private DateTime _dateMess; + + + public string Date { + get { return _date.ToString(); } + set { + try { + _date = StringExtensions.ParseDateTime(value); + DateMess=_date; + } + catch{} + } + } + string _pseudo; + + public string Pseudo { + get { return _pseudo; } + set { _pseudo = value; } + } + string _message; + + public string Message { + get { return _message; } + set { _message = value; } + } + Gdk.Pixbuf _image; + + public Gdk.Pixbuf Image { + get { return _image; } + set { _image = value; } + } + string id; + + public string Id { + get { return id; } + set { id = value; } + } + + public DateTime DateMess { + get { + return _dateMess; + } + set { + _dateMess = value; + } + } + string type; + public string Type { + get { + return type; + } + set { + type = value; + } + } + + + + + public TreeMessage(Gdk.Pixbuf image,string date, string pseudo,string message,string id,string type) + { + this.Image=image; + this.Date=date; + this.Pseudo=pseudo; + this.Message=message; + this.Id=id; + this.Type=type; + } + int IComparable.CompareTo(Object o) + { + TreeMessage op = (TreeMessage)o; + int res = DateMess.CompareTo(op.DateMess); + return -res; + } + + } +} + diff --git a/frugal-mono-tools/Twitter/GUI/WID_Identi.cs b/frugal-mono-tools/Twitter/GUI/WID_Identi.cs new file mode 100644 index 0000000..a2d0a75 --- /dev/null +++ b/frugal-mono-tools/Twitter/GUI/WID_Identi.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_Identi : Gtk.Bin + { + public WID_Identi () + { + this.Build (); + } + } +} + diff --git a/frugal-mono-tools/frugal-mono-tools.csproj b/frugal-mono-tools/frugal-mono-tools.csproj index d2b0424..3cad4be 100644 --- a/frugal-mono-tools/frugal-mono-tools.csproj +++ b/frugal-mono-tools/frugal-mono-tools.csproj @@ -166,6 +166,9 @@ <Compile Include="Twitter\IdentiObject.cs" /> <Compile Include="Twitter\TwitterObject.cs" /> <Compile Include="Twitter\Conf.cs" /> + <Compile Include="Twitter\GUI\TreeMessage.cs" /> + <Compile Include="Twitter\GUI\WID_Identi.cs" /> + <Compile Include="gtk-gui\frugalmonotools.WID_Identi.cs" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Identi.cs b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Identi.cs new file mode 100644 index 0000000..11a473c --- /dev/null +++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Identi.cs @@ -0,0 +1,19 @@ + +// This file has been generated by the GUI designer. Do not modify. +namespace frugalmonotools +{ + public partial class WID_Identi + { + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget frugalmonotools.WID_Identi + global::Stetic.BinContainer.Attach (this); + this.Name = "frugalmonotools.WID_Identi"; + 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 a809d6a..9d067b0 100644 --- a/frugal-mono-tools/gtk-gui/gui.stetic +++ b/frugal-mono-tools/gtk-gui/gui.stetic @@ -4184,4 +4184,124 @@ Inscription is free.</property> </widget> </child> </widget> + <widget class="Gtk.Bin" id="frugalmonotools.WID_Identi" design-size="300 300"> + <property name="MemberName" /> + <property name="Visible">False</property> + <child> + <widget class="Gtk.VBox" id="vbox2"> + <property name="MemberName" /> + <property name="Spacing">6</property> + <child> + <widget class="Gtk.Notebook" id="notebook1"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="CurrentPage">0</property> + <child> + <widget class="Gtk.VBox" id="vbox3"> + <property name="MemberName" /> + <property name="Spacing">6</property> + <child> + <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> + <property name="MemberName" /> + <property name="ShadowType">In</property> + <child> + <widget class="Gtk.TreeView" id="treeview1"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="ShowScrollbars">True</property> + </widget> + </child> + </widget> + <packing> + <property name="Position">0</property> + <property name="AutoSize">True</property> + </packing> + </child> + <child> + <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow1"> + <property name="MemberName" /> + <property name="ShadowType">In</property> + <child> + <widget class="Gtk.TextView" id="textview1"> + <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">1</property> + <property name="AutoSize">True</property> + </packing> + </child> + <child> + <widget class="Gtk.HBox" id="hbox1"> + <property name="MemberName" /> + <property name="Spacing">6</property> + <child> + <widget class="Gtk.Entry" id="entry1"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="IsEditable">True</property> + <property name="InvisibleChar">â¢</property> + </widget> + <packing> + <property name="Position">0</property> + <property name="AutoSize">True</property> + </packing> + </child> + <child> + <placeholder /> + </child> + <child> + <widget class="Gtk.Button" id="button21"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="Type">TextOnly</property> + <property name="Label" translatable="yes">GtkButton</property> + <property name="UseUnderline">True</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> + </widget> + <packing> + <property name="Position">2</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> + </child> + </widget> + </child> + <child> + <widget class="Gtk.Label" id="label1"> + <property name="MemberName" /> + <property name="LabelProp" translatable="yes">Status</property> + </widget> + <packing> + <property name="type">tab</property> + </packing> + </child> + </widget> + <packing> + <property name="Position">0</property> + <property name="AutoSize">True</property> + </packing> + </child> + </widget> + </child> + </widget> + <widget class="Gtk.Bin" id="frugalmonotools.WID_Identi" design-size="300 300"> + <property name="MemberName" /> + <property name="Visible">False</property> + <child> + <placeholder /> + </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