Enhanced wxGrid
-
- Super wx Problem Solver
- Posts: 307
- Joined: Fri Oct 08, 2004 8:21 am
- Location: Area 51
- Contact:
Enhanced wxGrid
Hi all,
I have started a project to enhance wxGrid. I am making the project available for feedback and once it is more mature, I will be submitting my changes as patches to wxWidgets, I don't intend to fork the source.
Currently I have implemented the following changes:
* Column and row labels are drawn in a more subtle and modern light 3D rather than the dark 3D.
* The text editor has no border. The 3D border looks rather dorky on a flat grid (plus no other grid does this).
* The columns can be dragged to another position by the user.
Get more info, screenshots and download here:
http://www.metalogicsw.com/temp/EnhancedwxGrid/
Looking forward to feedback from the great folks in this forum.
I have started a project to enhance wxGrid. I am making the project available for feedback and once it is more mature, I will be submitting my changes as patches to wxWidgets, I don't intend to fork the source.
Currently I have implemented the following changes:
* Column and row labels are drawn in a more subtle and modern light 3D rather than the dark 3D.
* The text editor has no border. The 3D border looks rather dorky on a flat grid (plus no other grid does this).
* The columns can be dragged to another position by the user.
Get more info, screenshots and download here:
http://www.metalogicsw.com/temp/EnhancedwxGrid/
Looking forward to feedback from the great folks in this forum.
Last edited by metalogic on Wed Jan 04, 2006 5:37 am, edited 2 times in total.
- Santiago
http://www.metalogicsw.com
http://www.metalogicsw.com
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
-
- Super wx Problem Solver
- Posts: 307
- Joined: Fri Oct 08, 2004 8:21 am
- Location: Area 51
- Contact:
Wow, that was a quick response Thanks Priyank.
I will try to get the double-click issue looked at tomorrow.
Can you give me more details on "the column movement is buggy"? How did you get to the state of the screenshot?
I will try to get the double-click issue looked at tomorrow.
Can you give me more details on "the column movement is buggy"? How did you get to the state of the screenshot?
- Santiago
http://www.metalogicsw.com
http://www.metalogicsw.com
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
1.)Downloaded the package.metalogic wrote:Can you give me more details on "the column movement is buggy"? How did you get to the state of the screenshot?
2.)Execute the exe
3.)Play with it for just 1 min
4.)Take screenshots.
Ok, there are no fixed steps, I just move the columns and I get some amazing behaviour.
-
- Super wx Problem Solver
- Posts: 307
- Joined: Fri Oct 08, 2004 8:21 am
- Location: Area 51
- Contact:
I took a quick look before going to bed. I'm able to shuffle the columns around for a while without a problem. But it looks like if I resize a column, things degrade rapidly from there.
The thing about this change is that it wasn't a matter of just adding some code to make the columns moveable, I also had to review all the existing code and make changes to it as before it assumed pos == id always. That is no longer true as col 5 may be at pos 2. There are over 10k lines of code in grid.cpp so it's really easy to miss a spot (or 10 ).
Anyway, thanks again for the info, I'll be bug hunting tomorrow.
The thing about this change is that it wasn't a matter of just adding some code to make the columns moveable, I also had to review all the existing code and make changes to it as before it assumed pos == id always. That is no longer true as col 5 may be at pos 2. There are over 10k lines of code in grid.cpp so it's really easy to miss a spot (or 10 ).
Anyway, thanks again for the info, I'll be bug hunting tomorrow.
- Santiago
http://www.metalogicsw.com
http://www.metalogicsw.com
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
Do you guys think that the wxGrid API is good?
I'm myself am hearing that it's quite awful often on IRC.
Would you be interested in working on a new API too, for which I could do a native wxGTK control if it's good?
That's a long-term goal of mine however, nothing I will manage to tackle before March probably, but if I see initiative from others, then...
Edit: to not hijack this thread, please post replies on my questions and idea in the new thread I created at http://forums.wxwidgets.org/viewtopic.php?p=26701
I'm myself am hearing that it's quite awful often on IRC.
Would you be interested in working on a new API too, for which I could do a native wxGTK control if it's good?
That's a long-term goal of mine however, nothing I will manage to tackle before March probably, but if I see initiative from others, then...
Edit: to not hijack this thread, please post replies on my questions and idea in the new thread I created at http://forums.wxwidgets.org/viewtopic.php?p=26701
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
-
- Super wx Problem Solver
- Posts: 307
- Joined: Fri Oct 08, 2004 8:21 am
- Location: Area 51
- Contact:
leio,
I think an API cleanup is a good idea. I saw a few things I would like to change while working on these enhancements.
Since one of the goals of my enhancements is that they be easily accepted as a patch, extensive API changes are ruled out from my project. But I would be willing to collaborate on the API cleanup under a different project.
I think an API cleanup is a good idea. I saw a few things I would like to change while working on these enhancements.
Since one of the goals of my enhancements is that they be easily accepted as a patch, extensive API changes are ruled out from my project. But I would be willing to collaborate on the API cleanup under a different project.
- Santiago
http://www.metalogicsw.com
http://www.metalogicsw.com
-
- Super wx Problem Solver
- Posts: 307
- Joined: Fri Oct 08, 2004 8:21 am
- Location: Area 51
- Contact:
I've uploaded an updated build.
This fixes some flakiness that occured when the columns were reshufled and then resized.
Thanks Priyank for the feedback.
It's available from the same link:
http://www.metalogicsw.com/temp/EnhancedwxGrid/
This fixes some flakiness that occured when the columns were reshufled and then resized.
Thanks Priyank for the feedback.
It's available from the same link:
http://www.metalogicsw.com/temp/EnhancedwxGrid/
- Santiago
http://www.metalogicsw.com
http://www.metalogicsw.com
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
-
- Super wx Problem Solver
- Posts: 307
- Joined: Fri Oct 08, 2004 8:21 am
- Location: Area 51
- Contact:
Fixed and uploaded.
Hopefully tomorrow I will get a chance to do a full review of grid.cpp to try and smoke out any remaining code that assumes pos == id (every bug so far has been caused by that).
Thanks.
Hopefully tomorrow I will get a chance to do a full review of grid.cpp to try and smoke out any remaining code that assumes pos == id (every bug so far has been caused by that).
Thanks.
- Santiago
http://www.metalogicsw.com
http://www.metalogicsw.com
-
- Super wx Problem Solver
- Posts: 307
- Joined: Fri Oct 08, 2004 8:21 am
- Location: Area 51
- Contact:
I've got another release uploaded (http://www.metalogicsw.com/temp/EnhancedwxGrid/). As far as my testing can tell, it's stable.
I also took some time to refactor my code a bit and work on the API needed to control the moving of columns around.
There were also some minor UI improvements such as the positioning of the edit box inside of the grid cell (it changed when it went from a 3D textbox to a flat, borderless one) and the column being dragged looking "pressed".
So I think I'm ready to call this Release Candidate 1. I'm going to do a last sanity check on everything tomorrow and if I don't have any changes, I will be submitting this as a patch on sourceforge.
If you have any feedback you would like to give before I submit the patch, do it now or forever hold your peace
I also took some time to refactor my code a bit and work on the API needed to control the moving of columns around.
There were also some minor UI improvements such as the positioning of the edit box inside of the grid cell (it changed when it went from a 3D textbox to a flat, borderless one) and the column being dragged looking "pressed".
So I think I'm ready to call this Release Candidate 1. I'm going to do a last sanity check on everything tomorrow and if I don't have any changes, I will be submitting this as a patch on sourceforge.
If you have any feedback you would like to give before I submit the patch, do it now or forever hold your peace
- Santiago
http://www.metalogicsw.com
http://www.metalogicsw.com
-
- Earned a small fee
- Posts: 12
- Joined: Sun Jan 22, 2006 11:43 pm
Hi. I hope you are aware of the existance of wxSheet, which is a complete rewritte of wxGrid.
I REALLY hope that wxGrid, EnhancedwxGrid, and wxSheet will be merged into a single library in wxWidgets source.
Having three (or two) separate libraries is unacceptable. Right now if I would have to develop with a grid I don't know what one to choose.
I REALLY hope that wxGrid, EnhancedwxGrid, and wxSheet will be merged into a single library in wxWidgets source.
Having three (or two) separate libraries is unacceptable. Right now if I would have to develop with a grid I don't know what one to choose.
-
- Super wx Problem Solver
- Posts: 307
- Joined: Fri Oct 08, 2004 8:21 am
- Location: Area 51
- Contact:
Takeshi,
I couldn't agree more. If you read my page (http://www.metalogicsw.com/temp/EnhancedwxGrid/) you will find this:
"I wish not to fork wxGrid or create a new project. Rather this is an incubator for working on new features which when mature enough will be submitted as patches to wxWidgets."
I hate forking.
And to prove that I am a man of my word , I already submitted my changes to SourceForge several days ago and I am eagerly waiting for this patch to be accepted (both Julian and Vadim expressed interest). See http://sourceforge.net/tracker/index.ph ... tid=309863
So if all goes well, my enhancements will be integrated in a future version of wxWidgets.
I couldn't agree more. If you read my page (http://www.metalogicsw.com/temp/EnhancedwxGrid/) you will find this:
"I wish not to fork wxGrid or create a new project. Rather this is an incubator for working on new features which when mature enough will be submitted as patches to wxWidgets."
I hate forking.
And to prove that I am a man of my word , I already submitted my changes to SourceForge several days ago and I am eagerly waiting for this patch to be accepted (both Julian and Vadim expressed interest). See http://sourceforge.net/tracker/index.ph ... tid=309863
So if all goes well, my enhancements will be integrated in a future version of wxWidgets.
- Santiago
http://www.metalogicsw.com
http://www.metalogicsw.com
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
We discussed the wxGrid and co ordeal a bit after the Bug Day aswell. Me, Chris Mellon and the wxGrid maintainer around the 2002/2003 days - Roger Gammans. He had a draft for a new wxGrid, and hoped to revise it soon, as it was quite out of date now too already.
We should have a log, uh, somewhere, of this bugday together with that talk.
We should have a log, uh, somewhere, of this bugday together with that talk.
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact: