dialogroadobject.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef DIALOGROADOBJECT_H
  2. #define DIALOGROADOBJECT_H
  3. #include <QDialog>
  4. #include <QLineEdit>
  5. #include <QLabel>
  6. #include <QComboBox>
  7. #include <OpenDrive/OpenDrive.h>
  8. namespace Ui {
  9. class DialogRoadObject;
  10. }
  11. class DialogRoadObject : public QDialog
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit DialogRoadObject(Road * pRoad,QWidget *parent = nullptr);
  16. ~DialogRoadObject();
  17. private slots:
  18. void on_pushButton_add_clicked();
  19. void on_comboBox_Object_currentIndexChanged(int index);
  20. void on_pushButton_delete_clicked();
  21. void on_pushButton_change_clicked();
  22. private:
  23. Ui::DialogRoadObject *ui;
  24. private:
  25. void CreateView();
  26. private:
  27. QLineEdit * mpLEt;
  28. QLineEdit * mpLEzOffset;
  29. QComboBox * mpCBtype;
  30. QLineEdit * mpLEvalidLength;
  31. QComboBox * mpCBorientation;
  32. QLineEdit * mpLEsubtype;
  33. QComboBox * mpCBdynamic;
  34. QLineEdit * mpLEhdg;
  35. QLineEdit * mpLEname;
  36. QLineEdit * mpLEpitch;
  37. QLineEdit * mpLEid;
  38. QLineEdit * mpLEroll;
  39. QLineEdit * mpLEheight;
  40. QLineEdit * mpLEs;
  41. QLineEdit * mpLElength;
  42. QLineEdit * mpLEwidth;
  43. QLineEdit * mpLEradius;
  44. private:
  45. QLineEdit * CreateLE(int pos_x,int pos_y,int nLabelWidth,int nLEWidth,int nHeight,std::string strname);
  46. QComboBox * CreateCB(int pos_x,int pos_y,int nLabelWidth,int nLEWidth,int nHeight,std::string strname);
  47. bool CheckLE(QLineEdit * pLE,QString stritemname,bool bWarning = true);
  48. private:
  49. Road * mpRoad;
  50. };
  51. #endif // DIALOGROADOBJECT_H