public StateProperties(Schematix.FSM.My_State state, Schematix.FSM.Constructor_Core core) { InitializeComponent(); this.core = core; this.state = state; LoadState(); }
public Reset_Properties(Schematix.FSM.My_Reset reset, Schematix.FSM.Constructor_Core core) { this.core = core; this.reset = reset; InitializeComponent(); LoadData(); }
public My_Signal(Schematix.FSM.Constructor_Core core) { Color = Color.Yellow; if (core.Graph.Language == FSM_Language.VHDL) { this.Type = "Std_Logic"; } if (core.Graph.Language == FSM_Language.Verilog) { this.Type = "reg"; } this.name = ("Variable" + core.Graph.Signals.Count.ToString()); this.Default_Value = "'0'"; this.center_point = new Point(0, 0); this.core = core; Type_inf.avaliable = false; Type_inf.range1 = ""; Type_inf.range2 = ""; mouse_move = MouseMoveCreateNew; mouse_up = MouseUpCreateNew; mouse_down = MouseDownCreateNew; draw = Draw; UpdateBitmapColors(); label_name = new My_Label(name, Color, core, this); }
public My_Graph(Schematix.FSM.Constructor_Core core) { this.core = core; figures = new List <My_Figure>(); selectedFigure = null; selectedFigureList = new List <My_Figure>(); }
public Graph_History(Schematix.FSM.Constructor_Core core) { this.core = core; history = new List <HistoryElem>(); this.elem = new HistoryElem(core.Graph.Clone(), "Start value"); history.Add(elem); }
public SignalPropertiesVerilog(Schematix.FSM.My_Signal signal, Schematix.FSM.Constructor_Core core) { InitializeComponent(); this.signal = signal; this.core = core; LoadData(); }
public My_Line(bool creation, Schematix.FSM.Constructor_Core core) { this.core = core; if (creation == true) { draw = DrawCreateNew; mouse_move = MouseMoveCreateNew; mouse_down = MouseDownCreateNew; mouse_up = MouseUpCreateNew; } else { draw = Draw; mouse_move = MouseMove; mouse_down = MouseDown; mouse_up = MouseUp; } color_mark = new Color[2]; UpdateBitmapColors(); this.name = "L" + core.Graph.Lines.Count.ToString(); condition = ""; this.priority = 0; label_condition = new My_Label(condition, color, core, this); selected = false; selected_mark = 0; creation_pt1 = new Point(); creation_pt2 = new Point(); color = Color.Black; }
public PaperProperties(Schematix.FSM.Constructor_Core core, Schematix.FSM.My_Paper paper) { InitializeComponent(); this.core = core; graph = core.Graph; this.paper = paper; LoadData(); }
public SignalPropertiesVHDL(Schematix.FSM.My_Signal signal, Schematix.FSM.Constructor_Core core) { InitializeComponent(); this.signal = signal; this.core = core; comboBoxGenType.Parent = this; comboBoxGenType.Location = new Point(12, 95); LoadData(); }
public My_Constant(Schematix.FSM.Constructor_Core core) : base(core) { Gen_Type = GenerationType.Generic; Color = Color.Green; base.name = ("Constant" + core.Graph.Constants.Count.ToString()); base.label_name.Text = name + " = " + Default_Value; }
public My_Port(Schematix.FSM.Constructor_Core core) : base(core) { Color = Color.Aqua; this.Direction = PortDirection.In; this.Port_Type = PortType.Registered; base.name = ("Port" + core.Graph.Ports.Count.ToString()); base.label_name.Text = name; }
public FormHistory(Schematix.FSM.Constructor_Core core) { InitializeComponent(); this.core = core; foreach (Schematix.FSM.HistoryElem history_elem in core.Graph_History.History) { listBoxHistory.Items.Add(history_elem.Name); } }
private Point Creation_Point; // используется при создании обьекта public My_Reset(Schematix.FSM.Constructor_Core core) { this.core = core; this.res_type = Reset_Type.Synchonous; mouse_down = MouseDownCreateNew; mouse_move = MouseMoveCreateNew; mouse_up = MouseUpCreateNew; draw = Draw; UpdateBitmapColors(); }
public My_Paper(Schematix.FSM.Constructor_Core core) { this.core = core; this.form = core.form; if (form != null) { this.BGColor = form.BackColor; } this.scale = 1; DrawBorder = true; DrawGrig = true; LineColor = Color.Green; }
public CommentProperties(Schematix.FSM.My_Comment comment, Schematix.FSM.Constructor_Core core) { InitializeComponent(); this.comment = comment; this.core = core; Point Loc = new Point(comment.rect.Location.X + core.Paper.ClientStartPoint.X, comment.rect.Location.Y + core.Paper.ClientStartPoint.Y); Location = Loc; Schematix.FSM.Constructor_Core.SetColorText(labelColor, comment.color); colorDialog1.Color = comment.color; richTextBoxCommentText.Text = comment.name; BackColor = comment.color; }
public My_Label(string text, Color color, Schematix.FSM.Constructor_Core core, My_Figure Owner) { this.Owner = Owner; this.Color = color; this.Text = text; this.core = core; mouse_down = MouseDown; mouse_move = MouseMove; mouse_up = MouseUp; draw = Draw; UpdateBitmapColors(); }
public LineProperties(Schematix.FSM.My_Line line, Schematix.FSM.Constructor_Core core) { InitializeComponent(); this.line = line; this.core = core; textBoxName.Text = line.name; numericUpDownPriority.Value = line.priority; richTextBoxCondition.Text = line.condition; richTextBoxAction.Text = line.Action; Schematix.FSM.Constructor_Core.SetColorText(labelColor, line.color); comboBoxStyle.Items.Clear(); comboBoxStyle.Items.Add(Schematix.FSM.My_Line.DrawningStyle.DrawningBezier); comboBoxStyle.Items.Add(Schematix.FSM.My_Line.DrawningStyle.DrawningCurve); comboBoxStyle.SelectedItem = line.DrawStyle; }
public FSM(ProjectExplorer.ProjectElement projectElement) : base(projectElement) { InitializeComponent(); constructor1.core.UpdateHistory += new Schematix.FSM.Constructor_Core.UpdateHistoryDelegate(core_UpdateHistory); constructorCore = constructor1.core; try { constructor1.core.OpenFile(projectElement.AbsolutePath); } catch (Exception ex) { //Не удалось открыть файл Schematix.Core.Logger.Log.Error(string.Format("Could not open FSM file: {0}", projectElement.Path), ex); MessageBox.Show(string.Format("Could not open FSM file: {0}", projectElement.AbsolutePath), "Could not open file", MessageBoxButton.OK, MessageBoxImage.Error); } }
public My_Comment(Rectangle rect, string name, Schematix.FSM.Constructor_Core core) { this.core = core; this.rect = rect; this.name = name; mouse_move = MouseMoveCreateNew; mouse_up = MouseUpCreateNew; mouse_down = MouseDownCreateNew; draw = Draw; selected_mark = 0; color_name = Color.FromArgb(255, 0, 0, 0); color_marks = new Color[8]; UpdateBitmapColors(); color = Color.YellowGreen; color_name = Color.Black; creation_flag = true; }
public My_Line(My_State s1, My_State s2, string name, string condition, Schematix.FSM.Constructor_Core core) { this.core = core; this.state_begin = s1; this.state_end = s2; this.name = name; this.condition = condition; this.color = Color.Black; this.priority = 0; selected = false; selected_mark = 0; creation_pt1 = new Point(); creation_pt2 = new Point(); this.label_condition = new My_Label(condition, color, core, this); this.label_condition.Owner = this; color_mark = new Color[2]; UpdateBitmapColors(); /* * if ((s1.CenterPoint.X == s2.CenterPoint.X) && (s1.CenterPoint.Y == s2.CenterPoint.Y)) * { * angle1 = s1.rect.Location; * angle2 = new Point(s1.rect.Location.X, s1.rect.Location.Y + s1.rect.Height); * } * else * { * int deltax = (state_end.CenterPoint.X - state_begin.CenterPoint.X) / 2; * int deltay = (state_end.CenterPoint.Y - state_begin.CenterPoint.Y) / 2; * * angle1 = new Point((state_begin.CenterPoint.X + deltax), (state_begin.CenterPoint.Y + deltay)); * angle2 = new Point((state_end.CenterPoint.X - deltax), (state_end.CenterPoint.Y - deltay)); * } */ CreateLine(s1, s2); mouse_move = MouseMove; mouse_down = MouseDown; mouse_up = MouseUp; draw = Draw; }
public My_State(Rectangle rect, string name, string condition, Schematix.FSM.Constructor_Core core) { this.core = core; this.rect = rect; this.name = name; this.condition = condition; this.ActivityInput = ""; this.ActivityExit = ""; mouse_move = MouseMoveCreateNew; mouse_up = MouseUpCreateNew; mouse_down = MouseDownCreateNew; draw = Draw; selected_mark = 0; color_marks = new Color[8]; UpdateBitmapColors(); color = Color.Orange; color_name = Color.Black; label_name = new My_Label(name, color, core, this); creation_flag = true; }
public My_Line(My_State s1, My_State s2, Schematix.FSM.Constructor_Core core) : this(s1, s2, ("L" + core.Graph.Lines.Count.ToString()), " ", core) { }
public My_Line(My_State s1, My_State s2, string name, Schematix.FSM.Constructor_Core core) : this(s1, s2, name, " ", core) { }
public My_Constant(string name, string Type, string Default_Value, Point center_point, GenerationType Gen_Type, Schematix.FSM.Constructor_Core core) : base(name, Type, Default_Value, center_point, core) { this.Gen_Type = Gen_Type; Color = Color.Green; }
public My_Comment(Rectangle rect, Schematix.FSM.Constructor_Core core) : this(rect, ("Comment #" + core.Graph.Comments.Count.ToString()), core) { }
public My_Signal(string name, string Type, string Default_Value, Point center_point, Schematix.FSM.Constructor_Core core) { Color = Color.Yellow; this.Type = Type; this.name = name; this.Default_Value = Default_Value; this.center_point = center_point; this.core = core; Type_inf.avaliable = false; Type_inf.range1 = ""; Type_inf.range2 = ""; mouse_move = MouseMove; mouse_up = MouseUp; mouse_down = MouseDown; draw = Draw; UpdateBitmapColors(); label_name = new My_Label(name, Color, core, this); }
public My_State(Schematix.FSM.Constructor_Core core) : this(new Rectangle(-80, -80, 40, 40), core) { }
public My_State(Rectangle rect, string name, Schematix.FSM.Constructor_Core core) : this(rect, name, "", core) { }
public My_State(Rectangle rect, Schematix.FSM.Constructor_Core core) : this(rect, ("S" + core.Graph.States.Count.ToString()), "", core) { }
public My_Port(string name, string Type, Point center_point, Schematix.FSM.Constructor_Core core) : base(name, Type, null, center_point, core) { Color = Color.Aqua; }