You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
931 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __CLI_GENERAL_HEADER__
  2. #define __CLI_GENERAL_HEADER__
  3. #include <stdlib.h>
  4. #include <vector>
  5. //#define TURBOVISION
  6. #define NEWT_CLI
  7. #ifndef TURBOVISION
  8. #ifdef NEWT_CLI
  9. #include <newt.h>
  10. #endif
  11. #include <ncurses.h>
  12. #include <cdk/cdk.h>
  13. typedef struct _win_border_struct {
  14. chtype ls, rs, ts, bs, tl, tr, bl, br;
  15. } WIN_BORDER;
  16. typedef struct _CTRL_struct{
  17. EObjectType type;
  18. void *CTL; /* ADT Style */
  19. } CTRL;
  20. #else
  21. #define Uses_TApplication
  22. #define Uses_TButton
  23. #define Uses_TDeskTop
  24. #define Uses_TDialog
  25. #define Uses_TKeys
  26. #define Uses_TMenuBar
  27. #define Uses_TMenuItem
  28. #define Uses_TSubMenu
  29. #define Uses_TStaticText
  30. #define Uses_TCommandSet
  31. #define Uses_TParamText
  32. #define Uses_TStatusDef
  33. #define Uses_TStatusItem
  34. #define Uses_TStatusLine
  35. #define Uses_TWindow
  36. #include "tv.h"
  37. #endif
  38. #endif