Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Ideas | Propositions Using textview for some config widgets
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] Using textview for some config widgets
SQP English 10 SQP [Read]
20 September 2010 à 13:35

SQP, Sunday 12 September 2010 à 00:08


Subscription date : 03 July 2010
Messages : 1081
Two screenshots to show what we can get with the textview widget.
Tweaked a little the applet handbook to show name and author(s) in first line label and the details in the textview
First screen is with frame (just removed title), and second is without (so the textview fill all the place)
I filled the 2nd with some wikipedia text to show how this can look if we use plain text for documentation
(maybe we could split full applet doc from fast info dialog available with right click menu).

color is my default text editor color. It can be override, but didn't found any transparent option
resize is perfect for config panel, just saw a little slow down in launchers panel when moving the middle separator to the right if there is a big text in justify mode

http://uppix.net/6/5/d/78cbbcc313707cca278e00894fd4f.png

http://uppix.net/7/1/0/b609a5008f79810f2d301a8c3f214.png

PS : tweaked the launchers panel to add full applets config and subdocks config. Love it

fabounet, Monday 13 September 2010 à 11:04


Subscription date : 30 November 2007
Messages : 17118
I must admit this looks nice
the firest one is probably better since most applet previews are taken form screenshots and therefore have no transparent background.
you're right the launcher panel could do more, like removing launchers, addind stuffs, etc. although everything can be done probably faster directly from the dock.

SQP, Monday 13 September 2010 à 11:49


Subscription date : 03 July 2010
Messages : 1081
like removing launchers, addind stuffs


didn't thought at it atm, those are fast enough to do, and I don't think the dock would be really usable without mouse.
But what I found is just a better config panel, it list all my icons, applets and launchers so I have fast access to every configuration, and can tweak them very easily without having to right click all of them (this is a drawback of the main config panel when having multiple instances).

Since I already added the other maindocks and applets config. It would only require a few options to be the dreamed config panel :
  • list desklets in a "desktop" group. (this group could have the base desklets config page)
  • minor look tweaking
  • docks renaming
  • get a page to config maindock like subdocks. Maybe need to separate some global dock configuration and treat the maindock like others (use options "default config" instead of "like maindock")

SQP, Monday 13 September 2010 à 12:12


Subscription date : 03 July 2010
Messages : 1081
about my main subject :
do you like the title and author labels bar ? I'd like to factorise it for themes and downloaded stuff. Downloaded one would have 2 lines :
-Name-version; Size
-State (installed...); Author

I tried to test other widgets, but couldn't succeed in declaring them. VMWare wraplabel seem nice. I don't know if we would want to add dependency, but would have be nice to see how it work to compare. Also wanted to try the gtkhtml that would open lot of options and easy edition

#include <libview/wrapLabel.hh>
#include <libgtkhtml-3.14/gtkhtml/gtkhtml.h>

loads me with lot of file not found errors, or the fact it doesn't recognise the namespace command

http://uppix.net/6/1/4/6ff5412fe1fd45858059cb3d921d6.png

fabounet, Monday 13 September 2010 à 14:01


Subscription date : 30 November 2007
Messages : 17118
do you like the title and author labels bar ?

yep !
but I find a pity to loose the few html wrapper that are used (<b>, <u> and <i> are the only one).
so maybe adding a little html parser to the textview would be nice (a very simple one, just for those 3 wrappers, and you don't need to imbricate them)

I'd like to factorise it for themes and downloaded stuff.

sure !
especially, when the preview + readme does too large, it distord the entire window by adding a scrollbar.
would be nice to avoid that, whatever the readme's text is.

matttbe, Thursday 16 September 2010 à 00:51


Subscription date : 24 January 2009
Messages : 12573
Great ideas!!! Let's continue

SQP, Saturday 18 September 2010 à 10:30


Subscription date : 03 July 2010
Messages : 1081
yes the goal is giving all of them a similar flexible look. (working on gauges is painfull with that resize problem)

Textview is a nice test, but as I'll factorise it, that would be easy to change.
To get nice and usefull rendering, I would have like a little more attributes : h1, h2, (h3?), ul/li, a href
That's why I tried to see how other widgets would handle resize. I found a really nice blog about GTK resizing work : http://blogs.gnome.org/tvb/
So I don't know what would be the best. I'll stick to basic textview atm as it already fix many problems. If the only drawback is to remove a few tags in text (which would benefit from a full rewrite with flexible behaviour I guess), that should be ok (or simple tag parser, shouldn't be too long, I guess there's many out there)
I added some margins around paragraphs (5px top and bottom) to allow better text reading. Maybe that's too much.

So here is another load of screenshots to show how it can help the theme preview : used for gauge themes, and brothers (weather, clock...), views list (same but will have to hide author unless you can and want to add them), and theme save.
2nd screen is the same but with my launchers gui little hack (2 lines for changes visible on the screen, and manual frame resize)
And I just add here the theme save box to show how it look, but as there's some other things to discuss about it, I'll switch that to the dedicated thread.

http://uppix.net/e/c/8/9dde5e47413a03ec33e469e33d1bf.png

http://uppix.net/3/8/0/0eb2cb13dfadb57d272a9ac65fcc9.png

http://uppix.net/c/6/f/791bd007518c47c5f1967755f59cf.png

fabounet, Monday 20 September 2010 à 13:06


Subscription date : 30 November 2007
Messages : 17118
having some bold and underline would help reading the text I think (you can get important points faster).
I'm afraid the text-view will be most of the time quite empty (there is few to say about each theme) it seems to be higher than the preview (which on the opposite is often quite large)

SQP, Monday 20 September 2010 à 13:23


Subscription date : 03 July 2010
Messages : 1081
I'm not sure about the importance of basic markup for a few lines text, but I still look for more (I would prefer inline links and headers over bold and underline)
Important point atm is that it fix many resize problems

I kept preview at fixed size, it gives a better standard look. Think about views screenshots images.
I guess it would be better to enhance other screenshots to that size (mine is just a placeholder until text looks ok), but description should stay (+ rotate info)
Space on screen should be exactly the same as before (in fact, less for long text with the wrap)

I wondered about new keys : homepage and contact to add links if needed to title and author. Some themes have that in text, I guess it would be nice to handle that directly. More links could be added after, but that should cover most cases.

fabounet, Monday 20 September 2010 à 13:29


Subscription date : 30 November 2007
Messages : 17118
actually applet's readme are quite long, and therefore not easy to read
having some bold keywords makes it easier.
not a big deal, but since a textview can do that, why not ?

SQP, Monday 20 September 2010 à 13:35


Subscription date : 03 July 2010
Messages : 1081
yes, but as I said, textview was only one way to work with resize problems. I worked keeping in mind I could have to change it
Would like to test libview wraplabel or gtkhtml before I start working more on textview, but I'm not sure how to declare them.

Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] Using textview for some config widgets
SQP English 10 SQP [Read]
20 September 2010 à 13:35


Glx-Dock / Cairo-Dock List of forums Ideas | Propositions Using textview for some config widgets Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.