User Tools

Site Tools


developer_guide_control

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer_guide_control [2017/04/15 17:51]
gramanas -- must be inside %%..%% or its just a long dash
developer_guide_control [2019/06/03 16:43] (current)
hlzhs [Control Naming]
Line 9: Line 9:
 ====== Control Naming ====== ====== Control Naming ======
  
-Controls are referred to by a 2-part name called a ''​ConfigKey''​. ''​ConfigKey''​s have a ''​group''​ and an ''​item''​. The group is used to explain the category of the control while the item describes specifically what the control is. By convention, the group of a ConfigKey is wrapped with square brackets. This is because the ''​ConfigKey''​ class is also used to indicate values to store in the Mixxx preferences file which is organized like a [[http://​en.wikipedia.org/​wiki/​INI_file|Windows INI file]].+Controls are referred to by a 2-part name called a ''​ConfigKey''​. ''​ConfigKey''​s have a ''​group''​ and an ''​item''​. The group is used to explain the category of the control while the item describes specifically what the control is. 
 + 
 +By convention, the group of a ConfigKey is wrapped with square brackets. This is because the ''​ConfigKey''​ class is also used to indicate values to store in the Mixxx preferences file which is organized like a [[http://​en.wikipedia.org/​wiki/​INI_file|Windows INI file]]
 + 
 +Control items mostly use the ''​snake_case''​ naming, although some use ''​PascalCase''​ for legacy reasons. When adding new controls, ''​snake_case''​ should be used.
  
 Examples: Examples:
developer_guide_control.txt · Last modified: 2019/06/03 16:43 by hlzhs