IConsole.cs 2.6 KB

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