protected virtual void OnEffectListRowActivated(object o, Gtk.RowActivatedArgs args)
 {
     if (this.buttonOk.Sensitive)
     {
         this.buttonOk.Click();
     }
 }
Esempio n. 2
0
 protected virtual void OnNodeActivated(object sender, Gtk.RowActivatedArgs args)
 {
     if (TypeActivated != null && SelectedType != null)
     {
         TypeActivated(this, EventArgs.Empty);
     }
 }
Esempio n. 3
0
		void RowActivated(object sender, RowActivatedArgs args)
		{
			TreeIter it;
			GtkStore.GetIter(out it, args.Path);
			int id = (int)GtkStore.GetValue(it, ThreadsStore.ColumnID);
			remoteStore.SelectThread(id);
		}
Esempio n. 4
0
 void OnRowActivated(object s, Gtk.RowActivatedArgs args)
 {
     if (ComponentActivated != null)
     {
         ComponentActivated(this, args);
     }
 }
Esempio n. 5
0
 void OnRowActivated(object sender, Gtk.RowActivatedArgs args)
 {
     // Pass this on to the TaskWindow
     if (RowActivated != null)
     {
         RowActivated(sender, args);
     }
 }
Esempio n. 6
0
        protected void OnYTreeViewDriversRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            var driverId = yTreeViewDrivers.GetSelectedId();

            yTreeAddresses.RepresentationModel = new ViewModel.DriverRouteListAddressesVM(uow, driverId);
            yTreeAddresses.RepresentationModel.UpdateNodes();
            LoadTracksForDriver(driverId);
        }
Esempio n. 7
0
 protected virtual void OnPlaylisttreeview1RowActivated(object o, Gtk.RowActivatedArgs args)
 {
     if (PlayListNodeSelected != null)
     {
         TreeIter iter;
         Model.GetIterFromString(out iter, args.Path.ToString());
         PlayListNodeSelected(Model.GetValue(iter, 0) as PlayListPlay);
     }
 }
        private void OnUserListRowActivated(object sender, Gtk.RowActivatedArgs e)
        {
            Node node = GetSelectedNode();

            if (node != null)
            {
                Gui.StartPrivateChat(node.Network, node);
            }
        }
Esempio n. 9
0
        private void _sceneEditorGameElementsTreeView_RowActivated(object o, Gtk.RowActivatedArgs args)
        {
            if (_sceneEditorGameElementsTreeStore.GetIter(out Gtk.TreeIter it, args.Path))
            {
                string name = (string)_sceneEditorGameElementsTreeStore.GetValue(it, 1);

                _sceneGLWidget.SelectGameElement(name);
            }
        }
 /// <summary>
 /// Opens experiment when double clicked on the row
 /// </summary>
 /// <param name="source">Source.</param>
 /// <param name="args">Arguments.</param>
 private void OpenExperimentOnRowActivated(object source, RowActivatedArgs args)
 {
     TreeIter item;
     if(this.recentExperimentNodeView.Selection.GetSelected(out item)) 
     {
         RecentExperimentReference expRef = (RecentExperimentReference)this.recentExperimentNodeView.Model.GetValue(item, 1);
         OpenExperimentAction.OpenExperiment(expRef.FullPath, m_applicationContext);
     }
 }
Esempio n. 11
0
        protected virtual void OnNodeview3RowActivated(object o, Gtk.RowActivatedArgs args)
        {
            NodeView v      = (NodeView)o;
            var      lesson = (LessonNode)v.NodeSelection.SelectedNode;

            if (lesson != null)
            {
                openLesson.Invoke(this, new OpenLessonEventArgs(lesson));
            }
        }
Esempio n. 12
0
 void HandleTreeview1handleRowActivated(object o, RowActivatedArgs args)
 {
     TreeIter iter;
     TreeView tv = o as TreeView;
     if (tv.Model.GetIter(out iter, args.Path))
     {
         string title  = tv.Model.GetValue(iter,0).ToString();
         OpenPanel(title);
     }
 }
