90 lines
1.7 KiB
C++
Executable File
90 lines
1.7 KiB
C++
Executable File
/**
|
|
**
|
|
** @RDE_HEADER@
|
|
** Dialog to define some meta data of a plan.
|
|
** $Id$
|
|
** $HeadURL$
|
|
** $Author$
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Hardware-Environment: Intel-PC
|
|
** Software-Environment: Windows 7, Qt 5.4. ArcGIS 100
|
|
**
|
|
** Language ........: C++ 11
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Author ...........: Jörg Turla, SPD G, Tel. 3132
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Notes .........:
|
|
**
|
|
** 24.02.2017, JT : First edition for use with Qt5
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "plan_editor_internal.h"
|
|
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
|
namespace SituationMap
|
|
{
|
|
|
|
class Map;
|
|
|
|
namespace RB
|
|
{
|
|
class Rubberband;
|
|
}
|
|
}
|
|
|
|
|
|
namespace PlanEditor
|
|
{
|
|
class PlanEditor;
|
|
|
|
class MetaDataDialog : public LtsWidgets::LtsDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit MetaDataDialog(PlanEditor *planEditor
|
|
, SituationMap::GeometryModel *geometryModel
|
|
, SituationMap::Map *map
|
|
, QWidget *parent
|
|
);
|
|
|
|
virtual ~MetaDataDialog();
|
|
|
|
protected:
|
|
|
|
bool apply() override;
|
|
|
|
private:
|
|
void retranslate() override;
|
|
|
|
class Internal;
|
|
|
|
Internal *m_internal;
|
|
|
|
private slots:
|
|
|
|
void onGetMinScaleFromMap(bool);
|
|
void onGetMaxScaleFromMap(bool);
|
|
|
|
void onScaleTo(bool);
|
|
|
|
}; // SelectionWorker
|
|
|
|
|
|
} // namespace MetaDataDialog
|