mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-25 11:29:58 +01:00
Implementation d'un menu pour editer un conducteur deja pose
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@151 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
49
conducerproperties.h
Normal file
49
conducerproperties.h
Normal file
@@ -0,0 +1,49 @@
|
||||
#ifndef CONDUCER_PROPERTIES_WIDGET_H
|
||||
#define CONDUCER_PROPERTIES_WIDGET_H
|
||||
#include "conducer.h"
|
||||
#include <QtGui>
|
||||
class ConducerPropertiesWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
// constructeurs, destructeur
|
||||
public:
|
||||
ConducerPropertiesWidget(QWidget * = 0);
|
||||
virtual ~ConducerPropertiesWidget();
|
||||
|
||||
private:
|
||||
ConducerPropertiesWidget(const ConducerPropertiesWidget &);
|
||||
|
||||
// methodes
|
||||
public:
|
||||
bool isSingleLine() const;
|
||||
void setSingleLineProperties(const SingleLineProperties &);
|
||||
SingleLineProperties singleLineProperties() const;
|
||||
QString conducerText() const;
|
||||
void setConducerText(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 conducer_text;
|
||||
|
||||
// methodes privees
|
||||
void buildInterface();
|
||||
void buildConnections();
|
||||
void destroyConnections();
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user