| 
									
										
										
										
											2018-11-23 01:18:39 +00:00
										 |  |  | #ifndef ABSTRACT_LOG_WINDOW_HPP_
 | 
					
						
							|  |  |  | #define ABSTRACT_LOG_WINDOW_HPP_
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QWidget>
 | 
					
						
							|  |  |  | #include "pimpl_h.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class QString; | 
					
						
							|  |  |  | class QSettings; | 
					
						
							|  |  |  | class Configuration; | 
					
						
							|  |  |  | class QTableView; | 
					
						
							|  |  |  | class QFont; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-25 22:19:41 +00:00
										 |  |  | //
 | 
					
						
							|  |  |  | // AbstractLogWindow - Base class for log view windows
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // QWidget that manages the common functionality shared by windows
 | 
					
						
							|  |  |  | // that include a QSO log view.
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2018-11-23 01:18:39 +00:00
										 |  |  | class AbstractLogWindow | 
					
						
							|  |  |  |   : public QWidget | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2019-06-06 12:56:25 +01:00
										 |  |  |   Q_OBJECT | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-23 01:18:39 +00:00
										 |  |  | public: | 
					
						
							|  |  |  |   AbstractLogWindow (QString const& settings_key, QSettings * settings | 
					
						
							|  |  |  |                      , Configuration const * configuration | 
					
						
							|  |  |  |                      , QWidget * parent = nullptr); | 
					
						
							|  |  |  |   virtual ~AbstractLogWindow () = 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-25 22:19:41 +00:00
										 |  |  |   // set the QTableView that shows the log records, must have its
 | 
					
						
							|  |  |  |   // model set before calling this
 | 
					
						
							| 
									
										
										
										
											2018-11-23 01:18:39 +00:00
										 |  |  |   void set_log_view (QTableView *); | 
					
						
							| 
									
										
										
										
											2018-11-25 22:19:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-23 01:18:39 +00:00
										 |  |  |   void set_log_view_font (QFont const&); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							| 
									
										
										
										
											2018-11-25 22:19:41 +00:00
										 |  |  |   virtual void log_model_changed (int row = -1) = 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-23 01:18:39 +00:00
										 |  |  |   class impl; | 
					
						
							|  |  |  |   pimpl<impl> m_; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 |