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:
blacksun
2014-07-31 10:02:33 +00:00
parent d1730f39bd
commit 6fce7010f8
23 changed files with 643 additions and 278 deletions

View File

@@ -1,3 +1,5 @@
/*
Copyright 2006-2014 The QElectroTech Team
This file is part of QElectroTech.
@@ -27,6 +29,8 @@ class ConductorPropertiesWidget;
class DiagramContextWidget;
class ReportPropertieWidget;
class XRefPropertiesWidget;
class SelectAutonumW;
class QComboBox;
/**
This class, derived from ConfigPage, aims at providing the basic skeleton
@@ -148,4 +152,37 @@ class ProjectNewDiagramConfigPage : public ProjectConfigPage {
XRefPropertiesWidget *xref_;
};
class ProjectAutoNumConfigPage : public ProjectConfigPage {
Q_OBJECT
//Methods
public:
ProjectAutoNumConfigPage (QETProject *project, QWidget *parent = 0);
virtual QString title() const;
virtual QIcon icon() const;
virtual void applyProjectConf();
protected:
virtual void initWidgets();
virtual void initLayout();
virtual void readValuesFromProject();
virtual void adjustReadOnly();
private:
void buildConnections();
private slots:
void updateContext(QString);
void saveContext();
//Attributes
private:
QLabel *m_label;
QLineEdit *m_name_le;
QComboBox *m_context_cb;
SelectAutonumW *m_saw;
};
#endif