Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 16044 → Rev 16043

/branches/ScribusOIF/scribus/ui/propertiespalette_imagebase.ui
File deleted
/branches/ScribusOIF/scribus/ui/propertiespalette_image.cpp
78,49 → 78,159
connect(userActionSniffer, SIGNAL(actionStart()), this, SLOT(spinboxStartUserAction()));
connect(userActionSniffer, SIGNAL(actionEnd()), this, SLOT(spinboxFinishUserAction()));
 
setupUi(this);
setSizePolicy( QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum));
pageLayout_4 = new QVBoxLayout( this );
pageLayout_4->setSpacing( 5 );
pageLayout_4->setMargin( 0 );
 
imagePageNumberSelector = new QGridLayout();
imagePageNumberSelector->setSpacing( 5 );
imagePageNumberSelector->setMargin( 0 );
imagePageNumber = new QSpinBox( this );
imagePageNumber->setMinimum(0);
imagePageNumber->setSpecialValueText(tr( "Auto" ));
imagePageNumberLabel = new QLabel( "&Page Number:", this );
imagePageNumberLabel->setBuddy(imagePageNumber);
imagePageNumberSelector->addWidget( imagePageNumberLabel, 0, 0 );
imagePageNumberSelector->addWidget( imagePageNumber, 0, 1);
pageLayout_4->addLayout( imagePageNumberSelector );
// freeScale = new QRadioButton( "&Free Scaling", this );
// freeScale->setChecked( true );
// pageLayout_4->addWidget( freeScale );
// FreeScale = new QRadioButton( "&Free Scaling", this );
// FreeScale->setChecked( true );
// pageLayout_4->addWidget( FreeScale );
 
layout43 = new QGridLayout;
layout43->setSpacing( 5 );
layout43->setMargin( 0 );
imageXOffsetSpinBox = new ScrSpinBox( this, 0 );
installSniffer(imageXOffsetSpinBox);
xposImgLabel = new QLabel( "&X-Pos:", this );
xposImgLabel->setBuddy(imageXOffsetSpinBox);
layout43->addWidget( xposImgLabel, 0, 0 );
layout43->addWidget( imageXOffsetSpinBox, 0, 1 );
imageYOffsetSpinBox = new ScrSpinBox( this, 0 );
installSniffer(imageYOffsetSpinBox);
yposImgLabel = new QLabel( "&Y-Pos:", this );
yposImgLabel->setBuddy(imageYOffsetSpinBox);
layout43->addWidget( yposImgLabel, 1, 0 );
layout43->addWidget( imageYOffsetSpinBox, 1, 1 );
imageRotation = new ScrSpinBox( this, 6);
imageRotation->setWrapping( true );
installSniffer(imageRotation);
imageRotationLabel = new QLabel( "Rotation:", this );
imageRotationLabel->setBuddy(imageRotation);
layout43->addWidget( imageRotationLabel, 2, 0 );
layout43->addWidget( imageRotation, 2, 1 );
 
freeScale->setChecked( true );
FreeScale = new QRadioButton( "&Free Scaling", this );
FreeScale->setChecked( true );
layout43->addWidget( FreeScale );
imageXScaleSpinBox = new ScrSpinBox( this, 0 );
installSniffer(imageXScaleSpinBox);
xscaleLabel = new QLabel( "X-Sc&ale:", this );
xscaleLabel->setBuddy(imageXScaleSpinBox);
layout43->addWidget( xscaleLabel, 4, 0 );
layout43->addWidget( imageXScaleSpinBox, 4, 1 );
imageYScaleSpinBox = new ScrSpinBox( this, 0 );
installSniffer(imageYScaleSpinBox);
yscaleLabel = new QLabel( "Y-Scal&e:", this );
yscaleLabel->setBuddy(imageYScaleSpinBox);
 
layout43->addWidget( yscaleLabel, 5, 0 );
layout43->addWidget( imageYScaleSpinBox, 5, 1 );
keepImageWHRatioButton = new LinkButton( this );
keepImageWHRatioButton->setCheckable( true );
keepImageWHRatioButton->setAutoRaise( true );
keepImageWHRatioButton->setMaximumSize( QSize( 15, 32767 ) );
layout43->addWidget( keepImageWHRatioButton, 4, 2, 2, 1 );
 
imgDpiX = new ScrSpinBox( this, 0 );
installSniffer(imgDpiX);
imgDPIXLabel = new QLabel( "Actual X-DPI:", this );
imgDPIXLabel->setBuddy(imgDpiX);
 
layout43->addWidget( imgDPIXLabel, 6, 0 );
layout43->addWidget( imgDpiX, 6, 1 );
imgDpiY = new ScrSpinBox( this, 0 );
installSniffer(imgDpiY);
imgDPIYLabel = new QLabel( "Actual Y-DPI:", this );
imgDPIYLabel->setBuddy(imgDpiY);
 
layout43->addWidget( imgDPIYLabel, 7, 0 );
layout43->addWidget( imgDpiY, 7, 1 );
keepImageDPIRatioButton = new LinkButton( this );
keepImageDPIRatioButton->setCheckable( true );
keepImageDPIRatioButton->setAutoRaise( true );
keepImageDPIRatioButton->setMaximumSize( QSize( 15, 32767 ) );
layout43->addWidget( keepImageDPIRatioButton, 6, 2, 2, 1 );
pageLayout_4->addLayout( layout43 );
 
frameScale->setText( "&To Frame Size" );
Layout24 = new QVBoxLayout;
Layout24->setSpacing( 3 );
Layout24->setMargin( 0 );
 
cbProportional->setEnabled( false );
cbProportional->setText( "P&roportional" );
cbProportional->setChecked( true );
FrameScale = new QRadioButton( this );
FrameScale->setText( "Scale &To Frame Size" );
Layout24->addWidget( FrameScale );
 
Layout18 = new QHBoxLayout;
Layout18->setSpacing( 5 );
Layout18->setMargin( 0 );
 
Frame4 = new QFrame( this );
Frame4->setMinimumSize( QSize( 15, 2 ) );
Frame4->setMaximumSize( QSize( 15, 10 ) );
Frame4->setFrameShape( QFrame::NoFrame );
Frame4->setFrameShadow( QFrame::Plain );
Layout18->addWidget( Frame4 );
 
Aspect = new QCheckBox( this );
Aspect->setEnabled( false );
Aspect->setText( "P&roportional" );
Aspect->setChecked( true );
 
Layout18->addWidget( Aspect );
Layout24->addLayout( Layout18 );
pageLayout_4->addLayout( Layout24 );
 
EditEffects = new QToolButton( this);
pageLayout_4->addWidget( EditEffects );
 
EditPSDProps = new QToolButton( this);
pageLayout_4->addWidget( EditPSDProps );
 
GroupBoxCM = new QFrame( this );
GroupBoxCM->setFrameShape( QFrame::NoFrame );
GroupBoxCM->setFrameShadow( QFrame::Plain );
GroupBoxCMLayout = new QVBoxLayout( GroupBoxCM );
GroupBoxCMLayout->setSpacing( 2 );
GroupBoxCMLayout->setMargin( 5 );
GroupBoxCMLayout->setAlignment( Qt::AlignTop );
TextCms1 = new QLabel( GroupBoxCM );
GroupBoxCMLayout->addWidget( TextCms1 );
InputP = new ScComboBox( GroupBoxCM );
GroupBoxCMLayout->addWidget(InputP);
TextCms2 = new QLabel( GroupBoxCM );
GroupBoxCMLayout->addWidget(TextCms2);
MonitorI = new ScComboBox( GroupBoxCM );
GroupBoxCMLayout->addWidget(MonitorI);
pageLayout_4->addWidget(GroupBoxCM);
 
GroupBoxCompression = new QFrame( this );
GroupBoxCompression->setFrameShape( QFrame::NoFrame );
GroupBoxCompression->setFrameShadow( QFrame::Plain );
GroupBoxCompressionLayout = new QVBoxLayout( GroupBoxCompression );
GroupBoxCompressionLayout->setSpacing( 2 );
GroupBoxCompressionLayout->setMargin( 5 );
GroupBoxCompressionLayout->setAlignment( Qt::AlignTop );
TextCompressionMethod = new QLabel( GroupBoxCompression );
GroupBoxCompressionLayout->addWidget( TextCompressionMethod );
CompressionMethod = new ScComboBox( GroupBoxCompression );
GroupBoxCompressionLayout->addWidget(CompressionMethod);
TextCompressionQuality = new QLabel( GroupBoxCompression );
GroupBoxCompressionLayout->addWidget( TextCompressionQuality );
CompressionQuality = new ScComboBox( GroupBoxCompression );
GroupBoxCompressionLayout->addWidget( CompressionQuality );
pageLayout_4->addWidget( GroupBoxCompression );
 
