mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
add class for auto numerotation (for the time, only same potential)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2087 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
38
sources/conductorautonumerotationwidget.h
Normal file
38
sources/conductorautonumerotationwidget.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef CONDUCTORAUTONUMEROTATIONWIDGET_H
|
||||
#define CONDUCTORAUTONUMEROTATIONWIDGET_H
|
||||
|
||||
#include <QtGui>
|
||||
#include <QList>
|
||||
#include <QSet>
|
||||
#include <QMultiMap>
|
||||
#include <QString>
|
||||
#include "conductor.h"
|
||||
|
||||
class ConductorAutoNumerotationWidget : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ConductorAutoNumerotationWidget(Conductor *, QSet <Conductor *>, QWidget *parent = 0);
|
||||
QMultiMap <int, QString> conductorsTextToMap (QSet <Conductor *>);
|
||||
|
||||
public slots:
|
||||
void setText (QString);
|
||||
void accept();
|
||||
|
||||
private:
|
||||
//methods
|
||||
void buildInterface();
|
||||
QVBoxLayout* buildRadioList();
|
||||
void applyText();
|
||||
|
||||
//attributes
|
||||
QSet<Conductor *> c_list; //liste des conducteurs au même potentiel
|
||||
Conductor *conductor_;
|
||||
QList <QRadioButton *> *radio_List;
|
||||
QLineEdit *text_field;
|
||||
QString text_;
|
||||
QSignalMapper *sm_;
|
||||
|
||||
};
|
||||
|
||||
#endif // CONDUCTORAUTONUMEROTATIONWIDGET_H
|
||||
Reference in New Issue
Block a user