本文整理汇总了C#中Gtk.RowActivatedArgs类的典型用法代码示例。如果您正苦于以下问题:C# RowActivatedArgs类的具体用法?C# RowActivatedArgs怎么用?C# RowActivatedArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RowActivatedArgs类属于Gtk命名空间,在下文中一共展示了RowActivatedArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:7,代码来源:ThreadPad.cs
示例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);
}
}
开发者ID:jira-sarec,项目名称:ICSE-2012-TraceLab,代码行数:14,代码来源:WelcomePageWidget.cs
示例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);
}
开发者ID:segaman,项目名称:monodevelop,代码行数:10,代码来源:ExceptionCaughtDialog.cs
示例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);
}
}
开发者ID:akkgr,项目名称:dms,代码行数:10,代码来源:MainWindow.cs
示例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();
}
开发者ID:QualitySolution,项目名称:Bazar,代码行数:12,代码来源:AccountableDebts.cs
示例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));
}
}
开发者ID:emtees,项目名称:old-code,代码行数:22,代码来源:FindBar.cs
示例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 ();
}
开发者ID:CobaCitizen,项目名称:MyDrives,代码行数:17,代码来源:MainWindow.cs
示例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());
}
开发者ID:brandonprry,项目名称:volatile_reader,代码行数:19,代码来源:RegistryReader.cs
示例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 ();
}
}
开发者ID:gsterjov,项目名称:fusemc,代码行数:16,代码来源:Theatre.cs
示例10: TreeViewRowActivated
void TreeViewRowActivated (object o, RowActivatedArgs args)
{
if (CanMoveToNextPage && IsSolutionTemplateOnActivatedRow ((Gtk.TreeView)o, args)) {
MoveToNextPage ();
}
}
开发者ID:gAdrev,项目名称:monodevelop,代码行数:6,代码来源:GtkNewProjectDialogBackend.cs
示例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);
}
}
开发者ID:LongoMatch,项目名称:longomatch,代码行数:7,代码来源:ProjectListWidget.cs
示例12: OnRowActivated
void OnRowActivated (object o, RowActivatedArgs args)
{
OnTaskJumpto (null, null);
}
开发者ID:segaman,项目名称:monodevelop,代码行数:4,代码来源:ErrorListPad.cs
示例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();
}
}
开发者ID:revenz,项目名称:iMeta,代码行数:13,代码来源:TvShowGui.cs
示例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);
}
开发者ID:coler706,项目名称:mathtextrecognizer,代码行数:16,代码来源:SymbolLabelDialog.cs
示例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) {
}
}
}
开发者ID:kdubau,项目名称:monodevelop,代码行数:17,代码来源:ExceptionCaughtDialog.cs
示例16: HandleRowActivated
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;
}
开发者ID:skyronic,项目名称:TFAddin,代码行数:17,代码来源:CommentWidget.cs
示例17: TreeviewSearchResultsRowActivated
void TreeviewSearchResultsRowActivated(object o, RowActivatedArgs args)
{
OpenSelectedMatches ();
}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:4,代码来源:SearchResultWidget.cs
示例18: HandleRowActivated
private void HandleRowActivated(object o, RowActivatedArgs args)
{
// The double click to activate will have already selected the layer.
PintaCore.Actions.Layers.Properties.Activate ();
}
开发者ID:Kharevich,项目名称:Pinta,代码行数:5,代码来源:LayersListWidget.cs
示例19: OnRowActivated
void OnRowActivated(object sender, RowActivatedArgs a)
{
TreeIter iter;
if (store.GetIter (out iter, a.Path))
Toggle (iter);
}
开发者ID:slluis,项目名称:monodevelop-prehistoric,代码行数:6,代码来源:AddInManagerDialog.cs
示例20: RowActivated
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);
}
}
开发者ID:ystk,项目名称:debian-gtk-sharp2,代码行数:10,代码来源:DemoMain.cs
注:本文中的Gtk.RowActivatedArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论