languageChange();
 
connect(imagePageNumber , SIGNAL(valueChanged(int)) , this, SLOT(handleImagePageNumber()));
133,15 → 243,15
connect(imgDpiY , SIGNAL(valueChanged(double)), this, SLOT(handleDpiY()));
connect(keepImageWHRatioButton , SIGNAL(clicked()) , this, SLOT(handleImageWHRatio()));
connect(keepImageDPIRatioButton, SIGNAL(clicked()) , this, SLOT(handleImageDPIRatio()));
connect(freeScale , SIGNAL(clicked()) , this, SLOT(handleScaling()));
connect(frameScale , SIGNAL(clicked()) , this, SLOT(handleScaling()));
connect(cbProportional , SIGNAL(clicked()) , this, SLOT(handleScaling()));
connect(imgEffectsButton , SIGNAL(clicked()) , this, SLOT(handleImageEffects()));
connect(imgExtProperties , SIGNAL(clicked()) , this, SLOT(handleExtImgProperties()));
connect(inputProfiles , SIGNAL(activated(const QString&)), this, SLOT(handleProfile(const QString&)));
connect(renderIntent , SIGNAL(activated(int)) , this, SLOT(handleIntent()));
connect(compressionMethod , SIGNAL(activated(int)) , this, SLOT(handleCompressionMethod()));
connect(compressionQuality , SIGNAL(activated(int)) , this, SLOT(handleCompressionQuality()));
connect(FreeScale , SIGNAL(clicked()) , this, SLOT(handleScaling()));
connect(FrameScale , SIGNAL(clicked()) , this, SLOT(handleScaling()));
connect(Aspect , SIGNAL(clicked()) , this, SLOT(handleScaling()));
connect(EditEffects , SIGNAL(clicked()) , this, SLOT(handleImageEffects()));
connect(EditPSDProps , SIGNAL(clicked()) , this, SLOT(handleExtImgProperties()));
connect(InputP , SIGNAL(activated(const QString&)), this, SLOT(handleProfile(const QString&)));
connect(MonitorI , SIGNAL(activated(int)) , this, SLOT(handleIntent()));
connect(CompressionMethod , SIGNAL(activated(int)) , this, SLOT(handleCompressionMethod()));
connect(CompressionQuality , SIGNAL(activated(int)) , this, SLOT(handleCompressionQuality()));
}
 
void PropertiesPalette_Image::changeEvent(QEvent *e)
267,17 → 377,17
if (m_haveDoc)
{
if (ScCore->haveCMS() && m_doc->cmsSettings().CMSinUse)
colorMgmtGroup->show();
GroupBoxCM->show();
else
{
colorMgmtGroup->hide();
GroupBoxCM->hide();
return;
}
 
inputProfiles->blockSignals(true);
renderIntent->blockSignals(true);
InputP->blockSignals(true);
MonitorI->blockSignals(true);
 
inputProfiles->clear();
InputP->clear();
if (m_haveItem)
{
if (m_item->pixm.imgInfo.colorspace == ColorSpaceCMYK)
286,19 → 396,19
ProfilesL::Iterator itPend = ScCore->InputProfilesCMYK.end();
for (itP = ScCore->InputProfilesCMYK.begin(); itP != itPend; ++itP)
{
inputProfiles->addItem(itP.key());
InputP->addItem(itP.key());
if (itP.key() == m_item->IProfile)
inputProfiles->setCurrentIndex(inputProfiles->count()-1);
InputP->setCurrentIndex(InputP->count()-1);
}
if (!ScCore->InputProfilesCMYK.contains(m_item->IProfile))
{
inputProfiles->addItem(m_item->IProfile);
inputProfiles->setCurrentIndex(inputProfiles->count()-1);
InputP->addItem(m_item->IProfile);
InputP->setCurrentIndex(InputP->count()-1);
}
else
{
if (!m_item->EmProfile.isEmpty())
inputProfiles->addItem(m_item->EmProfile);
InputP->addItem(m_item->EmProfile);
}
}
else
307,26 → 417,26
ProfilesL::Iterator itPend=ScCore->InputProfiles.end();
for (itP = ScCore->InputProfiles.begin(); itP != itPend; ++itP)
{
inputProfiles->addItem(itP.key());
InputP->addItem(itP.key());
if (itP.key() == m_item->IProfile)
inputProfiles->setCurrentIndex(inputProfiles->count()-1);
InputP->setCurrentIndex(InputP->count()-1);
}
if (!ScCore->InputProfiles.contains(m_item->IProfile))
{
inputProfiles->addItem(m_item->IProfile);
inputProfiles->setCurrentIndex(inputProfiles->count()-1);
InputP->addItem(m_item->IProfile);
InputP->setCurrentIndex(InputP->count()-1);
}
else
{
if (!m_item->EmProfile.isEmpty())
inputProfiles->addItem(m_item->EmProfile);
InputP->addItem(m_item->EmProfile);
}
}
renderIntent->setCurrentIndex(m_item->IRender);
MonitorI->setCurrentIndex(m_item->IRender);
}
 
