Main window for "Font Preview" plugin. It's only gui. Constructs a FontPreview as a child of 'parent', with the name 'name' and widget flags set to 'f'. The dialog will by default be modeless, unless you set 'modal' to true to construct a modal dialog.
More...
#include <fontpreview.h>
|
void | paintSample () |
| Create a pixmap sample with font preview. With GUI oprions.
|
|
bool | allowSample () |
| Check if is there any item in list to prevent crashes. It allows not to paint the sample if there could be memory leak. More...
|
|
void | showEvent (QShowEvent *event) |
| Paint sample on the dialog opening.
|
|
void | resizeEvent (QResizeEvent *event) |
|
Main window for "Font Preview" plugin. It's only gui. Constructs a FontPreview as a child of 'parent', with the name 'name' and widget flags set to 'f'. The dialog will by default be modeless, unless you set 'modal' to true to construct a modal dialog.
FontPreview::FontPreview |
( |
QString |
fontName = QString::null , |
|
|
QWidget * |
parent = 0 , |
|
|
ScribusDoc * |
doc = 0 |
|
) |
| |
Create Font Preview window,.
- Parameters
-
fontName | Optional name of the font to init/select on start. |
bool FontPreview::allowSample |
( |
| ) |
|
|
protected |
Check if is there any item in list to prevent crashes. It allows not to paint the sample if there could be memory leak.
- Return values
-
bool | true if you can paint sample safely. |
QString FontPreview::getCurrentFont |
( |
| ) |
|
Get the current selected font name.
- Return values
-
void FontPreview::searchEdit_textChanged |
( |
const QString & |
s | ) |
|
|
protectedvirtualslot |
Called after each text change. It calls paintSample().
- Parameters
-
The documentation for this class was generated from the following files:
- /Users/ale/src/Scribus/scribus/plugins/fontpreview/fontpreview.h
- /Users/ale/src/Scribus/scribus/plugins/fontpreview/fontpreview.cpp