neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
i_ide.hpp
Go to the documentation of this file.
1
// i_ide.hpp
2
/*
3
neoGFX Design Studio
4
Copyright(C) 2021 Leigh Johnston
5
6
This program is free software: you can redistribute it and / or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
22
#include <
neogfx/app/i_action.hpp
>
23
#include <
neogfx/gui/widget/i_menu.hpp
>
24
#include <
neogfx/tools/DesignStudio/DesignStudio.hpp
>
25
26
namespace
neogfx::DesignStudio
27
{
28
namespace
id
29
{
30
uuid
constexpr
MenuBar
{ 0x8e46be79, 0x7a87, 0x403b, 0x9c5f, { 0xb5, 0xc0, 0x3e, 0x2b, 0xb8, 0x99 } };
31
uuid
constexpr
ToolsMenu
{ 0x486a96f9, 0x397e, 0x4005, 0x80c9, { 0xa7, 0xb8, 0xeb, 0x29, 0xf5, 0x9a } };
32
}
33
34
class
i_ide
:
public
ng::i_reference_counted
35
{
36
public
:
37
typedef
i_ide
abstract_type
;
38
public
:
39
virtual
void
add_action
(
uuid
const
& aMenuId,
i_action
& aAction) = 0;
40
virtual
void
add_sub_menu
(
uuid
const
& aMenuId,
i_menu
& aSubMenu) = 0;
41
public
:
42
static
uuid
const
&
iid
() {
static
uuid
const
sIid{ 0x7ca9ec87, 0xda34, 0x4c28, 0xb843, { 0xc1, 0x3e, 0x93, 0x81, 0xe0, 0xcf } };
return
sIid; }
43
};
44
}
DesignStudio.hpp
neogfx::DesignStudio::i_ide
Definition
i_ide.hpp:35
neogfx::DesignStudio::i_ide::add_action
virtual void add_action(uuid const &aMenuId, i_action &aAction)=0
neogfx::DesignStudio::i_ide::add_sub_menu
virtual void add_sub_menu(uuid const &aMenuId, i_menu &aSubMenu)=0
neogfx::DesignStudio::i_ide::abstract_type
i_ide abstract_type
Definition
i_ide.hpp:37
neogfx::DesignStudio::i_ide::iid
static uuid const & iid()
Definition
i_ide.hpp:42
neogfx::i_action
Definition
i_action.hpp:32
neogfx::i_menu
Definition
i_menu.hpp:36
neolib::i_reference_counted
Definition
i_reference_counted.hpp:58
i_action.hpp
i_menu.hpp
neogfx::DesignStudio::id::MenuBar
uuid constexpr MenuBar
Definition
i_ide.hpp:30
neogfx::DesignStudio::id::ToolsMenu
uuid constexpr ToolsMenu
Definition
i_ide.hpp:31
neogfx::DesignStudio
Definition
console_client.hpp:26
neogfx::id
uint32_t id
Definition
primitives.hpp:32
neolib::uuid
Definition
uuid.hpp:51
include
neogfx
tools
DesignStudio
i_ide.hpp
Generated by
1.9.8