inputProfiles->blockSignals(false);
renderIntent->blockSignals(false);
InputP->blockSignals(false);
MonitorI->blockSignals(false);
}
}
 
337,7 → 447,7
if (m_haveItem)
updateProfileList();
else if (m_doc)
colorMgmtGroup->setVisible(ScCore->haveCMS() && m_doc->cmsSettings().CMSinUse);
GroupBoxCM->setVisible(ScCore->haveCMS() && m_doc->cmsSettings().CMSinUse);
}
 
void PropertiesPalette_Image::displayImageRotation(double rot)
460,8 → 570,8
imagePageNumber->blockSignals(true);
imagePageNumber->setMaximum(m_item->pixm.imgInfo.numberOfPages);
imagePageNumber->setValue(m_item->pixm.imgInfo.actualPageNumber);
compressionMethod->setCurrentIndex(m_item->OverrideCompressionMethod ? m_item->CompressionMethodIndex + 1 : 0);
compressionQuality->setCurrentIndex(m_item->OverrideCompressionQuality ? m_item->CompressionQualityIndex + 1 : 0);
CompressionMethod->setCurrentIndex(m_item->OverrideCompressionMethod ? m_item->CompressionMethodIndex + 1 : 0);
CompressionQuality->setCurrentIndex(m_item->OverrideCompressionQuality ? m_item->CompressionQualityIndex + 1 : 0);
imagePageNumber->blockSignals(false);
 
imageXScaleSpinBox->blockSignals(true);
470,16 → 580,17
imageYOffsetSpinBox->blockSignals(true);
imageRotation->blockSignals(true);
 
imgEffectsButton->setShown(m_item->PictureIsAvailable && m_item->isRaster);
imgExtProperties->setShown(m_item->PictureIsAvailable && m_item->pixm.imgInfo.valid);
updateProfileList();
EditEffects->setShown(m_item->PictureIsAvailable && m_item->isRaster);
EditPSDProps->setShown(m_item->PictureIsAvailable && m_item->pixm.imgInfo.valid);
bool setter = m_item->ScaleType;
freeScale->setChecked(setter);
frameScale->setChecked(!setter);
FreeScale->setChecked(setter);
FrameScale->setChecked(!setter);
if ((m_item->asLatexFrame()) || (m_item->asOSGFrame()))
{
freeScale->setEnabled(false);
frameScale->setEnabled(false);
cbProportional->setEnabled(false);
FreeScale->setEnabled(false);
FrameScale->setEnabled(false);
Aspect->setEnabled(false);
imageXScaleSpinBox->setEnabled(false);
imageYScaleSpinBox->setEnabled(false);
imgDpiX->setEnabled(false);
491,10 → 602,10
imageYScaleSpinBox->setEnabled(setter);
imgDpiX->setEnabled(setter);
imgDpiY->setEnabled(setter);
cbProportional->setEnabled(!setter);
cbProportional->setChecked(m_item->AspectRatio);
freeScale->setEnabled(true);
frameScale->setEnabled(true);
Aspect->setEnabled(!setter);
Aspect->setChecked(m_item->AspectRatio);
FreeScale->setEnabled(true);
FrameScale->setEnabled(true);
}
//CB Why do we need this? Setting it too much here
// if (setter == true)
520,10 → 631,6
rrR = 360 - rrR;
imageRotation->showValue(fabs(rrR));
 
