itom  4.1.0
ito::StyleItem Class Reference
Inheritance diagram for ito::StyleItem:

Public Types

enum  StyleGroup { GroupCommentOrString = QTextFormat::UserObject, GroupNumber = QTextFormat::UserObject + 1 }
 
enum  StyleType {
  KeyDefault = 0, KeyComment = 1, KeyNumber = 2, KeyString = 3,
  KeyKeyword = 5, KeyDocstring = 6, KeyClass = 8, KeyFunction = 9,
  KeyOperator = 10, KeyDecorator = 15, KeyBackground = 1000, KeyHighlight,
  KeyNamespace, KeyType, KeyKeywordReserved, KeyBuiltin,
  KeyDefinition, KeyInstance, KeyWhitespace, KeyTag,
  KeySelf, KeyPunctuation, KeyConstant, KeyOperatorWord,
  KeyStreamOutput, KeyStreamError
}
 

Public Member Functions

 StyleItem (StyleType type, const QTextCharFormat &format)
 
 StyleItem (const StyleItem &item)
 
StyleItemoperator= (const StyleItem &rhs)
 
bool isValid () const
 
QString name () const
 
StyleType type () const
 
QTextCharFormat & rformat ()
 
QTextCharFormat format () const
 
void setObjectType (int type)
 

Static Public Member Functions

static QMetaEnum styleTypeEnum ()
 
static QList< StyleItem::StyleType > availableStyleTypes ()
 
static QTextCharFormat createFormat (const QBrush &color, const QBrush &bgcolor=QBrush(), bool bold=false, bool italic=false, bool underline=false, QFont::StyleHint styleHint=QFont::SansSerif)
 
static QTextCharFormat createFormat (const QString &familyName, int pointSize, const QColor &color, const QColor &bgcolor=QColor(), bool bold=false, QFont::StyleHint styleHint=QFont::SansSerif)
 

Private Attributes

StyleType m_type
 
QString m_name
 
QTextCharFormat m_format
 
bool m_valid
 

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