Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/libpaintop/kis_brush_chooser.cpp
Context not available. | |||||
113 | brushSizeSpinBox->setRange(0, KSharedConfig::openConfig()->group("").readEntry("maximumBrushSize", 1000), 2); | 113 | brushSizeSpinBox->setRange(0, KSharedConfig::openConfig()->group("").readEntry("maximumBrushSize", 1000), 2); | ||
---|---|---|---|---|---|
114 | brushSizeSpinBox->setValue(5); | 114 | brushSizeSpinBox->setValue(5); | ||
115 | brushSizeSpinBox->setExponentRatio(3.0); | 115 | brushSizeSpinBox->setExponentRatio(3.0); | ||
116 | | ||||
117 | brushSizeSpinBox->setPrefix(i18n("Size: ")); | ||||
116 | brushSizeSpinBox->setSuffix(i18n(" px")); | 118 | brushSizeSpinBox->setSuffix(i18n(" px")); | ||
117 | brushSizeSpinBox->setExponentRatio(3.0); | 119 | brushSizeSpinBox->setExponentRatio(3.0); | ||
118 | 120 | | |||
Context not available. | |||||
121 | 123 | | |||
122 | brushRotationSpinBox->setRange(0, 360, 0); | 124 | brushRotationSpinBox->setRange(0, 360, 0); | ||
123 | brushRotationSpinBox->setValue(0); | 125 | brushRotationSpinBox->setValue(0); | ||
126 | brushRotationSpinBox->setPrefix(i18n("Rotation: ")); | ||||
124 | brushRotationSpinBox->setSuffix(QChar(Qt::Key_degree)); | 127 | brushRotationSpinBox->setSuffix(QChar(Qt::Key_degree)); | ||
125 | QObject::connect(brushRotationSpinBox, SIGNAL(valueChanged(qreal)), this, SLOT(slotSetItemRotation(qreal))); | 128 | QObject::connect(brushRotationSpinBox, SIGNAL(valueChanged(qreal)), this, SLOT(slotSetItemRotation(qreal))); | ||
126 | 129 | | |||
130 | | ||||
127 | brushSpacingSelectionWidget->setSpacing(true, 1.0); | 131 | brushSpacingSelectionWidget->setSpacing(true, 1.0); | ||
128 | connect(brushSpacingSelectionWidget, SIGNAL(sigSpacingChanged()), SLOT(slotSpacingChanged())); | 132 | connect(brushSpacingSelectionWidget, SIGNAL(sigSpacingChanged()), SLOT(slotSpacingChanged())); | ||
129 | 133 | | |||
Context not available. | |||||
144 | m_itemChooser->setCurrentItem(0, 0); | 148 | m_itemChooser->setCurrentItem(0, 0); | ||
145 | m_itemChooser->setSynced(true); | 149 | m_itemChooser->setSynced(true); | ||
146 | m_itemChooser->setMinimumWidth(100); | 150 | m_itemChooser->setMinimumWidth(100); | ||
147 | m_itemChooser->setMinimumHeight(150); | 151 | m_itemChooser->setMinimumHeight(120); | ||
152 | m_itemChooser->setMaximumHeight(150); | ||||
153 | | ||||
148 | m_itemChooser->showButtons(false); // turn the import and delete buttons since we want control over them | 154 | m_itemChooser->showButtons(false); // turn the import and delete buttons since we want control over them | ||
149 | 155 | | |||
150 | KisConfig cfg(true); | 156 | KisConfig cfg(true); | ||
Context not available. | |||||
180 | QGridLayout *spacingLayout = new QGridLayout(); | 186 | QGridLayout *spacingLayout = new QGridLayout(); | ||
181 | spacingLayout->setObjectName("spacing grid layout"); | 187 | spacingLayout->setObjectName("spacing grid layout"); | ||
182 | 188 | | |||
189 | resetBrushButton->setIcon(KisIconUtils::loadIcon("view-refresh")); | ||||
183 | resetBrushButton->setToolTip(i18n("Reloads Spacing from file\nSets Scale to 1.0\nSets Rotation to 0.0")); | 190 | resetBrushButton->setToolTip(i18n("Reloads Spacing from file\nSets Scale to 1.0\nSets Rotation to 0.0")); | ||
184 | connect(resetBrushButton, SIGNAL(clicked()), SLOT(slotResetBrush())); | 191 | connect(resetBrushButton, SIGNAL(clicked()), SLOT(slotResetBrush())); | ||
185 | 192 | | |||
Context not available. |