Esempio n. 13
0
		void HandleRowActivated (object o, RowActivatedArgs args)
		{
			Gtk.TreeIter it;
			if (!stackStore.GetIter (out it, args.Path))
				return;
			string file = (string) stackStore.GetValue (it, 1);
			int line = (int) stackStore.GetValue (it, 2);
			if (!string.IsNullOrEmpty (file))
				IdeApp.Workbench.OpenDocument (file, line, 0);
		}
Esempio n. 14
0
        protected virtual void OnTreeviewRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            object item = GetValueFromPath(args.Path);

            if (!(item is TimelineEvent))
            {
                return;
            }

            Config.EventsBroker.EmitLoadEvent(item as TimelineEvent);
        }
Esempio n. 15
0
 protected virtual void OnTreeviewrefRowActivated(object o, Gtk.RowActivatedArgs args)
 {
     if (SelectMode)
     {
         buttonOk.Click();
     }
     else
     {
         editAction1.Activate();
     }
 }
    protected void ontreeviewRowActived(object sender, Gtk.RowActivatedArgs e)
    {
        var      model = treeview1.Model;
        TreeIter iter;

        model.GetIter(out iter, e.Path);
        var value = model.GetValue(iter, 0);

        selectedItem     = value.ToString();
        lblSelected.Text = selectedItem;
    }
Esempio n. 17
0
                protected virtual void OnTvListRowActivated(object o, Gtk.RowActivatedArgs args)
                {
                    TreeModel model;
                    TreeIter  iter;

                    if (tv_list.Selection.GetSelected(out model, out iter))
                    {
                        controller.MediaPlayer_LoadFile(String.Format("{0}", model.GetValue(iter, 0)));
                        controller.MediaPlayer_Play();
                    }
                }
        protected virtual void OnTreeviewRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            Gtk.TreeIter iter;
            Model.GetIter(out iter, args.Path);
            Player player = (Player)Model.GetValue(iter, 0);

            if (PlayerClicked != null)
            {
                PlayerClicked(player);
            }
        }
Esempio n. 19
0
    // Al realizar el doble click soble la lista toma el valor y lo coloca en el
    // texto que va buscar
    public void OnRowActivated(object o, Gtk.RowActivatedArgs args)
    {
        TreeModel model;
        TreeIter  iterSelected;

        if (lista_de_Pacientes.Selection.GetSelected(out model, out iterSelected))
        {
            string seleccion_lista = (string)model.GetValue(iterSelected, 1);
            entry_app_nom_exp.Text = seleccion_lista;
        }
    }
Esempio n. 20
0
        protected virtual void OnTreeviewRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            Gtk.TreeIter iter;
            Model.GetIter(out iter, args.Path);
            Category tNode = (Category)Model.GetValue(iter, 0);

            if (CategoryClicked != null)
            {
                CategoryClicked(tNode);
            }
        }
Esempio n. 21
0
        protected virtual void OnFailedTestActivated(object sender, Gtk.RowActivatedArgs args)
        {
            TreeIter it;

            failedStore.GetIter(out it, args.Path);
            UnitTest t = (UnitTest)failedStore.GetValue(it, 0);

            if (t != null)
            {
                FillDetails(t, true);
            }
        }
Esempio n. 22
0
 protected void OnTreeviewDebtsRowActivated(object o, RowActivatedArgs args)
 {
     TreeIter iter;
     int itemid;
     treeviewDebts.Selection.GetSelected(out iter);
     itemid = Convert.ToInt32(DebtsTreeStore.GetValue(iter,0));
     AccountableSlips winSlips = new AccountableSlips();
     winSlips.FillByEmployee(itemid);
     winSlips.Show();
     winSlips.Run();
     winSlips.Destroy();
 }
Esempio n. 23
0
        void OnRowActivated(object s, Gtk.RowActivatedArgs args)
        {
            TreeIter it;

            tree.Selection.GetSelected(out it);
            ThreadInfo t = store.GetValue(it, (int)Columns.Object) as ThreadInfo;

            if (t != null)
            {
                DebuggingService.ActiveThread = t;
            }
        }
