Gtk-sharp widget library released !

View: New views
12 Messages — Rating Filter:   Alert me  

Gtk-sharp widget library released !

by daniil00 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hy there,

I'm proud to present you with my last two weeks work - a gtk-sharp custom control library compatible 100% with monodevelop/stetic.

Url: http://code.google.com/p/holly-gtk-widgets/  (yeah, I have screen shots there )

Widgets ( custom controls ) in holly-widgets library:

HFontPicker - A office like font picker widget
HDateEdit - A date-time picker supporting custom formatting options
HSimpleList - A simple list widget, inspired by the Winforms Listbox control ( has the nice Items collection, the OwnerDrawn property and the OnMeasureItem, OnDrawItem events ).
HSimpleComboBox - A simple combobox widget, inspired by the Winforms Combobox control
HRegExEntry - A simple entry with regular expressions validation. Has a small icon that changes if the content is valid or invalid.
HColorPicker - A simple color picker drop-down ( office like )
HToolTip - A nice ballon tooltip window
HIpEntry - A widget that alows the user to enter an IPv4 address
HTreeView - A simple to use TreeView? widget, similar to the winforms one
HComboTree - A easy to use combobox with a treeview ( HTreeView ) inside
HComboFolder - A combobox widget with a folder tree popup

Hope you will enjoy this and excuse my bad English.

Daniel.  

Re: Gtk-sharp widget library released !

by Pipiten :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!,

Great job!.. congratulations!. I found the HRegExEntry incredible usefull!!.
Thanks for your contribution.

Regards,
Pedro Guridi



On Sat, May 31, 2008 at 3:45 PM, daniil00 <fr.daniil@...> wrote:

>
> Hy there,
>
> I'm proud to present you with my last two weeks work - a gtk-sharp custom
> control library compatible 100% with monodevelop/stetic.
>
> Url: http://code.google.com/p/holly-gtk-widgets/  (yeah, I have screen shots
> there )
>
> Widgets ( custom controls ) in holly-widgets library:
>
> HFontPicker - A office like font picker widget
> HDateEdit - A date-time picker supporting custom formatting options
> HSimpleList - A simple list widget, inspired by the Winforms Listbox control
> ( has the nice Items collection, the OwnerDrawn property and the
> OnMeasureItem, OnDrawItem events ).
> HSimpleComboBox - A simple combobox widget, inspired by the Winforms
> Combobox control
> HRegExEntry - A simple entry with regular expressions validation. Has a
> small icon that changes if the content is valid or invalid.
> HColorPicker - A simple color picker drop-down ( office like )
> HToolTip - A nice ballon tooltip window
> HIpEntry - A widget that alows the user to enter an IPv4 address
> HTreeView - A simple to use TreeView? widget, similar to the winforms one
> HComboTree - A easy to use combobox with a treeview ( HTreeView ) inside
> HComboFolder - A combobox widget with a folder tree popup
>
> Hope you will enjoy this and excuse my bad English.
>
> Daniel.
> --
> View this message in context: http://www.nabble.com/Gtk-sharp-widget-library-released-%21-tp17578339p17578339.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@...
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Gtk-sharp widget library released !

by Adam Tauno Williams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I'm proud to present you with my last two weeks work - a gtk-sharp custom
> control library compatible 100% with monodevelop/stetic.
> Url: http://code.google.com/p/holly-gtk-widgets/  (yeah, I have screen shots
> there )
> Widgets ( custom controls ) in holly-widgets library:
> HFontPicker - A office like font picker widget
> HDateEdit - A date-time picker supporting custom formatting options

Sweet!  Finally a decent date picker.   As soon as my mono/cairo catches
up with the version you used I'll certainly use these.  They look really
nice.

Ever thought of making a nice calendar widget?  I've got the start of
one but currently not the time to polish/finish it
<http://docs.google.com/Doc?id=ddv5htgd_23c4spt3gj>?  Or maybe my code
is so horrible it isn't worth looking at. :)
--
          Consonance: an Open Source .NET OpenGroupware client.
 Contact:awilliam@...   http://freshmeat.net/projects/consonance/

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Gtk-sharp widget library released !

by daniil00 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks !

Sound's exciting, I've never done a control like that.  Any winforms calendar control that you've seen and like ?

I will add it for sure in my todo list for the 2.0 version of holly-widgets.

If you are an adept with Gtk# and would be willing to take a look at our use of Gtk#'s ... calendar widget code and to offer us concrete suggestions to make it better/faster we'd almost certainly be willing to send you pizza/beverage-of-your-choice!

