Reworked UI for sphere configuration. Based on rework of cube config (r853730).
Adding slider to configure the sphere cap deformation. svn path=/trunk/KDE/kdebase/workspace/; revision=853745
This commit is contained in:
parent
9235ea4f82
commit
7e3c351ddf
3 changed files with 478 additions and 305 deletions
|
@ -50,6 +50,9 @@ SphereEffectConfig::SphereEffectConfig(QWidget* parent, const QVariantList& args
|
|||
|
||||
layout->addWidget(m_ui, 0, 0);
|
||||
|
||||
m_ui->tabWidget->setTabText( 0, i18n("Basic") );
|
||||
m_ui->tabWidget->setTabText( 1, i18n("Advanced") );
|
||||
|
||||
m_ui->screenEdgeCombo->addItem(i18n("Top"));
|
||||
m_ui->screenEdgeCombo->addItem(i18n("Top-right"));
|
||||
m_ui->screenEdgeCombo->addItem(i18n("Right"));
|
||||
|
@ -71,9 +74,6 @@ SphereEffectConfig::SphereEffectConfig(QWidget* parent, const QVariantList& args
|
|||
|
||||
m_ui->editor->addCollection(m_actionCollection);
|
||||
|
||||
m_ui->wallpaperButton->setIcon(KIcon("document-open"));
|
||||
connect(m_ui->wallpaperButton, SIGNAL(clicked()), this, SLOT(showFileDialog()));
|
||||
|
||||
connect(m_ui->screenEdgeCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
|
||||
connect(m_ui->rotationDurationSpin, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||
connect(m_ui->cubeOpacitySlider, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||
|
@ -84,9 +84,10 @@ SphereEffectConfig::SphereEffectConfig(QWidget* parent, const QVariantList& args
|
|||
connect(m_ui->cubeCapsBox, SIGNAL(stateChanged(int)), this, SLOT(capsSelectionChanged()));
|
||||
connect(m_ui->capsImageBox, SIGNAL(stateChanged(int)), this, SLOT(changed()));
|
||||
connect(m_ui->capColorButton, SIGNAL(changed(QColor)), this, SLOT(changed()));
|
||||
connect(m_ui->wallpaperLineEdit, SIGNAL(textChanged(QString)), this, SLOT(changed()));
|
||||
connect(m_ui->wallpaperRequester, SIGNAL(textChanged(QString)), this, SLOT(changed()));
|
||||
connect(m_ui->closeOnMouseReleaseBox, SIGNAL(stateChanged(int)), this, SLOT(changed()));
|
||||
connect(m_ui->zPositionSlider, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||
connect(m_ui->capDeformationSlider, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||
|
||||
load();
|
||||
}
|
||||
|
@ -107,7 +108,8 @@ void SphereEffectConfig::load()
|
|||
bool caps = conf.readEntry( "Caps", true );
|
||||
bool closeOnMouseRelease = conf.readEntry( "CloseOnMouseRelease", false );
|
||||
m_ui->zPositionSlider->setValue( conf.readEntry( "ZPosition", 450 ) );
|
||||
m_ui->wallpaperLineEdit->setText( conf.readEntry( "Wallpaper", "" ) );
|
||||
m_ui->capDeformationSlider->setValue( conf.readEntry( "CapDeformation", 0 ) );
|
||||
m_ui->wallpaperRequester->setPath( conf.readEntry( "Wallpaper", "" ) );
|
||||
if( activateBorder == (int)ElectricNone )
|
||||
activateBorder--;
|
||||
m_ui->screenEdgeCombo->setCurrentIndex( activateBorder );
|
||||
|
@ -166,8 +168,9 @@ void SphereEffectConfig::save()
|
|||
conf.writeEntry( "CapColor", m_ui->capColorButton->color() );
|
||||
conf.writeEntry( "TexturedCaps", m_ui->capsImageBox->checkState() == Qt::Checked ? true : false );
|
||||
conf.writeEntry( "CloseOnMouseRelease", m_ui->closeOnMouseReleaseBox->checkState() == Qt::Checked ? true : false );
|
||||
conf.writeEntry( "Wallpaper", m_ui->wallpaperLineEdit->text() );
|
||||
conf.writeEntry( "Wallpaper", m_ui->wallpaperRequester->url().path() );
|
||||
conf.writeEntry( "ZPosition", m_ui->zPositionSlider->value() );
|
||||
conf.writeEntry( "CapDeformation", m_ui->capDeformationSlider->value() );
|
||||
|
||||
int activateBorder = m_ui->screenEdgeCombo->currentIndex();
|
||||
if( activateBorder == (int)ELECTRIC_COUNT )
|
||||
|
@ -194,8 +197,9 @@ void SphereEffectConfig::defaults()
|
|||
m_ui->capColorButton->setColor( KColorScheme( QPalette::Active, KColorScheme::Window ).background().color() );
|
||||
m_ui->capsImageBox->setCheckState( Qt::Checked );
|
||||
m_ui->closeOnMouseReleaseBox->setCheckState( Qt::Unchecked );
|
||||
m_ui->wallpaperLineEdit->setText( "" );
|
||||
m_ui->wallpaperRequester->setPath( "" );
|
||||
m_ui->zPositionSlider->setValue( 450 );
|
||||
m_ui->capDeformationSlider->setValue( 0 );
|
||||
m_ui->editor->allDefault();
|
||||
emit changed(true);
|
||||
}
|
||||
|
@ -208,6 +212,10 @@ void SphereEffectConfig::capsSelectionChanged()
|
|||
m_ui->capColorButton->setEnabled( true );
|
||||
m_ui->capColorLabel->setEnabled( true );
|
||||
m_ui->capsImageBox->setEnabled( true );
|
||||
m_ui->capDeformationSlider->setEnabled( true );
|
||||
m_ui->capDeformationLabel->setEnabled( true );
|
||||
m_ui->capDeformationSphereLabel->setEnabled( true );
|
||||
m_ui->capDeformationPlaneLabel->setEnabled( true );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -215,39 +223,13 @@ void SphereEffectConfig::capsSelectionChanged()
|
|||
m_ui->capColorButton->setEnabled( false );
|
||||
m_ui->capColorLabel->setEnabled( false );
|
||||
m_ui->capsImageBox->setEnabled( false );
|
||||
m_ui->capDeformationSlider->setEnabled( false );
|
||||
m_ui->capDeformationLabel->setEnabled( false );
|
||||
m_ui->capDeformationSphereLabel->setEnabled( false );
|
||||
m_ui->capDeformationPlaneLabel->setEnabled( false );
|
||||
}
|
||||
}
|
||||
|
||||
void SphereEffectConfig::showFileDialog()
|
||||
{
|
||||
m_dialog = new KFileDialog( KUrl(), "*.png *.jpeg *.jpg ", m_ui );
|
||||
KImageFilePreview *previewWidget = new KImageFilePreview( m_dialog );
|
||||
m_dialog->setPreviewWidget( previewWidget );
|
||||
m_dialog->setOperationMode( KFileDialog::Opening );
|
||||
m_dialog->setCaption( i18n("Select Wallpaper Image File") );
|
||||
m_dialog->setModal( false );
|
||||
m_dialog->show();
|
||||
m_dialog->raise();
|
||||
m_dialog->activateWindow();
|
||||
|
||||
connect(m_dialog, SIGNAL(okClicked()), this, SLOT(wallpaperSelected()));
|
||||
}
|
||||
|
||||
void SphereEffectConfig::wallpaperSelected()
|
||||
{
|
||||
QString wallpaper = m_dialog->selectedFile();
|
||||
disconnect(m_dialog, SIGNAL(okClicked()), this, SLOT(wallpaperSelected()));
|
||||
|
||||
m_dialog->deleteLater();
|
||||
|
||||
if (wallpaper.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_ui->wallpaperLineEdit->setText( wallpaper );
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
#include "sphere_config.moc"
|
||||
|
|
|
@ -50,12 +50,9 @@ class SphereEffectConfig : public KCModule
|
|||
|
||||
private slots:
|
||||
void capsSelectionChanged();
|
||||
void showFileDialog();
|
||||
void wallpaperSelected();
|
||||
private:
|
||||
SphereEffectConfigForm* m_ui;
|
||||
KActionCollection* m_actionCollection;
|
||||
KFileDialog* m_dialog;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -5,282 +5,468 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>662</height>
|
||||
<width>561</width>
|
||||
<height>595</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox" >
|
||||
<property name="title" >
|
||||
<string>Appearance</string>
|
||||
<widget class="QTabWidget" name="tabWidget" >
|
||||
<property name="currentIndex" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<item row="2" column="0" >
|
||||
<widget class="QLabel" name="label" >
|
||||
<property name="text" >
|
||||
<string>Rotation &duration:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>rotationDurationSpin</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1" >
|
||||
<widget class="QSpinBox" name="rotationDurationSpin" >
|
||||
<property name="suffix" >
|
||||
<string> msec</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>5000</number>
|
||||
</property>
|
||||
<property name="value" >
|
||||
<number>500</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" >
|
||||
<widget class="QLabel" name="label_3" >
|
||||
<property name="text" >
|
||||
<string>Cube &opacity:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>cubeOpacitySpin</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QComboBox" name="screenEdgeCombo" />
|
||||
</item>
|
||||
<item row="5" column="0" >
|
||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
||||
<item>
|
||||
<widget class="QSlider" name="cubeOpacitySlider" >
|
||||
<property name="maximum" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="singleStep" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="value" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="tickPosition" >
|
||||
<enum>QSlider::TicksBelow</enum>
|
||||
</property>
|
||||
<property name="tickInterval" >
|
||||
<number>10</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4" >
|
||||
<widget class="QWidget" name="tab" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>545</width>
|
||||
<height>553</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="title" >
|
||||
<string>Tab 1</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_5" >
|
||||
<item row="1" column="1" >
|
||||
<widget class="QGroupBox" name="groupBox_5" >
|
||||
<property name="title" >
|
||||
<string>Background</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout" >
|
||||
<item row="0" column="0" >
|
||||
<widget class="QLabel" name="label_6" >
|
||||
<property name="text" >
|
||||
<string>Fully transparent</string>
|
||||
<string>Background Color:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>backgroundColorButton</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer" >
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<item row="0" column="1" >
|
||||
<widget class="KColorButton" name="backgroundColorButton" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5" >
|
||||
<item row="1" column="0" >
|
||||
<widget class="QLabel" name="label_3" >
|
||||
<property name="text" >
|
||||
<string>Fully opaque</string>
|
||||
<string>Wallpaper:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>wallpaperRequester</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2" >
|
||||
<widget class="KUrlRequester" name="wallpaperRequester" />
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2" >
|
||||
<widget class="QGroupBox" name="groupBox_8" >
|
||||
<property name="title" >
|
||||
<string>Activation</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_3" >
|
||||
<item row="0" column="0" >
|
||||
<widget class="QLabel" name="label_2" >
|
||||
<property name="text" >
|
||||
<string>Screen edge:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>screenEdgeCombo</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QComboBox" name="screenEdgeCombo" />
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2" >
|
||||
<widget class="KWin::GlobalShortcutsEditor" native="1" name="editor" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>200</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="5" column="1" >
|
||||
<widget class="QSpinBox" name="cubeOpacitySpin" >
|
||||
<property name="suffix" >
|
||||
<string> %</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="value" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0" >
|
||||
<widget class="QCheckBox" name="displayDesktopNameBox" >
|
||||
<property name="text" >
|
||||
<string>Display desktop &name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0" >
|
||||
<widget class="QLabel" name="label_6" >
|
||||
<property name="text" >
|
||||
<string>&Background Color:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>backgroundColorButton</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1" >
|
||||
<widget class="KColorButton" name="backgroundColorButton" />
|
||||
</item>
|
||||
<item row="12" column="0" >
|
||||
<widget class="QCheckBox" name="cubeCapsBox" >
|
||||
<property name="text" >
|
||||
<string>Cube &Caps</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="0" >
|
||||
<widget class="QLabel" name="capColorLabel" >
|
||||
<property name="text" >
|
||||
<string>C&ap Color:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>capColorButton</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="1" >
|
||||
<widget class="KColorButton" name="capColorButton" />
|
||||
</item>
|
||||
<item row="14" column="0" >
|
||||
<widget class="QCheckBox" name="capsImageBox" >
|
||||
<property name="text" >
|
||||
<string>Display &image on cube caps</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" >
|
||||
<widget class="QLabel" name="label_2" >
|
||||
<property name="text" >
|
||||
<string>Screen &edge:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>screenEdgeCombo</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0" >
|
||||
<widget class="QLabel" name="label_7" >
|
||||
<property name="text" >
|
||||
<string>&Wallpaper:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>wallpaperLineEdit</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0" colspan="2" >
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3" >
|
||||
<item>
|
||||
<widget class="QLineEdit" name="wallpaperLineEdit" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="wallpaperButton" >
|
||||
<property name="text" >
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="15" column="0" >
|
||||
<widget class="QCheckBox" name="closeOnMouseReleaseBox" >
|
||||
<property name="text" >
|
||||
<string>Close after mouse dra&gging</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item rowspan="2" row="0" column="0" >
|
||||
<widget class="QGroupBox" name="groupBox_7" >
|
||||
<property name="title" >
|
||||
<string>Appearance</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2" >
|
||||
<item row="0" column="0" colspan="2" >
|
||||
<widget class="QCheckBox" name="displayDesktopNameBox" >
|
||||
<property name="text" >
|
||||
<string>Display desktop name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" >
|
||||
<widget class="QLabel" name="label" >
|
||||
<property name="text" >
|
||||
<string>Rotation duration:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>rotationDurationSpin</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QSpinBox" name="rotationDurationSpin" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> msec</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>5000</number>
|
||||
</property>
|
||||
<property name="value" >
|
||||
<number>500</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2" >
|
||||
<spacer name="verticalSpacer_2" >
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QGroupBox" name="groupBox_4" >
|
||||
<property name="title" >
|
||||
<string>Opacity</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3" >
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5" >
|
||||
<item>
|
||||
<widget class="QSlider" name="cubeOpacitySlider" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="singleStep" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="value" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="tickPosition" >
|
||||
<enum>QSlider::TicksBelow</enum>
|
||||
</property>
|
||||
<property name="tickInterval" >
|
||||
<number>10</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6" >
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4" >
|
||||
<property name="text" >
|
||||
<string>Transparent</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer" >
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5" >
|
||||
<property name="text" >
|
||||
<string>Opaque</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="cubeOpacitySpin" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> %</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="value" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_2" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>545</width>
|
||||
<height>553</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="title" >
|
||||
<string>Tab 2</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3" >
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_3" >
|
||||
<property name="title" >
|
||||
<string>Caps</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_4" >
|
||||
<item row="0" column="0" >
|
||||
<widget class="QCheckBox" name="cubeCapsBox" >
|
||||
<property name="text" >
|
||||
<string>Show caps</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" >
|
||||
<widget class="QLabel" name="capColorLabel" >
|
||||
<property name="text" >
|
||||
<string>Cap Color:</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>capColorButton</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="KColorButton" name="capColorButton" />
|
||||
</item>
|
||||
<item row="2" column="0" >
|
||||
<widget class="QCheckBox" name="capsImageBox" >
|
||||
<property name="text" >
|
||||
<string>Display image on caps</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" >
|
||||
<widget class="QLabel" name="capDeformationLabel" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Cap deformation:</string>
|
||||
</property>
|
||||
<property name="alignment" >
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>capDeformationSlider</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1" >
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4" >
|
||||
<item>
|
||||
<widget class="QSlider" name="capDeformationSlider" >
|
||||
<property name="maximum" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="tickPosition" >
|
||||
<enum>QSlider::TicksBelow</enum>
|
||||
</property>
|
||||
<property name="tickInterval" >
|
||||
<number>25</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="capDeformationSphereLabel" >
|
||||
<property name="text" >
|
||||
<string>Sphere</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3" >
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="capDeformationPlaneLabel" >
|
||||
<property name="text" >
|
||||
<string>Plane</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_2" >
|
||||
<property name="title" >
|
||||
<string>Zoom</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2" >
|
||||
<item>
|
||||
<widget class="QSlider" name="zPositionSlider" >
|
||||
<property name="toolTip" >
|
||||
<string>Define how far away the object should appear</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>3000</number>
|
||||
</property>
|
||||
<property name="singleStep" >
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property name="pageStep" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="tickPosition" >
|
||||
<enum>QSlider::TicksBelow</enum>
|
||||
</property>
|
||||
<property name="tickInterval" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2" >
|
||||
<item>
|
||||
<widget class="QLabel" name="label_8" >
|
||||
<property name="text" >
|
||||
<string>Near</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2" >
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_9" >
|
||||
<property name="text" >
|
||||
<string>Far</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_9" >
|
||||
<property name="title" >
|
||||
<string>Additional options</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
||||
<item>
|
||||
<widget class="QCheckBox" name="closeOnMouseReleaseBox" >
|
||||
<property name="toolTip" >
|
||||
<string>Sphere is deactivated after rotating the sphere with the mouse.
|
||||
Otherwise sphere will stay in the position.</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Close after mouse dragging</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer" >
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_2" >
|
||||
<property name="title" >
|
||||
<string>Zoom</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2" >
|
||||
<item>
|
||||
<widget class="QSlider" name="zPositionSlider" >
|
||||
<property name="toolTip" >
|
||||
<string>Define how far away the object should appear</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>3000</number>
|
||||
</property>
|
||||
<property name="singleStep" >
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property name="pageStep" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="tickPosition" >
|
||||
<enum>QSlider::TicksBelow</enum>
|
||||
</property>
|
||||
<property name="tickInterval" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2" >
|
||||
<item>
|
||||
<widget class="QLabel" name="label_8" >
|
||||
<property name="text" >
|
||||
<string>Near</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2" >
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_9" >
|
||||
<property name="text" >
|
||||
<string>Far</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KWin::GlobalShortcutsEditor" native="1" name="editor" />
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
@ -289,6 +475,11 @@
|
|||
<extends>QPushButton</extends>
|
||||
<header>kcolorbutton.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KUrlRequester</class>
|
||||
<extends>QFrame</extends>
|
||||
<header>kurlrequester.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::GlobalShortcutsEditor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
@ -297,17 +488,20 @@
|
|||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>screenEdgeCombo</tabstop>
|
||||
<tabstop>rotationDurationSpin</tabstop>
|
||||
<tabstop>cubeOpacitySpin</tabstop>
|
||||
<tabstop>cubeOpacitySlider</tabstop>
|
||||
<tabstop>tabWidget</tabstop>
|
||||
<tabstop>displayDesktopNameBox</tabstop>
|
||||
<tabstop>rotationDurationSpin</tabstop>
|
||||
<tabstop>cubeOpacitySlider</tabstop>
|
||||
<tabstop>cubeOpacitySpin</tabstop>
|
||||
<tabstop>backgroundColorButton</tabstop>
|
||||
<tabstop>wallpaperLineEdit</tabstop>
|
||||
<tabstop>wallpaperButton</tabstop>
|
||||
<tabstop>wallpaperRequester</tabstop>
|
||||
<tabstop>screenEdgeCombo</tabstop>
|
||||
<tabstop>cubeCapsBox</tabstop>
|
||||
<tabstop>capColorButton</tabstop>
|
||||
<tabstop>capsImageBox</tabstop>
|
||||
<tabstop>capDeformationSlider</tabstop>
|
||||
<tabstop>zPositionSlider</tabstop>
|
||||
<tabstop>closeOnMouseReleaseBox</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections>
|
||||
|
|
Loading…
Reference in a new issue