Esempio n. 24
0
		/* private void KeyPressed (object o, KeyPressEventArgs args)
		{
			Console.WriteLine ("key {0}", args.Event.keyval);
			switch (args.Event.keyval) {
			case 65293: //FIXME: Enter
				//Select ();
				break;
			}
			} */

		private void RowActivated (object o, RowActivatedArgs args)
		{
			TreeModel store = (o as TreeView).Model;
			TreeIter iter;

			if (store.GetIter (out iter, args.Path)) {
				browser.SelectType ((string) store.GetValue (iter, 1));
				browser.SelectAllMembers ();
				if (!(bool) store.GetValue (iter, 3))
					browser.SelectMember ((string) store.GetValue (iter, 0));
			}
		}
Esempio n. 25
0
    protected virtual void OnTreeview1RowActivated(object o, Gtk.RowActivatedArgs args)
    {
        editing = true;

        MessageDialog dlg = new MessageDialog(this, DialogFlags.DestroyWithParent, MessageType.Info, ButtonsType.Ok, "!");

        dlg.Run();
        dlg.Destroy();

        liststore.GetIter(out active_tree_iter, args.Path);
        entry1.Text = liststore.GetValue(active_tree_iter, 0).ToString();
        entry2.Text = liststore.GetValue(active_tree_iter, 1).ToString();
    }
        protected void OnTvUsuariosRolRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            var      model = tvUsuariosRol.Model;
            TreeIter iter;

            model.GetIter(out iter, args.Path);

            var idusuario_rol = model.GetValue(iter, 0);
            var fechaCreacion = model.GetValue(iter, 1);

            this.txtIDUsuarioRol.Text = Convert.ToString(idusuario_rol);
            this.txtFecha.Text        = fechaCreacion.ToString();
        }
Esempio n. 27
0
        /***************************************
         * MÉTODOS PROPIOS DEL TREEVIEW (TABLA) *
         ****************************************/

        protected void OnTvFacturasRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            TreeModel model;
            TreeIter  iter;

            if (TvFacturas.Selection.GetSelected(out model, out iter))
            {
                LimpiarDetFac();
                cod.CargarDetFacturas(model.GetValue(iter, 0).ToString());
                TvDetalles.Model = cod.GetReptDeta1();
            }
            notebook2.NextPage();
        }
Esempio n. 28
0
    void on_load_row_double_clicked(object o, Gtk.RowActivatedArgs args)
    {
        TreeModel model;
        TreeIter  iter;

        if (treeview_load.Selection.GetSelected(out model, out iter))
        {
            //put selection in selected
            //selected = (string) model.GetValue (iter, 0);

            //activate on_button_accept_clicked()
            button_next.Activate();
        }
    }
Esempio n. 29
0
        protected virtual void OnTreeviewRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            object item = GetValueFromPath(args.Path);

            if (!(item is LMTimelineEvent))
            {
                return;
            }

            App.Current.EventsBroker.Publish <LoadEventEvent> (
                new LoadEventEvent {
                TimelineEvent = item as LMTimelineEvent
            }
                );
        }
Esempio n. 30
0
    protected virtual void OnRowActivated(object o, Gtk.RowActivatedArgs args)
    {
        TreeIter iter;

        if (filenames.Model.GetIterFromString(out iter, args.Path.ToString()))
        {
            string filename = filenames.Model.GetValue(iter, 1).ToString();
            if (verbose)
            {
                Console.WriteLine("RowActivated " + filename);
            }
            SetCurrentNote(filename);
            preview.GrabFocus();
        }
    }
Esempio n. 31
0
    void on_row_double_clicked(object o, Gtk.RowActivatedArgs args)
    {
        if (activateRowAcceptsWindow)
        {
            TreeView  tv = (TreeView)o;
            TreeModel model;
            TreeIter  iter;

            if (tv.Selection.GetSelected(out model, out iter))
            {
                //activate on_button_accept_clicked()
                button_accept.Activate();
            }
        }
    }
Esempio n. 32
0
        protected virtual void OnTreeviewRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            Gtk.TreeIter iter;
            this.Model.GetIter(out iter, args.Path);
            object item = this.Model.GetValue(iter, 0);

            if (!(item is Play))
            {
                return;
            }

            if (TimeNodeSelected != null && !projectIsLive)
            {
                this.TimeNodeSelected(item as Play);
            }
        }