Waiting for the beer :)

Adam Tauno Williams wrote:
> I'm proud to present you with my last two weeks work - a gtk-sharp custom
> control library compatible 100% with monodevelop/stetic.
> Url: http://code.google.com/p/holly-gtk-widgets/  (yeah, I have screen shots
> there )
> Widgets ( custom controls ) in holly-widgets library:
> HFontPicker - A office like font picker widget
> HDateEdit - A date-time picker supporting custom formatting options

Sweet!  Finally a decent date picker.   As soon as my mono/cairo catches
up with the version you used I'll certainly use these.  They look really
nice.

Ever thought of making a nice calendar widget?  I've got the start of
one but currently not the time to polish/finish it
<http://docs.google.com/Doc?id=ddv5htgd_23c4spt3gj>?  Or maybe my code
is so horrible it isn't worth looking at. :)
--
          Consonance: an Open Source .NET OpenGroupware client.
 Contact:awilliam@whitemiceconsulting.com   http://freshmeat.net/projects/consonance/

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Gtk-sharp widget library released !

by Adam Tauno Williams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Sound's exciting, I've never done a control like that.  Any winforms
> calendar control that you've seen and like ?

There are several commercial ones.  The only Open Source one I've seen
was with "monocalendar"  which is unmaintained, and possibly incomplete.
I originally based mine very roughly off their code.

Commercials ones are <http://www.dbi-tech.com/dbiCalendar.asp> and here
<http://www.devexpress.com/Products/NET/WinForms/XtraScheduler/>

> I will add it for sure in my todo list for the 2.0 version of holly-widgets.
> If you are an adept with Gtk# and would be willing to take a look at our use
> of Gtk#'s ... calendar widget code and to offer us concrete suggestions to
> make it better/faster we'd almost certainly be willing to send you
> pizza/beverage-of-your-choice!

I'm certainly not!  I've muddle through, on a good day.  But I'm
certainly willing to co-operate with anyone on making a decent calendar.

Basically I'm just trying to make something that displays n-number of
days and unto which events can be placed.  The widget handles the
packing for overlapping events (what I find to be the really hard part).
Events can be dragged around and right-clicked for a context menu.
Dragging is crude but it works.  The ability to set event color and
possibly an icon would be nice.   Multi-day events currently work.   It
might be better if each event was its own event box - not sure.

This calendar is in its own DLL,  code is at
<http://code.google.com/p/consonance/source/browse>  in the
trunk/Gtk/Calendar folder.

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Gtk-sharp widget library released !

by Olivier Le Thanh Duong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/6/1 Adam Tauno Williams <awilliam@...>:

>> Sound's exciting, I've never done a control like that.  Any winforms
>> calendar control that you've seen and like ?
>
> There are several commercial ones.  The only Open Source one I've seen
> was with "monocalendar"  which is unmaintained, and possibly incomplete.
> I originally based mine very roughly off their code.
>
> Commercials ones are <http://www.dbi-tech.com/dbiCalendar.asp> and here
> <http://www.devexpress.com/Products/NET/WinForms/XtraScheduler/>
>
>> I will add it for sure in my todo list for the 2.0 version of holly-widgets.
>> If you are an adept with Gtk# and would be willing to take a look at our use
>> of Gtk#'s ... calendar widget code and to offer us concrete suggestions to
>> make it better/faster we'd almost certainly be willing to send you
>> pizza/beverage-of-your-choice!
>
> I'm certainly not!  I've muddle through, on a good day.  But I'm
> certainly willing to co-operate with anyone on making a decent calendar.
>
> Basically I'm just trying to make something that displays n-number of
> days and unto which events can be placed.  The widget handles the
> packing for overlapping events (what I find to be the really hard part).
> Events can be dragged around and right-clicked for a context menu.
> Dragging is crude but it works.  The ability to set event color and
> possibly an icon would be nice.   Multi-day events currently work.   It
> might be better if each event was its own event box - not sure.
>
> This calendar is in its own DLL,  code is at
> <http://code.google.com/p/consonance/source/browse>  in the
> trunk/Gtk/Calendar folder.

Pimlico Dates [1] has a pretty good calendar widget in GTK, with
several level of view : date, week, year.  Unfortunately it's written
in C, but it might be easier to port it to GTK# or create a binding
than recreating a whole new widget.


Olivier LĂȘ Thanh Duong.

[1] http://pimlico-project.org/dates.html
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Gtk-sharp widget library released !

by Mauricio Henriquez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

really great man!!, congratulations..

Mauricio

daniil00 wrote:

> Hy there,
>
> I'm proud to present you with my last two weeks work - a gtk-sharp custom
> control library compatible 100% with monodevelop/stetic.
>
> Url: http://code.google.com/p/holly-gtk-widgets/  (yeah, I have screen shots
> there )
>
> Widgets ( custom controls ) in holly-widgets library:
>
> HFontPicker - A office like font picker widget
> HDateEdit - A date-time picker supporting custom formatting options
> HSimpleList - A simple list widget, inspired by the Winforms Listbox control
> ( has the nice Items collection, the OwnerDrawn property and the
> OnMeasureItem, OnDrawItem events ).
> HSimpleComboBox - A simple combobox widget, inspired by the Winforms
> Combobox control
> HRegExEntry - A simple entry with regular expressions validation. Has a
> small icon that changes if the content is valid or invalid.
> HColorPicker - A simple color picker drop-down ( office like )
> HToolTip - A nice ballon tooltip window
> HIpEntry - A widget that alows the user to enter an IPv4 address
> HTreeView - A simple to use TreeView? widget, similar to the winforms one
> HComboTree - A easy to use combobox with a treeview ( HTreeView ) inside
> HComboFolder - A combobox widget with a folder tree popup
>
> Hope you will enjoy this and excuse my bad English.
>
> Daniel.  
>  

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Gtk-sharp widget library released !

by Adam Tauno Williams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> > Basically I'm just trying to make something that displays n-number of
> > days and unto which events can be placed.  The widget handles the
> > packing for overlapping events (what I find to be the really hard part).
> > Events can be dragged around and right-clicked for a context menu.
> > Dragging is crude but it works.  The ability to set event color and
> > possibly an icon would be nice.   Multi-day events currently work.   It
> > might be better if each event was its own event box - not sure.
> > This calendar is in its own DLL,  code is at
> > <http://code.google.com/p/consonance/source/browse>  in the
> > trunk/Gtk/Calendar folder.
> Pimlico Dates [1] has a pretty good calendar widget in GTK, with
> several level of view : date, week, year.

That does look nice
<http://pimlico-project.org/images/screenshots/dates5.png>, do you now
if it handles overlapping events?

> Unfortunately it's written
> in C, but it might be easier to port it to GTK# or create a binding
> than recreating a whole new widget.

I'd much prefer a managed widget to a binding.


_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Gtk-sharp widget library released !

by Miguel de Icaza-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> This calendar is in its own DLL,  code is at
> <http://code.google.com/p/consonance/source/browse>  in the
> trunk/Gtk/Calendar folder.

It would be great if you guys joined forces, it seems that Daniel is on
to something with this nice new collection of widget add-ons.

Miguel.
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Strange GdkSharp.PixbufDestroyNotifyWrapper error..

by Mauricio Henriquez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys:

In a custom widget I use a pixbuf to update the image of the widget, I use:

internalPixbuf = new Pixbuf(buffer, Colorspace.Rgb, false, 8,
ImageWidth, ImageHeight, ImageWidth * 3, null); //buffer of byte[]
but the app crash with:

ExcObject: System.InvalidProgramException: Invalid IL code in (wrapper
native-to-managed) GdkSharp.PixbufDestroyNotifyWrapper:NativeCallback
(intptr,intptr): IL_0030: call      0x00000006
 at (wrapper managed-to-native)
