QCAD
Open Source 2D CAD
RCharacterWidget Class Reference

#include <RCharacterWidget.h>

Inheritance diagram for RCharacterWidget:

Public Slots

void updateFont (const QFont &font)
 
void updateFontMerging (bool enable)
 
void updateSize (const QString &fontSize)
 
void updateStyle (const QString &fontStyle)
 

Signals

void characterSelected (const QString &character)
 

Public Member Functions

QFont getDisplayFont ()
 
 RCharacterWidget (QWidget *parent=0)
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 
QSize sizeHint () const
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void paintEvent (QPaintEvent *event)
 

Private Attributes

int columns
 
QFont displayFont
 
int lastKey
 
int squareSize
 

Detailed Description

Scriptable:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RCharacterWidget()

RCharacterWidget::RCharacterWidget ( QWidget *  parent = 0)

Copyright (c) 2011-2018 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

Member Function Documentation

◆ characterSelected

void RCharacterWidget::characterSelected ( const QString &  character)
signal

◆ getDisplayFont()

QFont RCharacterWidget::getDisplayFont ( )

◆ mouseMoveEvent()

void RCharacterWidget::mouseMoveEvent ( QMouseEvent *  event)
protected

◆ mousePressEvent()

void RCharacterWidget::mousePressEvent ( QMouseEvent *  event)
protected

◆ paintEvent()

void RCharacterWidget::paintEvent ( QPaintEvent *  event)
protected

◆ sizeHint()

QSize RCharacterWidget::sizeHint ( ) const

◆ updateFont

void RCharacterWidget::updateFont ( const QFont &  font)
slot

◆ updateFontMerging

void RCharacterWidget::updateFontMerging ( bool  enable)
slot

◆ updateSize

void RCharacterWidget::updateSize ( const QString &  fontSize)
slot

◆ updateStyle

void RCharacterWidget::updateStyle ( const QString &  fontStyle)
slot

Member Data Documentation

◆ columns

int RCharacterWidget::columns
private

◆ displayFont

QFont RCharacterWidget::displayFont
private

◆ lastKey

int RCharacterWidget::lastKey
private

◆ squareSize

int RCharacterWidget::squareSize
private

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