1 #pragma once
2 
3 #ifndef LOCATORPOPUP_H
4 #define LOCATORPOPUP_H
5 
6 #include "tgeometry.h"
7 #include <QDialog>
8 
9 class SceneViewer;
10 
11 //=============================================================================
12 // LoactorPopup
13 //-----------------------------------------------------------------------------
14 
15 class LocatorPopup : public QDialog {
16   Q_OBJECT
17   SceneViewer* m_viewer;
18   bool m_initialZoom;
19 
20 public:
21   LocatorPopup(QWidget* parent = 0);
viewer()22   SceneViewer* viewer() { return m_viewer; }
23 
24   void onChangeViewAff(const TPointD& curPos);
25 
26 protected:
27   void showEvent(QShowEvent*);
28   void hideEvent(QHideEvent*);
29 
30 protected slots:
31   void changeWindowTitle();
32 };
33 
34 #endif