IConsole.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. using System.Drawing;
  2. using NTERA.Core.Interop;
  3. using NTERA.Core;
  4. namespace NTERA.Core
  5. {
  6. public interface IConsole
  7. {
  8. string LastInput { get; }
  9. InputRequest CurrentRequest { get; }
  10. void GiveInput(string input);
  11. void PrintError(string message);
  12. void PrintSystemLine(string message);
  13. void DebugClearTraceLog();
  14. void DebugAddTraceLog(string message);
  15. void DebugRemoveTraceLog();
  16. bool RunERBFromMemory { get; }
  17. void PrintWarning(string message, int level);
  18. void setStBar(string bar);
  19. void ReadAnyKey();
  20. void WaitInput(InputRequest request);
  21. void ResetStyle();
  22. void OutputLog(string log);
  23. bool noOutputLog { get; set; }
  24. void ThrowTitleError(bool something);
  25. void PrintBar();
  26. void PrintSingleLine(string line, bool temporary = false);
  27. void NewLine();
  28. void RefreshStrings(bool something);
  29. void SetWindowTitle(string title);
  30. bool IsRunning { get; }
  31. bool Enabled { get; }
  32. void ThrowError(bool playSound);
  33. void PrintErrorButton(string message);
  34. void Write(string message, PrintFlags? flags = null);
  35. bool UseSetColorStyle { get; set; }
  36. void PrintC(string message, bool something);
  37. DisplayLineAlignment Alignment { get; set; }
  38. void ClearLine(int line);
  39. void PrintTemporaryLine(string line);
  40. bool updatedGeneration { get; set; }
  41. void PrintFlush(bool something);
  42. bool LastLineIsTemporary { get; }
  43. bool LastLineIsEmpty { get; }
  44. void ReloadErbFinished();
  45. bool MesSkip { get; }
  46. //StringStyle StringStyle { get; set; }
  47. Color bgColor { get; set; }
  48. ConsoleRedraw Redraw { get; set; }
  49. bool EmptyLine { get; }
  50. string getStBar(string something);
  51. void PrintButton(string something, long something1);
  52. void PrintButton(string something, string something1);
  53. void PrintButtonC(string something, long something1, bool something2);
  54. void PrintButtonC(string something, string something1, bool something2);
  55. void PrintPlain(string message);
  56. void printCustomBar(string bar);
  57. bool UseUserStyle { get; set; }
  58. void Quit();
  59. void PrintHtml(string html, bool newline);
  60. void PrintImg(string img);
  61. void PrintShape(string shape, int[] param);
  62. void DebugPrint(string message);
  63. void DebugNewLine();
  64. void DebugClear();
  65. void ReadAnyKey(bool something, bool something2);
  66. void SetStringStyle(Color color);
  67. void SetStringStyle(FontStyle fontStyle);
  68. void SetBgColor(Color color);
  69. void SetToolTipColor(Color fc, Color bc);
  70. void SetToolTipDelay(int delay);
  71. void SetToolTipDuration(int duration);
  72. void SetFont(string font);
  73. void SetRedraw(long value);
  74. int NewButtonGeneration { get; }
  75. void UpdateGeneration();
  76. string GetWindowTitle();
  77. long LineCount { get; }
  78. string getDefStBar();
  79. bool IsTimeOut { get; }
  80. }
  81. }