ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
EditorSettings.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <ui_EditorSettings.h>
11 
12 #include "ColorScheme.h"
13 
14 class EditorSettings final : public QDialog, public Ui::EditorSettings
15 {
16  Q_OBJECT
17  public:
19 
20  int fontSize() const;
21  bool shouldHighlightCurrentLine() const;
22  const ColorScheme &colorScheme() const;
23 
24  public:
25  Q_SIGNALS:
27 
28  protected:
29  void connectSignals() const;
30  void saveChanges();
31  void saveChangesAndClose();
32  void cancel();
33  void setFormValuesToCurrentValues() const;
34  void loadFromSettings();
35  void setupUi();
36 
37  private:
38  ColorScheme m_colorScheme = ColorScheme::Default();
39  bool m_shouldHighlightCurrentLine = true;
40 };
ColorScheme to be used by the PythonHighlighter & Editor.
Definition: ColorScheme.h:14
static ColorScheme Default()
Default color scheme.
Definition: ColorScheme.cpp:69
const ColorScheme & colorScheme() const
int fontSize() const
void saveChangesAndClose()
bool shouldHighlightCurrentLine() const
void connectSignals() const
void settingsChanged()
void setFormValuesToCurrentValues() const