Esempio n. 33
0
        protected virtual void OnActionsRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            TreeIter iter;

            if (!actionModel.GetIter(out iter, args.Path))
            {
                return;
            }

            if (actionModel.IterDepth(iter) == 0)
            {
                var value  = (string)actionModel.GetValue(iter, 0);
                var window = new ActionInvocationWindow(service, service.Actions[value]);
                window.ShowAll();
            }
        }
Esempio n. 34
0
    protected void OnTreeview1RowActivated(object o, RowActivatedArgs args)
    {
        if (args.Path.Indices.Length == 1) {
            int index = args.Path.Indices [0];
            using (MaxbukAdmin.EditDialog frm = new MaxbukAdmin.EditDialog (_disks[index])) {
                frm.TransientFor = this;
                frm.Modal = true;
                frm.SetPosition(WindowPosition.CenterOnParent);
                frm.ShowAll ();

                ResponseType response = (ResponseType)frm.Run ();

            }

        }
        //throw new NotImplementedException ();
    }
Esempio n. 35
0
        void OnRowActivated(object sender, Gtk.RowActivatedArgs args)
        {
            // TODO: Store GUID hidden in model; use instead of title
            Gtk.TreeIter iter;
            if (!model.GetIter(out iter, args.Path))
            {
                return;
            }

            string noteTitle = (string)model.GetValue(iter, 0 /* note title */);

            Note note = Tomboy.DefaultNoteManager.Find(noteTitle);

            if (note != null)
            {
                note.Window.Present();
            }
        }
        void HandleRowActivated(object o, RowActivatedArgs args)
        {
            TreeIter it;
            _tv.Selection.GetSelected(out it);
            object ob = _store.GetValue(it, 1);

            if (ob is ValueKey)
            {
                ValueKeyInfo info = new ValueKeyInfo(ob as ValueKey);
                info.Show();
            }
            else if (ob is NodeKey)
            {
                NodeKeyInfo info = new NodeKeyInfo(ob as NodeKey);
                info.Show();
            }
            else
                throw new Exception("Don't know type: " + ob.GetType().ToString());
        }
Esempio n. 37
0
        void RowClicked(object sender, Gtk.RowActivatedArgs args)
        {
            //arg = args;
            var      model = RequestTreeView.Model;
            TreeIter iter;

            model.GetIter(out iter, args.Path);
            currIter = iter;

            var title     = model.GetValue(iter, 0);
            var body      = model.GetValue(iter, 1);
            var user      = model.GetValue(iter, 2);
            var createdAt = model.GetValue(iter, 3);
            var status    = model.GetValue(iter, 4);
            var number    = model.GetValue(iter, 5);

            currentRow = number.ToString();
            //Console.WriteLine ("requestID: " + requestID + "\ttitle: " + title);

            textview1.Buffer.Text = "Title: " + title + "\nNumber: " + number + "\nUser: "******"\nCreated: " + createdAt + "\n\nComments:\n\n" + body;
        }
Esempio n. 38
0
        protected void OnTvAsientosContablesRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            var      model = tvAsientosContables.Model;
            TreeIter iter;

            model.GetIter(out iter, args.Path);

            var idAsiento     = model.GetValue(iter, 0);
            var codigoAsiento = model.GetValue(iter, 1);
            var cuentaDebeID  = model.GetValue(iter, 2);
            var importeDebe   = model.GetValue(iter, 3);
            var cuentaHaberID = model.GetValue(iter, 4);
            var importeHaber  = model.GetValue(iter, 5);
            var fecha_asiento = model.GetValue(iter, 7);

            this.txtIDAsiento.Text     = Convert.ToString(idAsiento);
            this.txtCodigoAsiento.Text = Convert.ToString(codigoAsiento);
            this.txtCuentaDebe.Text    = cuentaDebeID.ToString();
            this.txtImporteDebe.Text   = importeDebe.ToString();
            this.txtCuentaHaber.Text   = cuentaHaberID.ToString();
            this.txtImporteHaber.Text  = importeHaber.ToString();
            this.txtFechaAsiento.Text  = fecha_asiento.ToString();
        }
