60 AppSettingsManager* settings,
61 QStatusBar* statusBar,
62 QObject* parent =
nullptr);
138 friend struct FeatureInfoControllerTestAccess;
139 struct InfoSelection {
141 QVector<qint64> featureIds;
142 int currentIndex = 0;
148 QVector<FeatureListEntry> cachedEntries;
152 std::function<bool()> referenceIsCurrent;
157 static QVector<QString> selectionLayerIds(
const InfoSelection& selection);
160 struct PreparedFeature {
162 std::function<bool()> readGuard;
168 bool showFeature(
const QString& layerId,
172 const QVector<qint64>& selectedFeatureIds,
173 QVector<FeatureListEntry>* ioEntries,
175 bool publishSelection =
true,
176 const QString& noticeText = QString());
178 bool prepareFeature(
const QString& layerId,
182 QVector<FeatureListEntry>* ioEntries,
183 PreparedFeature* out,
186 bool commitFeature(
const PreparedFeature& prepared,
187 const QVector<qint64>& selectedFeatureIds,
189 bool publishSelection);
190 bool showVectorTileFeature(
const QString& layerId,
191 GDK::glsMapLayer* mapLayer,
192 const GDK::glsHitTestResult& result,
194 bool showSelection(InfoSelection selection, QString* outError);
196 bool showDragSelection(
const QRectF& deviceRect, QString* outError);
199 bool presentDragEntries(QVector<FeatureListEntry> entries,
200 const QString& queryDiagnostic,
203 bool prepareDragEntries(QVector<FeatureListEntry> entries,
204 const QString& queryDiagnostic,
205 InfoSelection* selection,
206 PreparedFeature* prepared,
209 bool publishDragEntries(InfoSelection selection,
210 const PreparedFeature& prepared,
211 const QString& queryDiagnostic,
213 QVector<qint64> queryHitFeatureIds(
const QString& layerId,
214 const QPointF& devicePos, qint64 hitId,
216 QVector<FeatureListEntry> queryFeaturesInRect(
const QRectF& deviceRect,
219 bool showCurrentSelection(QString* outError);
220 bool clearLayerSelection(
const QString& layerId, QString* outError);
221 void refreshMapSelection()
const;
222 bool clearCurrentSelection(
const QString& statusMessage = QString());
223 void retryPendingMapClick();
224 void cancelPendingMapClick();
226 GdkQtSession* m_session =
nullptr;
227 GdkMapWidget* m_mapWidget =
nullptr;
228 FeaturePropertyPanel* m_panel =
nullptr;
229 QDockWidget* m_dock =
nullptr;
230 SelectionProvider* m_selectionProvider =
nullptr;
231 AppSettingsManager* m_settings =
nullptr;
232 QStatusBar* m_statusBar =
nullptr;
233 InfoSelection m_selection;
234 std::function<bool()> m_currentReadGuard;
235 std::function<bool()> m_identifyReadGuard;
236 std::optional<QPointF> m_pendingMapClick;
237 quint64 m_pendingMapClickId = 0;
238 quint64 m_pendingMapViewGeneration = 0;
239 bool m_pendingMapClickIsRetry =
false;
240 bool m_pendingTransientInterest =
false;
241 std::function<bool(
const QString&)> m_canEditAttributes;
242 std::function<bool(
const QString&)> m_hasOpenEditSession;
245 std::function<void(QVector<FeatureListEntry>&)> m_testDragEntriesHook;
FeatureInfoController(GdkQtSession *session, GdkMapWidget *mapWidget, FeaturePropertyPanel *panel, QDockWidget *dock, SelectionProvider *selectionProvider, AppSettingsManager *settings, QStatusBar *statusBar, QObject *parent=nullptr)
정보 조회 컨트롤러를 만들고 패널과 지도 위젯의 시그널에 연결합니다.