mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-04 08:21:17 -05:00
c81b3c8e65
Basic validation, must have non-empty exchange sent and received. Abstracted log view window widget behaviour into a base class. Turned on auto resize to row height in log view windows and enabled alternating colours. Convert empty fields to NULL when inserting new log table rows to signify missing data. Trap insert row errors when adding to contest log table so that logging can be held back if constraints are not met. Re-factored log QSO processing to try insert row into log table first and pop up a message box if constraints are not met, this pops up the Log QSO window in case it was initiated by an auto log event.
33 lines
669 B
C++
33 lines
669 B
C++
#ifndef ABSTRACT_LOG_WINDOW_HPP_
|
|
#define ABSTRACT_LOG_WINDOW_HPP_
|
|
|
|
#include <QWidget>
|
|
#include "pimpl_h.hpp"
|
|
|
|
class QString;
|
|
class QSettings;
|
|
class Configuration;
|
|
class QAbstractItemModel;
|
|
class QTableView;
|
|
class QFont;
|
|
|
|
class AbstractLogWindow
|
|
: public QWidget
|
|
{
|
|
public:
|
|
AbstractLogWindow (QString const& settings_key, QSettings * settings
|
|
, Configuration const * configuration
|
|
, QWidget * parent = nullptr);
|
|
virtual ~AbstractLogWindow () = 0;
|
|
|
|
void set_log_model (QAbstractItemModel *);
|
|
void set_log_view (QTableView *);
|
|
void set_log_view_font (QFont const&);
|
|
|
|
private:
|
|
class impl;
|
|
pimpl<impl> m_;
|
|
};
|
|
|
|
#endif
|