OPL_Style.3 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .TH "OPL::Style" 3 "Tue Aug 9 2022" "openPilotLog" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. OPL::Style \- The AStyle class encapsulates style and stylesheet logic\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <style\&.h>\fP
  11. .SS "Public Types"
  12. .in +1c
  13. .ti -1c
  14. .RI "enum class \fBStyleType\fP { \fBLight\fP, \fBDark\fP }"
  15. .br
  16. .in -1c
  17. .SS "Static Public Member Functions"
  18. .in +1c
  19. .ti -1c
  20. .RI "static void \fBsetup\fP ()"
  21. .br
  22. .RI "Setup Application style by reading from openPilotLog\&.ini\&. "
  23. .ti -1c
  24. .RI "static void \fBsetStyle\fP (const QString &style_key)"
  25. .br
  26. .ti -1c
  27. .RI "static void \fBsetStyle\fP (const \fBStyleSheet\fP &style_sheet)"
  28. .br
  29. .ti -1c
  30. .RI "static void \fBsetStyle\fP (const QPalette &palette)"
  31. .br
  32. .ti -1c
  33. .RI "static QString \fBgetCurrentStyle\fP ()"
  34. .br
  35. .ti -1c
  36. .RI "static StyleType \fBgetStyleType\fP ()"
  37. .br
  38. .ti -1c
  39. .RI "static QPalette \fBdarkPalette\fP ()"
  40. .br
  41. .ti -1c
  42. .RI "static const QString & \fBstyle\fP ()"
  43. .br
  44. .ti -1c
  45. .RI "static void \fBloadStylesComboBox\fP (QComboBox *combo_box)"
  46. .br
  47. .in -1c
  48. .SS "Static Public Attributes"
  49. .in +1c
  50. .ti -1c
  51. .RI "static const QStringList \fBstyles\fP = QStyleFactory::keys()"
  52. .br
  53. .ti -1c
  54. .RI "static const QString \fBdefaultStyle\fP = QStringLiteral('Fusion')"
  55. .br
  56. .ti -1c
  57. .RI "static const QList< \fBStyleSheet\fP > \fBstyleSheets\fP"
  58. .br
  59. .in -1c
  60. .SH "Detailed Description"
  61. .PP
  62. The AStyle class encapsulates style and stylesheet logic\&.
  63. .SH "Member Data Documentation"
  64. .PP
  65. .SS "const QList< \fBStyleSheet\fP > OPL::Style::styleSheets\fC [static]\fP"
  66. \fBInitial value:\fP
  67. .PP
  68. .nf
  69. = {
  70. {QLatin1String("Breeze"), QLatin1String(":breeze_light\&.qss")},
  71. {QLatin1String("Breeze-Dark"), QLatin1String(":breeze_dark\&.qss")},
  72. {QLatin1String("QDarkStyle"), QLatin1String(":qdarkstyle/qdarkstyle\&.qss")},
  73. }
  74. .fi
  75. .SH "Author"
  76. .PP
  77. Generated automatically by Doxygen for openPilotLog from the source code\&.