WSF
CreateTypeDialog.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 CREATETYPEDIALOG_HPP
12#define CREATETYPEDIALOG_HPP
13#include <QDialog>
14
15#include "UtMemory.hpp"
16#include "WsfPM_ObjectMap.hpp"
17#include "ui_CreateType.h"
18
19class QMimeData;
20
21namespace wizard
22{
23class PasteContext;
24
25class CreateTypeDialog : public QDialog
26{
27 Q_OBJECT
28public:
29 CreateTypeDialog(WsfPM_ObjectMap aTypeMap, const std::string& aTypeName, QWidget* aParentPtr);
30 ~CreateTypeDialog() override = default;
31
32 static void PasteHandler(const QMimeData* aMime, const PasteContext& aContext, bool aExecute);
33 void SelectFile(const std::string& aPath);
34private slots:
35 void accept() override;
36 void BrowseDirectory();
37 void NameEdited(const QString& aName);
38 void ToggledNewFileGroup();
39 void ToggledExistingFileGroup();
40 void BaseTypeSelected(const QString& aTypeName);
41
42private:
43 UtPath FilePath();
44
45 void UpdateValidity();
46
47 WsfPM_ObjectMap mTypeMap;
48 Ui::CreateType mUi;
49 bool mNameValid;
50 bool mApplyToTextImmediately;
51};
52} // namespace wizard
53
54#endif
Definition WsfPM_ObjectMap.hpp:32
static void PasteHandler(const QMimeData *aMime, const PasteContext &aContext, bool aExecute)
Definition CreateTypeDialog.cpp:127
void SelectFile(const std::string &aPath)
Definition CreateTypeDialog.cpp:282
CreateTypeDialog(WsfPM_ObjectMap aTypeMap, const std::string &aTypeName, QWidget *aParentPtr)
Definition CreateTypeDialog.cpp:29
~CreateTypeDialog() override=default
Definition PasteContext.hpp:31
Definition Runner.hpp:22
Copyrights Multiple, All Rights Reserved