if (m_item->asImageFrame())
{
updateProfileList();
}
if (m_item->asOSGFrame())
{
setEnabled(false);
581,11 → 688,11
if (!m_ScMW || m_ScMW->scriptIsRunning())
return;
 
if (freeScale == sender())
if (FreeScale == sender())
{
frameScale->setChecked(false);
freeScale->setChecked(true);
cbProportional->setEnabled(false);
FrameScale->setChecked(false);
FreeScale->setChecked(true);
Aspect->setEnabled(false);
// imageXOffsetSpinBox->setEnabled(true);
// imageYOffsetSpinBox->setEnabled(true);
imageXScaleSpinBox->setEnabled(true);
596,11 → 703,11
keepImageWHRatioButton->setEnabled(true);
keepImageDPIRatioButton->setEnabled(true);
}
if (frameScale == sender())
if (FrameScale == sender())
{
frameScale->setChecked(true);
freeScale->setChecked(false);
cbProportional->setEnabled(true);
FrameScale->setChecked(true);
FreeScale->setChecked(false);
Aspect->setEnabled(true);
// imageXOffsetSpinBox->setEnabled(false);
// imageYOffsetSpinBox->setEnabled(false);
imageXScaleSpinBox->setEnabled(false);
614,7 → 721,7
 
if ((m_haveDoc) && (m_haveItem))
{
m_item->setImageScalingMode(freeScale->isChecked(), cbProportional->isChecked());
m_item->setImageScalingMode(FreeScale->isChecked(), Aspect->isChecked());
emit UpdtGui(PageItem::ImageFrame);
emit DocChanged();
}
730,7 → 837,7
{
if (!m_haveDoc || !m_haveItem || !m_ScMW || m_ScMW->scriptIsRunning())
return;
m_doc->itemSelection_SetColorProfile(inputProfiles->currentText());
m_doc->itemSelection_SetColorProfile(InputP->currentText());
}
 
void PropertiesPalette_Image::handleIntent()
737,7 → 844,7
{
if (!m_haveDoc || !m_haveItem || !m_ScMW || m_ScMW->scriptIsRunning())
return;
m_doc->itemSelection_SetRenderIntent(renderIntent->currentIndex());
m_doc->itemSelection_SetRenderIntent(MonitorI->currentIndex());
}
void PropertiesPalette_Image::handleCompressionMethod()
744,7 → 851,7
{
if (!m_haveDoc || !m_haveItem || !m_ScMW || m_ScMW->scriptIsRunning())
return;
m_doc->itemSelection_SetCompressionMethod(compressionMethod->currentIndex() - 1);
m_doc->itemSelection_SetCompressionMethod(CompressionMethod->currentIndex() - 1);
}
 
void PropertiesPalette_Image::handleCompressionQuality()
751,7 → 858,7
{
if (!m_haveDoc || !m_haveItem || !m_ScMW || m_ScMW->scriptIsRunning())
return;
m_doc->itemSelection_SetCompressionQuality(compressionQuality->currentIndex() - 1);
m_doc->itemSelection_SetCompressionQuality(CompressionQuality->currentIndex() - 1);
}
 
void PropertiesPalette_Image::languageChange()
762,45 → 869,45
yposImgLabel->setText( tr("&Y-Pos:"));
xscaleLabel->setText( tr("X-Sc&ale:"));
yscaleLabel->setText( tr("Y-Scal&e:"));
freeScale->setText( tr("&Free Scaling"));
FreeScale->setText( tr("&Free Scaling"));
imagePageNumberLabel->setText( tr("&Page Number:"));
imageRotationLabel->setText( tr("Rotation:"));
 
cbProportional->setText( tr("P&roportional"));
imgEffectsButton->setText( tr("Image Effects"));
imgExtProperties->setText( tr("Extended Properties"));
Aspect->setText( tr("P&roportional"));
EditEffects->setText( tr("Image Effects"));
EditPSDProps->setText( tr("Extended Image Properties"));
 
inputProfLabel->setText( tr("Input Profile:"));
renderIntentLabel->setText( tr("Rendering Intent:"));
compressionMethodLabel->setText( tr("Method:"));
compressionQualityLabel->setText( tr("Quality:"));
TextCms1->setText( tr("Input Profile:"));
TextCms2->setText( tr("Rendering Intent:"));
TextCompressionMethod->setText( tr("PDF Compression Method:"));
TextCompressionQuality->setText( tr("PDF Compression Quality:"));
 
int oldMonitorI=renderIntent->currentIndex();
renderIntent->clear();
renderIntent->addItem( tr("Perceptual"));
renderIntent->addItem( tr("Relative Colorimetric"));
renderIntent->addItem( tr("Saturation"));
renderIntent->addItem( tr("Absolute Colorimetric"));
renderIntent->setCurrentIndex(oldMonitorI);
int oldMonitorI=MonitorI->currentIndex();
MonitorI->clear();
MonitorI->addItem( tr("Perceptual"));
MonitorI->addItem( tr("Relative Colorimetric"));
MonitorI->addItem( tr("Saturation"));
MonitorI->addItem( tr("Absolute Colorimetric"));
MonitorI->setCurrentIndex(oldMonitorI);
 
int oldCompressionMethod=compressionMethod->currentIndex();
compressionMethod->clear();
compressionMethod->addItem( tr( "Global" ) );
compressionMethod->addItem( tr( "Automatic" ) );
compressionMethod->addItem( tr( "Lossy - JPEG" ) );
compressionMethod->addItem( tr( "Lossless - Zip" ) );
compressionMethod->addItem( tr( "None" ) );
compressionMethod->setCurrentIndex(oldCompressionMethod);
int oldCompressionMethod=CompressionMethod->currentIndex();
CompressionMethod->clear();
CompressionMethod->addItem( tr( "Global" ) );
CompressionMethod->addItem( tr( "Automatic" ) );
CompressionMethod->addItem( tr( "Lossy - JPEG" ) );
CompressionMethod->addItem( tr( "Lossless - Zip" ) );
CompressionMethod->addItem( tr( "None" ) );
CompressionMethod->setCurrentIndex(oldCompressionMethod);
 
int oldCompressionQuality=compressionQuality->currentIndex();
compressionQuality->clear();
compressionQuality->addItem( tr( "Global" ) );
compressionQuality->addItem( tr( "Maximum" ) );
compressionQuality->addItem( tr( "High" ) );
compressionQuality->addItem( tr( "Medium" ) );
compressionQuality->addItem( tr( "Low" ) );
compressionQuality->addItem( tr( "Minimum" ) );
compressionQuality->setCurrentIndex(oldCompressionQuality);
int oldCompressionQuality=CompressionQuality->currentIndex();
CompressionQuality->clear();
CompressionQuality->addItem( tr( "Global" ) );
CompressionQuality->addItem( tr( "Maximum" ) );
CompressionQuality->addItem( tr( "High" ) );
CompressionQuality->addItem( tr( "Medium" ) );
CompressionQuality->addItem( tr( "Low" ) );
CompressionQuality->addItem( tr( "Minimum" ) );
CompressionQuality->setCurrentIndex(oldCompressionQuality);
 
QString pctSuffix = tr(" %");
imageXScaleSpinBox->setSuffix(pctSuffix);
819,15 → 926,15
imageXScaleSpinBox->setToolTip( tr("Resize the image horizontally"));
imageYScaleSpinBox->setToolTip( tr("Resize the image vertically"));
keepImageWHRatioButton->setToolTip( tr("Keep the X and Y scaling the same"));
freeScale->setToolTip( tr("Allow the image to be a different size to the frame"));
frameScale->setToolTip( tr("Make the image fit within the size of the frame"));
FreeScale->setToolTip( tr("Allow the image to be a different size to the frame"));
FrameScale->setToolTip( tr("Make the image fit within the size of the frame"));
imgDpiX->setToolTip( tr("Effective horizontal DPI of the image after scaling"));
imgDpiY->setToolTip( tr("Effective vertical DPI of the image after scaling"));
cbProportional->setToolTip( tr("Use image proportions rather than those of the frame"));
inputProfiles->setToolTip( tr("Source profile of the image"));
renderIntent->setToolTip( tr("Rendering intent for the image"));
compressionMethod->setToolTip( tr("Compression method used in PDF export for the image"));
compressionQuality->setToolTip( tr("Compression quality used in PDF export for the image"));
Aspect->setToolTip( tr("Use image proportions rather than those of the frame"));
InputP->setToolTip( tr("Source profile of the image"));
MonitorI->setToolTip( tr("Rendering intent for the image"));
CompressionMethod->setToolTip( tr("Compression method used in PDF export for the image"));
CompressionQuality->setToolTip( tr("Compression quality used in PDF export for the image"));
}
 
void PropertiesPalette_Image::unitChange()
/branches/ScribusOIF/scribus/ui/propertiespalette_image.h
31,7 → 31,6
class QVBoxLayout;
class QWidget;
 
#include "ui_propertiespalette_imagebase.h"
 
#include "scribusapi.h"
#include "scrpalettebase.h"
51,7 → 50,7
class Selection;
class UserActionSniffer;
 
class SCRIBUS_API PropertiesPalette_Image : public QWidget, Ui::PropertiesPalette_ImageBase
class SCRIBUS_API PropertiesPalette_Image : public QWidget
{
Q_OBJECT
 
130,6 → 129,61
void handleImageEffects();
void handleExtImgProperties();
 
protected:
 
QCheckBox* Aspect;
 
QFrame* Frame4;
QFrame* GroupBoxCM;
QFrame* GroupBoxCompression;
 
QHBoxLayout* Layout18;
 
QVBoxLayout* pageLayout_4;
QVBoxLayout* GroupBoxCMLayout;
QVBoxLayout* GroupBoxCompressionLayout;
QVBoxLayout* Layout24;
 
QGridLayout* imagePageNumberSelector;
QGridLayout* layout43;
 
QLabel* xposImgLabel;
QLabel* yposImgLabel;
QLabel* xscaleLabel;
QLabel* yscaleLabel;
QLabel* imagePageNumberLabel;
QLabel* imageRotationLabel;
QLabel* imgDPIXLabel;
QLabel* imgDPIYLabel;
QLabel* TextCms1;
QLabel* TextCms2;
QLabel* TextCompressionMethod;
QLabel* TextCompressionQuality;
 
QSpinBox* imagePageNumber;
 
QRadioButton* FreeScale;
QRadioButton* FrameScale;
 
QToolButton* EditEffects;
QToolButton* EditPSDProps;
 
LinkButton* keepImageWHRatioButton;
LinkButton* keepImageDPIRatioButton;
 
ScComboBox* InputP;
ScComboBox* MonitorI;
ScComboBox* CompressionMethod;
ScComboBox* CompressionQuality;
 
ScrSpinBox* imageXOffsetSpinBox;
ScrSpinBox* imageYOffsetSpinBox;
ScrSpinBox* imageXScaleSpinBox;
ScrSpinBox* imageYScaleSpinBox;
ScrSpinBox* imageRotation;
ScrSpinBox* imgDpiX;
ScrSpinBox* imgDpiY;
 
signals:
void DocChanged();
void UpdtGui(int);
/branches/ScribusOIF/scribus/CMakeLists.txt
122,7 → 122,6
ui/prefs_tableofcontentsbase.ui
ui/prefs_documentitemattributesbase.ui
ui/printdialogbase.ui
ui/propertiespalette_imagebase.ui
ui/propertiespalette_textbase.ui
ui/propertiespalette_xyzbase.ui
ui/replacecolors.ui
/branches/ScribusOIF/win32/vc8/Scribus.vcproj
11717,10 → 11717,6
>
</File>
<File
RelativePath="..\..\scribus\ui\ui_propertiespalette_imagebase.h"
>
</File>
<File
RelativePath="..\..\scribus\ui\ui_propertiespalette_textbase.h"
>
</File>
13039,10 → 13035,6
>
</File>
<File
RelativePath="..\..\scribus\ui\propertiespalette_imagebase.ui"
>
</File>
<File
RelativePath="..\..\scribus\ui\propertiespalette_textbase.ui"
>
</File>