Open main menu

CDOT Wiki β

Changes

Console UI Core Classes - OOP344 20113

21 bytes added, 07:44, 28 October 2011
CUI General Header file (cuigh.h)
#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
#ifndef _CRT_SECURE_NO_DEPRECATEdefine C_MAX_NO_FIELDS 100 #define _CRT_SECURE_NO_DEPRECATE#endif#ifndef _CRT_SECURE_NO_WARNINGSC_BUTTON_HIT 1 #define _CRT_SECURE_NO_WARNINGS#endifC_MAX_LINE_CHARS (1024u) #define C_MAX_NO_FIELDS 100C_REFRESH -2 #define C_BUTTON_HIT C_FULL_FRAME -1 #define C_MAX_LINE_CHARS (1024u)C_NO_FRAME 0
// #define C_REFRESH C_BORDER_CHARS "/-2#define C_FULL_FRAME \\|/-1\\|"#define C_NO_FRAME 0 enum CDirection {centre, left, right, up, down};
#define C_BORDER_CHARS "/-\\|/-\\|"
enum CDirection {iol_centre, iol_left, iol_right, iol_up, iol_down};
/* will be used later enum MessageStatus{ClearMessage,SetMessage};
#ifdef NO_HELPFUNC # undef NO_HELPFUNC #endif #define NO_HELPFUNC ((void(*)(MessageStatus, CDialog&))(0)) #ifdef NO_VALDFUNC # undef NO_VALDFUNC #endif #define NO_VALDFUNC ((bool(*)(const char*, CDialog&))(0))
#define C_MAX_LINE_CHARS (1024u) #define C_INITIAL_NUM_OF_LINES (100u)*/}
#endif
 
</syntaxhighlight></big>