2018-11-22 20:18:39 -05: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 17:19:41 -05: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-22 20:18:39 -05:00
|
|
|
class AbstractLogWindow
|
|
|
|
: public QWidget
|
|
|
|
{
|
2019-06-06 07:56:25 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
2018-11-22 20:18:39 -05:00
|
|
|
public:
|
|
|
|
AbstractLogWindow (QString const& settings_key, QSettings * settings
|
|
|
|
, Configuration const * configuration
|
|
|
|
, QWidget * parent = nullptr);
|
|
|
|
virtual ~AbstractLogWindow () = 0;
|
|
|
|
|
2018-11-25 17:19:41 -05:00
|
|
|
// set the QTableView that shows the log records, must have its
|
|
|
|
// model set before calling this
|
2018-11-22 20:18:39 -05:00
|
|
|
void set_log_view (QTableView *);
|
2018-11-25 17:19:41 -05:00
|
|
|
|
2018-11-22 20:18:39 -05:00
|
|
|
void set_log_view_font (QFont const&);
|
|
|
|
|
|
|
|
private:
|
2018-11-25 17:19:41 -05:00
|
|
|
virtual void log_model_changed (int row = -1) = 0;
|
|
|
|
|
2018-11-22 20:18:39 -05:00
|
|
|
class impl;
|
|
|
|
pimpl<impl> m_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|