LogbookWidget.3 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .TH "LogbookWidget" 3 "Tue Aug 9 2022" "openPilotLog" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. LogbookWidget \- The \fBLogbookWidget\fP displays data from the database in a QSqlTableView fed by a QSqlQuery Model\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <logbookwidget\&.h>\fP
  11. .PP
  12. Inherits QWidget\&.
  13. .SS "Public Slots"
  14. .in +1c
  15. .ti -1c
  16. .RI "void \fBrefresh\fP ()"
  17. .br
  18. .RI "\fBLogbookWidget::refresh\fP Refreshes the view to reflect changes in the database\&. "
  19. .ti -1c
  20. .RI "void \fBonLogbookWidget_viewSelectionChanged\fP (\fBSettingsWidget::SettingSignal\fP signal)"
  21. .br
  22. .ti -1c
  23. .RI "void \fBrepopulateModel\fP ()"
  24. .br
  25. .RI "\fBLogbookWidget::repopulateModel\fP (public slot) - cleanly re-populates the model to cater for a change to the database connection (for example, when a backup is created or restored) "
  26. .in -1c
  27. .SS "Public Member Functions"
  28. .in +1c
  29. .ti -1c
  30. .RI "\fBLogbookWidget\fP (\fBOPL::DbCompletionData\fP &completion_data, QWidget *parent=nullptr)"
  31. .br
  32. .in -1c
  33. .SS "Protected Member Functions"
  34. .in +1c
  35. .ti -1c
  36. .RI "void \fBchangeEvent\fP (QEvent *event) override"
  37. .br
  38. .RI "Handles change events, like updating the UI to new localisation\&. "
  39. .in -1c
  40. .SH "Detailed Description"
  41. .PP
  42. The \fBLogbookWidget\fP displays data from the database in a QSqlTableView fed by a QSqlQuery Model\&.
  43. The \fBLogbookWidget\fP is the primary display interface for flights logged in the database\&. It fetches and stores flight data from the database via a QSqlQueryModel and displays it in a QTableView\&. With the way the flight data is written in the database, it would not be human-readable, so some processing is done on the database side to present a nicely formatted, human-readable display\&. This is achieved by means of a \fCSQL View\fP\&.
  44. .PP
  45. The user can select a view from a list of available views in the \fBSettingsWidget\fP\&.
  46. .SH "Author"
  47. .PP
  48. Generated automatically by Doxygen for openPilotLog from the source code\&.