mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-14 13:15:14 +03:00
Implemented getPropertiesImplemented in all widgets.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user