System.Object:__icall_wrapper_mono_delegate_to_ftnptr (object)
at (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_new_from_data
(byte[],int,bool,int,int,int,int,GdkSharp.PixbufDestroyNotifyNative,intptr)
 at Gdk.Pixbuf..ctor (System.Byte[] data, Colorspace colorspace, Boolean
has_alpha, Int32 bits_per_sample, Int32 width, Int32 height, Int32
rowstride, Gdk.PixbufDestroyNotify destroy_fn) [0x00000]

I use GLib.ExceptionManager.UnhandledException to get that info :-S ...

The weird thing is that with exactly the same code with mono-1.2.6 work
like a charm and now the problem show up after a update to
mono-1.9.1-3.1...

Mike, from mono-devel mailing list tell me that this is a "know issue"
(https://bugzilla.novell.com/show_bug.cgi?id=362951), from that thread I
read about a "problem with the image" (in my case a total crash..) and
also talk about some patch and some fix needed in mono about the
"MarchalAs.." for the byte[] type and the GC, but I'm really confuse if
this is something that can be fixed (update soources from
svn+patch+compilation don't seems to be a "easy" option) with other
approach?
Also I try to use the PixbufLoader, but trying to build the pixbufloader
with the (byte[], widht, height) constructor allways give me "Image with
zero width" error..:-S, also try to use a MemoryStream to build the
pixbufloader and the pixbuf with the same result..

there is some alternative?, is dificult to me to belive that this can't
be handled in a diferent way, not posible to build the pixbuf beside a
image from harddrive?, I use this custom widget with mono-1.2.6 (and the
related version of gtk#) without any problem, and wait for a next RPM
release for my fedora 8 is not a option for me...need to go back to
mono-1.2.6?

any ideas?, sugestions?, prays?. black magic?, budu?

Thanks.

Mauricio

P.D: right now I'm using gtk-sharp2-100145-0.suse103.novell ..but same
problem...

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

pixbuf/pixbufloader from stream help

by Mauricio Henriquez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Guys:

As I explain in my previous post, right now gtk#/mono have issues about
build a pixbuf using the byte[] contrcutor, so I 'm searching for
alternatives, right now focused in build the pixbuf from a stream adn I
realy need some help becouse with diferent aproach I can't get it and
obviously I'm doing something wrong.

First I try building a PixBufLoader from a byte[] buffer:
Gdk.PixbufLoader pbL = new PixbufLoader(buffer, ImageWidth, ImageHeight);
This allways return me "Image has zero width", don't know what is my
mistake...

Second: First be sure that the stream is correct using GDI+ :-S :
BitmapData bd = bitmapBuffer.LockBits(new System.Drawing.Rectangle(0, 0,
ImageWidth, ImageHeight),
                                           ImageLockMode.WriteOnly,
System.Drawing.Imaging.PixelFormat.Format24bppRgb);
Marshal.Copy(buffer,0,bd.Scan0,ImageWidth*ImageHeight*3);
bitmapBuffer.UnlockBits(bd);
MemoryStream mstr = new System.IO.MemoryStream();
bitmapBuffer.Save(mstr, System.Drawing.Imaging.ImageFormat.Bmp);
..then only for test:
System.Drawing.Image returnImage = System.Drawing.Image.FromStream(mstr);
returnImage.Save("testStr.bmp");
This work, so the stream is corect

Third try: Use the memory stream to try to build the Pixbuf or the
Pixbufloader:
Gdk.PixbufLoader pbL = new PixbufLoader(mstr, ImageWidth, ImageHeight);
or
internalPixbuf = new Pixbuf(mstr, ImageWidth, ImageHeight);
or just: Gdk.Pixbuf pb = new Pixbuf(mstr);
Allways return me "GLib.GException: Unrecognized image file format"

Finall test: Try to use other type to build from stream like Gtk.Image:
Gtk.Image img = new Gtk.Image(mstr);
This seems to work, but I still can't get the pixbuf from this!!!,
img.Pixbuf return null (I supose that is becouse the image is not
builded from a pixbuf..)...

So the question is, how can I really build a pixbuf/pixbufloader from a
stream and/or get the PixBuf from a Gtk.Image that was builded from a
stream?

Please, please I really need some help here, this is driving me crazy, I
need to get working this widget, previously in mono-1.2.6 I I only use
ONE line to so this:

internalPixbuf = new Pixbuf(buffer, Colorspace.Rgb, false, 8,
ImageWidth, ImageHeight, ImageWidth * 3, null); //buffer of byte[] type

I know with the "byte[]" bug/problem I really need an alternative, and I
know that is posible to build this thing from a stream so please give
any sugestion..

In advance, thank you very much...

Mauricio

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: pixbuf/pixbufloader from stream help

by Mike Kestner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2008-06-03 at 09:39 -0400, Mauricio Henriquez wrote:

> Hi Guys:
>
> As I explain in my previous post, right now gtk#/mono have issues about
> build a pixbuf using the byte[] contrcutor, so I 'm searching for
> alternatives, right now focused in build the pixbuf from a stream adn I
> realy need some help becouse with diferent aproach I can't get it and
> obviously I'm doing something wrong.
>
> First I try building a PixBufLoader from a byte[] buffer:
> Gdk.PixbufLoader pbL = new PixbufLoader(buffer, ImageWidth, ImageHeight);
> This allways return me "Image has zero width", don't know what is my
> mistake...

I suspect the problem is that the Loader is probably expecting a
formatted image like a jpg or png instead of raw byte data like the
method you have been using.  I probably led you astray pointing you at
PixbufLoader.  You may have to bite the bullet and upgrade your
gtk-sharp and mono to get all the fixes you need to use that Pixbuf
constructor successfully.

Mike

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list