|
@@ -1,13 +1,31 @@
|
|
#include "dialogroadobject_marking.h"
|
|
#include "dialogroadobject_marking.h"
|
|
#include "ui_dialogroadobject_marking.h"
|
|
#include "ui_dialogroadobject_marking.h"
|
|
|
|
|
|
-DialogRoadObject_Marking::DialogRoadObject_Marking(QWidget *parent) :
|
|
|
|
|
|
+
|
|
|
|
+static std::string gstr_e_markingsideType[] ={"left","right","front","rear"};
|
|
|
|
+
|
|
|
|
+static const int gmarkingsideTypeCount = 4;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+DialogRoadObject_Marking::DialogRoadObject_Marking(Object * pObject,QWidget *parent) :
|
|
QDialog(parent),
|
|
QDialog(parent),
|
|
ui(new Ui::DialogRoadObject_Marking)
|
|
ui(new Ui::DialogRoadObject_Marking)
|
|
{
|
|
{
|
|
ui->setupUi(this);
|
|
ui->setupUi(this);
|
|
|
|
|
|
|
|
+ mpObject = pObject;
|
|
|
|
+
|
|
CreateView();
|
|
CreateView();
|
|
|
|
+
|
|
|
|
+ int i;
|
|
|
|
+ for(i=0;i<gmarkingsideTypeCount;i++)
|
|
|
|
+ {
|
|
|
|
+ mpCBside->addItem(gstr_e_markingsideType[i].data());
|
|
|
|
+ }
|
|
|
|
+ mpCBside->addItem("NO");
|
|
|
|
+ mpCBside->setCurrentIndex(gmarkingsideTypeCount);
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
DialogRoadObject_Marking::~DialogRoadObject_Marking()
|
|
DialogRoadObject_Marking::~DialogRoadObject_Marking()
|
|
@@ -27,6 +45,10 @@ void DialogRoadObject_Marking::CreateView()
|
|
int nVIndex = 0;
|
|
int nVIndex = 0;
|
|
int nHIndex = 0;
|
|
int nHIndex = 0;
|
|
|
|
|
|
|
|
+ mpCBMarking = ViewCreate::CreateCB(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"Marking",this);
|
|
|
|
+ nVIndex++;
|
|
|
|
+ nHIndex = 0;
|
|
|
|
+
|
|
mpCBside = ViewCreate::CreateCB(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"side",this);
|
|
mpCBside = ViewCreate::CreateCB(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"side",this);
|
|
nHIndex++;
|
|
nHIndex++;
|
|
mpCBweight = ViewCreate::CreateCB(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"weight",this);
|
|
mpCBweight = ViewCreate::CreateCB(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"weight",this);
|
|
@@ -52,5 +74,37 @@ void DialogRoadObject_Marking::CreateView()
|
|
mpLEstopOffset = ViewCreate::CreateLE(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"stopOffset",this);
|
|
mpLEstopOffset = ViewCreate::CreateLE(startpos_x+nHIndex*nSpace,startpos_y+nVIndex*nVSpace,nLabelWidth,nLEWidth,nHeight,"stopOffset",this);
|
|
|
|
|
|
|
|
|
|
|
|
+ nVIndex++;
|
|
|
|
+ int nPBSpace = 150;
|
|
|
|
+ int nPBWidth = 100;
|
|
|
|
+ mpPBAdd = ViewCreate::CreatePB(startpos_x+0*nPBSpace,startpos_y+nVIndex*nVSpace,nPBWidth,nHeight,"Add",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);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ connect(mpCBMarking,SIGNAL(currentIndexChanged(int)),this,SLOT(CurrentMarking(int)));
|
|
|
|
+ connect(mpPBAdd,SIGNAL(clicked(bool)),this,SLOT(onClickAdd()));
|
|
|
|
+ connect(mpPBDelete,SIGNAL(clicked(bool)),this,SLOT(onClickDelete()));
|
|
|
|
+ connect(mpPBChange,SIGNAL(clicked(bool)),this,SLOT(onClickChange()));
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void DialogRoadObject_Marking::CurrentMarking(int index)
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void DialogRoadObject_Marking::onClickAdd()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void DialogRoadObject_Marking::onClickDelete()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void DialogRoadObject_Marking::onClickChange()
|
|
|
|
+{
|
|
|
|
|
|
}
|
|
}
|