mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Peaufinage de la plupart des dialogues pour qu'ils n'apparaissent pas dans la barre des taches
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@377 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -78,7 +78,7 @@ QString DiagramPrintDialog::docName() const {
|
|||||||
void DiagramPrintDialog::exec() {
|
void DiagramPrintDialog::exec() {
|
||||||
|
|
||||||
// affichage du dialogue d'impression standard
|
// affichage du dialogue d'impression standard
|
||||||
QPrintDialog print_dialog(printer);
|
QPrintDialog print_dialog(printer, parentWidget());
|
||||||
print_dialog.setEnabledOptions(QAbstractPrintDialog::PrintToFile | QAbstractPrintDialog::PrintShowPageSize);
|
print_dialog.setEnabledOptions(QAbstractPrintDialog::PrintToFile | QAbstractPrintDialog::PrintShowPageSize);
|
||||||
#ifndef Q_OS_WIN32
|
#ifndef Q_OS_WIN32
|
||||||
if (!pdf_name.isEmpty()) printer -> setOutputFileName(pdf_name);
|
if (!pdf_name.isEmpty()) printer -> setOutputFileName(pdf_name);
|
||||||
@@ -142,7 +142,7 @@ int DiagramPrintDialog::verticalPagesCount(bool fullpage) const {
|
|||||||
Construit un dialogue non standard pour demander les pages a imprimer a l'utilisateur
|
Construit un dialogue non standard pour demander les pages a imprimer a l'utilisateur
|
||||||
*/
|
*/
|
||||||
void DiagramPrintDialog::buildDialog() {
|
void DiagramPrintDialog::buildDialog() {
|
||||||
dialog = new QDialog();
|
dialog = new QDialog(parentWidget());
|
||||||
dialog -> setWindowTitle(tr("Options d'impression"));
|
dialog -> setWindowTitle(tr("Options d'impression"));
|
||||||
options_label = new QLabel();
|
options_label = new QLabel();
|
||||||
use_full_page = new QCheckBox(tr("Utiliser toute la feuille"));
|
use_full_page = new QCheckBox(tr("Utiliser toute la feuille"));
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ bool DiagramView::open(QString n_fichier, int *erreur) {
|
|||||||
qreal diagram_version = root.attribute("version").toDouble(&conv_ok);
|
qreal diagram_version = root.attribute("version").toDouble(&conv_ok);
|
||||||
if (conv_ok && QET::version.toDouble() < diagram_version) {
|
if (conv_ok && QET::version.toDouble() < diagram_version) {
|
||||||
QMessageBox::warning(
|
QMessageBox::warning(
|
||||||
0,
|
this,
|
||||||
tr("Avertissement"),
|
tr("Avertissement"),
|
||||||
tr("Ce document semble avoir \351t\351 enregistr\351 avec une "
|
tr("Ce document semble avoir \351t\351 enregistr\351 avec une "
|
||||||
"version ult\351rieure de QElectroTech. Il est possible que "
|
"version ult\351rieure de QElectroTech. Il est possible que "
|
||||||
@@ -521,7 +521,7 @@ bool DiagramView::saveDiagramToFile(QString &n_fichier) {
|
|||||||
Exporte le schema.
|
Exporte le schema.
|
||||||
*/
|
*/
|
||||||
void DiagramView::dialogExport() {
|
void DiagramView::dialogExport() {
|
||||||
ExportDialog ed(scene, this);
|
ExportDialog ed(scene, diagramEditor());
|
||||||
ed.exec();
|
ed.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -558,7 +558,7 @@ void DiagramView::dialogEditInfos() {
|
|||||||
BorderProperties border = scene -> border_and_inset.exportBorder();
|
BorderProperties border = scene -> border_and_inset.exportBorder();
|
||||||
|
|
||||||
// construit le dialogue
|
// construit le dialogue
|
||||||
QDialog popup;
|
QDialog popup(diagramEditor());
|
||||||
popup.setMinimumWidth(400);
|
popup.setMinimumWidth(400);
|
||||||
popup.setWindowTitle(tr("Propri\351t\351s du sch\351ma"));
|
popup.setWindowTitle(tr("Propri\351t\351s du sch\351ma"));
|
||||||
|
|
||||||
@@ -725,7 +725,7 @@ void DiagramView::editConductor(Conductor *edited_conductor) {
|
|||||||
ConductorPropertiesWidget *cpw = new ConductorPropertiesWidget(old_properties);
|
ConductorPropertiesWidget *cpw = new ConductorPropertiesWidget(old_properties);
|
||||||
|
|
||||||
// l'insere dans un dialogue
|
// l'insere dans un dialogue
|
||||||
QDialog conductor_dialog;
|
QDialog conductor_dialog(diagramEditor());
|
||||||
conductor_dialog.setWindowTitle(tr("\311diter les propri\351t\351s d'un conducteur"));
|
conductor_dialog.setWindowTitle(tr("\311diter les propri\351t\351s d'un conducteur"));
|
||||||
QVBoxLayout *dialog_layout = new QVBoxLayout(&conductor_dialog);
|
QVBoxLayout *dialog_layout = new QVBoxLayout(&conductor_dialog);
|
||||||
dialog_layout -> addWidget(cpw);
|
dialog_layout -> addWidget(cpw);
|
||||||
@@ -784,7 +784,7 @@ void DiagramView::editDefaultConductorProperties() {
|
|||||||
ConductorPropertiesWidget *cpw = new ConductorPropertiesWidget(scene -> defaultConductorProperties);
|
ConductorPropertiesWidget *cpw = new ConductorPropertiesWidget(scene -> defaultConductorProperties);
|
||||||
|
|
||||||
// l'insere dans un dialogue
|
// l'insere dans un dialogue
|
||||||
QDialog conductor_dialog;
|
QDialog conductor_dialog(diagramEditor());
|
||||||
conductor_dialog.setWindowTitle(tr("\311diter les propri\351t\351s par d\351faut des conducteurs"));
|
conductor_dialog.setWindowTitle(tr("\311diter les propri\351t\351s par d\351faut des conducteurs"));
|
||||||
QVBoxLayout *dialog_layout = new QVBoxLayout(&conductor_dialog);
|
QVBoxLayout *dialog_layout = new QVBoxLayout(&conductor_dialog);
|
||||||
dialog_layout -> addWidget(cpw);
|
dialog_layout -> addWidget(cpw);
|
||||||
|
|||||||
@@ -536,7 +536,7 @@ void ElementScene::slot_delete() {
|
|||||||
*/
|
*/
|
||||||
void ElementScene::slot_editSizeHotSpot() {
|
void ElementScene::slot_editSizeHotSpot() {
|
||||||
// cree un dialogue
|
// cree un dialogue
|
||||||
QDialog dialog_sh;
|
QDialog dialog_sh(element_editor);
|
||||||
dialog_sh.setModal(true);
|
dialog_sh.setModal(true);
|
||||||
dialog_sh.setWindowTitle(tr("\311diter la taille et le point de saisie"));
|
dialog_sh.setWindowTitle(tr("\311diter la taille et le point de saisie"));
|
||||||
QVBoxLayout *dialog_layout = new QVBoxLayout(&dialog_sh);
|
QVBoxLayout *dialog_layout = new QVBoxLayout(&dialog_sh);
|
||||||
@@ -575,7 +575,7 @@ void ElementScene::slot_editSizeHotSpot() {
|
|||||||
void ElementScene::slot_editOrientations() {
|
void ElementScene::slot_editOrientations() {
|
||||||
|
|
||||||
// cree un dialogue
|
// cree un dialogue
|
||||||
QDialog dialog_ori;
|
QDialog dialog_ori(element_editor);
|
||||||
dialog_ori.setModal(true);
|
dialog_ori.setModal(true);
|
||||||
dialog_ori.setMinimumSize(400, 260);
|
dialog_ori.setMinimumSize(400, 260);
|
||||||
dialog_ori.setWindowTitle(tr("\311diter les orientations"));
|
dialog_ori.setWindowTitle(tr("\311diter les orientations"));
|
||||||
@@ -621,7 +621,7 @@ void ElementScene::slot_editOrientations() {
|
|||||||
void ElementScene::slot_editNames() {
|
void ElementScene::slot_editNames() {
|
||||||
|
|
||||||
// cree un dialogue
|
// cree un dialogue
|
||||||
QDialog dialog;
|
QDialog dialog(element_editor);
|
||||||
dialog.setModal(true);
|
dialog.setModal(true);
|
||||||
dialog.setMinimumSize(400, 330);
|
dialog.setMinimumSize(400, 330);
|
||||||
dialog.setWindowTitle(tr("\311diter les noms"));
|
dialog.setWindowTitle(tr("\311diter les noms"));
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ bool QETElementEditor::isReadOnly() const {
|
|||||||
Lance l'assistant de creation d'un nouvel element.
|
Lance l'assistant de creation d'un nouvel element.
|
||||||
*/
|
*/
|
||||||
void QETElementEditor::slot_new() {
|
void QETElementEditor::slot_new() {
|
||||||
NewElementWizard new_element_wizard;
|
NewElementWizard new_element_wizard(this);
|
||||||
new_element_wizard.exec();
|
new_element_wizard.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ void ElementsPanel::launchElementEditor(const QString &filename) {
|
|||||||
@param filename Chemin du dossier representant la categorie
|
@param filename Chemin du dossier representant la categorie
|
||||||
*/
|
*/
|
||||||
void ElementsPanel::launchCategoryEditor(const QString &filename) {
|
void ElementsPanel::launchCategoryEditor(const QString &filename) {
|
||||||
ElementsCategoryEditor ece(filename, true);
|
ElementsCategoryEditor ece(filename, true, this);
|
||||||
if (ece.exec() == QDialog::Accepted) reload();
|
if (ece.exec() == QDialog::Accepted) reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ void ElementsPanelWidget::reloadAndFilter() {
|
|||||||
Appelle l'assistant de creation de nouvel element
|
Appelle l'assistant de creation de nouvel element
|
||||||
*/
|
*/
|
||||||
void ElementsPanelWidget::newElement() {
|
void ElementsPanelWidget::newElement() {
|
||||||
NewElementWizard new_element_wizard;
|
NewElementWizard new_element_wizard(this);
|
||||||
new_element_wizard.exec();
|
new_element_wizard.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ void ElementsPanelWidget::newElement() {
|
|||||||
Lance le gestionnaire de categories
|
Lance le gestionnaire de categories
|
||||||
*/
|
*/
|
||||||
void ElementsPanelWidget::newCategory() {
|
void ElementsPanelWidget::newCategory() {
|
||||||
QDialog new_category_dialog;
|
QDialog new_category_dialog(this);
|
||||||
new_category_dialog.setMinimumSize(480, 280);
|
new_category_dialog.setMinimumSize(480, 280);
|
||||||
new_category_dialog.setWindowTitle(tr("Gestionnaire de cat\351gories"));
|
new_category_dialog.setWindowTitle(tr("Gestionnaire de cat\351gories"));
|
||||||
|
|
||||||
|
|||||||
@@ -1060,7 +1060,7 @@ void QETDiagramEditor::writeSettings() {
|
|||||||
@see ConfigDialog
|
@see ConfigDialog
|
||||||
*/
|
*/
|
||||||
void QETDiagramEditor::configureQET() {
|
void QETDiagramEditor::configureQET() {
|
||||||
ConfigDialog cd;
|
ConfigDialog cd(this);
|
||||||
cd.exec();
|
cd.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user