1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef DIALOGROADOBJECT_H
- #define DIALOGROADOBJECT_H
- #include <QDialog>
- #include <QLineEdit>
- #include <QLabel>
- #include <QComboBox>
- #include <OpenDrive/OpenDrive.h>
- namespace Ui {
- class DialogRoadObject;
- }
- class DialogRoadObject : public QDialog
- {
- Q_OBJECT
- public:
- explicit DialogRoadObject(Road * pRoad,QWidget *parent = nullptr);
- ~DialogRoadObject();
- private slots:
- void on_pushButton_add_clicked();
- void on_comboBox_Object_currentIndexChanged(int index);
- void on_pushButton_delete_clicked();
- void on_pushButton_change_clicked();
- private:
- Ui::DialogRoadObject *ui;
- private:
- void CreateView();
- private:
- QLineEdit * mpLEt;
- QLineEdit * mpLEzOffset;
- QComboBox * mpCBtype;
- QLineEdit * mpLEvalidLength;
- QComboBox * mpCBorientation;
- QLineEdit * mpLEsubtype;
- QComboBox * mpCBdynamic;
- QLineEdit * mpLEhdg;
- QLineEdit * mpLEname;
- QLineEdit * mpLEpitch;
- QLineEdit * mpLEid;
- QLineEdit * mpLEroll;
- QLineEdit * mpLEheight;
- QLineEdit * mpLEs;
- QLineEdit * mpLElength;
- QLineEdit * mpLEwidth;
- QLineEdit * mpLEradius;
- private:
- QLineEdit * CreateLE(int pos_x,int pos_y,int nLabelWidth,int nLEWidth,int nHeight,std::string strname);
- QComboBox * CreateCB(int pos_x,int pos_y,int nLabelWidth,int nLEWidth,int nHeight,std::string strname);
- bool CheckLE(QLineEdit * pLE,QString stritemname,bool bWarning = true);
- private:
- Road * mpRoad;
- };
- #endif // DIALOGROADOBJECT_H
|