|
@@ -0,0 +1,56 @@
|
|
|
+#include "dialogroadobject_marking.h"
|
|
|
+#include "ui_dialogroadobject_marking.h"
|
|
|
+
|
|
|
+DialogRoadObject_Marking::DialogRoadObject_Marking(QWidget *parent) :
|
|
|
+ QDialog(parent),
|
|
|
+ ui(new Ui::DialogRoadObject_Marking)
|
|
|
+{
|
|
|
+ ui->setupUi(this);
|
|
|
+
|
|
|
+ CreateView();
|
|
|
+}
|
|
|
+
|
|
|
+DialogRoadObject_Marking::~DialogRoadObject_Marking()
|
|
|
+{
|
|
|
+ delete ui;
|
|
|
+}
|
|
|
+
|
|
|
+void DialogRoadObject_Marking::CreateView()
|
|
|
+{
|
|
|
+ int startpos_x = 30;
|
|
|
+ int startpos_y = 30;
|
|
|
+ int nSpace = 260;
|
|
|
+ int nLabelWidth = 80;
|
|
|
+ int nLEWidth = 150;
|
|
|
+ int nHeight = 35;
|
|
|
+ int nVSpace = 60;
|
|
|
+ int nVIndex = 0;
|
|
|
+ int nHIndex = 0;
|
|
|
+
|
|
|
+ mpCBside = ViewCreate::CreateCB(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"side",this);
|
|
|
+ nHIndex++;
|
|
|
+ mpCBweight = ViewCreate::CreateCB(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"weight",this);
|
|
|
+ nHIndex++;
|
|
|
+ mpLEwidth = ViewCreate::CreateLE(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"width",this);
|
|
|
+
|
|
|
+ nVIndex++;
|
|
|
+ nHIndex = 0;
|
|
|
+
|
|
|
+ mpCBcolor = ViewCreate::CreateCB(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"color",this);
|
|
|
+ nHIndex++;
|
|
|
+ mpLEzOffset = ViewCreate::CreateLE(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"zOffset",this);
|
|
|
+ nHIndex++;
|
|
|
+ mpLEspaceLength = ViewCreate::CreateLE(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"spaceLength",this);
|
|
|
+
|
|
|
+ nVIndex++;
|
|
|
+ nHIndex = 0;
|
|
|
+
|
|
|
+ mpLElineLength = ViewCreate::CreateLE(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"lineLength",this);
|
|
|
+ nHIndex++;
|
|
|
+ mpLEstartOffset = ViewCreate::CreateLE(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"startOffset",this);
|
|
|
+ nHIndex++;
|
|
|
+ mpLEstopOffset = ViewCreate::CreateLE(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"stopOffset",this);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|