QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RFontChooserWidget Class Reference

#include <RFontChooserWidget.h>

Inheritance diagram for RFontChooserWidget:

Public Slots

void chosenFontChanged (const QFont &font)
 
void sizeChanged (int index)
 

Signals

void valueChanged (const QFont &font)
 

Public Member Functions

QFont getChosenFont () const
 
QString getLabel () const
 
int getSize () const
 
 RFontChooserWidget (QWidget *parent=0)
 Copyright (c) 2011-2018 by Andrew Mustun.
 
void setChosenFont (const QFont &font)
 
void setLabel (const QString &l)
 
void setSize (int size)
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 

Properties

QFont chosenFont
 
QString label
 

Private Member Functions

void updateSizeCombo ()
 

Private Attributes

QFontComboBox * cbChosenFont
 
QComboBox * cbSize
 
QLabel * lbLabel
 
QLabel * lbSampleText
 

Detailed Description

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

Constructor & Destructor Documentation

◆ RFontChooserWidget()

RFontChooserWidget::RFontChooserWidget ( 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

◆ chosenFontChanged

void RFontChooserWidget::chosenFontChanged ( const QFont & font)
slot

◆ getChosenFont()

QFont RFontChooserWidget::getChosenFont ( ) const

◆ getLabel()

QString RFontChooserWidget::getLabel ( ) const

◆ getSize()

int RFontChooserWidget::getSize ( ) const

◆ resizeEvent()

void RFontChooserWidget::resizeEvent ( QResizeEvent * event)
protected

◆ setChosenFont()

void RFontChooserWidget::setChosenFont ( const QFont & font)

◆ setLabel()

void RFontChooserWidget::setLabel ( const QString & l)

◆ setSize()

void RFontChooserWidget::setSize ( int size)

◆ sizeChanged

void RFontChooserWidget::sizeChanged ( int index)
slot

◆ updateSizeCombo()

void RFontChooserWidget::updateSizeCombo ( )
private

◆ valueChanged

void RFontChooserWidget::valueChanged ( const QFont & font)
signal

Member Data Documentation

◆ cbChosenFont

QFontComboBox* RFontChooserWidget::cbChosenFont
private

◆ cbSize

QComboBox* RFontChooserWidget::cbSize
private

◆ lbLabel

QLabel* RFontChooserWidget::lbLabel
private

◆ lbSampleText

QLabel* RFontChooserWidget::lbSampleText
private

Property Documentation

◆ chosenFont

QFont RFontChooserWidget::chosenFont
readwrite

◆ label

QString RFontChooserWidget::label
readwrite

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