Hi Carsten,
I generally think that you’re the one who knows Qt/KDE widgets the
best, but others can feel free to chime in if they know the answers.
-
For some of the new property windows, we basically have a table
that spans the window. But it’s not really “attached” properly. If you
resize the window, the table doesn’t get any feedback. See attached
screenshot.
-
On the Mac (and Windows too, IIRC), there’s a widget which shows a
current color – and you click it to bring up the color picker. Does
this exist in Qt/KDE?
-
Is there a Cmake script to detect kdelibs? It would be nice to “go
native” for KDE environments. We already have some bits for Mac, and
I’m sure we’ll have some for Windows too. Anyone want to volunteer for
adding in native KDE widgets where possible?
Thanks in advance,
-Geoff
Am Montag, 11. Februar 2008 03:44:43 schrieben Sie:
- Is there a Cmake script to detect kdelibs? It would be nice to “go
native” for KDE environments. We already have some bits for Mac, and
I’m sure we’ll have some for Windows too. Anyone want to volunteer for
adding in native KDE widgets where possible?
Just use this command in avogadro/CMakeLists.txt
find_package(KDE4)
This macro comes with CMake 2.4.x itself, 2.4.3 should be enough.
This might also be needed:
include_directories ({CMAKE_SOURCE_DIR} {CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
Then you can do:
if(KDE4_FOUND)
…magic…
endif(KDE4_FOUND)
Carsten
Am Montag, 11. Februar 2008 03:44:43 schrieben Sie:
- On the Mac (and Windows too, IIRC), there’s a widget which shows a
current color – and you click it to bring up the color picker. Does
this exist in Qt/KDE?
Do you mean this?
QColorDialog / KColorDialog
http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKColorDialog.html
http://doc.trolltech.com/4.3/qcolordialog.html
Carsten
On Feb 11, 2008, at 8:04 AM, Carsten Niehaus wrote:
Am Montag, 11. Februar 2008 03:44:43 schrieben Sie:
- On the Mac (and Windows too, IIRC), there’s a widget which shows a
current color – and you click it to bring up the color picker. Does
this exist in Qt/KDE?
Do you mean this?
QColorDialog / KColorDialog
Not quite. Yes, QColorDialog / KColorDialog are the color picker. On
Mac and Windows, they bring up the native widgets too.
On the Mac, at least, there’s a button you can stuff into another
widget. It reflects the current color, and you click it to bring up
the color picker. I’m thinking of something to replace the R/G/B in
the surface options. One little button which turns red by default,
then you click it to bring up (and change) the color.
It’d be like in a painting program – the color swatches which show
what the brush will paint.
Does that make any sense?
Cheers,
-Geoff