SILICON
Toggle main menu visibility
Loading...
Searching...
No Matches
codeFilePresentation.hpp
Go to the documentation of this file.
1
/*
2
Copyright (c) 2026. Giulio Cocconi
3
4
This program is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#pragma once
19
20
#include <span>
21
#include <string_view>
22
23
#include <
core/projectDocument.hpp
>
24
#include <
ui/documents/code/codeSyntax.hpp
>
25
26
namespace
SILICON::ui
{
27
29
struct
CodeFilePresentation
{
30
SILICON::project::DocumentType
type
;
31
std::string_view
displayName
;
32
const
CodeSyntax
*
syntax
;
33
const
char
*
architectureTabName
;
34
};
35
36
[[nodiscard]] std::span<const CodeFilePresentation>
codeFilePresentations
();
37
[[nodiscard]]
const
CodeFilePresentation
&
38
codeFilePresentation
(
SILICON::project::DocumentType
type);
39
40
}
// namespace SILICON::ui
codeSyntax.hpp
SILICON::project::DocumentType
DocumentType
Definition
projectDocument.hpp:37
SILICON::ui
Definition
actionGroups.hpp:14
SILICON::ui::codeFilePresentation
const CodeFilePresentation & codeFilePresentation(const project::DocumentType type)
Definition
codeFilePresentation.cpp:44
SILICON::ui::codeFilePresentations
std::span< const CodeFilePresentation > codeFilePresentations()
Definition
codeFilePresentation.cpp:39
projectDocument.hpp
SILICON::ui::CodeFilePresentation
Definition
codeFilePresentation.hpp:29
SILICON::ui::CodeFilePresentation::displayName
std::string_view displayName
Definition
codeFilePresentation.hpp:31
SILICON::ui::CodeFilePresentation::syntax
const CodeSyntax * syntax
Definition
codeFilePresentation.hpp:32
SILICON::ui::CodeFilePresentation::type
SILICON::project::DocumentType type
Definition
codeFilePresentation.hpp:30
SILICON::ui::CodeFilePresentation::architectureTabName
const char * architectureTabName
Definition
codeFilePresentation.hpp:33
SILICON::ui::CodeSyntax
Definition
codeSyntax.hpp:84
src
ui
documents
code
codeFilePresentation.hpp
Generated by
1.17.0