IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Reporter configuration. More...
Classes | |
class | ConsoleWritingStream |
A stream that redirects its input to the console. More... | |
Public Types | |
enum | enReporterType { enReporterType.Basic, enReporterType.Console, enReporterType.Msgbox, enReporterType.ConsoleMsgbox } |
Public Member Functions | |
ReporterConf (ReporterForms rf) | |
void | HideForm () |
void | CloseForm () |
Closes the consform by properly (i.e. thread-safe) calling the Close() and Dispose(). More... | |
void | ShowThread () |
Shows a fading message in a new thread. More... | |
void | ShowThread (string title) |
Shows a fading message in a new thread, with message text equal to mshtext and without a title;. More... | |
ReporterConf (ReporterBase rf) | |
delegate void | FormDelegate (Form f) |
Reference to a function without arguments & return value. More... | |
delegate void | ControlDelegate (Control ct) |
void | CloseForm () |
Closes the consform by properly (i.e. thread-safe) calling the Close() and Dispose(). More... | |
Public Attributes | |
string | Title ="" |
enReporterType | ReporterType |
Protected Member Functions | |
virtual void | ApplyGuiReporterType () |
Applies the reporter type as specified by the form's state. More... | |
virtual void | SetReporter (enReporterType type) |
Sets the current reporter of this calss according to the reporter type. More... | |
virtual void | SetReporter () |
Sets the current reporter of this calss according to the private variable ReporterType. More... | |
void | ApplyGuiSettings () |
Applies the settings of the user interface. More... | |
Protected Attributes | |
string[] | reporters = new string[] {"Basic Reporter","Forms Reporter"} |
ReporterBase | _reporter = null |
bool | SpeechVisible = false |
Specifies whether the sub-panel for speech settings is visible or not. More... | |
Properties | |
ReporterForms | reporter [get, private set] |
bool | IsBackground [get, set] |
ReporterBase | R [get, set] |
Gets or sets the reporter for reporting internal errors of this class. This is different from the reporting that is being tested. More... | |
ReporterBase | CurrentReporter [get, set] |
Gets or sets the current reporter. More... | |
Private Member Functions | |
ReporterConf () | |
void | InitializeComponent () |
Required method for Designer support - do not modify the contents of this method with the code editor. More... | |
void | FormThreadFunc () |
Shows the window in a separate thread. More... | |
void | ConsoleForm_Load (object sender, System.EventArgs args) |
void | ConsoleForm_Dispose (object sender, System.EventArgs e) |
void | CloseBtn_Click (object sender, EventArgs e) |
void | HideBtn_Click (object sender, EventArgs e) |
void | ReportConfig_MouseMove (object sender, MouseEventArgs e) |
void | ReportConfig_MouseDown (object sender, MouseEventArgs e) |
void | ReportConfig_MouseClick (object sender, MouseEventArgs e) |
Enables closing the consform with right-clicking. More... | |
void | SetCommonEvents (Control f) |
void | BtnCancel_Click (object sender, EventArgs e) |
void | btnLaunch_Click (object sender, EventArgs e) |
void | rbConsoleFormOn_CheckedChanged (object sender, EventArgs e) |
void | rbMessageBoxOn_CheckedChanged (object sender, EventArgs e) |
void | rbFadingMessageOn_CheckedChanged (object sender, EventArgs e) |
void | txtFadingShowtime_TextChanged (object sender, EventArgs e) |
void | txtFadingPortion_TextChanged (object sender, EventArgs e) |
void | txtFadingBG_BackColorChanged (object sender, EventArgs e) |
void | btnFadeBG_Click (object sender, EventArgs e) |
void | txtFadeBGFinal_BackColorChanged (object sender, EventArgs e) |
void | btnFadeBGFinal_Click (object sender, EventArgs e) |
void | rbConsoleOn_CheckedChanged (object sender, EventArgs e) |
ReporterConf () | |
void | SetTraceConsole (bool doset) |
Installs or removes the trace listener that echoes the trace output to a console. More... | |
delegate void | VoidDelegate () |
void | RecursiveControlDelegate (Control frm, ControlDelegate fd) |
void | ReportNonimplemented (string method, Exception ex) |
void | InitializeComponent () |
Required method for Designer support - do not modify the contents of this method with the code editor. More... | |
void | FormThreadFunc () |
Shows the window in a separate thread. More... | |
void | ReporterConf_Load (object sender, System.EventArgs args) |
void | ReporterConf_MouseMove (object sender, MouseEventArgs e) |
void | ReporterConf_MouseDown (object sender, MouseEventArgs e) |
void | ReportConfig_MouseClick (object sender, MouseEventArgs e) |
Enables closing the consform with right-clicking. More... | |
void | SetCommonEvents (Control f) |
void | BtnCancel_Click (object sender, EventArgs e) |
void | btnLaunch_Click (object sender, EventArgs e) |
void | rbBasic_CheckedChanged (object sender, EventArgs e) |
void | rbConsole_CheckedChanged (object sender, EventArgs e) |
void | rbMessageBox_CheckedChanged (object sender, EventArgs e) |
void | rbConsoleMessageBox_CheckedChanged (object sender, EventArgs e) |
void | rbTextWriterOn_CheckedChanged (object sender, EventArgs e) |
void | chkTextWriterAppend_CheckedChanged (object sender, EventArgs e) |
void | txtTextWriter_Leave (object sender, EventArgs e) |
Checks whether the directory containing the file exists, and applies the output file. More... | |
void | rbLogOn_CheckedChanged (object sender, EventArgs e) |
void | chkLogAppend_CheckedChanged (object sender, EventArgs e) |
void | txtLogFile_Leave (object sender, EventArgs e) |
Checks whether the directory containing the file exists, and applies the output file. More... | |
void | txtLogIndentSpacing_Leave (object sender, EventArgs e) |
void | txtLogIndentInitial_Leave (object sender, EventArgs e) |
void | rbTraceOn_CheckedChanged (object sender, EventArgs e) |
void | chkTraceToConsole_CheckedChanged (object sender, EventArgs e) |
void | rbConsoleOn_CheckedChanged (object sender, EventArgs e) |
void | rbMessageBoxOn_CheckedChanged (object sender, EventArgs e) |
void | btnTextWriter_Click (object sender, EventArgs e) |
void | btnLogFile_Click (object sender, EventArgs e) |
void | cmbSpeechLevelSignal_TextChanged (object sender, EventArgs e) |
void | cmbSpeechLevelMessage_TextChanged (object sender, EventArgs e) |
Static Private Attributes | |
static IReporter | reptw = null |
static IReporter | reptl = null |
static string | filetw = null |
static string | filetl = null |
Reporter configuration.
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inline |
|
inlineprivate |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
inlineprivate |
Shows the window in a separate thread.
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inline |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inline |
Closes the consform by properly (i.e. thread-safe) calling the Close() and Dispose().
References IG.Forms.ReporterForms.Global, IG.Lib.ReporterBase.ReportError(), and IG.Forms.VoidDelegate().
|
inline |
Shows a fading message in a new thread.
|
inline |
Shows a fading message in a new thread, with message text equal to mshtext and without a title;.
|
inlineprivate |
References IG.Lib.Left, and IG.Lib.Top.
|
inlineprivate |
|
inlineprivate |
Enables closing the consform with right-clicking.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprivate |
References IG.Forms.ReporterForms.Global, and IG.Lib.ReporterBase.ReportError().
|
inlineprotectedvirtual |
Applies the reporter type as specified by the form's state.
|
inlineprotectedvirtual |
Sets the current reporter of this calss according to the reporter type.
type | Specifies what type of reporter should be set. |
Reimplemented in IG.Lib.ReporterConfSpeech.
References IG.Lib.ReporterConsole.Global, IG.Forms.ReporterConsoleMsgbox.Global, IG.Forms.ReporterMsgbox.Global, and IG.Lib.ReporterBase.Global.
|
inlineprotectedvirtual |
Sets the current reporter of this calss according to the private variable ReporterType.
|
inlineprotected |
Applies the settings of the user interface.
References IG.Lib.IReporterTextLogger.SetTextLogger(), IG.Lib.IReporterTextWriter.SetTextWriter(), IG.Forms.IReporterSpeech.SpeechLevelMessage, IG.Forms.IReporterSpeech.SpeechLevelSignal, IG.Lib.IReporterTextLogger.TextLoggerIndentInitial, IG.Lib.IReporterTextLogger.TextLoggerIndentSpacing, IG.Lib.IReporterTextLogger.TextLoggerNumWriters(), IG.Lib.IReporterTextWriter.TextWriterNumWriters(), IG.Lib.IReporterConsole.UseConsole, IG.Forms.IReporterMessageBox.UseMessageBox, IG.Forms.IReporterSpeech.UseSpeech, IG.Lib.IReporterTextLogger.UseTextLogger, IG.Lib.IReporterTextWriter.UseTextWriter, and IG.Lib.IReporterTrace.UseTrace.
|
inlineprivate |
Installs or removes the trace listener that echoes the trace output to a console.
doset | If true then the appropriate trace listener is added, else it is removed. |
|
private |
delegate void IG.Forms.ReporterConf.FormDelegate | ( | Form | f | ) |
Reference to a function without arguments & return value.
delegate void IG.Forms.ReporterConf.ControlDelegate | ( | Control | ct | ) |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
inlineprivate |
Shows the window in a separate thread.
|
inlineprivate |
References IG.Forms.ControlDelegate().
|
inline |
Closes the consform by properly (i.e. thread-safe) calling the Close() and Dispose().
References IG.Forms.VoidDelegate().
|
inlineprivate |
References IG.Lib.Left, and IG.Lib.Top.
|
inlineprivate |
|
inlineprivate |
Enables closing the consform with right-clicking.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Checks whether the directory containing the file exists, and applies the output file.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Checks whether the directory containing the file exists, and applies the output file.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
string IG.Forms.ReporterConf.Title ="" |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
enReporterType IG.Forms.ReporterConf.ReporterType |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
Specifies whether the sub-panel for speech settings is visible or not.
|
getprivate setprotected |
|
getset |
|
getset |
Gets or sets the reporter for reporting internal errors of this class. This is different from the reporting that is being tested.
|
getsetprotected |
Gets or sets the current reporter.