Emotiv Experimenter 1.0
An EEG experimentation application for the Emotiv headset
Classes | Static Public Member Functions | Properties

MCAEmotiv.GUI.GUIUtils Class Reference

Contains static GUI-related utility methods. More...

List of all members.

Classes

class  Constants
 Contains non-string constants. More...
class  SafeGUIInvoker
class  Strings
 Contains string constants. More...

Static Public Member Functions

static TableLayoutPanel CreateTable (IEnumerable< double > rowProportions, IEnumerable< double > columnProportions, DockStyle dockStyle=DockStyle.Fill)
 Creates a table with the specified proportions and dock style.
static TableLayoutPanel CreateTable (IEnumerable< double > proportions, Direction direction, DockStyle dockStyle=DockStyle.Fill)
 Creates a 1 x n (or n x 1) table with the specified proportions, direction, and dock style.
static TableLayoutPanel CreateButtonTable (Direction direction, DockStyle dockStyle, params Button[] buttons)
 Creates a table of buttons with the specified direction and dock style.
static Button CreateFlatButton (string text, Action< Button > clickHandler=null, ToolTip toolTip=null, string toolTipText=null)
 Creates a button which has been properly stylized for the application GUI.
static bool IsUserSure (string question)
 Returns true if the user responded to the question in the affirmative.
static void Alert (string issue, MessageBoxIcon messageType=MessageBoxIcon.Information)
 Alerts the user of the issue.
static void GetSplitModeImageRectangles (Rectangle clientRectangle, Size maxImageSize, out Rectangle rectangle1, out Rectangle rectangle2)
 Retrieves the rectangles in which images should be placed in side-by-side mode.

Properties

static ISynchronizeInvoke GUIInvoker [get]
 Returns an ISynchronizeInvoke for the GUI thread.

Detailed Description

Contains static GUI-related utility methods.


Member Function Documentation

static void MCAEmotiv.GUI.GUIUtils.Alert ( string  issue,
MessageBoxIcon  messageType = MessageBoxIcon.Information 
) [static]

Alerts the user of the issue.

static TableLayoutPanel MCAEmotiv.GUI.GUIUtils.CreateButtonTable ( Direction  direction,
DockStyle  dockStyle,
params Button[]  buttons 
) [static]

Creates a table of buttons with the specified direction and dock style.

static Button MCAEmotiv.GUI.GUIUtils.CreateFlatButton ( string  text,
Action< Button >  clickHandler = null,
ToolTip  toolTip = null,
string  toolTipText = null 
) [static]

Creates a button which has been properly stylized for the application GUI.

static TableLayoutPanel MCAEmotiv.GUI.GUIUtils.CreateTable ( IEnumerable< double >  proportions,
Direction  direction,
DockStyle  dockStyle = DockStyle.Fill 
) [static]

Creates a 1 x n (or n x 1) table with the specified proportions, direction, and dock style.

static TableLayoutPanel MCAEmotiv.GUI.GUIUtils.CreateTable ( IEnumerable< double >  rowProportions,
IEnumerable< double >  columnProportions,
DockStyle  dockStyle = DockStyle.Fill 
) [static]

Creates a table with the specified proportions and dock style.

static void MCAEmotiv.GUI.GUIUtils.GetSplitModeImageRectangles ( Rectangle  clientRectangle,
Size  maxImageSize,
out Rectangle  rectangle1,
out Rectangle  rectangle2 
) [static]

Retrieves the rectangles in which images should be placed in side-by-side mode.

static bool MCAEmotiv.GUI.GUIUtils.IsUserSure ( string  question) [static]

Returns true if the user responded to the question in the affirmative.


Property Documentation

ISynchronizeInvoke MCAEmotiv.GUI.GUIUtils.GUIInvoker [static, get]

Returns an ISynchronizeInvoke for the GUI thread.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties Events