Suppression des anciens elements

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@23 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2006-11-17 15:21:42 +00:00
parent 332f106763
commit 451f1ce793
5 changed files with 13 additions and 90 deletions

View File

@@ -1,8 +0,0 @@
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" nom="contacteur" width="15" height="70" hotspot_x="10" hotspot_y="5" orientation="dnny">
<ligne x1="-5" y1="19" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</definition>

View File

@@ -1,63 +0,0 @@
<!ELEMENT definition (borne+|ligne*|cercle*|polygone*)+>
<!ATTLIST definition
type CDATA #FIXED "element"
nom CDATA #REQUIRED
width CDATA #REQUIRED
height CDATA #REQUIRED
hotspot_x CDATA #REQUIRED
hotspot_y CDATA #REQUIRED
orientation CDATA "dnnn"
>
<!ELEMENT borne EMPTY>
<!ATTLIST borne
x CDATA #REQUIRED
y CDATA #REQUIRED
orientation (n|s|e|o) "n"
>
<!ELEMENT ligne EMPTY>
<!ATTLIST ligne
x1 CDATA #REQUIRED
y1 CDATA #REQUIRED
x2 CDATA #REQUIRED
y2 CDATA #REQUIRED
antialias (true|false) "false"
style CDATA ""
>
<!ELEMENT cercle EMPTY>
<!ATTLIST cercle
x CDATA #REQUIRED
y CDATA #REQUIRED
rayon CDATA #REQUIRED
antialias (true|false) "false"
style CDATA ""
>
<!ELEMENT polygone EMPTY>
<!ATTLIST polygone
x1 CDATA #IMPLIED
y1 CDATA #IMPLIED
x2 CDATA #IMPLIED
y2 CDATA #IMPLIED
x3 CDATA #IMPLIED
y3 CDATA #IMPLIED
x4 CDATA #IMPLIED
y4 CDATA #IMPLIED
x5 CDATA #IMPLIED
y5 CDATA #IMPLIED
x6 CDATA #IMPLIED
y6 CDATA #IMPLIED
x7 CDATA #IMPLIED
y7 CDATA #IMPLIED
x8 CDATA #IMPLIED
y8 CDATA #IMPLIED
x9 CDATA #IMPLIED
y9 CDATA #IMPLIED
x10 CDATA #IMPLIED
y10 CDATA #IMPLIED
antialias (true|false) "false"
style CDATA ""
>

View File

@@ -1,10 +0,0 @@
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" nom="del" width="30" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<cercle x="-10" y="20" rayon="20" antialias="true" style="normal" />
<ligne x1="-7" y1="23" x2="7" y2="37" antialias="true" style="normal" />
<ligne x1="7" y1="23" x2="-7" y2="37" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</definition>

View File

@@ -1,6 +0,0 @@
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" nom="entree" width="20" height="40" hotspot_x="10" hotspot_y="15" orientation="dyyy">
<polygone x1="-7.5" y1="-13" x2="7.5" y2="-13" x3="0" y3="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="13" antialias="false" style="normal" />
<borne orientation="s" x="0" y="15" />
</definition>

View File

@@ -491,9 +491,19 @@ void QETApp::toolbar() {
gere l'impression
*/
void QETApp::dialogue_imprimer() {
QPrinter *qprin = new QPrinter();
QPrintDialog *qpd = new QPrintDialog(qprin, this);
qpd -> exec();
QPrinter qprin;
qprin.setOrientation(QPrinter::Landscape);
qprin.setPageSize(QPrinter::A4);
//qprin.setPrintProgram("lp");
QPrintDialog qpd(&qprin, this);
if (qpd.exec() == QDialog::Accepted) {
QPainter qp(&qprin);
Schema *sc = schemaEnCours() -> scene;
sc -> setAffichageGrille(false);
sc -> render(&qp);
sc -> setAffichageGrille(true);
}
}
/**