Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
EditorOptionsWindow.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2018 DIVIDE-Studio
3
Copyright (c) 2009 Ionut Cava
4
5
This file is part of DIVIDE Framework.
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
of this software
9
and associated documentation files (the "Software"), to deal in the Software
10
without restriction,
11
including without limitation the rights to use, copy, modify, merge, publish,
12
distribute, sublicense,
13
and/or sell copies of the Software, and to permit persons to whom the
14
Software is furnished to do so,
15
subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included in
18
all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED,
22
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27
IN CONNECTION WITH THE SOFTWARE
28
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30
*/
31
32
#pragma once
33
#ifndef DVD_EDITOR_OPTIONS_WINDOW_H
34
#define DVD_EDITOR_OPTIONS_WINDOW_H
35
36
#include "
Core/Headers/PlatformContextComponent.h
"
37
#include <
ImGuiMisc/imguifilesystem/imguifilesystem.h
>
38
39
namespace
Divide
{
40
class
EditorOptionsWindow
final :
public
PlatformContextComponent
,
NonMovable
{
41
public
:
42
explicit
EditorOptionsWindow
(
PlatformContext
&
context
);
43
44
void
draw
(
bool
& open);
45
void
update
(
U64
deltaTimeUS);
46
47
private
:
48
ImGuiFs::Dialog
_fileOpenDialog
;
49
U16
_changeCount
= 0u;
50
bool
_openDialog
=
false
;
51
};
52
53
FWD_DECLARE_MANAGED_CLASS
(
EditorOptionsWindow
);
54
55
}
//namespace Divide
56
57
#endif
//DVD_EDITOR_OPTIONS_WINDOW_H
PlatformContextComponent.h
FWD_DECLARE_MANAGED_CLASS
#define FWD_DECLARE_MANAGED_CLASS(T)
Definition:
PlatformDefines.h:81
Divide::EditorOptionsWindow
Definition:
EditorOptionsWindow.h:40
Divide::EditorOptionsWindow::draw
void draw(bool &open)
Definition:
EditorOptionsWindow.cpp:25
Divide::EditorOptionsWindow::_fileOpenDialog
ImGuiFs::Dialog _fileOpenDialog
Definition:
EditorOptionsWindow.h:48
Divide::EditorOptionsWindow::update
void update(U64 deltaTimeUS)
Definition:
EditorOptionsWindow.cpp:21
Divide::EditorOptionsWindow::_changeCount
U16 _changeCount
Definition:
EditorOptionsWindow.h:49
Divide::EditorOptionsWindow::_openDialog
bool _openDialog
Definition:
EditorOptionsWindow.h:50
Divide::PlatformContextComponent
Definition:
PlatformContextComponent.h:39
Divide::PlatformContextComponent::context
PlatformContext & context() noexcept
Definition:
PlatformContextComponent.h:48
Divide::PlatformContext
Definition:
PlatformContext.h:71
imguifilesystem.h
Divide
Handle console commands that start with a forward slash.
Definition:
AIProcessor.cpp:7
Divide::U16
uint16_t U16
Definition:
PlatformDataTypes.h:45
Divide::U64
uint64_t U64
Definition:
PlatformDataTypes.h:47
Divide::NonMovable
Definition:
NonMovable.h:41
ImGuiFs::Dialog
Definition:
imguifilesystem.h:131
Source
Editor
Widgets
Headers
EditorOptionsWindow.h
Generated on Fri May 17 2024 16:59:51 for Divide Framework by
1.9.6