mirror of
https://github.com/veeso/termscp.git
synced 2026-09-27 22:41:19 -07:00
Removed docs headers
This commit is contained in:
committed by
Christian Visintin
parent
2e0322bc0e
commit
027545f14c
@@ -54,8 +54,6 @@ impl SetupActivity {
|
||||
}
|
||||
}
|
||||
|
||||
/// ### view
|
||||
///
|
||||
/// View gui
|
||||
pub(super) fn view(&mut self) {
|
||||
self.redraw = false;
|
||||
@@ -68,8 +66,6 @@ impl SetupActivity {
|
||||
|
||||
// -- mount
|
||||
|
||||
/// ### mount_error
|
||||
///
|
||||
/// Mount error box
|
||||
pub(super) fn mount_error<S: AsRef<str>>(&mut self, text: S) {
|
||||
assert!(self
|
||||
@@ -83,15 +79,11 @@ impl SetupActivity {
|
||||
assert!(self.app.active(&Id::Common(IdCommon::ErrorPopup)).is_ok());
|
||||
}
|
||||
|
||||
/// ### umount_error
|
||||
///
|
||||
/// Umount error message
|
||||
pub(super) fn umount_error(&mut self) {
|
||||
let _ = self.app.umount(&Id::Common(IdCommon::ErrorPopup));
|
||||
}
|
||||
|
||||
/// ### mount_quit
|
||||
///
|
||||
/// Mount quit popup
|
||||
pub(super) fn mount_quit(&mut self) {
|
||||
assert!(self
|
||||
@@ -105,15 +97,11 @@ impl SetupActivity {
|
||||
assert!(self.app.active(&Id::Common(IdCommon::QuitPopup)).is_ok());
|
||||
}
|
||||
|
||||
/// ### umount_quit
|
||||
///
|
||||
/// Umount quit
|
||||
pub(super) fn umount_quit(&mut self) {
|
||||
let _ = self.app.umount(&Id::Common(IdCommon::QuitPopup));
|
||||
}
|
||||
|
||||
/// ### mount_save_popup
|
||||
///
|
||||
/// Mount save popup
|
||||
pub(super) fn mount_save_popup(&mut self) {
|
||||
assert!(self
|
||||
@@ -127,15 +115,11 @@ impl SetupActivity {
|
||||
assert!(self.app.active(&Id::Common(IdCommon::SavePopup)).is_ok());
|
||||
}
|
||||
|
||||
/// ### umount_quit
|
||||
///
|
||||
/// Umount quit
|
||||
pub(super) fn umount_save_popup(&mut self) {
|
||||
let _ = self.app.umount(&Id::Common(IdCommon::SavePopup));
|
||||
}
|
||||
|
||||
/// ### mount_help
|
||||
///
|
||||
/// Mount help
|
||||
pub(super) fn mount_help(&mut self) {
|
||||
assert!(self
|
||||
@@ -149,8 +133,6 @@ impl SetupActivity {
|
||||
assert!(self.app.active(&Id::Common(IdCommon::Keybindings)).is_ok());
|
||||
}
|
||||
|
||||
/// ### umount_help
|
||||
///
|
||||
/// Umount help
|
||||
pub(super) fn umount_help(&mut self) {
|
||||
let _ = self.app.umount(&Id::Common(IdCommon::Keybindings));
|
||||
@@ -180,8 +162,6 @@ impl SetupActivity {
|
||||
}
|
||||
}
|
||||
|
||||
/// ### new_app
|
||||
///
|
||||
/// Clean app up and remount common components and global listener
|
||||
fn new_app(&mut self, layout: ViewLayout) {
|
||||
self.app.umount_all();
|
||||
@@ -189,8 +169,6 @@ impl SetupActivity {
|
||||
self.mount_commons(layout);
|
||||
}
|
||||
|
||||
/// ### mount_commons
|
||||
///
|
||||
/// Mount common components
|
||||
fn mount_commons(&mut self, layout: ViewLayout) {
|
||||
// Radio tab
|
||||
@@ -213,8 +191,6 @@ impl SetupActivity {
|
||||
.is_ok());
|
||||
}
|
||||
|
||||
/// ### mount_global_listener
|
||||
///
|
||||
/// Mount global listener
|
||||
fn mount_global_listener(&mut self) {
|
||||
assert!(self
|
||||
@@ -263,8 +239,6 @@ impl SetupActivity {
|
||||
.is_ok());
|
||||
}
|
||||
|
||||
/// ### no_popup_mounted_clause
|
||||
///
|
||||
/// Returns a sub clause which requires that no popup is mounted in order to be satisfied
|
||||
fn no_popup_mounted_clause() -> SubClause<Id> {
|
||||
SubClause::And(
|
||||
|
||||
@@ -40,8 +40,6 @@ use tuirealm::{State, StateValue};
|
||||
impl SetupActivity {
|
||||
// -- view
|
||||
|
||||
/// ### init_setup
|
||||
///
|
||||
/// Initialize setup view
|
||||
pub(super) fn init_setup(&mut self) {
|
||||
// Init view (and mount commons)
|
||||
@@ -153,8 +151,6 @@ impl SetupActivity {
|
||||
self.context = Some(ctx);
|
||||
}
|
||||
|
||||
/// ### load_input_values
|
||||
///
|
||||
/// Load values from configuration into input fields
|
||||
pub(crate) fn load_input_values(&mut self) {
|
||||
// Text editor
|
||||
@@ -267,8 +263,6 @@ impl SetupActivity {
|
||||
.is_ok());
|
||||
}
|
||||
|
||||
/// ### collect_input_values
|
||||
///
|
||||
/// Collect values from input and put them into the configuration
|
||||
pub(crate) fn collect_input_values(&mut self) {
|
||||
if let Ok(State::One(StateValue::String(editor))) =
|
||||
|
||||
@@ -37,8 +37,6 @@ use tuirealm::tui::widgets::Clear;
|
||||
impl SetupActivity {
|
||||
// -- view
|
||||
|
||||
/// ### init_ssh_keys
|
||||
///
|
||||
/// Initialize ssh keys view
|
||||
pub(super) fn init_ssh_keys(&mut self) {
|
||||
// Init view (and mount commons)
|
||||
@@ -99,8 +97,6 @@ impl SetupActivity {
|
||||
|
||||
// -- mount
|
||||
|
||||
/// ### mount_del_ssh_key
|
||||
///
|
||||
/// Mount delete ssh key component
|
||||
pub(crate) fn mount_del_ssh_key(&mut self) {
|
||||
assert!(self
|
||||
@@ -114,15 +110,11 @@ impl SetupActivity {
|
||||
assert!(self.app.active(&Id::Ssh(IdSsh::DelSshKeyPopup)).is_ok());
|
||||
}
|
||||
|
||||
/// ### umount_del_ssh_key
|
||||
///
|
||||
/// Umount delete ssh key
|
||||
pub(crate) fn umount_del_ssh_key(&mut self) {
|
||||
let _ = self.app.umount(&Id::Ssh(IdSsh::DelSshKeyPopup));
|
||||
}
|
||||
|
||||
/// ### mount_new_ssh_key
|
||||
///
|
||||
/// Mount new ssh key prompt
|
||||
pub(crate) fn mount_new_ssh_key(&mut self) {
|
||||
assert!(self
|
||||
@@ -144,16 +136,12 @@ impl SetupActivity {
|
||||
assert!(self.app.active(&Id::Ssh(IdSsh::SshHost)).is_ok());
|
||||
}
|
||||
|
||||
/// ### umount_new_ssh_key
|
||||
///
|
||||
/// Umount new ssh key prompt
|
||||
pub(crate) fn umount_new_ssh_key(&mut self) {
|
||||
let _ = self.app.umount(&Id::Ssh(IdSsh::SshUsername));
|
||||
let _ = self.app.umount(&Id::Ssh(IdSsh::SshHost));
|
||||
}
|
||||
|
||||
/// ### reload_ssh_keys
|
||||
///
|
||||
/// Reload ssh keys
|
||||
pub(crate) fn reload_ssh_keys(&mut self) {
|
||||
let keys: Vec<String> = self
|
||||
|
||||
@@ -35,8 +35,6 @@ use tuirealm::tui::layout::{Constraint, Direction, Layout};
|
||||
impl SetupActivity {
|
||||
// -- view
|
||||
|
||||
/// ### init_theme
|
||||
///
|
||||
/// Initialize thene view
|
||||
pub(super) fn init_theme(&mut self) {
|
||||
// Init view (and mount commons)
|
||||
@@ -298,8 +296,6 @@ impl SetupActivity {
|
||||
.is_ok());
|
||||
}
|
||||
|
||||
/// ### load_styles
|
||||
///
|
||||
/// Load values from theme into input fields
|
||||
pub(crate) fn load_styles(&mut self) {
|
||||
let theme: Theme = self.theme().clone();
|
||||
|
||||
Reference in New Issue
Block a user