|
From: Mojca M. <moj...@gm...> - 2012-03-04 20:12:40
Attachments:
gnuplot.svg
|
Dear Gnuplot developers,
The Qt terminal was almost ready for Mac (it works on my computer),
however it has not been polished in the main CVS source (there are
still some minor issues). Would it be possible to take a look and make
it work before the official release of 4.6?
Also, is there any chance to use some high resolution icon? I have
created some PDF and SVG examples based on the original 16x16 image.
I'm attaching a SVG (it has a tiny flaw though: its vertical and
horizontal line widths are slightly distorted, but I can create an
image that is not if that "defect" is visible). The SVG could be used
for icon in Qt. Of course one could try to create a better/nicer/3D
icon, but at the moment having one high resolution (in this cane a
vector image) would already be much better than having 32x32 pixels. I
guess that this is not visible on Linux, but you can see how it
compares with other programs on
http://sourceforge.net/tracker/download.php?group_id=2055&atid=352055&file_id=432231&aid=3469808
Thank you,
Mojca
|
|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-03-09 05:14:44
|
On Sunday, 04 March 2012, Mojca Miklavec wrote: > > Also, is there any chance to use some high resolution icon? I have > created some PDF and SVG examples based on the original 16x16 image. > I'm attaching a SVG (it has a tiny flaw though How does one "use" the icon? Do you just mean we would include it in the distribution, for distro packages to copy into their preferred icon directory during installation? Ethan > : its vertical and > horizontal line widths are slightly distorted, but I can create an > image that is not if that "defect" is visible). The SVG could be used > for icon in Qt. Of course one could try to create a better/nicer/3D > icon, but at the moment having one high resolution (in this cane a > vector image) would already be much better than having 32x32 pixels. I > guess that this is not visible on Linux, but you can see how it > compares with other programs on > http://sourceforge.net/tracker/download.php?group_id=2055&atid=352055&file_id=432231&aid=3469808 > > Thank you, > Mojca > |
|
From: Mojca M. <moj...@gm...> - 2012-03-12 01:53:29
|
On Fri, Mar 9, 2012 at 06:14, sfeam (Ethan Merritt) wrote:
> On Sunday, 04 March 2012, Mojca Miklavec wrote:
>>
>> Also, is there any chance to use some high resolution icon? I have
>> created some PDF and SVG examples based on the original 16x16 image.
>> I'm attaching a SVG (it has a tiny flaw though
>
> How does one "use" the icon? Do you just mean we would include it
> in the distribution, for distro packages to copy into their preferred
> icon directory during installation?
No, at the moment Qt terminal uses
setWindowIcon(QIcon(":/images/gnuplot"));
which takes the icon
src/qtterminal/images/icon32x32.xpm
based on information
<file alias="images/gnuplot">images/icon32x32.xpm</file>
from
src/qtterminal/QtGnuplotResource.qrc
I think that simply replacing xpm file with svg file either in
QtGnuplotResource.qrc or in source code should work (but I'm currently
unable to compile Qt terminal to be able to test). Assuming that you
are happy with the SVG image of course.
>> : its vertical and
>> horizontal line widths are slightly distorted, but I can create an
>> image that is not if that "defect" is visible). The SVG could be used
>> for icon in Qt. Of course one could try to create a better/nicer/3D
>> icon, but at the moment having one high resolution (in this cane a
>> vector image) would already be much better than having 32x32 pixels. I
>> guess that this is not visible on Linux, but you can see how it
>> compares with other programs on
>> http://sourceforge.net/tracker/download.php?group_id=2055&atid=352055&file_id=432231&aid=3469808
Mojca
|
|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-03-12 03:29:59
|
On Sunday, 11 March 2012, Mojca Miklavec wrote:
> On Fri, Mar 9, 2012 at 06:14, sfeam (Ethan Merritt) wrote:
> > On Sunday, 04 March 2012, Mojca Miklavec wrote:
> >>
> >> Also, is there any chance to use some high resolution icon? I have
> >> created some PDF and SVG examples based on the original 16x16 image.
> >> I'm attaching a SVG (it has a tiny flaw though
> >
> > How does one "use" the icon? Do you just mean we would include it
> > in the distribution, for distro packages to copy into their preferred
> > icon directory during installation?
>
> No, at the moment Qt terminal uses
> setWindowIcon(QIcon(":/images/gnuplot"));
> which takes the icon
> src/qtterminal/images/icon32x32.xpm
> based on information
> <file alias="images/gnuplot">images/icon32x32.xpm</file>
> from
> src/qtterminal/QtGnuplotResource.qrc
>
> I think that simply replacing xpm file with svg file either in
> QtGnuplotResource.qrc or in source code should work
The documentation says:
"First, create an ICO format bitmap file that contains the icon image."
So I don't think svg is going to work.
The documentation then goes on to note that installation of icons under
OSX and linux varies widely with the platform. Here's what it says about
OSX:
"To ensure that the correct icon appears, both when the application
is being launched, and in the Finder, it is necessary to employ a
platform-dependent technique."
I have no idea what that means in the context of OSX (isn't it all one
"platform"?) but anyhow I have no idea how to do anything that works
cross-platform, and it least from the docs it seems svg is not supported.
But as always, if you send a patch I'd be happy to try it out on
my test machines.
Ethan
> (but I'm currently
> unable to compile Qt terminal to be able to test). Assuming that you
> are happy with the SVG image of course.
>
> >> : its vertical and
> >> horizontal line widths are slightly distorted, but I can create an
> >> image that is not if that "defect" is visible). The SVG could be used
> >> for icon in Qt. Of course one could try to create a better/nicer/3D
> >> icon, but at the moment having one high resolution (in this cane a
> >> vector image) would already be much better than having 32x32 pixels. I
> >> guess that this is not visible on Linux, but you can see how it
> >> compares with other programs on
> >> http://sourceforge.net/tracker/download.php?group_id=2055&atid=352055&file_id=432231&aid=3469808
>
> Mojca
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
|
|
From: Mojca M. <moj...@gm...> - 2012-03-12 03:59:58
|
On Mon, Mar 12, 2012 at 04:29, sfeam (Ethan Merritt) wrote:
> On Sunday, 11 March 2012, Mojca Miklavec wrote:
>
>> I think that simply replacing xpm file with svg file either in
>> QtGnuplotResource.qrc or in source code should work
>
> The documentation says:
> "First, create an ICO format bitmap file that contains the icon image."
Where exactly does it say that?
> So I don't think svg is going to work.
I'm not sure how it is under windows or linux, but it definitely works
under Mac.
(After all, gnuplot includes "export to SVG", so Qt must have SVG support.)
> The documentation then goes on to note that installation of icons under
> OSX and linux varies widely with the platform. Here's what it says about
> OSX:
> "To ensure that the correct icon appears, both when the application
> is being launched, and in the Finder, it is necessary to employ a
> platform-dependent technique."
Sure. But this is hardly related. I'm not talking about icon "in the
Finder" and I'm not talking about icon under Windows. I'm only talking
about the icon that is seen when Qt window pops up and that one must
be way less platform-dependent if dependent at all.
I have no problem creating Mac-specific icon, but at the moment there
is no single place where I could put it. One has to create a bundled
application and we don't have that, so Mac-specific solution wouldn't
help anyone.
> I have no idea what that means in the context of OSX (isn't it all one
> "platform"?) but anyhow I have no idea how to do anything that works
> cross-platform, and it least from the docs it seems svg is not supported.
I tested it last time and it worked fine for me. But I didn't test on
windows or linux. On the sourceforge page there is a sample program:
#include <QApplication>
#include <QTextEdit>
#include <QIcon>
int main(int argv, char **args)
{
QApplication app(argv, args);
QTextEdit textEdit;
textEdit.show();
QIcon appIcon;
appIcon.addFile("icon.svg");
QApplication::setWindowIcon(appIcon);
app.exec();
}
I can compile it with (I just copied the flags from gnuplot, some may
not be necessary):
g++ hello.cpp -I/Library/Frameworks/QtCore.framework/Headers
-I/Library/Frameworks/QtGui.framework/Headers
-I/Library/Frameworks/QtNetwork.framework/Headers
-I/Library/Frameworks/QtSvg.framework/Headers -F/Library/Frameworks
-framework QtCore -framework QtGui -framework QtNetwork -framework
QtSvg -o hello
and when I run it, I get an application with that SVG image as an icon
(when switching between programs with alt-tab and as displayed on
dock). But I can send a patch for gnuplot that does the same.
I didn't test it yet, but in principle it's just about replacing
setWindowIcon(QIcon(":/images/gnuplot"));
with
QIcon appIcon;
appIcon.addFile("icon.svg");
setWindowIcon(appIcon);
or about changing resource file.
Mojca
|