Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

First time UI improvements

(1/3) > >>

oBFusCATed:
Hi,

I don't know how often any of you starts a new profile, but the look of C::B at the beginning (if all the plugins are installed) is pretty bad.
Thus I've tried to improve the situation with this patch: http://cmpt.benbmp.org/codeblocks/patches/first_time_ui.patch
And the image: http://cmpt.benbmp.org/codeblocks/patches/tip.png

The changes:
1. Add API for specifying the toolbar priority, adjusted the priorities of the core plugins
2. When loading the plugins, don't immediately create them, but just store them in a list. Which is sorted.
3. Iterate the list and create all toolbars in on go. Try to use as little space as possible by placing toolbars on single row until there is enough space in the row.
3.1. Increased the initial size to 1000x800, because the toolbars placement algorithm uses the initial size instead of the final size.
4. Hide the script console, I doubt any new user would be interested in using it
5. Don't show the tips of the day by default, added a link in the start-page

About 3.1: do you know if it is possible to obtain the final size (after the maximize) and to perform the toolbar placement algorithm using it?

Any comments are welcome. The patch is not tested on windows, so I'll be happy if anyone tries it.

How to test: use -p something_you_ve_never_used switch or delete your default.conf

MortenMacFly:
VERY NICE! This annoyed me, too for so many times... Will try surely...


--- Quote from: oBFusCATed on May 03, 2012, 09:28:35 am ---About 3.1: do you know if it is possible to obtain the final size (after the maximize) and to perform the toolbar placement algorithm using it?

--- End quote ---
What about if you use wxDisplay to obtain the OS'es resolution? (I believe there as even a method to obtain it w/o the task bar or alike...)

EDIT: Cannot apply the patch! :-( Did you use svn patch blah to create this?

oBFusCATed:

--- Quote from: MortenMacFly on May 03, 2012, 10:46:07 am ---EDIT: Cannot apply the patch! :-( Did you use svn patch blah to create this?

--- End quote ---
Yes of course (svn diff > balbal.patch), but I'm on linux.
What is the error? (Applying patches on windows is quite a pain)

MortenMacFly:

--- Quote from: oBFusCATed on May 03, 2012, 11:03:44 am ---What is the error? (Applying patches on windows is quite a pain)

--- End quote ---
"Chunk info expected". :-(

I have that sometimes (search the forums), but most patches work.

oBFusCATed:
It applied fine on another linux machine.

Can you try to remove the png related changes? Have you tried unix2dos tool?

Navigation

[0] Message Index

[#] Next page

Go to full version