Scribus fonts preview3/3/2023 SearchLabel - >setText (tr ( "Quick Search: " ) ) OkButton - >setAccel (QKeySequence (tr ( "Alt+O", "font preview" ) ) ) OkButton - >setText (CommonStrings :: tr_OK ) SetCaption (tr ( "Fonts Preview", "font preview" ) ) * Sets the strings of the subwidgets using the current Prefs - >set ( "fontSize", sizeSpin - >value ( ) ) Prefs - >set ( "sortColumn", fontList - >sortColumn ( ) ) * Writes configuration, destroys the object and frees any allocated resources. defFont, 0 ) Ĭonnect (okButton, SIGNAL (clicked ( ) ), this, SLOT (accept ( ) ) ) Ĭonnect (cancelButton, SIGNAL (clicked ( ) ), this, SLOT (reject ( ) ) ) Ĭonnect (fontList, SIGNAL (selectionChanged (QListViewItem * ) ), this, SLOT (fontList_changed ( ) ) ) Ĭonnect (sizeSpin, SIGNAL (valueChanged ( int ) ), this, SLOT (fontList_changed ( ) ) ) Ĭonnect (searchButton, SIGNAL (clicked ( ) ), this, SLOT (searchButton_clicked ( ) ) ) Ĭonnect (searchEdit, SIGNAL (textChanged ( const QString & ) ), this, SLOT (searchEdit_textChanged ( const QString & ) ) ) Item = fontList - >findItem (PrefsManager :: instance ( ) - >appPrefs. Item = fontList - >findItem (carrier - >doc - >CurrFont, 0 ) Item = fontList - >findItem (carrier - >pluginManager - >dllInput, 0 ) If ( !carrier - >pluginManager - >dllInput. PsFont = loadIcon ( "font_type1_16.png" ) TtfFont = loadIcon ( "font_truetype16.png" ) Row->setText(4, tr("System", "font preview")) Row->setText(4, tr("User", "font preview")) If (fontIter.current()->fontPath().contains(QDir::homeDirPath())) Row->setText(0, fontIter.current()->SCName) QListViewItem *row = new QListViewItem(fontList) įoi::FontType type = fontIter.current()->typeCode QPixmap psFont = loadIcon("font_type1_16.png") įor (SCFontsIterator fontIter(carrier->Prefs.AvailFonts) fontIter.current() ++fontIter) QPixmap otfFont = loadIcon("font_otf16.png") QPixmap ttfFont = loadIcon("font_truetype16.png") * go through available fonts and check their properties */Ĭarrier - >GetUsedFonts ( &reallyUsedFonts ) SizeLayout - >addWidget (cancelButton ) įontPreviewLayout - >addLayout (mainLayout, 0, 0 ) OkButton = new QPushButton ( this, "okButton" ) ĬancelButton = new QPushButton ( this, "cancelButton" ) SizeSpin - >setValue (prefs - >getUInt ( "fontSize", 18 ) ) īuttonSpacer = new QSpacerItem ( 40, 20, QSizePolicy :: Expanding, QSizePolicy :: Minimum ) SizeSpin = new QSpinBox ( 10, 72, 1, this, "sizeSpin" ) SizeLabel - >setText (tr ( "Font Size:" ) ) SizeLabel = new QLabel ( this, "sizeLabel" ) SizeLayout = new QHBoxLayout ( 0, 0, 5, "sizeLayout" ) MainLayout - >addLayout (searchLayout, 0 ) įontList = new QListView ( this, "fontList" ) įontList - >setAllColumnsShowFocus ( true ) įontList - >setShowSortIndicator ( true ) įontList - >addColumn (tr ( "Font Name", "font preview" ) ) įontList - >addColumn (tr ( "Doc", "font preview" ) ) įontList - >setColumnAlignment ( 1, Qt :: AlignCenter ) įontList - >addColumn (tr ( "Type", "font preview" ) ) įontList - >addColumn (tr ( "Subset", "font preview" ) ) įontList - >setColumnAlignment ( 3, Qt :: AlignCenter ) įontList - >addColumn (tr ( "Access", "font preview" ) ) įontPreview = new QLabel ( this, "fontPreview" ) įontPreview - >setMinimumSize (QSize ( 400, 90 ) ) įontPreview - >setFrameShape (QFrame :: Box ) įontPreview - >setPaletteBackgroundColor (white /* MrB RFE ) paletteBackgroundColor()*/ ) SearchLayout - >addWidget (searchButton ) SearchButton = new QPushButton ( this, "searchButton" ) SearchEdit = new QLineEdit ( this, "searchEdit" ) SearchLayout - >addWidget (searchLabel ) SearchLabel = new QLabel ( this, "searchLabel" ) SearchLayout = new QHBoxLayout ( 0, 0, 5, "searchLayout" ) MainLayout = new QVBoxLayout ( 0, 0, 5, "mainLayout" ) Ysize = prefs - >getUInt ( "ysize", 480 ) įontPreviewLayout = new QGridLayout ( this, 1, 1, 10, 5, "FontPreviewLayout" ) Xsize = prefs - >getUInt ( "xsize", 640 ) SortColumn = prefs - >getUInt ( "sortColumn", 0 ) Prefs = PrefsManager :: instance ( ) - >prefsFile - >getPluginContext ( "fontpreview" ) * The dialog will by default be modeless, unless you set 'modal' toįontPreview :: FontPreview (ScribusApp *carrier, QWidget * parent, const char * name, bool modal, WFlags fl ) * name 'name' and widget flags set to 'f'. * Constructs a FontPreview as a child of 'parent', with the *! Main window for "Font Preview" plugin.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |