Implemented getPropertiesImplemented in all widgets.

This commit is contained in:
Martín Lucas Golini
2022-10-20 12:41:52 -03:00
parent faf18c4285
commit 7e605d8fac
74 changed files with 482 additions and 27 deletions

View File

@@ -100,6 +100,8 @@ class UITerminal : public UIWidget {
virtual std::string getPropertyString( const PropertyDefinition* propertyDef,
const Uint32& propertyIndex = 0 ) const;
virtual std::vector<PropertyId> getPropertiesImplemented() const;
void executeFile( const std::string& cmd );
const TerminalColorScheme& getColorScheme() const;

View File

@@ -227,6 +227,13 @@ std::string UITerminal::getPropertyString( const PropertyDefinition* propertyDef
}
}
std::vector<PropertyId> UITerminal::getPropertiesImplemented() const {
auto props = UIWidget::getPropertiesImplemented();
auto local = { PropertyId::VScrollMode, PropertyId::ScrollBarStyle, PropertyId::ScrollBarMode };
props.insert( props.end(), local.begin(), local.end() );
return props;
}
void UITerminal::executeFile( const std::string& cmd ) {
if ( mTerm )
mTerm->executeFile( cmd );