Esempio n. 39
0
		void OnRowActivated (object o, RowActivatedArgs args)
		{
			OnTaskJumpto (null, null);
		}
Esempio n. 40
0
 void HandleNodeview1RowActivated(object o, RowActivatedArgs args)
 {
     TreeIter iter;
     store.GetIter(out iter, args.Path);
     GuiComponents.TvEpisodeNodeItem node = store.GetValue(iter, 0) as GuiComponents.TvEpisodeNodeItem;
     if(node == null)
         return; // must be a season parent node
     using(EpisodesEditorGui editor = new EpisodesEditorGui(node.Meta))
     {
         editor.Run();
         editor.Destroy();
     }
 }
Esempio n. 41
0
 protected void OnNodeViewRowActivated(object o, RowActivatedArgs args)
 {
     GotoSelectedFunction();
 }
		/// <summary>
		/// Handles the treeview's row activated event.
		/// </summary>
		/// <param name="sender">
		/// A <see cref="System.Object"/>
		/// </param>
		/// <param name="a">
		/// A <see cref="RowActivatedArgs"/>
		/// </param>
		private void OnSymbolLabelTVRowActivated(object sender, 
		                                          RowActivatedArgs a)
		{
			TreeIter selected; 
			symbolLabelsTV.Selection.GetSelected(out selected);
			EditIter(selected);
		}
 void OnRowActivated(object sender, RowActivatedArgs a)
 {
     TreeIter iter;
     if (store.GetIter (out iter, a.Path))
         Toggle (iter);
 }
		bool IsSolutionTemplateOnActivatedRow (TreeView treeView, RowActivatedArgs args)
		{
			TreeModel model = treeView.Model;
			TreeIter iter;
			if (model.GetIter (out iter, args.Path)) {
				var template = model.GetValue (iter, TemplateColumn) as SolutionTemplate;
				return template != null;
			}
			return false;
		}
Esempio n. 45
0
 private void HandleRowActivated(object o, RowActivatedArgs args)
 {
     // The double click to activate will have already selected the layer.
     PintaCore.Actions.Layers.Properties.Activate ();
 }
Esempio n. 46
0
		void OnRowActivated (object o, RowActivatedArgs args)
		{
			ActivateFrame ();
		}
Esempio n. 47
0
		void StackFrameActivated (object o, RowActivatedArgs args)
		{
			var model = StackTraceTreeView.Model;
			TreeIter iter;

			if (!model.GetIter (out iter, args.Path))
				return;

			var frame = (ExceptionStackFrame) model.GetValue (iter, (int) ModelColumn.StackFrame);

			if (frame != null && !string.IsNullOrEmpty (frame.File))
				IdeApp.Workbench.OpenDocument (frame.File, frame.Line, frame.Column);
		}
 private void OnUserTreeViewRowActivated(object o, RowActivatedArgs args)
 {
     TreeSelection tSelect = UserTreeView.Selection;
        if (tSelect.CountSelectedRows() == 1)
        {
     OnAccessClicked(null, null);
        }
 }
