本文整理汇总了C#中Gtk.RowActivatedArgs类的典型用法代码示例。如果您正苦于以下问题:C# RowActivatedArgs类的具体用法?C# RowActivatedArgs怎么用?C# RowActivatedArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RowActivatedArgs类属于Gtk命名空间,在下文中一共展示了RowActivatedArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RowActivated
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);
}
示例2: OpenExperimentOnRowActivated
/// <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);
}
}
示例3: HandleRowActivated
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);
}
示例4: HandleTreeview1handleRowActivated
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);
}
}
示例5: OnTreeviewDebtsRowActivated
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();
}
示例6: switch
/* 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));
}
}
示例7: OnTreeview1RowActivated
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 ();
}
示例8: HandleRowActivated
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());
}
示例9: tree_activated
// 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 ();
}
}
示例10: TreeViewRowActivated
void TreeViewRowActivated (object o, RowActivatedArgs args)
{
if (CanMoveToNextPage && IsSolutionTemplateOnActivatedRow ((Gtk.TreeView)o, args)) {
MoveToNextPage ();
}
}
示例11: HandleTreeviewRowActivated
void HandleTreeviewRowActivated(object o, RowActivatedArgs args)
{
var project = treeview.Model.GetValue (args.Path, COL_PROJECT) as ProjectLongoMatch;
if (project != null && ProjectSelected != null) {
ProjectSelected (project);
}
}
示例12: OnRowActivated
void OnRowActivated (object o, RowActivatedArgs args)
{
OnTaskJumpto (null, null);
}
示例13: HandleNodeview1RowActivated
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();
}
}
示例14: OnSymbolLabelTVRowActivated
/// <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);
}
示例15: StackFrameActivated
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) {
}
}
}