mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Conductor autonumerotation: Remove one autonum per diagram and add global autonums for the project.
several diagram can share the same autonumerotation. This is first step, need to be improved and readd some feature (disabled for first step). git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3239 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include "dialogautonum.h"
|
||||
#include "ui_dialogautonum.h"
|
||||
|
||||
#include "conductorautonumerotation.h"
|
||||
//#include "conductorautonumerotation.h"
|
||||
#include "qetmessagebox.h"
|
||||
#include "ui/selectautonumw.h"
|
||||
|
||||
@@ -34,7 +34,7 @@ DialogAutoNum::DialogAutoNum(Diagram *dg, QWidget *parent) :
|
||||
{
|
||||
ui -> setupUi(this);
|
||||
|
||||
ui -> configuration_layout -> addWidget (new SelectAutonumW(dg_ -> project() -> diagrams(), dg, ui -> configuration_tab));
|
||||
ui -> configuration_layout -> addWidget (new SelectAutonumW());
|
||||
|
||||
dgselect_ = new diagramselection( dg_ -> project(), ui -> annotation_tab);
|
||||
ui -> verticalLayout_Selection -> addWidget(dgselect_);
|
||||
@@ -74,8 +74,8 @@ void DialogAutoNum::on_pushButton_delete_clicked() {
|
||||
// if yes remove all
|
||||
if( answer == QMessageBox::Yes) {
|
||||
for(int i=0; i<listDiag.count(); i++){
|
||||
ConductorAutoNumerotation can(listDiag.at(i));
|
||||
can.removeNumOfDiagram();
|
||||
/*ConductorAutoNumerotation can(listDiag.at(i));
|
||||
can.removeNumOfDiagram();*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -107,8 +107,8 @@ void DialogAutoNum::on_pushButton_annotation_clicked(){
|
||||
// if yes numerate all
|
||||
if( answer == QMessageBox::Yes) {
|
||||
foreach (Diagram *d, listDiag) {
|
||||
ConductorAutoNumerotation can(d);
|
||||
can.numerateDiagram();
|
||||
/*ConductorAutoNumerotation can(d);
|
||||
can.numerateDiagram();*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user