diff -r 969e411c72aa -r c5193713055f tools/drawMapTest/mainwindow.cpp --- a/tools/drawMapTest/mainwindow.cpp Sun Nov 28 17:23:51 2010 +0300 +++ b/tools/drawMapTest/mainwindow.cpp Sun Nov 28 19:03:28 2010 +0300 @@ -8,10 +8,11 @@ { ui->setupUi(this); - DrawMapScene * scene = new DrawMapScene(this); + scene = new DrawMapScene(this); ui->graphicsView->setScene(scene); connect(ui->pbUndo, SIGNAL(clicked()), scene, SLOT(undo())); + connect(scene, SIGNAL(pathChanged()), this, SLOT(scene_pathChanged())); } MainWindow::~MainWindow() @@ -38,3 +39,8 @@ if(ui->graphicsView) ui->graphicsView->fitInView(ui->graphicsView->scene()->sceneRect(), Qt::KeepAspectRatio); } + +void MainWindow::scene_pathChanged() +{ + ui->plainTextEdit->setPlainText(scene->encode().toBase64()); +}