Implement and archive Phase 5 help system
This commit is contained in:
@@ -1104,6 +1104,16 @@ impl App {
|
||||
}
|
||||
Ok(true)
|
||||
}
|
||||
pub(crate) fn design_help_context(&mut self) -> Result<(String, String)> {
|
||||
let node = self.selected_node()?;
|
||||
let specs = forms::properties(node.class);
|
||||
let property = if self.properties || self.value_focus {
|
||||
specs.get(self.designer.property).map_or("", |p| p.name)
|
||||
} else {
|
||||
""
|
||||
};
|
||||
Ok((node.class.name().to_owned(), property.into()))
|
||||
}
|
||||
pub(crate) fn design_value_focus(&mut self) -> Result<()> {
|
||||
let node = self.selected_node()?;
|
||||
let specs = forms::properties(node.class);
|
||||
|
||||
Reference in New Issue
Block a user