|
@@ -20,6 +20,11 @@ extern std::string gstrmem_pic[CAMERA_NUM];
|
|
extern std::vector<iv::pos_def> gvectorpos;
|
|
extern std::vector<iv::pos_def> gvectorpos;
|
|
extern std::string gstryaml_path;
|
|
extern std::string gstryaml_path;
|
|
|
|
|
|
|
|
+extern std::string gstrbaidupath;
|
|
|
|
+extern std::string gstrpicshowpath;
|
|
|
|
+extern std::string gstrthreepicshowpath;
|
|
|
|
+extern std::string gstrfourpicshowpath;
|
|
|
|
+
|
|
class xodrobj
|
|
class xodrobj
|
|
{
|
|
{
|
|
public:
|
|
public:
|
|
@@ -191,8 +196,8 @@ MainWindow::MainWindow(QWidget *parent)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- mpbaiduapp = new pluginapp(this->winId(),"baidu","baidumapshow","/home/yuchuli/qt/modularization/src/plugin/build-baidumapshow-Debug");
|
|
|
|
- mppicshow = new pluginapp(this->winId(),"main","plugin_picshow","/home/yuchuli/qt/modularization/src/plugin/build-plugin_picshow-Debug");
|
|
|
|
|
|
+ mpbaiduapp = new pluginapp(this->winId(),"baidu","baidumapshow",gstrbaidupath.data());//,"/home/yuchuli/qt/modularization/src/plugin/build-baidumapshow-Debug");
|
|
|
|
+ mppicshow = new pluginapp(this->winId(),"main","plugin_picshow",gstrpicshowpath.data());
|
|
|
|
|
|
mppicshow->SetAttr("rawpicmsgname",gstrmem_pic[0].data(),gstrmem_pic[0].size());
|
|
mppicshow->SetAttr("rawpicmsgname",gstrmem_pic[0].data(),gstrmem_pic[0].size());
|
|
|
|
|
|
@@ -265,11 +270,11 @@ void MainWindow::resizeEvent(QResizeEvent *event)
|
|
|
|
|
|
// mmyview->setGeometry(10+sizemain.width()/2+10,10,sizemain.width()/2-30,sizemain.height()*3/5);
|
|
// mmyview->setGeometry(10+sizemain.width()/2+10,10,sizemain.width()/2-30,sizemain.height()*3/5);
|
|
|
|
|
|
- mppicshow->SetGeometry(10+sizemain.width()/2+10,10,sizemain.width()/2-30,sizemain.height()*3/5);
|
|
|
|
|
|
+ mppicshow->SetGeometry(10+sizemain.width()/2+10,30,sizemain.width()/2-30,sizemain.height()*3/5);
|
|
|
|
|
|
- ui->lineEdit_lat->setGeometry(sizemain.width()-100,10,90,30);
|
|
|
|
- ui->lineEdit_lon->setGeometry(sizemain.width()-100,50,90,30);
|
|
|
|
- ui->pushButton_test->setGeometry(sizemain.width()-100,90,90,30);
|
|
|
|
|
|
+// ui->lineEdit_lat->setGeometry(sizemain.width()-100,10,90,30);
|
|
|
|
+// ui->lineEdit_lon->setGeometry(sizemain.width()-100,50,90,30);
|
|
|
|
+// ui->pushButton_test->setGeometry(sizemain.width()-100,90,90,30);
|
|
|
|
|
|
// mpWheel->setGeometry(sizemain.width()/2 + 20,10,200,200);
|
|
// mpWheel->setGeometry(sizemain.width()/2 + 20,10,200,200);
|
|
|
|
|
|
@@ -345,11 +350,11 @@ void MainWindow::resizeEvent(QResizeEvent *event)
|
|
|
|
|
|
void MainWindow::on_pushButton_test_clicked()
|
|
void MainWindow::on_pushButton_test_clicked()
|
|
{
|
|
{
|
|
- double flat = ui->lineEdit_lat->text().toDouble();
|
|
|
|
- double flon = ui->lineEdit_lon->text().toDouble();
|
|
|
|
|
|
+// double flat = ui->lineEdit_lat->text().toDouble();
|
|
|
|
+// double flon = ui->lineEdit_lon->text().toDouble();
|
|
|
|
|
|
- char strscript[256];
|
|
|
|
- snprintf(strscript,255,"theLocation(%11.7f,%11.7f);",flon,flat);
|
|
|
|
|
|
+// char strscript[256];
|
|
|
|
+// snprintf(strscript,255,"theLocation(%11.7f,%11.7f);",flon,flat);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -786,7 +791,7 @@ void MainWindow::on_radioButton_picright_clicked()
|
|
|
|
|
|
void MainWindow::on_pushButton_AllPic_clicked()
|
|
void MainWindow::on_pushButton_AllPic_clicked()
|
|
{
|
|
{
|
|
- pluginapp * pa = new pluginapp(this->winId(),"main","plugin_fourpicshow","/home/yuchuli/qt/modularization/src/plugin/build-plugin_fourpicshow-Debug");
|
|
|
|
|
|
+ pluginapp * pa = new pluginapp(0,"main","plugin_fourpicshow",gstrfourpicshowpath.data());
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -827,7 +832,7 @@ void MainWindow::saveavi(int index)
|
|
|
|
|
|
void MainWindow::on_pushButton_big_clicked()
|
|
void MainWindow::on_pushButton_big_clicked()
|
|
{
|
|
{
|
|
- pluginapp * pa = new pluginapp(this->winId(),"main","plugin_threepicshow","/home/yuchuli/qt/modularization/src/plugin/build-plugin_threepicshow-Debug");
|
|
|
|
|
|
+ pluginapp * pa = new pluginapp(0,"main","plugin_threepicshow",gstrthreepicshowpath.data());
|
|
|
|
|
|
return;
|
|
return;
|
|
|
|
|