WSF
FindReferencesResultDialog.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11#ifndef FINDREFERENCESRESULTDIALOG_HPP
12#define FINDREFERENCESRESULTDIALOG_HPP
13
14#include <vector>
15
16#include <QDialog>
17
18#include "../wizard_core/ui_FindReferencesResultDialog.h"
20#include "UtMemory.hpp"
21#include "UtTextDocument.hpp"
22#include "ViExport.hpp"
23
24namespace wizard
25{
26class Project;
27
29{
30public:
31 explicit FindReferencesResultDialog(QWidget* aParentPtr);
36 ~FindReferencesResultDialog() override = default;
37 void Show(Project* aProjectPtr, const std::vector<UtTextDocumentRange>& aLocationList, QString aLabel = QString());
38
39 static void GoToLocationList(wizard::Project* aProjectPtr,
40 const std::vector<UtTextDocumentRange>& aLocationList,
41 QString aLabel = QString());
42
43protected:
44 void ItemActivated(const QModelIndex& aIndex);
45
46private:
47 void JumpTo();
48 Ui::FindReferencesResultDialog mUi;
49
50 Project* mProjectPtr;
51 std::unique_ptr<TextLocationItemModel> mModelPtr;
52};
53} // namespace wizard
54#endif
#define VI_EXPORT
Definition ViExport.hpp:38
FindReferencesResultDialog(FindReferencesResultDialog &&)=default
void Show(Project *aProjectPtr, const std::vector< UtTextDocumentRange > &aLocationList, QString aLabel=QString())
Definition FindReferencesResultDialog.cpp:29
static void GoToLocationList(wizard::Project *aProjectPtr, const std::vector< UtTextDocumentRange > &aLocationList, QString aLabel=QString())
Definition FindReferencesResultDialog.cpp:66
void ItemActivated(const QModelIndex &aIndex)
Definition FindReferencesResultDialog.cpp:61
FindReferencesResultDialog & operator=(const FindReferencesResultDialog &)=delete
~FindReferencesResultDialog() override=default
FindReferencesResultDialog(QWidget *aParentPtr)
Definition FindReferencesResultDialog.cpp:20
FindReferencesResultDialog(const FindReferencesResultDialog &)=delete
FindReferencesResultDialog & operator=(FindReferencesResultDialog &&)=default
A WSF 'project'. Manages WSF sources files in a WSF project.
Definition Project.hpp:66
Definition Runner.hpp:22
Copyrights Multiple, All Rights Reserved