상속: Gtk.EventBox
예제 #1
0
 public override void Dispose()
 {
     view = null;
     base.Dispose ();
 }
예제 #2
0
 public ProfilerViewContent()
 {
     view = new ProfileView ();
     view.Show ();
 }
예제 #3
0
파일: MainWindow.cs 프로젝트: mono/emveepee
 void Refresh(ProfileView contents)
 {
     Gtk.Application.Invoke (delegate {
         if (contents.LoadProfile (proc.LogFile)) {
             if (log_info == null || log_info.Filename != proc.LogFile) {
                 log_info = new LogInfo (proc.LogFile, log_info == null ? null : log_info.Detail);
                 history.LogFiles.Add (log_info);
             }
             save_action.Sensitive = true;
             show_system_nodes_action.Sensitive = contents.SupportsFiltering;
         }
     });
 }
예제 #4
0
파일: MainWindow.cs 프로젝트: mono/emveepee
 void StartProfile(ProfileConfiguration config)
 {
     ProfileView view = new ProfileView ();
     view.Show ();
     View = view;
     logging_enabled_action.Visible = true;
     logging_enabled_action.Active = config.StartEnabled;
     proc = new ProfilerProcess (config);
     proc.Paused += delegate { Refresh (view); };
     proc.Exited += delegate { Refresh (view); logging_enabled_action.Visible = false; };
     proc.Start ();
     if (config.TargetPath.EndsWith (".aspx"))
         GLib.Timeout.Add (5000, delegate { ShowBrowser (config.TargetPath); return false; });
     log_info = new LogInfo (proc.LogFile, config.ToString ());
     history.LogFiles.Prepend (log_info);
     history.Configs.Prepend (config);
 }
예제 #5
0
파일: MainWindow.cs 프로젝트: mono/emveepee
 void OpenProfile(string filename)
 {
     ProfileView view = new ProfileView ();
     if (view.LoadProfile (filename)) {
         view.Show ();
         View = view;
         logging_enabled_action.Visible = false;
         save_action.Sensitive = true;
         show_system_nodes_action.Sensitive = view.SupportsFiltering;
         log_info = null;
         foreach (LogInfo info in history.LogFiles) {
             if (info.Filename == filename) {
                 log_info = info;
                 break;
             }
         }
         if (log_info == null)
             log_info = new LogInfo (filename, null);
         history.LogFiles.Prepend (log_info);
     }
 }