Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::arrangement::EditorSettings Class Reference

Common editor settings. More...

#include <src/structure/arrangement/editor_settings.h>

Inheritance diagram for zrythm::structure::arrangement::EditorSettings:
Collaboration diagram for zrythm::structure::arrangement::EditorSettings:

Public Member Functions

 EditorSettings (QObject *parent=nullptr)
double getX () const
void setX (double x)
Q_SIGNAL void xChanged (double x)
double getY () const
void setY (double y)
Q_SIGNAL void yChanged (double y)
double getHorizontalZoomLevel () const
void setHorizontalZoomLevel (double hzoom_level)
Q_SIGNAL void horizontalZoomLevelChanged (double hzoom_level)
double clamp_scroll_start_x (double x)
double clamp_scroll_start_y (double y)
void append_scroll (double dx, double dy, bool validate)
 Appends the given deltas to the scroll x/y values.

Properties

QML_ELEMENT double x
double y
double horizontalZoomLevel

Friends

void init_from (EditorSettings &obj, const EditorSettings &other, utils::ObjectCloneType clone_type)
void to_json (nlohmann::json &j, const EditorSettings &settings)
void from_json (const nlohmann::json &j, EditorSettings &settings)

Detailed Description

Common editor settings.

Definition at line 17 of file editor_settings.h.

Constructor & Destructor Documentation

◆ EditorSettings()

zrythm::structure::arrangement::EditorSettings::EditorSettings ( QObject * parent = nullptr)
inline

Definition at line 26 of file editor_settings.h.

Member Function Documentation

◆ getHorizontalZoomLevel()

double zrythm::structure::arrangement::EditorSettings::getHorizontalZoomLevel ( ) const
inline

Definition at line 55 of file editor_settings.h.

◆ getX()

double zrythm::structure::arrangement::EditorSettings::getX ( ) const
inline

Definition at line 32 of file editor_settings.h.

◆ getY()

double zrythm::structure::arrangement::EditorSettings::getY ( ) const
inline

Definition at line 44 of file editor_settings.h.

◆ setHorizontalZoomLevel()

void zrythm::structure::arrangement::EditorSettings::setHorizontalZoomLevel ( double hzoom_level)
inline

Definition at line 56 of file editor_settings.h.

◆ setX()

void zrythm::structure::arrangement::EditorSettings::setX ( double x)
inline

Definition at line 33 of file editor_settings.h.

◆ setY()

void zrythm::structure::arrangement::EditorSettings::setY ( double y)
inline

Definition at line 45 of file editor_settings.h.

◆ from_json

void from_json ( const nlohmann::json & j,
EditorSettings & settings )
friend

Definition at line 97 of file editor_settings.h.

◆ init_from

void init_from ( EditorSettings & obj,
const EditorSettings & other,
utils::ObjectCloneType clone_type )
friend

Definition at line 77 of file editor_settings.h.

◆ to_json

void to_json ( nlohmann::json & j,
const EditorSettings & settings )
friend

Definition at line 91 of file editor_settings.h.

Property Documentation

◆ horizontalZoomLevel

double zrythm::structure::arrangement::EditorSettings::horizontalZoomLevel
readwrite

Definition at line 23 of file editor_settings.h.

◆ x

QML_ELEMENT double zrythm::structure::arrangement::EditorSettings::x
readwrite

Definition at line 21 of file editor_settings.h.

◆ y

double zrythm::structure::arrangement::EditorSettings::y
readwrite

Definition at line 22 of file editor_settings.h.


The documentation for this class was generated from the following file: