|
|
Home » Developing U++ » UppHub » TabBar Major Revision
|
|
|
|
|
Re: TabBar Major Revision [message #21783 is a reply to message #21777] |
Thu, 04 June 2009 23:26   |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello mrjt
I have seen that in TabBar.upp are included references to files FileTabs.cpp and FileTabs.h., but they are not in TabBar folder.
Also in TabBar.h there is a #include "FileTabs.h"
Other thing to update or delete is TabBarTest, as function .Add() seems to be changed.
Best regards
Koldo
Best regards
Iñaki
[Updated on: Fri, 05 June 2009 08:38] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: TabBar Major Revision [message #22062 is a reply to message #22009] |
Tue, 16 June 2009 10:57   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
piotr5 wrote on Sun, 14 June 2009 19:15 |
mrjt wrote on Fri, 05 June 2009 11:19 |
Mindtraveller | Is there a chance to include these stacking file tabs into next SVN version of TheIDE?
|
If you want to try it out now, I've just added a QuickTabs wrapper package to the bazaar. It's very easy to add:
1- Get latest SVN (1280+ is needed)
2- Replace uppsrc/ide/QuickTabs with bazaar/QuickTabs (copying over it is ok)
3- Before compiling TheIde add the bazaar assembly to the uppsrc assembly (right click uppsrc->Edit assembly, add path to bazaar in top edit box)
4- Compile TheIde
|
I tried it now, and after some fiddling it compiled. the major difficulty was to realize that I need to change in ide.h the include-statement for QuickTabs: instead of ide/QuickTabs/QuickTabs.h, it should be without the ide/ -- QuickTabs/QuickTabs.h alone.
for completeness: the error with missing "<<=" I fixed by removing the "=", i.e. I used the "<<" operator. "OnSettingsMenu" I replaced with "SettingsMenu" and "THISBACK1" in the error-yielding lines I replaced with "THISBACK" and the erronous "tn" I changed to "fn". I also remember that I had to remove some "&" from the parameters of a function-declaration taking wstrings as argument because wstring is pickable and somewhere the function was fed with temporatry wstrings (but I suspect that a constant wstring& would have solved the problem too). ".ToWString" I have not seen among the errors. my google-svn version is 1303. there's also an error in the ide itself: SerializeTabs is undefined. I'm not sure what to do with it. for now I commented out these commands and reduced the serialization-version to 8. I hope someone will port the Tab-Serialization to TabBars (as opposed to FileTabs or QuickTabs)...
|
Oops, I forgot to mention changing the package path. Sorry.
The errors were because I was of course testing the version in the ide directory and forgot to copy the changes back before committing. I've now rectified this.
Still, glad you got it working.
The problem with TabBar serialization is that now Tabs have a separate Image/icon property and there is now way to recreate this with generic serialization alone. It's not difficult to add serialization that ignores this property, but I wanted to the think about it first so I didn't include it with this release.
[Updated on: Tue, 16 June 2009 11:03] Report message to a moderator
|
|
|
|
|
|
Re: TabBar Major Revision [message #22104 is a reply to message #22103] |
Wed, 17 June 2009 19:58   |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |

|
|
Excuse for possibly bad thought, but why don`t you use file extension instead of tab icon? I.e. you may write it inside rounded rectangle with remarkable color, then goes filename w/o extension. And that`s all. No possible extensions after filename. Possible extensions could be shown with tooltip of tab caption.
[Updated on: Wed, 17 June 2009 20:00] Report message to a moderator
|
|
|
Re: TabBar Major Revision [message #22112 is a reply to message #22103] |
Thu, 18 June 2009 10:57   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
piotr5 wrote on Wed, 17 June 2009 17:31 | well, that was my traits of thought. judging by your usual enthusiasm to implement something new, I would guess your hesitation in this case is a result of having similar thoughts.
even the self-justification "they are small" does sound as if such a solution wouldn't be what you want. maybe you did "forget" thinking of animated gifs when writing that?
|
You summed up my thoughts very well Basically I'm just not sure there is a 'best' solution for this. The method I outline above is the most general one I can think of, but as you point out it has potential problems.
In the case of TheIde tabs (and possibly FileTabs if I removed the custom icon ability) I would not save the Images but just get them from the filesystem at load time.
Excuse for possibly bad thought, but why don`t you use file extension instead of tab icon?
I.e. you may write it inside rounded rectangle with remarkable color, then goes filename w/o extension.
And that`s all. No possible extensions after filename. Possible extensions could be shown with tooltip of tab caption.
I don't like the idea of hiding the stacked tab information behind a tooltip, it would just make it hard to use IMO. Making something like this is easy though (simply overloading 2 functions does it):

But I don't like it very much. I think icons are more difficult to read, even if not disabled/greyed out as in this shot.
-
Attachment: TabBar.png
(Size: 8.79KB, Downloaded 860 times)
[Updated on: Thu, 18 June 2009 11:01] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 11:18:18 CEST 2025
Total time taken to generate the page: 0.04070 seconds
|
|
|