WSF
src
wizard
lib
source
gui
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
19
class
QMimeData;
20
21
namespace
wizard
22
{
23
class
PasteContext
;
24
25
class
CreateTypeDialog
:
public
QDialog
26
{
27
Q_OBJECT
28
public
:
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);
34
private
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
42
private
:
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
WsfPM_ObjectMap.hpp
WsfPM_ObjectMap
Definition
WsfPM_ObjectMap.hpp:32
wizard::CreateTypeDialog::PasteHandler
static void PasteHandler(const QMimeData *aMime, const PasteContext &aContext, bool aExecute)
Definition
CreateTypeDialog.cpp:127
wizard::CreateTypeDialog::SelectFile
void SelectFile(const std::string &aPath)
Definition
CreateTypeDialog.cpp:282
wizard::CreateTypeDialog::CreateTypeDialog
CreateTypeDialog(WsfPM_ObjectMap aTypeMap, const std::string &aTypeName, QWidget *aParentPtr)
Definition
CreateTypeDialog.cpp:29
wizard::CreateTypeDialog::~CreateTypeDialog
~CreateTypeDialog() override=default
wizard::PasteContext
Definition
PasteContext.hpp:31
wizard
Definition
Runner.hpp:22
Copyrights Multiple, All Rights Reserved