File: AbstractLogWindow.hpp

package info (click to toggle)
wsjtx 2.3.0%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 63,524 kB
  • sloc: cpp: 59,051; f90: 34,130; python: 27,241; ansic: 11,205; fortran: 2,051; sh: 132; makefile: 109
file content (43 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#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;

//
// AbstractLogWindow - Base class for log view windows
//
// QWidget that manages the common functionality shared by windows
// that include a QSO log view.
//
class AbstractLogWindow
  : public QWidget
{
  Q_OBJECT

public:
  AbstractLogWindow (QString const& settings_key, QSettings * settings
                     , Configuration const * configuration
                     , QWidget * parent = nullptr);
  virtual ~AbstractLogWindow () = 0;

  // set the QTableView that shows the log records, must have its
  // model set before calling this
  void set_log_view (QTableView *);

  void set_log_view_font (QFont const&);

private:
  virtual void log_model_changed (int row = -1) = 0;

  class impl;
  pimpl<impl> m_;
};

#endif