From: Chris Cannam <cannam@al...> - 2008-09-17 10:01:22
I'm not seeing rev 9370 appearing on rg-bugs, so perhaps the diff was
too big for the mailing list.
I've introduced a few helper classes (from elsewhere) that we can use
to replace certain bits of KDE functionality.
The main one that others might want to be aware of is IconLoader,
which can be used to load pixmap icons for menu actions and such like.
For example, if you have:
QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
QIcon icon(QPixmap(pixmapDir + "/toolbar/select.xpm"));
it can become
QIcon icon = il.load("select");
IconLoader is a bit like QSettings in that it's cheap to construct, so
just stick 'em on the stack.
IconLoader is currently written to load from Qt resources (although it
can easily be changed or augmented if need be), and to that end I've
also committed an experimental qrc file in data/rosegarden.qrc which
lists all our existing icons. This isn't supported in either of the
build systems yet; you could build it, if you cared, with something
like "rcc data/rosegarden.qrc > src/rosegarden_qrc.cpp" and then the
cpp file will be picked up in the qt4-makefile build. If we stick
with it, obviously it'll want to go into the proper build system
Check the commit log for rev 9370 for some more bits & bobs.
From: D. Michael McIntyre <rosegarden.trumpeter@gm...> - 2008-09-17 23:03:43
On Wednesday 17 September 2008, Chris Cannam wrote:
> I'm not seeing rev 9370 appearing on rg-bugs, so perhaps the diff was
> too big for the mailing list.
That explains why the rg21 stuff disappeared with no explanation. I was
afraid I was having email troubles again.
I'll look through and try to digest all of this tomorrow. My most immediate
thought is that if we have some kind of roadmap worked out for dealing with
resources, I'll go ahead and get to work on the new transport dialog. I
think it would be really useful for me to do that, so I can start to
understand more about all these layout issues that so confound me.
But I need to finish the message box stuff first, and I'm still intending to
do that. Just haven't found time with all the home maintenance projects that
have been keeping me busy lately. Plus that damn time-sucking day job.
D. Michael McIntyre