mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:22:43 +00:00 
			
		
		
		
	 9da121f837
			
		
	
	
		9da121f837
		
	
	
	
	
		
			
			We now use GLazyWidget for all the secondary tabs, which makes the program start up way faster than before. There's a noticeable delay when you click on the "PCI Devices" tab for the first time, but that's definitely better than always eating that delay before seeing a window at all. :^)
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			436 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			436 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/Function.h>
 | |
| #include <LibGUI/GTableView.h>
 | |
| #include <unistd.h>
 | |
| 
 | |
| class GraphWidget;
 | |
| class ProcessModel;
 | |
| 
 | |
| class ProcessTableView final : public GTableView {
 | |
|     C_OBJECT(ProcessTableView)
 | |
| public:
 | |
|     virtual ~ProcessTableView() override;
 | |
| 
 | |
|     pid_t selected_pid() const;
 | |
| 
 | |
|     void refresh();
 | |
| 
 | |
|     Function<void(pid_t)> on_process_selected;
 | |
| 
 | |
| private:
 | |
|     explicit ProcessTableView(GWidget* parent = nullptr);
 | |
| };
 |