UltraScan III
List of all members | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
US_Font Class Reference

A class to allow the user to select a customized font. More...

#include "us_font.h"

Inheritance diagram for US_Font:
Inheritance graph
[legend]
Collaboration diagram for US_Font:
Collaboration graph
[legend]

Public Member Functions

 US_Font (QWidget *=0, Qt::WindowFlags=0)
 Construct the window for font selection. More...
 
 ~US_Font ()
 A null destructor. More...
 
- Public Member Functions inherited from US_Widgets
 US_Widgets (bool=true, QWidget *p=0, Qt::WindowFlags f=0)
 
 ~US_Widgets (void)
 
QLabel * us_label (const QString &, int=0, int=QFont::Bold)
 
QLabel * us_textlabel (const QString &, int=-1, int=QFont::Bold)
 
QLabel * us_banner (const QString &, int=0, int=QFont::Bold)
 
QPushButton * us_pushbutton (const QString &, bool=true, int=0)
 
QTextEdit * us_textedit (void)
 
QLineEdit * us_lineedit (const QString &=0, int=-1, bool=false)
 
void us_setReadOnly (QLineEdit *, bool=true)
 
void us_setReadOnly (QTextEdit *, bool=true)
 
QListWidget * us_listwidget (int=0)
 
QGridLayout * us_checkbox (const QString &, QCheckBox *&, bool=false)
 
QGridLayout * us_radiobutton (const QString &text, QRadioButton *&rb, bool state=false)
 
QProgressBar * us_progressBar (int, int, int=0)
 
QComboBox * us_comboBox (void)
 
QLCDNumber * us_lcd (int, int=0)
 
QwtCounter * us_counter (int, double, double, double=0.0)
 
QwtPlot * us_plot (const QString &, const QString &=QString(), const QString &=QString())
 
QwtPlotGrid * us_grid (QwtPlot *)
 
QwtPlotCurve * us_curve (QwtPlot *, const QString &)
 
QwtPlotPicker * us_picker (QwtPlot *)
 
QTabWidget * us_tabwidget (int=0, int=QFont::Bold)
 
void write_plot (const QString &, const QwtPlot *)
 Write a plot file (PNG or SVG+PNG) from a plot. More...
 
int clean_etc_dir (bool=false)
 Clean install and work ./etc directories. More...
 

Private Slots

void save (void)
 
void help (void)
 
void selectFont (void)
 
void setDefault (void)
 

Private Member Functions

void redraw (void)
 

Private Attributes

QLineEdit * le_family
 
QLineEdit * le_pointSize
 
QLabel * small
 
QLabel * regular
 
QLabel * regularBold
 
QLabel * large
 
QLabel * largeBold
 
QLabel * title
 
QLabel * lbl_family
 
QLabel * size
 
QLabel * samples
 
QPushButton * pb_font
 
QPushButton * pb_save
 
QPushButton * pb_default
 
QPushButton * pb_help
 
QPushButton * pb_cancel
 

Additional Inherited Members

- Static Public Member Functions inherited from US_Widgets
static QFont fixedFont (void)
 
- Public Attributes inherited from US_Widgets
US_Global g
 Connect to global memory and make the values accessible. More...
 
QPalette vlgray
 Very light gray palette for read-only line edits. More...
 

Detailed Description

A class to allow the user to select a customized font.

Definition at line 15 of file us_font.h.

Constructor & Destructor Documentation

US_Font::US_Font ( QWidget *  w = 0,
Qt::WindowFlags  flags = 0 
)

Construct the window for font selection.

Parameters
wA pointer to the parent widget. This normally can be left as NULL.
flagsAn enum value that describes the window properties. This normally can be left as 0 (Qt::Widget).

Definition at line 5 of file us_font.cpp.

US_Font::~US_Font ( )
inline

A null destructor.

Definition at line 30 of file us_font.h.

Member Function Documentation

void US_Font::help ( void  )
privateslot

Definition at line 107 of file us_font.cpp.

void US_Font::redraw ( void  )
private

Definition at line 128 of file us_font.cpp.

void US_Font::save ( void  )
privateslot

Definition at line 96 of file us_font.cpp.

void US_Font::selectFont ( void  )
privateslot

Definition at line 113 of file us_font.cpp.

void US_Font::setDefault ( void  )
privateslot

Definition at line 87 of file us_font.cpp.

Member Data Documentation

QLabel* US_Font::large
private

Definition at line 40 of file us_font.h.

QLabel* US_Font::largeBold
private

Definition at line 41 of file us_font.h.

QLabel* US_Font::lbl_family
private

Definition at line 43 of file us_font.h.

QLineEdit* US_Font::le_family
private

Definition at line 30 of file us_font.h.

QLineEdit* US_Font::le_pointSize
private

Definition at line 35 of file us_font.h.

QPushButton* US_Font::pb_cancel
private

Definition at line 51 of file us_font.h.

QPushButton* US_Font::pb_default
private

Definition at line 49 of file us_font.h.

QPushButton* US_Font::pb_font
private

Definition at line 47 of file us_font.h.

QPushButton* US_Font::pb_help
private

Definition at line 50 of file us_font.h.

QPushButton* US_Font::pb_save
private

Definition at line 48 of file us_font.h.

QLabel* US_Font::regular
private

Definition at line 38 of file us_font.h.

QLabel* US_Font::regularBold
private

Definition at line 39 of file us_font.h.

QLabel* US_Font::samples
private

Definition at line 45 of file us_font.h.

QLabel* US_Font::size
private

Definition at line 44 of file us_font.h.

QLabel* US_Font::small
private

Definition at line 37 of file us_font.h.

QLabel* US_Font::title
private

Definition at line 42 of file us_font.h.


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