Discussion:
[Wt-interest] Where is the source for Wt's "internal stylesheet"?
K. Frank
2014-12-28 15:37:05 UTC
Permalink
Hello List!

I am new to Wt and working with Wt 3.3.3.

I am working with the example DialogExample.C, and looking
at line 28:

textdiv->setStyleClass("text");

As I understand it, this line uses a style sheet to set some
formatting rules for the WContainerWidget textdiv, and because
DialogExample doesn't load any style sheets, I assume it's using
what the Wt documentation refers to as the "internal stylesheet."

But browsing the source, I can't find any definitions for the rules
for the internal stylesheet. I see a number of css files here and
there in the source tree, but none of them contain anything that
looks like it would map to a set of rules for "text" or "buttons".

Another possibility is that there is no Wt-provided style sheet,
and that the setStyleClass() calls ultimately map to some
default browser styles. If that's the case where might I find
(typical) rules for the browser-provided style sheet?


Thanks.


K. Frank
Freddy Martinez Garcia
2014-12-29 04:34:11 UTC
Permalink
hi guys.... i m new with Wt... I'm using OS X Yosemite and when I try to compile Wt I have this error:

usr/local/Cellar/boost/1.57.0/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
make[2]: *** [examples/wtwithqt/lib/moccedDispatchThread.C] Error 1
make[1]: *** [examples/wtwithqt/lib/CMakeFiles/wtwithqt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 3%] Built target wtdbo
[ 54%] Built target wt
make: *** [all] Error 2

does anyone can help me with that ??

regards


=============================================
"El tamaño de tus logros depende del tamaño de tus metas."
C++ and Qt Senior Developer
Lic. Computer Science
Buenos Aires, Argentina
Omar GIVERNAUD
2014-12-29 11:35:20 UTC
Permalink
Hi,

it sounds to me like a boost problem more than wt.
What version of boost do you use? (and wt)

++
Post by Freddy Martinez Garcia
hi guys.... i m new with Wt... I'm using OS X Yosemite and when I try to
Parse error at "BOOST_JOIN"
make[2]: *** [examples/wtwithqt/lib/moccedDispatchThread.C] Error 1
make[1]: *** [examples/wtwithqt/lib/CMakeFiles/wtwithqt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 3%] Built target wtdbo
[ 54%] Built target wt
make: *** [all] Error 2
does anyone can help me with that ??
regards
*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *
*C++ and Qt Senior Developer*
*Lic. Computer Science*
*Buenos Aires, Argentina*
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
Freddy Martinez Garcia
2014-12-29 12:53:14 UTC
Permalink
I have 1.57 cause i use the boost from homebrew repository... there is a problem with that ?


=============================================
"El tamaño de tus logros depende del tamaño de tus metas."
C++ and Qt Senior Developer
Lic. Computer Science
Buenos Aires, Argentina
Post by Omar GIVERNAUD
Hi,
it sounds to me like a boost problem more than wt.
What version of boost do you use? (and wt)
++
usr/local/Cellar/boost/1.57.0/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
make[2]: *** [examples/wtwithqt/lib/moccedDispatchThread.C] Error 1
make[1]: *** [examples/wtwithqt/lib/CMakeFiles/wtwithqt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 3%] Built target wtdbo
[ 54%] Built target wt
make: *** [all] Error 2
does anyone can help me with that ??
regards
=============================================
"El tamaño de tus logros depende del tamaño de tus metas."
C++ and Qt Senior Developer
Lic. Computer Science
Buenos Aires, Argentina
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net <http://goparallel.sourceforge.net/>
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest <https://lists.sourceforge.net/lists/listinfo/witty-interest>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
Koen Deforche
2014-12-31 13:37:00 UTC
Permalink
Hey,

Only Wt 3.3.4-rc1 or the git version of Wt builds fine with boost 1.57.

