29 lines
		
	
	
		
			576 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			576 B
		
	
	
	
		
			C++
		
	
	
	
| #ifndef REFERENCEMANAGER_H
 | |
| #define REFERENCEMANAGER_H
 | |
| 
 | |
| #include <QTabWidget>
 | |
| #include <QPushButton>
 | |
| #include "ReferenceView.h"
 | |
| 
 | |
| class ReferenceManager : public QTabWidget
 | |
| {
 | |
|     Q_OBJECT
 | |
| public:
 | |
|     explicit ReferenceManager(QWidget* parent = 0);
 | |
|     ReferenceView* currentReferenceView();
 | |
| 
 | |
| private slots:
 | |
|     void newReferenceView(QString name);
 | |
|     void closeTab(int index);
 | |
|     void closeAllTabs();
 | |
| 
 | |
| signals:
 | |
|     void showCpu();
 | |
| 
 | |
| private:
 | |
|     ReferenceView* mCurrentReferenceView;
 | |
|     QPushButton* mCloseAllTabs;
 | |
| };
 | |
| 
 | |
| #endif // REFERENCEMANAGER_H
 |