Skip to content

Commit c1e1780

Browse files
committed
Renamed functions and base classes #287
1 parent 110d85c commit c1e1780

36 files changed

Lines changed: 88 additions & 88 deletions

File tree

source/config/base/BaseConfig.mc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class BaseConfig {
3939
/******* INPUT HINTS *******/
4040

4141
// Positions of the device buttons, for drawing input hints
42-
// Corresponds to BaseControlView.InputHints enumeration
42+
// Corresponds to ControlView.InputHints enumeration
4343
// 0=ENTER
4444
// 1=BACK
4545
// 2=UP
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Toybox.System;
1010
* subclasses can override individual constants as needed.
1111
*/
1212
(:glance)
13-
class GlanceBaseConfig {
13+
class BaseGlanceConfig {
1414
protected function initialize() {}
1515

1616
// The fonts available for the glance

source/config/device-default/GlanceConfig.mc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import Toybox.Lang;
44
* The default `Config` implementation inherits all default values and overrides none.
55
*/
66
(:glance)
7-
class GlanceConfig extends GlanceBaseConfig {
8-
protected function initialize() { GlanceBaseConfig.initialize(); }
7+
class GlanceConfig extends BaseGlanceConfig {
8+
protected function initialize() { BaseGlanceConfig.initialize(); }
99
}

source/config/device-edge/base/EdgeBaseConfig.mc renamed to source/config/device-edge/base/EdgeConfig.mc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Toybox.System;
66
* Default values for all Edge devices.
77
* Config implementations vary between button-based and touch-based devices.
88
*/
9-
class EdgeBaseConfig extends BaseConfig {
9+
class EdgeConfig extends BaseConfig {
1010
protected function initialize() { BaseConfig.initialize(); }
1111

1212
// Heights of menu elements

source/config/device-edge/device-x40-button/Config.mc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Toybox.System;
55
/*
66
* Config specific to button-based Edge devices.
77
*/
8-
class Config extends EdgeBaseConfig {
9-
protected function initialize() { EdgeBaseConfig.initialize(); }
8+
class Config extends EdgeConfig {
9+
protected function initialize() { EdgeConfig.initialize(); }
1010

1111
// On Edge devices, the connection mode indicator is displayed below
1212
// the title text, so the title text is positioned higher

source/config/device-edge/device-x40-touch/Config.mc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import Toybox.System;
55
/*
66
* Config for touch-based Edge devices.
77
*/
8-
class Config extends EdgeBaseConfig {
8+
class Config extends EdgeConfig {
99

10-
protected function initialize() { EdgeBaseConfig.initialize(); }
10+
protected function initialize() { EdgeConfig.initialize(); }
1111

1212
// On Edge devices, the connection mode indicator is displayed below
1313
// the title text, so the title text is positioned higher

source/config/device-edge/device-x50-button/base/EdgeX50ButtonBaseConfig.mc renamed to source/config/device-edge/device-x50-button/base/EdgeX50ButtonConfig.mc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import Toybox.System;
55
/*
66
* Config specific to button-based Edge devices.
77
*/
8-
class EdgeX50ButtonBaseConfig extends EdgeBaseConfig {
9-
protected function initialize() { EdgeBaseConfig.initialize(); }
8+
class EdgeX50ButtonConfig extends EdgeConfig {
9+
protected function initialize() { EdgeConfig.initialize(); }
1010

1111
// Positions of the keys, for drawing input hints
12-
// Corresponds to BaseControlView.InputHints enumeration
12+
// Corresponds to ControlView.InputHints enumeration
1313
// 0=ENTER
1414
// 1=BACK
1515
// 2=UP

source/config/device-edge/device-x50-button/device-550/Config.mc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Toybox.System;
55
/*
66
* Config specific to button-based Edge devices.
77
*/
8-
class Config extends EdgeX50ButtonBaseConfig {
9-
protected function initialize() { EdgeX50ButtonBaseConfig.initialize(); }
8+
class Config extends EdgeX50ButtonConfig {
9+
protected function initialize() { EdgeX50ButtonConfig.initialize(); }
1010

1111
// The following two constants control the workaround for a firmware bug on the
1212
// Edge 550 and 850 that prevents the focus indicator from being rendered properly.

source/config/device-edge/device-x50-button/device-850/Config.mc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Toybox.System;
55
/*
66
* Config specific to button-based Edge devices.
77
*/
8-
class Config extends EdgeX50ButtonBaseConfig {
9-
protected function initialize() { EdgeX50ButtonBaseConfig.initialize(); }
8+
class Config extends EdgeX50ButtonConfig {
9+
protected function initialize() { EdgeX50ButtonConfig.initialize(); }
1010

1111
// The following two constants control the workaround for a firmware bug on the
1212
// Edge 550 and 850 that prevents the focus indicator from being rendered properly.

source/config/device-edge/device-x50-touch/Config.mc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import Toybox.System;
55
/*
66
* Config for touch-based Edge devices.
77
*/
8-
class Config extends EdgeBaseConfig {
8+
class Config extends EdgeConfig {
99

10-
protected function initialize() { EdgeBaseConfig.initialize(); }
10+
protected function initialize() { EdgeConfig.initialize(); }
1111

1212
// Show menu item dividers
1313
public static const UI_MENU_ITEM_SHOW_DIVIDER as Boolean = true;

0 commit comments

Comments
 (0)