Regards,
koen
Post by Freddy Martinez Garcia
I have 1.57 cause i use the boost from homebrew repository... there is a
problem with that ?
*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *
*C++ and Qt Senior Developer*
*Lic. Computer Science*
*Buenos Aires, Argentina*
Hi,
it sounds to me like a boost problem more than wt.
What version of boost do you use? (and wt)
++
Post by Freddy Martinez Garcia
hi guys.... i m new with Wt... I'm using OS X Yosemite and when I try to
Parse error at "BOOST_JOIN"
make[2]: *** [examples/wtwithqt/lib/moccedDispatchThread.C] Error 1
make[1]: *** [examples/wtwithqt/lib/CMakeFiles/wtwithqt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 3%] Built target wtdbo
[ 54%] Built target wt
make: *** [all] Error 2
does anyone can help me with that ??
regards
*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *
*C++ and Qt Senior Developer*
*Lic. Computer Science*
*Buenos Aires, Argentina*
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now.
http://goparallel.sourceforge.net_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
K. Frank
2014-12-31 14:56:55 UTC
Permalink
Hello Freddy (and (Koen)!
Post by Koen Deforche
Hey,
Only Wt 3.3.4-rc1 or the git version of Wt builds fine with boost 1.57.
For what it's worth, I was able to build Wt 3.3.3 with boost 1.57
with some minor patches. (It did not build out of the box.) This
was on 64-bit windows 7 with a recent gcc 4.9.2 version of mingw-w64
Post by Koen Deforche
Regards,
koen
...
Post by Freddy Martinez Garcia
hi guys.... i m new with Wt... I'm using OS X Yosemite and when I try to
Parse error at "BOOST_JOIN"
I did not see this specific error. Again, as mentioned above, this was
on windows, not mac.

To get (on windows) wt 3.3.3 to build with boost 1.57 I had to patch
boost, adding a missing include file, per:

https://svn.boost.org/trac/boost/ticket/10100

and patch Wt to bring it up to date with boost's spirit parser-generator
header files, per:

http://redmine.webtoolkit.eu/issues/3561
Post by Koen Deforche
Post by Freddy Martinez Garcia
...
does anyone can help me with that ??
With a little fiddling, Wt 3.3.3 with boost 1.57 was possible for
me. But again, I didn't see the error you saw, so my windows /
mingw-w64 comments might not be relevant to your situation.

(I had no compelling reason not to upgrade to Wt 3.3.4-rc1;
I just wanted to stick with an official "stable" version. Going
with Wt 3.3.4 might well be the more practical solution.)
Post by Koen Deforche
Post by Freddy Martinez Garcia
regards
Good luck.


K. Frank
Freddy Martinez Garcia
2015-01-01 15:35:57 UTC
Permalink
Hi Frank

I'm using the Wt from its git repo... that is the version which I'm using... Am I need to change to another ??

regards


=============================================
"El tamaño de tus logros depende del tamaño de tus metas."
C++ and Qt Senior Developer
Lic. Computer Science
Buenos Aires, Argentina
Post by K. Frank
Hello Freddy (and (Koen)!
Post by Koen Deforche
Hey,
Only Wt 3.3.4-rc1 or the git version of Wt builds fine with boost 1.57.
For what it's worth, I was able to build Wt 3.3.3 with boost 1.57
with some minor patches. (It did not build out of the box.) This
was on 64-bit windows 7 with a recent gcc 4.9.2 version of mingw-w64
Post by Koen Deforche
Regards,
koen
...
Post by Freddy Martinez Garcia
hi guys.... i m new with Wt... I'm using OS X Yosemite and when I try to
Parse error at "BOOST_JOIN"
I did not see this specific error. Again, as mentioned above, this was
on windows, not mac.
To get (on windows) wt 3.3.3 to build with boost 1.57 I had to patch
https://svn.boost.org/trac/boost/ticket/10100
and patch Wt to bring it up to date with boost's spirit parser-generator
http://redmine.webtoolkit.eu/issues/3561
Post by Koen Deforche
Post by Freddy Martinez Garcia
...
does anyone can help me with that ??
With a little fiddling, Wt 3.3.3 with boost 1.57 was possible for
me. But again, I didn't see the error you saw, so my windows /
mingw-w64 comments might not be relevant to your situation.
(I had no compelling reason not to upgrade to Wt 3.3.4-rc1;
I just wanted to stick with an official "stable" version. Going
with Wt 3.3.4 might well be the more practical solution.)
Post by Koen Deforche
Post by Freddy Martinez Garcia
regards
Good luck.
K. Frank
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
K. Frank
2015-01-01 16:46:59 UTC
Permalink
Hi Freddy!

On Thu, Jan 1, 2015 at 10:35 AM, Freddy Martinez Garcia
Post by Wim Dumon
Hi Frank
I'm using the Wt from its git repo... that is the version which I'm using...
Am I need to change to another ??
Sorry, I don't know the answer to your question.

(My previous comment might not be relevant to your specific
situation. I just wanted to give the one data point about my
experience with Wt 3.3.3 / boost 1.57 / mingw-w64. I've never
built Wt on a mac, nor used Wt from git, nor used anything but
Wt 3.3.3.)
Post by Wim Dumon
regards
Good luck.


K. Frank

Wim Dumon
2014-12-30 16:00:09 UTC
Permalink
You'll find the definition in DialogExample.C line 66.

Wim.
Post by K. Frank
Hello List!
I am new to Wt and working with Wt 3.3.3.
I am working with the example DialogExample.C, and looking
textdiv->setStyleClass("text");
As I understand it, this line uses a style sheet to set some
formatting rules for the WContainerWidget textdiv, and because
DialogExample doesn't load any style sheets, I assume it's using
what the Wt documentation refers to as the "internal stylesheet."
But browsing the source, I can't find any definitions for the rules
for the internal stylesheet. I see a number of css files here and
there in the source tree, but none of them contain anything that
looks like it would map to a set of rules for "text" or "buttons".
Another possibility is that there is no Wt-provided style sheet,
and that the setStyleClass() calls ultimately map to some
default browser styles. If that's the case where might I find
(typical) rules for the browser-provided style sheet?
Thanks.
K. Frank
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
K. Frank
2014-12-30 21:49:52 UTC
Permalink
Hello Wim!
Post by Wim Dumon
You'll find the definition in DialogExample.C line 66.
Thanks very much -- I should have noticed that myself.

I have a couple of quick follow-up questions:

Just so I understand, does the "internal stylesheet" start out
empty so that without the calls to styleSheet().addRule() it
would have no effect?

Also, just a syntax / formatting question about the ".":
(I'm new to Wt and css).

I see (in DialogExample.C)

textdiv->setStyleClass("text");
styleSheet().addRule(".text", "padding: 4px 8px");
styleSheet().addRule("body", "margin: 0px;");

Could someone explain the structure whereby ".text" matches
"text" (with and without the ".", respectively), and why we call
addRule with ".text" and "body (with and without the ".", respectively)
Post by Wim Dumon
Wim.
Thanks again for sorting this out for me.


K. Frank
Post by Wim Dumon
Post by K. Frank
Hello List!
I am new to Wt and working with Wt 3.3.3.
I am working with the example DialogExample.C, and looking
textdiv->setStyleClass("text");
As I understand it, this line uses a style sheet to set some
formatting rules for the WContainerWidget textdiv, and because
DialogExample doesn't load any style sheets, I assume it's using
what the Wt documentation refers to as the "internal stylesheet."
...
Wim Dumon
2014-12-31 09:15:15 UTC
Permalink
Hi Frank,

Correct, you need to add styles to your document (internal stylesheets or
external stylesheets).

In relation to the selectors (.text, body, ...) I recommend you to google
and read about CSS selectors. Wt just passes these on to the browser.

Best regards,
Wim.
Post by K. Frank
Hello Wim!
Post by Wim Dumon
You'll find the definition in DialogExample.C line 66.
Thanks very much -- I should have noticed that myself.
Just so I understand, does the "internal stylesheet" start out
empty so that without the calls to styleSheet().addRule() it
would have no effect?
(I'm new to Wt and css).
I see (in DialogExample.C)
textdiv->setStyleClass("text");
styleSheet().addRule(".text", "padding: 4px 8px");
styleSheet().addRule("body", "margin: 0px;");
Could someone explain the structure whereby ".text" matches
"text" (with and without the ".", respectively), and why we call
addRule with ".text" and "body (with and without the ".", respectively)
Post by Wim Dumon
Wim.
Thanks again for sorting this out for me.
K. Frank
Post by Wim Dumon
Post by K. Frank
Hello List!
I am new to Wt and working with Wt 3.3.3.
I am working with the example DialogExample.C, and looking
textdiv->setStyleClass("text");
As I understand it, this line uses a style sheet to set some
formatting rules for the WContainerWidget textdiv, and because
DialogExample doesn't load any style sheets, I assume it's using
what the Wt documentation refers to as the "internal stylesheet."
...
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
K. Frank
2014-12-31 12:39:10 UTC
Permalink
Hi Wim!
Post by Wim Dumon
Hi Frank,
Correct, you need to add styles to your document (internal stylesheets or
external stylesheets).
In relation to the selectors (.text, body, ...) I recommend you to google
and read about CSS selectors. Wt just passes these on to the browser.
That's very helpful -- thanks for the follow-up.
Post by Wim Dumon
Best regards,
Wim.
Best.


K. Frank
Loading...