|
@@ -7,6 +7,8 @@ DialogRoadObject_repeat::DialogRoadObject_repeat(Object * pObject,QWidget *paren
|
|
|
{
|
|
|
ui->setupUi(this);
|
|
|
|
|
|
+ CreateView();
|
|
|
+
|
|
|
mpObject = pObject;
|
|
|
}
|
|
|
|
|
@@ -19,3 +21,20 @@ void DialogRoadObject_repeat::UpdateList()
|
|
|
{
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+void DialogRoadObject_repeat::CreateView()
|
|
|
+{
|
|
|
+ int startpos_x = 30;
|
|
|
+ int startpos_y = 150;
|
|
|
+ int nSpace = 300;
|
|
|
+ int nLabelWidth = 100;
|
|
|
+ int nLEWidth = 150;
|
|
|
+ int nHeight = 30;
|
|
|
+ int nVSpace = 50;
|
|
|
+ int nVIndex = 0;
|
|
|
+
|
|
|
+ mpLEs = ViewCreate::CreateLE(startpos_x+0*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"s",this);
|
|
|
+ mpLElength = ViewCreate::CreateLE(startpos_x+1*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"length",this);
|
|
|
+ mpLEdistance = ViewCreate::CreateLE(startpos_x+2*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"distance",this);
|
|
|
+ nVIndex++;
|
|
|
+}
|