Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
QSyntaxStyle Class Reference

Class, that describes Qt style parser for QCodeEditor. More...

#include <QSyntaxStyle.hpp>

Inheritance diagram for QSyntaxStyle:
Inheritance graph
[legend]

Public Member Functions

QTextCharFormat getFormat (QString name) const
 Method for getting format for property name. More...
 
bool isLoaded () const
 Method for checking is syntax style loaded. More...
 
bool load (QString fl)
 Method for loading and parsing style. More...
 
QString name () const
 Method for getting style name. More...
 
 QSyntaxStyle (QObject *parent=nullptr)
 Constructor. More...
 

Static Public Member Functions

static QSyntaxStyledefaultStyle ()
 Static method for getting default style. More...
 

Private Attributes

QMap< QString, QTextCharFormat > m_data
 
bool m_loaded
 
QString m_name
 

Detailed Description

Class, that describes Qt style parser for QCodeEditor.

Definition at line 13 of file QSyntaxStyle.hpp.

Constructor & Destructor Documentation

◆ QSyntaxStyle()

QSyntaxStyle::QSyntaxStyle ( QObject *  parent = nullptr)
explicit

Constructor.

Parameters
parentPointer to parent QObject

Definition at line 9 of file QSyntaxStyle.cpp.

Member Function Documentation

◆ defaultStyle()

QSyntaxStyle * QSyntaxStyle::defaultStyle ( )
static

Static method for getting default style.

Returns
Pointer to default style.

Definition at line 139 of file QSyntaxStyle.cpp.

◆ getFormat()

QTextCharFormat QSyntaxStyle::getFormat ( QString  name) const

Method for getting format for property name.

Parameters
nameProperty name.
Returns
Text char format.

Definition at line 122 of file QSyntaxStyle.cpp.

◆ isLoaded()

bool QSyntaxStyle::isLoaded ( ) const

Method for checking is syntax style loaded.

Returns
Is loaded.

Definition at line 134 of file QSyntaxStyle.cpp.

◆ load()

bool QSyntaxStyle::load ( QString  fl)

Method for loading and parsing style.

Parameters
flStyle.
Returns
Success.

Definition at line 18 of file QSyntaxStyle.cpp.

◆ name()

QString QSyntaxStyle::name ( ) const

Method for getting style name.

Returns
Name.

Definition at line 117 of file QSyntaxStyle.cpp.

Member Data Documentation

◆ m_data

QMap< QString, QTextCharFormat > QSyntaxStyle::m_data
private

Definition at line 66 of file QSyntaxStyle.hpp.

◆ m_loaded

bool QSyntaxStyle::m_loaded
private

Definition at line 68 of file QSyntaxStyle.hpp.

◆ m_name

QString QSyntaxStyle::m_name
private

Definition at line 61 of file QSyntaxStyle.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50