mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user