|
@@ -83,11 +83,18 @@ void DialogRoadObject_outline::CreateView()
|
|
mpPBDelete = ViewCreate::CreatePB(startpos_x+1*nPBSpace,startpos_y+nVIndex*nVSpace,nPBWidth,nHeight,"Delete",this);
|
|
mpPBDelete = ViewCreate::CreatePB(startpos_x+1*nPBSpace,startpos_y+nVIndex*nVSpace,nPBWidth,nHeight,"Delete",this);
|
|
mpPBChange = ViewCreate::CreatePB(startpos_x+2*nPBSpace,startpos_y+nVIndex*nVSpace,nPBWidth,nHeight,"Change",this);
|
|
mpPBChange = ViewCreate::CreatePB(startpos_x+2*nPBSpace,startpos_y+nVIndex*nVSpace,nPBWidth,nHeight,"Change",this);
|
|
|
|
|
|
|
|
+ nVIndex++;
|
|
|
|
+
|
|
|
|
+ mpPBcornerRoad = ViewCreate::CreatePB(startpos_x+0*nPBSpace,startpos_y+nVIndex*nVSpace,nPBWidth,nHeight,"cornerRoad",this);
|
|
|
|
+ mpPBcornerLocal = ViewCreate::CreatePB(startpos_x+1*nPBSpace,startpos_y+nVIndex*nVSpace,nPBWidth,nHeight,"cornerLocal",this);
|
|
|
|
+
|
|
|
|
|
|
connect(mpCBOutline,SIGNAL(currentIndexChanged(int)),this,SLOT(CurrentOutline(int)));
|
|
connect(mpCBOutline,SIGNAL(currentIndexChanged(int)),this,SLOT(CurrentOutline(int)));
|
|
connect(mpPBAdd,SIGNAL(clicked(bool)),this,SLOT(onClickAdd()));
|
|
connect(mpPBAdd,SIGNAL(clicked(bool)),this,SLOT(onClickAdd()));
|
|
connect(mpPBDelete,SIGNAL(clicked(bool)),this,SLOT(onClickDelete()));
|
|
connect(mpPBDelete,SIGNAL(clicked(bool)),this,SLOT(onClickDelete()));
|
|
connect(mpPBChange,SIGNAL(clicked(bool)),this,SLOT(onClickChange()));
|
|
connect(mpPBChange,SIGNAL(clicked(bool)),this,SLOT(onClickChange()));
|
|
|
|
+ connect(mpPBcornerRoad,SIGNAL(clicked(bool)),this,SLOT(onClickcornerRoad()));
|
|
|
|
+ connect(mpPBcornerLocal,SIGNAL(clicked(bool)),this,SLOT(onClickcornerLocal()));
|
|
}
|
|
}
|
|
|
|
|
|
void DialogRoadObject_outline::UpdateCB()
|
|
void DialogRoadObject_outline::UpdateCB()
|
|
@@ -102,6 +109,17 @@ void DialogRoadObject_outline::UpdateCB()
|
|
{
|
|
{
|
|
mpCBOutline->addItem(QString("Outline ")+ QString::number(i));
|
|
mpCBOutline->addItem(QString("Outline ")+ QString::number(i));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(nOutlineCount == 0)
|
|
|
|
+ {
|
|
|
|
+ mpPBcornerLocal->setEnabled(false);
|
|
|
|
+ mpPBcornerRoad->setEnabled(false);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ mpPBcornerLocal->setEnabled(true);
|
|
|
|
+ mpPBcornerRoad->setEnabled(true);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
void DialogRoadObject_outline::CurrentOutline(int index)
|
|
void DialogRoadObject_outline::CurrentOutline(int index)
|
|
@@ -340,3 +358,12 @@ void DialogRoadObject_outline::onClickChange()
|
|
QMessageBox::information(this,"Info","Change outline successfully.",QMessageBox::YesAll);
|
|
QMessageBox::information(this,"Info","Change outline successfully.",QMessageBox::YesAll);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void DialogRoadObject_outline::onClickcornerRoad()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void DialogRoadObject_outline::onClickcornerLocal()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+}
|