Add methods to change the selected tab in the Shuffleboard app (#1448)

This commit is contained in:
Sam Carlberg
2018-11-28 01:12:50 -05:00
committed by Peter Johnson
parent a60f312d19
commit 6f0c185a05
8 changed files with 97 additions and 0 deletions

View File

@@ -45,6 +45,22 @@ class ShuffleboardRoot {
* actuators.
*/
virtual void DisableActuatorWidgets() = 0;
/**
* Selects the tab in the dashboard with the given index in the range
* [0..n-1], where <i>n</i> is the number of tabs in the dashboard at the time
* this method is called.
*
* @param index the index of the tab to select
*/
virtual void SelectTab(int index) = 0;
/**
* Selects the tab in the dashboard with the given title.
*
* @param title the title of the tab to select
*/
virtual void SelectTab(wpi::StringRef title) = 0;
};
} // namespace frc