Pulp
1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
app_updates_settings_view.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// A drop-in "Updates" Settings group for native Pulp editors:
4
//
5
// [toggle] Automatically check for updates
6
// [Check for Updates…]
7
// Version 1.0.7 · Last checked: 2026-10-04 14:03
8
// Updates download from Spectr's GitHub releases. Installing an update …
9
// [View Releases]
10
//
11
// It reads and drives the process-wide AppUpdateService
12
// (pulp/format/app_updates.hpp). The standalone Settings panel adds it as an
13
// "Updates" tab automatically; a native editor can add it to its own
14
// settings with
15
//
16
// if (pulp::format::app_update_status().available)
17
// panel.add_child(std::make_unique<pulp::format::AppUpdatesSettingsView>());
18
//
19
// In a plug-in no service is installed, so the guard keeps it out; the view
20
// itself also hides its controls when the service disappears.
21
22
#include <
pulp/format/app_updates.hpp
>
23
#include <
pulp/view/view.hpp
>
24
25
namespace
pulp::view
{
26
class
Label
;
27
class
TextButton
;
28
class
Toggle
;
29
}
// namespace pulp::view
30
31
namespace
pulp::format
{
32
33
class
AppUpdatesSettingsView
:
public
view::View
{
34
public
:
35
AppUpdatesSettingsView
();
36
39
void
refresh
();
40
41
[[nodiscard]]
view::Toggle
*
automatic_checks_toggle
()
const
{
42
return
automatic_toggle_;
43
}
44
[[nodiscard]]
view::TextButton
*
check_button
()
const
{
45
return
check_button_;
46
}
47
48
[[nodiscard]]
view::TextButton
*
releases_button
()
const
{
49
return
releases_button_;
50
}
51
[[nodiscard]]
view::Label
*
status_label
()
const
{
52
return
status_label_;
53
}
54
[[nodiscard]]
view::Label
*
note_label
()
const
{
55
return
note_label_;
56
}
57
58
private
:
59
view::Toggle
* automatic_toggle_ =
nullptr
;
60
view::TextButton
* check_button_ =
nullptr
;
61
view::TextButton
* releases_button_ =
nullptr
;
62
view::Label
* status_label_ =
nullptr
;
63
view::Label
* note_label_ =
nullptr
;
64
};
65
66
}
// namespace pulp::format
app_updates.hpp
pulp::format::AppUpdatesSettingsView::check_button
view::TextButton * check_button() const
Definition
app_updates_settings_view.hpp:44
pulp::format::AppUpdatesSettingsView::refresh
void refresh()
Re-read the service status into the controls.
pulp::format::AppUpdatesSettingsView::releases_button
view::TextButton * releases_button() const
Opens the declared releases page; hidden when the app declares none.
Definition
app_updates_settings_view.hpp:48
pulp::format::AppUpdatesSettingsView::AppUpdatesSettingsView
AppUpdatesSettingsView()
pulp::format::AppUpdatesSettingsView::note_label
view::Label * note_label() const
Definition
app_updates_settings_view.hpp:54
pulp::format::AppUpdatesSettingsView::status_label
view::Label * status_label() const
Definition
app_updates_settings_view.hpp:51
pulp::format::AppUpdatesSettingsView::automatic_checks_toggle
view::Toggle * automatic_checks_toggle() const
Definition
app_updates_settings_view.hpp:41
pulp::view::Label
Definition
widgets.hpp:56
pulp::view::TextButton
Definition
buttons.hpp:17
pulp::view::Toggle
Definition
widgets.hpp:2036
pulp::view::View
Definition
view.hpp:73
pulp::format
What the product grants a device: the quota table indexed by capability tier and live thermal state.
Definition
aax_editor.hpp:31
pulp::view
Hover-cursor tracking for platform window hosts.
Definition
fwd.hpp:27
view.hpp
core
format
include
pulp
format
app_updates_settings_view.hpp
Generated by
1.15.0