mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-26 13:20:52 +01:00
Amelioration de l'interface Fichier > Exporter
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@42 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
13
qetapp.cpp
13
qetapp.cpp
@@ -3,6 +3,7 @@
|
||||
#include "schema.h"
|
||||
#include "panelappareils.h"
|
||||
#include "aboutqet.h"
|
||||
#include "exportdialog.h"
|
||||
|
||||
/**
|
||||
constructeur
|
||||
@@ -515,13 +516,12 @@ void QETApp::dialogue_imprimer() {
|
||||
Gere l'export de schema vers un autre format (PNG pour le moment)
|
||||
*/
|
||||
void QETApp::dialogue_exporter() {
|
||||
Schema *sc = schemaEnCours() -> scene;
|
||||
ExportDialog ed(*sc);
|
||||
ed.exec();
|
||||
/*
|
||||
// demande un nom de fichier
|
||||
QString nom_fichier = QFileDialog::getSaveFileName(
|
||||
this,
|
||||
tr("Exporter vers le fichier"),
|
||||
QDir::homePath(),
|
||||
tr("Image PNG (*.png)")
|
||||
);
|
||||
|
||||
// exporte le schema
|
||||
if (nom_fichier != "") {
|
||||
if (!nom_fichier.endsWith(".png", Qt::CaseInsensitive)) nom_fichier += ".png";
|
||||
@@ -533,6 +533,7 @@ void QETApp::dialogue_exporter() {
|
||||
image.save(&fichier, "PNG");
|
||||
fichier.close();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user