mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-27 21:39:57 +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:
@@ -19,8 +19,10 @@
|
||||
#define SELECTAUTONUMW_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "diagram.h"
|
||||
#include "ui/numparteditorw.h"
|
||||
#include "numerotationcontext.h"
|
||||
|
||||
class NumPartEditorW;
|
||||
class QAbstractButton;
|
||||
|
||||
namespace Ui {
|
||||
class SelectAutonumW;
|
||||
@@ -32,27 +34,28 @@ class SelectAutonumW : public QWidget
|
||||
|
||||
//METHODS
|
||||
public:
|
||||
explicit SelectAutonumW(const QList <Diagram *> &, Diagram * = 0, QWidget *parent = 0);
|
||||
~SelectAutonumW();
|
||||
|
||||
private:
|
||||
void initDiagramChooser();
|
||||
void setCurrentContext ();
|
||||
NumerotationContext toNumContext() const;
|
||||
explicit SelectAutonumW(QWidget *parent = 0);
|
||||
explicit SelectAutonumW(const NumerotationContext &context, QWidget *parent = 0);
|
||||
~SelectAutonumW();
|
||||
|
||||
void setContext (const NumerotationContext &context);
|
||||
NumerotationContext toNumContext() const;
|
||||
|
||||
signals:
|
||||
void applyPressed();
|
||||
|
||||
//SLOT
|
||||
private slots:
|
||||
void on_add_button_clicked();
|
||||
void on_remove_button_clicked();
|
||||
void on_diagram_chooser_activated();
|
||||
void on_buttonBox_clicked(QAbstractButton *);
|
||||
void applyEnable (bool = true);
|
||||
void on_add_button_clicked();
|
||||
void on_remove_button_clicked();
|
||||
void on_buttonBox_clicked(QAbstractButton *);
|
||||
void applyEnable (bool = true);
|
||||
|
||||
//ATTRIBUTS
|
||||
private:
|
||||
Ui::SelectAutonumW *ui;
|
||||
const QList <Diagram *> diagram_list;
|
||||
QList <NumPartEditorW *> num_part_list_;
|
||||
Ui::SelectAutonumW *ui;
|
||||
QList <NumPartEditorW *> num_part_list_;
|
||||
NumerotationContext m_context;
|
||||
};
|
||||
|
||||
#endif // SELECTAUTONUMW_H
|
||||
|
||||
Reference in New Issue
Block a user