node_launchpad/
mode.rs

1// Copyright 2024 MaidSafe.net limited.
2//
3// This SAFE Network Software is licensed to you under The General Public License (GPL), version 3.
4// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
5// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
6// KIND, either express or implied. Please review the Licences for the specific language governing
7// permissions and limitations relating to use of the SAFE Network Software.
8
9use serde::{Deserialize, Serialize};
10
11use crate::connection_mode::ConnectionMode;
12
13#[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
14pub enum Scene {
15    #[default]
16    Status,
17    Options,
18    Help,
19    ChangeDrivePopUp,
20    ChangeConnectionModePopUp,
21    ChangePortsPopUp {
22        connection_mode_old_value: Option<ConnectionMode>,
23    },
24    StatusRewardsAddressPopUp,
25    OptionsRewardsAddressPopUp,
26    ManageNodesPopUp {
27        amount_of_nodes: usize,
28    },
29    ResetNodesPopUp,
30    UpgradeNodesPopUp,
31    RemoveNodePopUp,
32}
33
34#[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
35pub enum InputMode {
36    #[default]
37    Navigation,
38    Entry,
39}