mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:32:44 +00:00 
			
		
		
		
	 c452528952
			
		
	
	
		c452528952
		
	
	
	
	
		
			
			This will be useful for doing something in response to the user selecting a different process.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			473 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			473 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/Function.h>
 | |
| #include <LibGUI/GTableView.h>
 | |
| #include <unistd.h>
 | |
| 
 | |
| class GraphWidget;
 | |
| class ProcessModel;
 | |
| 
 | |
| class ProcessTableView final : public GTableView {
 | |
| public:
 | |
|     ProcessTableView(GraphWidget&, GWidget* parent);
 | |
|     virtual ~ProcessTableView() override;
 | |
| 
 | |
|     pid_t selected_pid() const;
 | |
| 
 | |
|     void refresh();
 | |
| 
 | |
|     Function<void(pid_t)> on_process_selected;
 | |
| 
 | |
| private:
 | |
|     virtual void model_notification(const GModelNotification&) override;
 | |
| };
 |