IConsole.cs 2.6 KB

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