Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
analysispage2d.h
Go to the documentation of this file.
1/**
2 * @file analysispage2d.h
3 * @brief Declares stable identifiers for experiment-specific Analysis pages.
4 * @ingroup qpe_experiments
5 *
6 * Source: @c core/experiments/analysispage2d.h. This file is part of Quantum Phenomena Explorer (QPE),
7 * maintained by Officina Turini. See LICENSE_IT.txt / LICENSE.txt for the
8 * QPE freeware source-available terms and THIRD_PARTY_NOTICES.txt for
9 * third-party components.
10 */
11
12#pragma once
13
14namespace qpe {
15
16// Stable semantic destination for the Analysis dock. The enum deliberately
17// does not contain QWidget/QObject types so preset routing remains testable in
18// pure C++14 without Qt GUI dependencies.
19/**
20 * @brief Enumerates the supported Analysis Page2D values.
21 *
22 * The enumeration is part of the typed interface used to keep experiment configuration and analysis routing explicit.
23 */
62
63/**
64 * @brief Central catalog mapping guided presets to Analysis pages.
65 *
66 * Keeping this mapping outside MainWindow avoids scattered preset-index conditionals and makes routing independently testable.
67 */
69{
70public:
71 /**
72 * @brief Performs preset count.
73 */
74 static int presetCount() noexcept;
75 /**
76 * @brief Returns whether valid preset.
77 * @param presetIndex Zero-based guided-preset index.
78 */
79 static bool isValidPreset(int presetIndex) noexcept;
80 /**
81 * @brief Performs page for preset.
82 * @param presetIndex Zero-based guided-preset index.
83 */
84 static AnalysisPage2D pageForPreset(int presetIndex) noexcept;
85 /**
86 * @brief Performs page id.
87 * @param page The page value used by the operation.
88 */
89 static const char *pageId(AnalysisPage2D page) noexcept;
90};
91
92} // namespace qpe
Central catalog mapping guided presets to Analysis pages.
static const char * pageId(AnalysisPage2D page) noexcept
Performs page id.
static int presetCount() noexcept
Performs preset count.
static AnalysisPage2D pageForPreset(int presetIndex) noexcept
Performs page for preset.
static bool isValidPreset(int presetIndex) noexcept
Returns whether valid preset.
AnalysisPage2D
Enumerates the supported Analysis Page2D values.