FlightGear next
GettingStartedTipsController.cxx File Reference
#include "GettingStartedTipsController.hxx"
#include <algorithm>
#include <QSettings>
#include <QDebug>
#include <QQmlContext>
#include <QTimer>
#include <QtQml>
#include "GettingStartedTip.hxx"
#include "TipBackgroundBox.hxx"
#include "GettingStartedTipsController.moc"

Go to the source code of this file.

Classes

struct  TipGeometryByArrowLocation
 
class  GettingStartedTipsController::ItemPositionObserver
 The GettingStartedTipsController::ItemPositionObserver class. More...
 

Variables

const double tipBoxWidth = 300.0
 
const double halfBoxWidth = tipBoxWidth * 0.5
 
const double arrowSideOffset = TipBackgroundBox::arrowSideOffset()
 
const double rightSideOffset = -tipBoxWidth + arrowSideOffset
 
const double dummyHeight = 200.0
 
const double topHeightOffset = -TipBackgroundBox::arrowHeight()
 
static std::initializer_list< TipGeometryByArrowLocationstatic_tipGeometries
 
static QPointer< GettingStartedTipsControllerstatic_activeController
 

Variable Documentation

◆ arrowSideOffset

const double arrowSideOffset = TipBackgroundBox::arrowSideOffset()

Definition at line 32 of file GettingStartedTipsController.cxx.

◆ dummyHeight

const double dummyHeight = 200.0

Definition at line 34 of file GettingStartedTipsController.cxx.

◆ halfBoxWidth

const double halfBoxWidth = tipBoxWidth * 0.5

Definition at line 31 of file GettingStartedTipsController.cxx.

◆ rightSideOffset

const double rightSideOffset = -tipBoxWidth + arrowSideOffset

Definition at line 33 of file GettingStartedTipsController.cxx.

◆ static_activeController

QPointer<GettingStartedTipsController> static_activeController
static

Definition at line 124 of file GettingStartedTipsController.cxx.

◆ static_tipGeometries

std::initializer_list<TipGeometryByArrowLocation> static_tipGeometries
static
Initial value:
= {
{GettingStartedTip::Arrow::LeftCenter, QRectF{0.0, 0.0, tipBoxWidth, dummyHeight}, Qt::AlignVCenter},
}
const double topHeightOffset
const double dummyHeight
const double tipBoxWidth
const double arrowSideOffset
const double halfBoxWidth
const double rightSideOffset

Definition at line 37 of file GettingStartedTipsController.cxx.

◆ tipBoxWidth

const double tipBoxWidth = 300.0

Definition at line 30 of file GettingStartedTipsController.cxx.

◆ topHeightOffset

const double topHeightOffset = -TipBackgroundBox::arrowHeight()

Definition at line 35 of file GettingStartedTipsController.cxx.