Beispiel #1
0
        public Constructor_UserControl()
        {
            InitializeComponent();
            core = new Schematix.FSM.Constructor_Core(this);

            core.ChangeScale(100);
            core.mode = Schematix.FSM.FSM_MODES.MODE_SELECT;
            core.Bitmap.ArrowPaint = true;

            this.MouseDown += core.Constructor_MouseDown;
            this.MouseMove += core.Constructor_MouseMove;
            this.MouseUp   += core.Constructor_MouseUp;
            this.Paint     += core.Constructor_Paint;
            this.KeyDown   += core.Constructor_KeyDown;
            this.KeyUp     += core.Constructor_KeyUp;
            this.DragEnter += new DragEventHandler(core.Constructor_UserControl_DragEnter);

            //Нужно для буфера обмена
            nextClipboardViewer = (IntPtr)User32.SetClipboardViewer(this.Handle);

            //Загрузка настроек по-умолчанию
            core.Paper.BGColor      = Schematix.CommonProperties.Configuration.CurrentConfiguration.FSMOptions.BGColor;
            core.Paper.LineColor    = Schematix.CommonProperties.Configuration.CurrentConfiguration.FSMOptions.BorderColor;
            core.Paper.DrawBorder   = Schematix.CommonProperties.Configuration.CurrentConfiguration.FSMOptions.ShowBorder;
            core.Paper.DrawGrig     = Schematix.CommonProperties.Configuration.CurrentConfiguration.FSMOptions.ShowGrid;
            My_Figure.SelectedColor = Schematix.CommonProperties.Configuration.CurrentConfiguration.FSMOptions.SelectColor;
        }
Beispiel #2
0
        private static void GenerateCodeVerilog(string filePath, Constructor_Core core)
        {
            Schematix.FSM.Verilog_Generator generator = new Schematix.FSM.Verilog_Generator(core);
            string code = generator.GenerateCode();

            System.IO.FileStream   stream = new System.IO.FileStream(filePath, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write);
            System.IO.StreamWriter writer = new System.IO.StreamWriter(stream);
            writer.Write(code);
            writer.Close();
            stream.Close();
        }
Beispiel #3
0
 public My_Comment(Constructor_Core core, Rectangle rect, bool isDraggedState)
 {
     this.core   = core;
     this.rect   = rect;
     color       = Color.Orange;
     color_name  = Color.Black;
     name        = ("Comment" + core.Graph.Comments.Count.ToString());
     mouse_move  = MouseMove;
     mouse_up    = MouseUp;
     mouse_down  = MouseDown;
     draw        = Draw;
     color_marks = new Color[8];
     UpdateBitmapColors();
 }
Beispiel #4
0
 public Verilog_Generator(Constructor_Core core)
 {
     this.graph = core.Graph;
     this.core  = core;
 }
        private string process3;    //процесс в котором выполняются все действия состояний

        public VHDL_Generator(Constructor_Core core)
        {
            this.core  = core;
            this.graph = core.Graph;
        }