public SignalsEditorBackend (SignalsEditorFrontend frontend)
		{
			this.frontend = frontend;
			
			tree = new Gtk.TreeView ();
			store = new Gtk.TreeStore (typeof(string), typeof(string), typeof(bool), typeof(bool), typeof(bool), typeof(int));
			tree.Model = store;
			tree.RowActivated += new Gtk.RowActivatedHandler (OnRowActivated);
			
			Gtk.CellRendererText crtSignal = new Gtk.CellRendererText ();
			
			Gtk.CellRendererText crtHandler = new Gtk.CellRendererText ();
			crtHandler.Editable = true;
			crtHandler.Edited += new Gtk.EditedHandler (OnHandlerEdited);
			
			Gtk.CellRendererToggle crtogAfter = new Gtk.CellRendererToggle ();
			crtogAfter.Activatable = true;
			crtogAfter.Toggled += new Gtk.ToggledHandler (OnAfterToggled);
			
			tree.AppendColumn (Catalog.GetString ("Signal"), crtSignal, "text", ColSignal, "weight", ColSignalTextWeight);
			tree.AppendColumn (Catalog.GetString ("Handler"), crtHandler, "markup", ColHandler, "visible", ColIsSignal);
			tree.AppendColumn (Catalog.GetString ("After"), crtogAfter, "active", ColAfter, "visible", ColHasHandler);
			tree.Columns[0].Resizable = true;
			tree.Columns[1].Resizable = true;
			tree.Columns[2].Resizable = true;
			Add (tree);
			ShowAll ();
		}
Ejemplo n.º 2
0
        public SignalsEditorBackend(SignalsEditorFrontend frontend)
        {
            this.frontend = frontend;

            tree               = new Gtk.TreeView();
            store              = new Gtk.TreeStore(typeof(string), typeof(string), typeof(bool), typeof(bool), typeof(bool), typeof(SignalDescriptor), typeof(Signal), typeof(int));
            tree.Model         = store;
            tree.RowActivated += new Gtk.RowActivatedHandler(OnRowActivated);

            Gtk.CellRendererText crtSignal = new Gtk.CellRendererText();

            Gtk.CellRendererText crtHandler = new Gtk.CellRendererText();
            crtHandler.Editable = true;
            crtHandler.Edited  += new Gtk.EditedHandler(OnHandlerEdited);

            Gtk.CellRendererToggle crtogAfter = new Gtk.CellRendererToggle();
            crtogAfter.Activatable = true;
            crtogAfter.Toggled    += new Gtk.ToggledHandler(OnAfterToggled);

            tree.AppendColumn(Catalog.GetString("Signal"), crtSignal, "text", ColSignal, "weight", ColSignalTextWeight);
            tree.AppendColumn(Catalog.GetString("Handler"), crtHandler, "markup", ColHandler, "visible", ColIsSignal);
            tree.AppendColumn(Catalog.GetString("After"), crtogAfter, "active", ColAfter, "visible", ColHasHandler);
            tree.Columns[0].Resizable = true;
            tree.Columns[1].Resizable = true;
            tree.Columns[2].Resizable = true;
            Add(tree);
            ShowAll();
        }
Ejemplo n.º 3
0
 public SignalsEditorEditSession GetSignalsWidget(SignalsEditorFrontend frontend)
 {
     if (signalsWidget == null)
     {
         signalsWidget = new SignalsEditorEditSession(frontend);
         signalsWidget.ProjectBackend      = activeProject;
         signalsWidget.Editor.TargetObject = targetViewerObject;
     }
     return(signalsWidget);
 }
Ejemplo n.º 4
0
        public SignalsEditorEditSession CreateSignalsWidgetPlug(SignalsEditorFrontend frontend, uint socketId)
        {
            Gtk.Plug plug = new Gtk.Plug(socketId);
            plug.Decorated = false;
//			Gtk.Window plug = new Gtk.Window ("");
            SignalsEditorEditSession session = GetSignalsWidget(frontend);

            plug.Add(session.Editor);
            plug.Show();
            return(session);
        }
Ejemplo n.º 5
0
 internal SignalsEditor(Application app) : base(app)
 {
     frontend = new SignalsEditorFrontend(this);
 }
Ejemplo n.º 6
0
 public SignalsEditorBackend(SignalsEditorFrontend frontend, ProjectBackend project) : this(frontend)
 {
     ProjectBackend = project;
 }
Ejemplo n.º 7
0
 public SignalsEditorEditSession(SignalsEditorFrontend frontend)
 {
     backend = new SignalsEditorBackend(frontend);
 }
Ejemplo n.º 8
0
		internal SignalsEditor (Application app): base (app)
		{
			frontend = new SignalsEditorFrontend (this);
		}
		public SignalsEditorBackend (SignalsEditorFrontend frontend, ProjectBackend project): this (frontend)
		{
			ProjectBackend = project;
		}
		public SignalsEditorEditSession (SignalsEditorFrontend frontend)
		{
			backend = new SignalsEditorBackend (frontend);
		}
Ejemplo n.º 11
0
		public SignalsEditorEditSession CreateSignalsWidgetPlug (SignalsEditorFrontend frontend, uint socketId)
		{
			Gtk.Plug plug = new Gtk.Plug (socketId);
			plug.Decorated = false;
//			Gtk.Window plug = new Gtk.Window ("");
			SignalsEditorEditSession session = GetSignalsWidget (frontend);
			plug.Add (session.Editor);
			plug.Show ();
			return session;
		}
Ejemplo n.º 12
0
		public SignalsEditorEditSession GetSignalsWidget (SignalsEditorFrontend frontend)
		{
			if (signalsWidget == null) {
				signalsWidget = new SignalsEditorEditSession (frontend);
				signalsWidget.ProjectBackend = activeProject;
				signalsWidget.Editor.TargetObject = targetViewerObject;
			}
			return signalsWidget;
		}