-
Notifications
You must be signed in to change notification settings - Fork 76
GUI Coding Guidelines
All GUI classes, functions and global variables should be located in the hal
namespace. Thus, all GUI variables, class definitions and code implementations are to be made within the hal
namespace scope.
namespace hal
{
...
...
...
}
Variables are to be named following the guidelines of camelCase. Depending on the scope of the variables a prefix has to be used.
Global variable names have to start with the character g and the its second letter capitalized.
extern NetlistRelay* gNetlistRelay;
Static variable names have to start with the character s and the its second letter capitalized.
static qreal sColorBarHeight;
Member variable names have to start with the character m and the its second letter capitalized.
QString mCurrentInput;
Local variable names have to start with its first letter in lowercase. The variable name should be kept short and if necessary further explained in a comment.
//x position of the gate on the internal layouter grid
int xPos;