mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@177 bfdf4180-ca20-0410-9c96-a3a8aa849046
51 lines
1.2 KiB
C++
51 lines
1.2 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);
|
|
ConductorPropertiesWidget(const ConductorProperties &, QWidget * = 0);
|
|
virtual ~ConductorPropertiesWidget();
|
|
|
|
private:
|
|
ConductorPropertiesWidget(const ConductorPropertiesWidget &);
|
|
|
|
// methodes
|
|
public:
|
|
void setConductorProperties(const ConductorProperties &);
|
|
ConductorProperties conductorProperties() const;
|
|
|
|
private:
|
|
void setConductorType(ConductorProperties::ConductorType);
|
|
|
|
public slots:
|
|
void updatePreview();
|
|
void updateConfig();
|
|
void updateDisplay();
|
|
|
|
// attributs prives
|
|
private:
|
|
QButtonGroup *radio_buttons;
|
|
QRadioButton *simple;
|
|
QRadioButton *multiline;
|
|
QLineEdit *text_field;
|
|
QRadioButton *singleline;
|
|
QCheckBox *phase_checkbox;
|
|
QSlider *phase_slider;
|
|
QSpinBox *phase_spinbox;
|
|
QCheckBox *ground_checkbox;
|
|
QCheckBox *neutral_checkbox;
|
|
QLabel *preview;
|
|
|
|
ConductorProperties properties_;
|
|
|
|
// methodes privees
|
|
void buildInterface();
|
|
void buildConnections();
|
|
void destroyConnections();
|
|
};
|
|
#endif
|