mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@153 bfdf4180-ca20-0410-9c96-a3a8aa849046
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
#ifndef CONDUCTOR_PROPERTIES_WIDGET_H
|
|
#define CONDUCTOR_PROPERTIES_WIDGET_H
|
|
#include "conductor.h"
|
|
#include <QtGui>
|
|
class ConductorPropertiesWidget : public QWidget {
|
|
Q_OBJECT
|
|
// constructeurs, destructeur
|
|
public:
|
|
ConductorPropertiesWidget(QWidget * = 0);
|
|
virtual ~ConductorPropertiesWidget();
|
|
|
|
private:
|
|
ConductorPropertiesWidget(const ConductorPropertiesWidget &);
|
|
|
|
// methodes
|
|
public:
|
|
bool isSingleLine() const;
|
|
void setSingleLineProperties(const SingleLineProperties &);
|
|
SingleLineProperties singleLineProperties() const;
|
|
QString conductorText() const;
|
|
void setConductorText(const QString &);
|
|
|
|
public slots:
|
|
void updatePreview();
|
|
void updateSingleLineConfig();
|
|
void updateSingleLineDisplay();
|
|
void setSingleLine(bool);
|
|
|
|
// attributs prives
|
|
private:
|
|
QRadioButton *multiline;
|
|
QLineEdit *text_field;
|
|
QRadioButton *singleline;
|
|
QCheckBox *phase_checkbox;
|
|
QSlider *phase_slider;
|
|
QSpinBox *phase_spinbox;
|
|
QCheckBox *ground_checkbox;
|
|
QCheckBox *neutral_checkbox;
|
|
QLabel *preview;
|
|
|
|
SingleLineProperties slp;
|
|
QString conductor_text;
|
|
|
|
// methodes privees
|
|
void buildInterface();
|
|
void buildConnections();
|
|
void destroyConnections();
|
|
};
|
|
#endif
|