L'installation ajoute desormais une icone et un .desktop sous UNIX

Mise a jour de la DTD, toujours inutilisee


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@300 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet 2008-02-23 13:22:23 +00:00
parent 5c7044fbdb
commit 854336e569
3 changed files with 32 additions and 9 deletions

View File

@ -13,17 +13,17 @@
<!ELEMENT name (#PCDATA)> <!ELEMENT name (#PCDATA)>
<!ATTLIST name lang CDATA #REQUIRED> <!ATTLIST name lang CDATA #REQUIRED>
<!ELEMENT description (borne+|ligne*|cercle*|polygone*)+> <!ELEMENT description (terminal+|line*|circle*|polygon*)+>
<!ELEMENT borne EMPTY> <!ELEMENT terminal EMPTY>
<!ATTLIST borne <!ATTLIST terminal
x CDATA #REQUIRED x CDATA #REQUIRED
y CDATA #REQUIRED y CDATA #REQUIRED
orientation (n|s|e|o) "n" orientation (n|s|e|o) "n"
> >
<!ELEMENT ligne EMPTY> <!ELEMENT line EMPTY>
<!ATTLIST ligne <!ATTLIST line
x1 CDATA #REQUIRED x1 CDATA #REQUIRED
y1 CDATA #REQUIRED y1 CDATA #REQUIRED
x2 CDATA #REQUIRED x2 CDATA #REQUIRED
@ -32,8 +32,8 @@
style CDATA "" style CDATA ""
> >
<!ELEMENT cercle EMPTY> <!ELEMENT circle EMPTY>
<!ATTLIST cercle <!ATTLIST circle
x CDATA #REQUIRED x CDATA #REQUIRED
y CDATA #REQUIRED y CDATA #REQUIRED
rayon CDATA #REQUIRED rayon CDATA #REQUIRED
@ -41,8 +41,8 @@
style CDATA "" style CDATA ""
> >
<!ELEMENT polygone EMPTY> <!ELEMENT polygon EMPTY>
<!ATTLIST polygone <!ATTLIST polygon
x1 CDATA #IMPLIED x1 CDATA #IMPLIED
y1 CDATA #IMPLIED y1 CDATA #IMPLIED
x2 CDATA #IMPLIED x2 CDATA #IMPLIED

11
misc/qelectrotech.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=QElectroTech
Exec=qelectrotech
Icon=qet
Terminal=false
Type=Application
Categories=Qt;VectorGraphics;Science;Electricity;Engineering;
Comment=An electric diagrams editor.
Comment[fr]=Un éditeur de schémas électriques
GenericName=Electric diagrams editor
GenericName[fr]=Un éditeur de schémas électriques

View File

@ -11,6 +11,8 @@
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/' QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
QET_LANG_PATH = 'share/qelectrotech/lang/' QET_LANG_PATH = 'share/qelectrotech/lang/'
QET_LICENSE_PATH = 'doc/qelectrotech/' QET_LICENSE_PATH = 'doc/qelectrotech/'
QET_DESKTOP_PATH = 'share/applications/'
QET_ICONS_PATH = 'share/icons/'
} else { } else {
# Chemins Windows # Chemins Windows
COMPIL_PREFIX = './' COMPIL_PREFIX = './'
@ -185,8 +187,18 @@ copyright.files = LICENSE \
CREDIT \ CREDIT \
README README
desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH})
desktop.files = misc/qelectrotech.desktop
icons.path = $$join(INSTALL_PREFIX,,,$${QET_ICONS_PATH})
icons.files = ico/qet.png
# L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE # L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE
INSTALLS += target elements lang copyright INSTALLS += target elements lang copyright
# Sous Unix, on installe egalement l'icone et un fichier .desktop
unix {
INSTALLS += desktop icons
}
# Options de compilation # Options de compilation
# Chemin des fichiers de traduction ; par defaut : lang/ dans le repertoire d'execution # Chemin des fichiers de traduction ; par defaut : lang/ dans le repertoire d'execution