Esempio n. 49
0
		void OnRowActivated (object o, RowActivatedArgs args)
		{
			OnOpen (null, null);
Esempio n. 50
0
        private void OnRowActivate(object o, RowActivatedArgs args)
        {
            TreeIter ti = new TreeIter();
            //filter.GetIter(out ti, args.Path);
            //TreePath childTP = filter.ConvertPathToChildPath(args.Path);
            store.GetIter(out ti, args.Path);

            string pFile = store.GetValue(ti, PATH_ROW).ToString();
            // Full Path
            object tFile = store.GetValue(ti, TYPE_ROW);

            // Typ
            if ((int)tFile != (int)TypeFile.Directory) {
                MainClass.MainWindow.EditorNotebook.Open(pFile);
            }
        }
Esempio n. 51
0
        protected void OnTreeViewRowActivated(object o, RowActivatedArgs args)
        {
            TreeModel model;
            //registro seleccionado
            TreeIter iterSelected;

            if (treeView.Selection.GetSelected (out model, out iterSelected)) {
                string cantidad = (string)model.GetValue (iterSelected, 4);

                SeleccionCantidad pantallaseleccion = new SeleccionCantidad (treeView, cantidad, 1, labelBebidasCalientes);
                pantallaseleccion.Show ();
            }
        }
Esempio n. 52
0
		private void RowActivated (object o, RowActivatedArgs args)
		{
			TreeIter iter;

			if (treeView.Model.GetIter (out iter, args.Path)) {
				Type type = (Type) treeView.Model.GetValue (iter, 1);
				if (type != null)
					Activator.CreateInstance (type);
			}
		}
Esempio n. 53
0
 void HandleTreeviewRowActivated(object o, RowActivatedArgs args)
 {
     var project = treeview.Model.GetValue (args.Path, COL_PROJECT) as ProjectLongoMatch;
     if (project != null && ProjectSelected != null) {
         ProjectSelected (project);
     }
 }
Esempio n. 54
0
        // user double clicked on a media file
        private void tree_activated(object o, RowActivatedArgs args)
        {
            TreeIter iter;
            if (media_store.GetIter (out iter, args.Path))
            {
                Media media = (Media) media_store.GetValue (iter, 0);
                Global.Core.Fuse.MediaControls.LoadMedia (media.Path, Navigate);

                string text = System.IO.Path.GetFileNameWithoutExtension (media.Path);
                Global.Core.Fuse.MediaControls.MediaInfo = "<b>" + Utils.ParseMarkup (text) + "</b>";

                video_widget.QueueDraw ();
                video_widget_fullscreen.QueueDraw ();
            }
        }
		void TreeViewRowActivated (object o, RowActivatedArgs args)
		{
			if (CanMoveToNextPage && IsSolutionTemplateOnActivatedRow ((Gtk.TreeView)o, args)) {
				MoveToNextPage ();
			}
		}
		void TreeviewSearchResultsRowActivated(object o, RowActivatedArgs args)
		{
			OpenSelectedMatches ();
		}
Esempio n. 57
0
		void SearchTreeviewhandleRowActivated (object o, RowActivatedArgs args)
		{
			TreeIter selectedIter;
			if (searchTreeview.Selection.GetSelected (out selectedIter)) {
				var member = (IUnresolvedEntity)(searchMode != SearchMode.Type ? memberListStore.GetValue (selectedIter, 4) : typeListStore.GetValue (selectedIter, 4));
				
				var nav = SearchMember (member);
				if (nav != null) {
					notebook1.Page = 0;
				}
			}
		}
Esempio n. 58
0
		void StackFrameActivated (object o, RowActivatedArgs args)
		{
			var model = StackTraceTreeView.Model;
			TreeIter iter;

			if (!model.GetIter (out iter, args.Path))
				return;

			var frame = (ExceptionStackFrame)model.GetValue (iter, (int)ModelColumn.StackFrame);

			if (frame != null && !string.IsNullOrEmpty (frame.File) && File.Exists (frame.File)) {
				try {
					IdeApp.Workbench.OpenDocument (frame.File, null, frame.Line, frame.Column, MonoDevelop.Ide.Gui.OpenDocumentOptions.Debugger);
				} catch (FileNotFoundException) {
				}
			}
		}
Esempio n. 59
0
 protected void OnTreeviewContractRowActivated(object o, RowActivatedArgs args)
 {
     OnButtonViewClicked(o,EventArgs.Empty);
 }
Esempio n. 60
0
        void HandleRowActivated(object o, RowActivatedArgs args)
        {
            // to retrieve the data
            TreeIter iter = new TreeIter ();

            // get the iterator
            treeStore.GetIter (out iter, args.Path);

            CommentData comment = treeStore.GetValue (iter, 0) as CommentData;

            // set the contentview's text
            contentView.Buffer.Text = comment.Content;

            // enable the reply and the quote buttons
            replyButton.Sensitive = true;
            quoteButton.Sensitive = true;
        }