20#ifndef JKQTPLOTTERSTYLE_H
21#define JKQTPLOTTERSTYLE_H
23#include "jkqtplotter/jkqtptools.h"
24#include "jkqtplotter/jkqtplotter_imexport.h"
25#include "jkqtplotter/jkqtplotter_configmacros.h"
62 void saveSettings(QSettings& settings,
const QString& group=QString(
"plots/"))
const;
Support Class for JKQTPlotter, which summarizes all properties that define the visual styling of a JK...
Definition jkqtplotterstyle.h:40
bool displayMousePosition
specifies whether to display the current position of the mouse in the top border of the plot (this ma...
Definition jkqtplotterstyle.h:116
JKQTPlotterStyle()
initialize with default values
QBrush userActionOverlayBrush
brush for user actions (typically semi-transparent, like e.g. zoom-rectangles)
Definition jkqtplotterstyle.h:78
bool toolbarAlwaysOn
specifies whether the toolbar is always visible or only when the mouse moves to the upper left area
Definition jkqtplotterstyle.h:138
QPen userActionOpaquePen
pen for user actions that cover parts of the plot (typically opaque, like e.g. tooltips)
Definition jkqtplotterstyle.h:81
int userActionCatchSensitivity
sensitivity (i.e. max. distance to see as one point) for user actions
Definition jkqtplotterstyle.h:71
int userActionMarkerDiameter
size (diameter) of markers drawn by user actions
Definition jkqtplotterstyle.h:98
JKQTPMouseDoubleClickActionsHashMap registeredMouseDoubleClickActions
action to perform on a double-click of the mouse buttons (depending on the button and the modifiers)
Definition jkqtplotterstyle.h:152
QPen userActionOverlayPen
pen for user actions that overlay the plot (typically semi-transparent, like e.g. zoom-rectangles)
Definition jkqtplotterstyle.h:76
double userActionFontSize
font size [pt] to use for text of user actions
Definition jkqtplotterstyle.h:95
int toolbarIconSize
width/height of the icons in the plotter toolbar in pixel
Definition jkqtplotterstyle.h:74
void saveSettings(QSettings &settings, const QString &group=QString("plots/")) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
QPen userActionMarkerPen
pen for location markers of user actions on the plot
Definition jkqtplotterstyle.h:86
int maxTooltipDistance
maximum distance at which a tooltip for a point is still displayed, when the user action jkqtpmdaTool...
Definition jkqtplotterstyle.h:69
bool toolbarEnabled
specifies whether to display a toolbar with buttons when the mouse is in the upper border of the plot
Definition jkqtplotterstyle.h:124
QBrush userActionMarkerBrush
brush for location markers of user actions on the plot
Definition jkqtplotterstyle.h:88
JKQTPUserActionMarkerType userActionMarkerType
type of the location markers of user actions on the plot
Definition jkqtplotterstyle.h:90
QString mousePositionTemplate
this string is used to generate the position output above the graph (%1 is replaced by the x-position...
Definition jkqtplotterstyle.h:107
JKQTPMouseDragActionsHashMap registeredMouseDragActionModes
lists all availble mouse drag action modes
Definition jkqtplotterstyle.h:146
JKQTPMouseMoveActionsHashMap registeredMouseMoveActions
the currently executed MouseMoveAction
Definition jkqtplotterstyle.h:155
JKQTPMouseWheelActionsHashMap registeredMouseWheelActions
lists all availble mouse wheel action modes
Definition jkqtplotterstyle.h:149
QBrush userActionOpaqueBrush
brush for user actions that cover parts of the plot (typically opaque, like e.g. tooltips)
Definition jkqtplotterstyle.h:83
QString userActionFontName
font name to use for text of user actions
Definition jkqtplotterstyle.h:93
void loadSettings(const QSettings &settings, const QString &group=QString("plots/"), const JKQTPlotterStyle &defaultStyle=JKQTPlotterStyle())
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
bool usePaletteColors
if set (true ), JKQTPlotter uses QPalette::Window and other colors from QPalette as background color ...
Definition jkqtplotterstyle.h:143
JKQTPLOTTER_LIB_EXPORT JKQTPlotterStyle & JKQTPGetSystemDefaultStyle()
returns the system-wide default JKQTPlotterStyle
JKQTPLOTTER_LIB_EXPORT void JKQTPSetSystemDefaultStyle(JKQTPlotterStyle &newStyle)
replaces the system-wide default JKQTPlotterStyle with the given newStyle
QHash< QPair< Qt::MouseButton, Qt::KeyboardModifiers >, JKQTPMouseDoubleClickActions > JKQTPMouseDoubleClickActionsHashMap
data structure for storage of assigned JKQTPMouseDoubleClickActions
Definition jkqtptools.h:245
JKQTPUserActionMarkerType
Styles in which to mark single positions during user actions in JKQTPlotter.
Definition jkqtptools.h:83
QHash< Qt::KeyboardModifiers, JKQTPMouseWheelActions > JKQTPMouseWheelActionsHashMap
data structure for storage of assigned JKQTPMouseWheelActions
Definition jkqtptools.h:238
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89
QHash< Qt::KeyboardModifiers, JKQTPMouseMoveActions > JKQTPMouseMoveActionsHashMap
data structure for storage of assigned JKQTPMouseMoveActions
Definition jkqtptools.h:253
QHash< QPair< Qt::MouseButton, Qt::KeyboardModifiers >, JKQTPMouseDragActions > JKQTPMouseDragActionsHashMap
data structure for storage of assigned JKQTPMouseDragActions
Definition jkqtptools.h:231