mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2613 bfdf4180-ca20-0410-9c96-a3a8aa849046
43 lines
933 B
C++
43 lines
933 B
C++
#ifndef CONDUCTORAUTONUMEROTATIONWIDGET_H
|
|
#define CONDUCTORAUTONUMEROTATIONWIDGET_H
|
|
|
|
#include <QtGui>
|
|
#include <QList>
|
|
#include <QSet>
|
|
#include <QMultiMap>
|
|
#include <QString>
|
|
#include "qetgraphicsitem/conductor.h"
|
|
#include "diagram.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();
|
|
|
|
signals:
|
|
void textIsSelected (QString);
|
|
|
|
private:
|
|
//methods
|
|
void buildInterface();
|
|
QVBoxLayout* buildRadioList();
|
|
|
|
//attributes
|
|
Conductor *conductor_;
|
|
QSet<Conductor *> c_list; //liste des conducteurs au même potentiel
|
|
Diagram *diagram_;
|
|
QList <QRadioButton *> *radio_List;
|
|
QLineEdit *text_field;
|
|
QString text_;
|
|
QSignalMapper *sm_;
|
|
|
|
};
|
|
|
|
#endif // CONDUCTORAUTONUMEROTATIONWIDGET_H
|