Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 8092 → Rev 8091

/branches/Version13x/Scribus/scribus/pdflib.cpp
689,10 → 689,7
if ((pgit->itemType() == PageItem::TextFrame) || (pgit->itemType() == PageItem::PathText))
{
if (pgit->isAnnotation())
{
StdFonts.insert(ind2PDFabr[pgit->annotation().Font()], "");
ReallyUsed.insert(pgit->itemText.defaultStyle().charStyle().font().replacementName(), DocFonts[pgit->itemText.defaultStyle().charStyle().font().replacementName()]);
}
for (uint e = 0; e < static_cast<uint>(pgit->itemText.length()); ++e)
{
ReallyUsed.insert(pgit->itemText.charStyle(e).font().replacementName(), DocFonts[pgit->itemText.charStyle(e).font().replacementName()]);
705,10 → 702,7
if ((pgit->itemType() == PageItem::TextFrame) || (pgit->itemType() == PageItem::PathText))
{
if (pgit->isAnnotation())
{
StdFonts.insert(ind2PDFabr[pgit->annotation().Font()], "");
ReallyUsed.insert(pgit->itemText.defaultStyle().charStyle().font().replacementName(), DocFonts[pgit->itemText.defaultStyle().charStyle().font().replacementName()]);
}
for (uint e = 0; e < static_cast<uint>(pgit->itemText.length()); ++e)
{
ReallyUsed.insert(pgit->itemText.charStyle(e).font().replacementName(), DocFonts[pgit->itemText.charStyle(e).font().replacementName()]);
721,10 → 715,7
if ((pgit->itemType() == PageItem::TextFrame) || (pgit->itemType() == PageItem::PathText))
{
if (pgit->isAnnotation())
{
StdFonts.insert(ind2PDFabr[pgit->annotation().Font()], "");
ReallyUsed.insert(pgit->itemText.defaultStyle().charStyle().font().replacementName(), DocFonts[pgit->itemText.defaultStyle().charStyle().font().replacementName()]);
}
for (uint e = 0; e < static_cast<uint>(pgit->itemText.length()); ++e)
{
ReallyUsed.insert(pgit->itemText.charStyle(e).font().replacementName(), DocFonts[pgit->itemText.charStyle(e).font().replacementName()]);
1014,8 → 1005,7
AllFonts[it.key()].glyphNames(gl);
int nglyphs = 0;
QMap<uint,std::pair<QChar,QString> >::Iterator gli;
for (gli = gl.begin(); gli != gl.end(); ++gli)
{
for (gli = gl.begin(); gli != gl.end(); ++gli) {
if (gli.key() > static_cast<uint>(nglyphs))
nglyphs = gli.key();
}
1056,8 → 1046,7
uint glyph = 224 * Fc + ww2 - 32;
if (gl[glyph].second != "")
{
if (startOfSeq)
{
if (startOfSeq) {
PutDoc(QString::number(ww2)+" ");
startOfSeq = false;
}
1064,8 → 1053,7
PutDoc("/"+gl[glyph].second+" ");
crc++;
}
else
{
else {
startOfSeq = true;
}
if (signed(glyph) == nglyphs-1)
/branches/Version13x/Scribus/scribus/scribusview.cpp
169,7 → 169,6
zoomSpinBox->setTabAdvance(false);
zoomSpinBox->setFont(fo);
zoomSpinBox->setValue( 100 );
zoomSpinBox->setLineStep(10);
zoomSpinBox->setFocusPolicy(QWidget::ClickFocus);
zoomSpinBox->setSuffix( tr( " %" ) );
#if OPTION_USE_QTOOLBUTTON
/branches/Version13x/Scribus/scribus/mspinbox.cpp
37,8 → 37,7
setValidator(0);
ed = editor();
QSpinBox::setLineStep(Decimals);
oldLineStep = 0;
currLineStep = Decimals;
oldLineStep=0;
readOnly=false;
edited = false;
connect( ed, SIGNAL(textChanged(const QString&)), SLOT(textChanged()) );
51,7 → 50,6
ed = editor();
QSpinBox::setLineStep(Decimals);
oldLineStep=0;
currLineStep = Decimals;
setMinValue(minValue);
setMaxValue(maxValue);
readOnly=false;
66,7 → 64,6
ed = editor();
QSpinBox::setLineStep(Decimals); // pv - dummy setup for designer's constructor
oldLineStep=0;
currLineStep = Decimals;
readOnly=false;
edited = false;
connect( ed, SIGNAL(textChanged(const QString&)), SLOT(textChanged()) );
112,7 → 109,7
bool controlB=k->state() & ControlButton;
if (k->key() == Key_Shift && !controlB)
{
QSpinBox::setLineStep(QMAX(currLineStep / 10, 1));
setLineStep(QMAX(Decimals / 10, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
119,7 → 116,7
}
else if (k->key() == Key_Control && !shiftB)
{
QSpinBox::setLineStep(QMAX(currLineStep * 10, 1));
setLineStep(QMAX(Decimals * 10, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
126,7 → 123,7
}
else if ((k->key() == Key_Control && shiftB) || (k->key() == Key_Shift && controlB))
{
QSpinBox::setLineStep(QMAX(currLineStep / 100, 1));
setLineStep(QMAX(Decimals / 100, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
147,7 → 144,7
bool controlB=k->stateAfter() & ControlButton;
if ((k->key() == Key_Shift && !controlB) || (k->key() == Key_Control && !shiftB))
{
QSpinBox::setLineStep(currLineStep);
setLineStep(Decimals);
retval = true;
qApp->sendEvent( this, ev );
return retval;
154,7 → 151,7
}
else if (k->key() == Key_Shift && controlB)
{
QSpinBox::setLineStep(QMAX(currLineStep * 10, 1));
setLineStep(QMAX(Decimals * 10, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
161,7 → 158,7
}
else if (k->key() == Key_Control && shiftB)
{
QSpinBox::setLineStep(QMAX(currLineStep / 10, 1));
setLineStep(QMAX(Decimals / 10, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
177,7 → 174,7
bool controlB=k->state() & ControlButton;
if (shiftB && !controlB)
{
QSpinBox::setLineStep(QMAX(currLineStep / 10, 1));
setLineStep(QMAX(Decimals / 10, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
184,7 → 181,7
}
else if (!shiftB && controlB)
{
QSpinBox::setLineStep(QMAX(currLineStep * 10, 1));
setLineStep(QMAX(Decimals * 10, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
191,7 → 188,7
}
else if (shiftB && controlB)
{
QSpinBox::setLineStep(QMAX(currLineStep / 100, 1));
setLineStep(QMAX(Decimals / 100, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
199,7 → 196,7
else
if (!shiftB && !controlB)
{
QSpinBox::setLineStep(currLineStep);
setLineStep(Decimals);
retval = true;
qApp->sendEvent( this, ev );
return retval;
339,7 → 336,6
{
Decimals = deci;
QSpinBox::setLineStep(Decimals);
currLineStep = Decimals;
if (deci < 10)
Width = 0;
if ((deci > 9) && (deci < 100))
368,12 → 364,6
edited = false;
}
 
void MSpinBox::setLineStep(int val)
{
QSpinBox::setLineStep( val * 100 );
currLineStep = val * 100;
}
 
double MSpinBox::value()
{
return static_cast<double>(QSpinBox::value()) / Decimals;
/branches/Version13x/Scribus/scribus/mspinbox.h
124,7 → 124,6
\param val new Value
*/
virtual void setValue(double val);
void setLineStep(int val);
void setReadOnly(bool ro);
void setValues(double min, double max, int deci, double val);
void getValues(double *min, double *max, int *deci, double *val);
136,7 → 135,6
void setFPConstants(FunctionParser &fp);
bool readOnly;
int oldLineStep;
int currLineStep;
bool edited;
QMap <QString, double> functionParserConstants;
};