21
edits
Changes
→File Names
* Use includes only in files in which the actual header file code is used.
* '''Avoid "just in case" includes.'''
=CUI General Header file (cuigh.h)=
The general header file holds the common setting and definition between all the Core Classes. Review this header file at each stage of the project for changes.
<big><syntaxhighlight lang="cpp">
#ifndef ___CUIGH_H__
#define ___CUIGH_H__
namespace cio{
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#endif
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#define C_INITIAL_NO_FIELDS 50
#define C_DIALOG_EXPANSION_SIZE 20
#define C_BUTTON_HIT 1
#define C_MAX_LINE_CHARS (1024u)
#define C_REFRESH -2
#define C_FULL_FRAME -1
#define C_NO_FRAME 0
#define C_BORDER_CHARS "/-\\|/-\\|"
enum CDirection {centre, left, right, up, down};
}
#endif
</syntaxhighlight></big>
==File Names==
*Use the class name for the name of the file but make sure it is all '''''lowercase'''''.
*:For example '''CFrame''' class should have '''cframe.h''' and '''cframe.cpp''' files for its implementation.
==Hierarchy==
<big><pre>