7 #ifndef FONTPREVIEW_UI_H
8 #define FONTPREVIEW_UI_H
10 #include "ui_fontpreview.h"
16 class QSortFilterProxyModel;
75 void resizeEvent(QResizeEvent * event);
101 void cancelButton_clicked();
107 #endif // FONTPREVIEW_H
Main window for "Font Preview" plugin. It's only gui. Constructs a FontPreview as a child of 'parent'...
Definition: fontpreview.h:25
void setExtendedView(bool state)
Show/hide "advanced" columns in the view.
Definition: fontpreview.cpp:207
FontListModel * fontModel
Store fonts in the Qt4 MVC model part.
Definition: fontpreview.h:58
bool allowSample()
Check if is there any item in list to prevent crashes. It allows not to paint the sample if there cou...
Definition: fontpreview.cpp:127
SampleItem * sampleItem
Sample text frame to render the preview.
Definition: fontpreview.h:55
PrefsContext * prefs
Configuration structure.
Definition: fontpreview.h:49
QSortFilterProxyModel * proxyModel
A model for searching in the font set. see searchEdit_textChanged() for more.
Definition: fontpreview.h:62
void resetDisplayButton_clicked()
Reset the sample phrase to the standard "blue quartz".
Definition: fontpreview.cpp:191
the Document Class
Definition: scribusdoc.h:90
void fontList_currentChanged(const QModelIndex &, const QModelIndex &)
Slot to handle row changes in the table view.
Definition: fontpreview.cpp:202
Model for font views. It contains quite all informations about fonts available to display in Qt4 view...
Definition: fontlistmodel.h:30
virtual void searchEdit_textChanged(const QString &s)
Called after each text change. It calls paintSample().
Definition: fontpreview.cpp:153
Definition: prefscontext.h:40
uint xsize
window size
Definition: fontpreview.h:51
void displayButton_clicked()
Setup the preview phrase instead of "blue quartz...".
Definition: fontpreview.cpp:180
void paintSample()
Create a pixmap sample with font preview. With GUI oprions.
Definition: fontpreview.cpp:135
QPixmap ttfFont
Pixmaps for each font type.
Definition: fontpreview.h:42
QString getCurrentFont()
Get the current selected font name.
Definition: fontpreview.cpp:172
virtual void languageChange()
Sets the strings of the subwidgets using the current language.
Definition: fontpreview.cpp:108
FontPreview(QString fontName=QString::null, QWidget *parent=0, ScribusDoc *doc=0)
Create Font Preview window,.
Definition: fontpreview.cpp:21
void showEvent(QShowEvent *event)
Paint sample on the dialog opening.
Definition: fontpreview.cpp:115
void sizeSpin_valueChanged(int)
Font size change.
Definition: fontpreview.cpp:197
QString defaultStr
Default "blue quartz" text.
Definition: fontpreview.h:47
Provides sample "text frame" as pixmap. You can create a pixmap with standard Scribus text frame here...
Definition: sampleitem.h:25