2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2010-12-17 16:01:08 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2008-12-02 16:19:05 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
#ifndef DISPLAYSETTINGS_H
|
|
|
|
|
#define DISPLAYSETTINGS_H
|
|
|
|
|
|
|
|
|
|
#include "texteditor_global.h"
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QSettings;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace TextEditor {
|
|
|
|
|
|
2010-08-13 12:53:36 +02:00
|
|
|
class TEXTEDITOR_EXPORT DisplaySettings
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
2010-08-13 12:53:36 +02:00
|
|
|
public:
|
2008-12-02 12:01:29 +01:00
|
|
|
DisplaySettings();
|
|
|
|
|
|
|
|
|
|
void toSettings(const QString &category, QSettings *s) const;
|
|
|
|
|
void fromSettings(const QString &category, const QSettings *s);
|
|
|
|
|
|
|
|
|
|
bool m_displayLineNumbers;
|
|
|
|
|
bool m_textWrapping;
|
|
|
|
|
bool m_visualizeWhitespace;
|
|
|
|
|
bool m_displayFoldingMarkers;
|
|
|
|
|
bool m_highlightCurrentLine;
|
2009-04-22 20:04:38 +02:00
|
|
|
bool m_highlightBlocks;
|
2009-04-29 12:17:42 +02:00
|
|
|
bool m_animateMatchingParentheses;
|
2012-10-11 14:46:18 +04:00
|
|
|
bool m_highlightMatchingParentheses;
|
2009-07-16 11:27:02 +02:00
|
|
|
bool m_markTextChanges;
|
2009-12-01 18:08:02 +01:00
|
|
|
bool m_autoFoldFirstComment;
|
2010-04-14 11:49:58 +02:00
|
|
|
bool m_centerCursorOnScroll;
|
2012-11-01 03:43:28 +01:00
|
|
|
bool m_openLinksInNextSplit;
|
|
|
|
|
bool m_forceOpenLinksInNextSplit;
|
2013-04-18 10:06:13 +02:00
|
|
|
bool m_displayFileEncoding;
|
2015-06-04 10:43:34 +02:00
|
|
|
bool m_scrollBarHighlights;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
bool equals(const DisplaySettings &ds) const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
inline bool operator==(const DisplaySettings &t1, const DisplaySettings &t2) { return t1.equals(t2); }
|
|
|
|
|
inline bool operator!=(const DisplaySettings &t1, const DisplaySettings &t2) { return !t1.equals(t2); }
|
|
|
|
|
|
|
|
|
|
} // namespace TextEditor
|
|
|
|
|
|
|
|
|
|
#endif // DISPLAYSETTINGS_H
|