GfxWidgets - (Graphic Widgets for wxWidgets)

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
Post Reply
aquawicket
Earned some good credits
Earned some good credits
Posts: 103
Joined: Sun Aug 05, 2007 5:49 am

GfxWidgets - (Graphic Widgets for wxWidgets)

Post by aquawicket »

GWidgets was created to easily manage replacing native controls with graphic based controls such as Bitmaps and .XPM files.

*Componets
----------

GButton - A graphic based button that supports bitmaps and xpm images. GButton can accept multiple images for mouseover and click effects and can generate a GButtonEvent on clicks.
Image

GCurve - A grid style plot graph for creating curves. This class is still in early stages.
Image

GImage - A basic way to auto create a panel and load an image onto it. Supports bitmap images and .xpm images.
Image

GKnob - A rotary knob that can be used for adjusting volumes and such. Supports mouse wheel for rotation.
Image

GMeter - A VU meter with a built in global timer for animation.
Image

GNumberBox - A text box that can be set to a number within a range. Supports keyboard, arrow keys, and mouse wheel inputs.
Image

GScrollBar - A graphic replacement for the ordinary scrollbar. This class is still in early stages.
Image

GSlider - A slider control much like a volume slider. Supports keyboard and mouse wheel input as well.
Image

GText - A class to display custom font and styled text. This class is still in early stages.

GToggle - A graphic based checkbox. This class is still in early stages.



Note: Alot of these componets could use some love. If you happen to make changes or additions to any of the GWidgets code, please feel free to share your updates. :)
Attachments
Gwidgets.zip
(85.64 KiB) Downloaded 470 times
Last edited by aquawicket on Wed Jan 12, 2011 6:11 pm, edited 5 times in total.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax »

nice, thanks for sharing :D
Use the source, Luke!
Satervalley
Knows some wx things
Knows some wx things
Posts: 47
Joined: Fri Dec 14, 2007 1:10 am

Post by Satervalley »

Impressive. But why not support png file which support alpha channel that make the image egde more smooth than xpm file since xpm file only supports transparent color and 8 bit deepth..
aquawicket
Earned some good credits
Earned some good credits
Posts: 103
Joined: Sun Aug 05, 2007 5:49 am

Post by aquawicket »

Impressive. But why not support png file which support alpha channel that make the image egde more smooth than xpm file since xpm file only supports transparent color and 8 bit deepth..
png support is something I would love to add and hope to do so in the near future.

Also, I use GIMP to create my XPM images and it seems to retain the depth @ 24bit for me no problem along with transparent if needed.
maninthewind
In need of some credit
In need of some credit
Posts: 6
Joined: Tue Nov 18, 2008 11:19 pm

Post by maninthewind »

thanks for sharing.
helpful to me.
aquawicket
Earned some good credits
Earned some good credits
Posts: 103
Joined: Sun Aug 05, 2007 5:49 am

Update

Post by aquawicket »

Here's 0.2b i guess..
ENJOY ;)
Added some features . . .
fixed some bugs . . .
Attachments
Gwidgets-0.2b.zip
(84.96 KiB) Downloaded 327 times
JenT
Earned some good credits
Earned some good credits
Posts: 114
Joined: Fri Oct 24, 2008 9:23 am

Re: Update

Post by JenT »

aquawicket wrote:Here's 0.2b i guess..
ENJOY ;)
Added some features . . .
fixed some bugs . . .
Thank you.
:D
orbitcowboy
I live to help wx-kind
I live to help wx-kind
Posts: 178
Joined: Mon Jul 23, 2007 9:01 am

Re: Update

Post by orbitcowboy »

aquawicket wrote:Here's 0.2b i guess..
ENJOY ;)
Added some features . . .
fixed some bugs . . .
Hey,

your work looks great! Thank your for the update and the bugfixes.

What new features have you implemented?

Regards

Orbitcowboy
aquawicket
Earned some good credits
Earned some good credits
Posts: 103
Joined: Sun Aug 05, 2007 5:49 am

Post by aquawicket »

Basically just added GImageSelector

GImageSelector is a bitmap panel that when clicked allows you to browse and select the .bmp file to show on the panel. Kinda like an image swapper.


If anyone would like to help out, I'm having a rare assert issue with GMeter.
The thread about the issue is here.
http://forums.wxwidgets.org/viewtopic.php?p=98161#98161


P.S. If we like GWidgets, I'm thinking about creating a public SVN dedicated to adding graphic components to wxWidgets. I know wx was not made for non native controls, but I think the API is strong enough to do it.
aquawicket
Earned some good credits
Earned some good credits
Posts: 103
Joined: Sun Aug 05, 2007 5:49 am

Post by aquawicket »

GWidgets has been renamed to GfxWidgets.

public open source SVN available for everyone.

http://code.google.com/p/gfxwidgets/
Post Reply