11#include <QRadioButton>
16#include <klocalizedstring.h>
19 const QString & layerCS,
34 resize(
m_page->sizeHint());
36 m_page->lblColormodel->setText(layerCS);
70 return m_page->chkDownscale->isChecked();
75 return m_page->chkColors->isChecked();
80 return m_page->chkActivateCurrentChannel->isChecked();
91 m_page->chkDownscale->setDisabled(disable);
93 m_page->chkActivateCurrentChannel->setDisabled(!disable);
98 if (
m_page->radioCopyAlpha->isChecked()) {
100 }
else if (
m_page->radioAllLayers->isChecked()) {
107 m_page->chkDownscale->setEnabled(enable);
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void enableDownscale(bool enable)
enumSepSource getSource()
enumSepAlphaOptions getAlphaOptions()
DlgSeparate(const QString &imageCS, const QString &layerCS, QWidget *parent=0, const char *name=0)
void separateToColorActivated(bool disable)
bool getActivateCurrentChannel()
void slotSetColorSpaceLabel()
A dialog base class with standard buttons and predefined layouts.
void setMainWidget(QWidget *widget)
virtual void setCaption(const QString &caption)
void setButtons(ButtonCodes buttonMask)
void setDefaultButton(ButtonCode id)
@ Ok
Show Ok button. (this button accept()s the dialog; result set to QDialog::Accepted)
@ Cancel
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected)
@ COPY_ALPHA_TO_SEPARATIONS
@ CREATE_ALPHA_SEPARATION
KRITAWIDGETUTILS_EXPORT void restoreState(QWidget *parent, const QString &dialogName, const QMap< QString, QVariant > &defaults=QMap< QString, QVariant >())
restoreState restores the state of the dialog
KRITAWIDGETUTILS_EXPORT void saveState(QWidget *parent, const QString &dialogName)
saveState saves the state for the specified widgets