C# Class PurplePen.SymbolPopup

Handles the popup menu that can display symbols and/or text boxes for changing the boxes in a description.
Show file Open project: petergolde/PurplePen

Public Properties

Property Type Description
customSymbolText string>.Dictionary

Public Methods

Method Description
AddItem ( ToolStripItem item, int columns, bool updateInfoOnMouseEnter ) : void
AddNoSymbol ( ) : void
AddSymbolsOfKind ( char kind ) : void
ClosePopup ( ) : void
ClosedDropdown ( object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs args ) : void
CreateDropdown ( int columns ) : void
ItemClicked ( object sender, ToolStripItemClickedEventArgs args ) : void
LayoutCompleted ( object sender, EventArgs args ) : void
OpenedDropdown ( object sender, EventArgs args ) : void
PreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void
SetInfoLabel ( string text ) : void
ShowPopup ( int columns, char kindFirst, char kindSecond, bool noSymbol, string textBoxInfo, string initialText, int textBoxWidth, Control control, Point pt ) : void
SymbolPopup ( SymbolDB symbolDB, int boxSize ) : System
TextKeyDown ( object sender, KeyEventArgs args ) : void
UpdateInfoLabel ( object sender, EventArgs args ) : void

Private Methods

Method Description
AddInfoLabel ( ) : void
AddSeparator ( ) : void
AddTextbox ( string textBoxInfo, string initialText, int textBoxWidth ) : void
CountLines ( string text ) : int
DisposeCurrentDropdown ( ) : void
GetNoSymbolImage ( ) : Image
GetSymbolImage ( Symbol symbol ) : Image

Method Details

AddItem() public method

public AddItem ( ToolStripItem item, int columns, bool updateInfoOnMouseEnter ) : void
item System.Windows.Forms.ToolStripItem
columns int
updateInfoOnMouseEnter bool
return void

AddNoSymbol() public method

public AddNoSymbol ( ) : void
return void

AddSymbolsOfKind() public method

public AddSymbolsOfKind ( char kind ) : void
kind char
return void

ClosePopup() public method

public ClosePopup ( ) : void
return void

ClosedDropdown() public method

public ClosedDropdown ( object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs args ) : void
sender object
args System.Windows.Forms.ToolStripDropDownClosedEventArgs
return void

CreateDropdown() public method

public CreateDropdown ( int columns ) : void
columns int
return void

ItemClicked() public method

public ItemClicked ( object sender, ToolStripItemClickedEventArgs args ) : void
sender object
args System.Windows.Forms.ToolStripItemClickedEventArgs
return void

LayoutCompleted() public method

public LayoutCompleted ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
return void

OpenedDropdown() public method

public OpenedDropdown ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
return void

PreviewKeyDown() public method

public PreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void
sender object
e System.Windows.Forms.PreviewKeyDownEventArgs
return void

SetInfoLabel() public method

public SetInfoLabel ( string text ) : void
text string
return void

ShowPopup() public method

public ShowPopup ( int columns, char kindFirst, char kindSecond, bool noSymbol, string textBoxInfo, string initialText, int textBoxWidth, Control control, Point pt ) : void
columns int
kindFirst char
kindSecond char
noSymbol bool
textBoxInfo string
initialText string
textBoxWidth int
control System.Windows.Forms.Control
pt Point
return void

SymbolPopup() public method

public SymbolPopup ( SymbolDB symbolDB, int boxSize ) : System
symbolDB SymbolDB
boxSize int
return System

TextKeyDown() public method

public TextKeyDown ( object sender, KeyEventArgs args ) : void
sender object
args System.Windows.Forms.KeyEventArgs
return void

UpdateInfoLabel() public method

public UpdateInfoLabel ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
return void

Property Details

customSymbolText public property

public Dictionary customSymbolText
return string>.Dictionary