QTfrontend/ui/widget/drawmapwidget.h
changeset 6935 472ed92c4173
parent 6934 14a230552c2e
child 6952 7f70f37bbf08
--- a/QTfrontend/ui/widget/drawmapwidget.h	Fri Apr 27 00:43:48 2012 +0400
+++ b/QTfrontend/ui/widget/drawmapwidget.h	Fri Apr 27 22:15:08 2012 +0400
@@ -23,6 +23,7 @@
 #include <QHBoxLayout>
 #include <QPushButton>
 #include <QGraphicsView>
+#include <QLabel>
 
 #include "qaspectratiolayout.h"
 #include "drawmapscene.h"
@@ -53,11 +54,17 @@
     {
         public:
             DrawMapView *graphicsView;
+            QLabel * lblPoints;
 
             void setupUi(QWidget *drawMapWidget)
             {
-                QAspectRatioLayout * arLayout = new QAspectRatioLayout(drawMapWidget);
+                QVBoxLayout * vbox = new QVBoxLayout(drawMapWidget);
+                vbox->setMargin(0);
+                lblPoints = new QLabel("0", drawMapWidget);
+                vbox->addWidget(lblPoints);
+                QAspectRatioLayout * arLayout = new QAspectRatioLayout();
                 arLayout->setMargin(0);
+                vbox->addLayout(arLayout);
 
                 graphicsView = new DrawMapView(drawMapWidget);
                 arLayout->addWidget(graphicsView);
@@ -103,6 +110,9 @@
         Ui::DrawMapWidget *ui;
 
         DrawMapScene * m_scene;
+
+    private slots:
+        void pathChanged();
 };
 
 #endif // DRAWMAPWIDGET_H