Mapper  0.9.0
API documentation
Classes | Namespaces | Functions
util_gui.h File Reference

(824ee69 on 20 Jun 2019)

#include <QtGlobal>
#include <QDoubleValidator>
#include <QString>
#include <QValidator>
Include dependency graph for util_gui.h:
This graph shows which files directly or indirectly include this file:

Classes

class  OpenOrienteering::DoubleValidator
 Double validator for line edit widgets, ensures that only valid doubles can be entered. More...
 
struct  OpenOrienteering::Util::InputProperties< T >
 Provides information about the properties of Mapper types for the purpose of customizing input widgets. More...
 
struct  OpenOrienteering::Util::InputProperties< MapCoordF >
 Provides information about the properties of MapCoordF for the purpose of customizing input widgets. More...
 
struct  OpenOrienteering::Util::RealMeters
 Identifies the type double representing real meters. More...
 
struct  OpenOrienteering::Util::InputProperties< RealMeters >
 Provides information about the type double representing real meters for the purpose of customizing input widgets. More...
 
struct  OpenOrienteering::Util::RotationalDegrees
 Identifies the type double representing a rotation angle in degrees. More...
 
struct  OpenOrienteering::Util::InputProperties< RotationalDegrees >
 Provides information about the type double representing a rotation angle for the purpose of customizing input widgets. More...
 

Namespaces

 OpenOrienteering
 
 OpenOrienteering::Util
 A collection of GUI utility functions.
 
 OpenOrienteering::Util::Marker
 
 OpenOrienteering::Util::Headline
 
 OpenOrienteering::Util::SpacerItem
 
 OpenOrienteering::Util::SpinBox
 
 OpenOrienteering::Util::TristateCheckbox
 

Functions

qreal OpenOrienteering::Util::mmToPixelPhysical (qreal millimeters)
 Converts millimeters to pixels using the physical dpi setting of Mapper's settings. More...
 
qreal OpenOrienteering::Util::pixelToMMPhysical (qreal pixels)
 Inverse of mmToPixelPhysical(). More...
 
qreal OpenOrienteering::Util::mmToPixelLogical (qreal millimeters)
 Converts millimeters to pixels using the "logical" dpi setting of the operating system. More...
 
qreal OpenOrienteering::Util::pixelToMMLogical (qreal pixels)
 Inverse of mmToPixelLogical(). More...
 
bool OpenOrienteering::Util::isAntialiasingRequired ()
 Returns true for low-dpi screens, false for high-dpi screens. More...
 
bool OpenOrienteering::Util::isAntialiasingRequired (qreal ppi)
 Returns true for low-dpi screens, false for high-dpi screens. More...
 
void OpenOrienteering::Util::showHelp (QWidget *dialog_parent, const char *filename_latin1, const char *anchor_latin1)
 Show the manual in Qt assistant. More...
 
void OpenOrienteering::Util::showHelp (QWidget *dialog_parent, const char *file_and_anchor_latin1="index.html")
 Show the manual in Qt assistant. More...
 
void OpenOrienteering::Util::showHelp (QWidget *dialog_parent, const QString &file_and_anchor)
 Show the manual in Qt assistant. More...
 
QString OpenOrienteering::Util::makeWhatThis (const char *reference_latin1)
 Creates a What's-this text "See more" linking to the given page and fragment in the manual. More...
 
void OpenOrienteering::Util::Marker::drawCenterMarker (QPainter *painter, const QPointF &center)
 Center marker sign for rotate and scale tools. More...
 
QLabelOpenOrienteering::Util::Headline::create (const QString &text)
 Creates a QLabel which is styled as a headline. More...
 
QLabelOpenOrienteering::Util::Headline::create (const char *text_utf8)
 Creates a QLabel which is styled as a headline. More...
 
QSpacerItemOpenOrienteering::Util::SpacerItem::create (const QWidget *widget)
 Creates a QSpacerItem which takes up a style dependent width and height. More...
 
QSpinBoxOpenOrienteering::Util::SpinBox::create (int min, int max, const QString &unit={}, int step=0)
 Creates and initializes a QSpinBox. More...
 
QDoubleSpinBoxOpenOrienteering::Util::SpinBox::create (int decimals, double min, double max, const QString &unit={}, double step=0.0)
 Creates and initializes a QDoubleSpinBox. More...
 
template<class T >
QDoubleSpinBoxOpenOrienteering::Util::SpinBox::create ()
 Creates and initializes a QDoubleSpinBox. More...
 
template<class T >
QDoubleSpinBoxOpenOrienteering::Util::SpinBox::create (const QString &unit)
 Creates a QLabel which is styled as a headline. More...
 
void OpenOrienteering::Util::TristateCheckbox::setDisabledAndChecked (QCheckBox *checkbox, bool checked)
 
void OpenOrienteering::Util::TristateCheckbox::setEnabledAndChecked (QCheckBox *checkbox, bool checked)
 
QString OpenOrienteering::Util::plainText (QString maybe_markup)
 Remove any HTML markup from the input text. More...